/* .custom-product-card {
  flex: 1 1 400px;
}
.product-inner {
  border: 1px solid black;
  flex: 1 1 317px;
} */
.star-rating {
  display: none;
}

.custom-product-card {
  flex: 1 1 280px;
  max-width: 317px;
}

.single-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: gap 0.4s ease;
}

.single-product-card .card-link-overlay {
  position: absolute;
  inset: 0;
  /* covers entire card */
  z-index: 1;
  background: transparent;
  text-decoration: none;
  pointer-events: auto;
}

.single-product-card .product-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--black_white50);
  display: flex;
  justify-content: center;
  min-height: 317px;
}

.single-product-card .product-image img {
  width: 100%;
  height: 100%;
  /* min-height: 317px; */
  max-height: 317px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.single-product-card:hover .product-image img {
  transform: scale(1.08);
}

.single-product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}
.single-product-card .product-rating .star {
  height: 16px;
  width: 16px;
}

.single-product-card .review-count {
  margin-left: 4px;
  color: var(--neutral400);
}

.single-product-card .product-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Title */
.single-product-card .product-title {
  color: var(--neutral950);
}

/* Discount */
.single-product-card .onsale {
  position: absolute;
  left: 0;
  top: 20px;
  padding: 10px;
  background: var(--black_white100);
  border-radius: 0px 6px 6px 0px;
  color: var(--primary500);
  z-index: 1;
}

/* Favorite */
.single-product-card .heart {
  position: absolute;
  right: 10px;
  top: 10px;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  background: var(--black_white50);
  z-index: 2;
  transition: all 0.4s ease;
}

.single-product-card .heart:hover {
  background-color: var(--primary500);
}

.single-product-card .heart svg path {
  height: 40px;
  width: 40px;
  stroke: var(--primary500);
  fill: var(--black_white50);
}

.single-product-card .heart:hover svg path {
  stroke: var(--black_white50);
  fill: var(--black_white50);
}

/* Price */
.single-product-card .product-price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  margin-bottom: unset;
}

.single-product-card .product-price-wrapper .price-old {
  color: var(--neutral400);
  text-decoration: line-through;
}

.single-product-card .product-price-wrapper .price-new,
.single-product-card .product-price-wrapper .price-normal {
  color: var(--primary500);
}

.single-product-card .product-price-wrapper .price-unit {
  color: var(--neutral400);
}

.single-product-card .product-actions {
  z-index: 2;
}

.all-products-wrapper .custom-product-card {
  max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-product-card {
    max-width: 100%;
  }
  .single-product-card {
    gap: 12px;
  }
}