.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2e2623;
  user-select: none;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 189, 180, 0.72);
  border-radius: 5px;
  background: #f7f7f6;
}

.product-card__media--loading::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(247, 243, 239, 0),
    rgba(255, 255, 255, 0.7),
    rgba(247, 243, 239, 0)
  );
  animation: productCardImageShimmer 1.35s ease-in-out infinite;
}

.product-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.product-card__visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 38%, rgba(167, 141, 130, 0.09), transparent 34%),
    #f8f7f6;
  color: rgba(167, 141, 130, 0.72);
  font-family: "Ebru Logo", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.product-card__media--loading .product-card__image:not(.is-loaded) {
  opacity: 0;
}

.product-card__image.is-loaded {
  opacity: 1;
}

.product-card:hover .product-card__image {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.01);
}

@keyframes productCardImageShimmer {
  100% {
    transform: translateX(100%);
  }
}

.product-card__favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: clamp(24px, 2.25vw, 28px);
  height: clamp(24px, 2.25vw, 28px);
  padding: 0;
  border: 1px solid rgba(203, 189, 180, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #5b514c;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(46, 38, 35, 0.06);
  backdrop-filter: blur(10px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.product-card__favorite:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 141, 130, 0.5);
  background: rgba(255, 255, 255, 0.98);
  color: #a78d82;
  box-shadow: 0 10px 18px rgba(46, 38, 35, 0.1);
}

.product-card__favorite.is-active {
  border-color: rgba(167, 141, 130, 0.55);
  background: rgba(247, 243, 239, 0.98);
  color: #8f7469;
}

.product-card__favorite.is-pending {
  cursor: wait;
  opacity: 0.72;
}

.product-card__favorite-icon {
  display: inline-flex;
  width: clamp(15px, 1.45vw, 17px);
  height: clamp(15px, 1.45vw, 17px);
}

.product-card__favorite-icon svg {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.85;
  transition:
    fill 160ms ease,
    stroke 160ms ease,
    transform 160ms ease;
}

.product-card__favorite.is-active .product-card__favorite-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.product-card__body {
  display: grid;
  align-content: start;
  gap: clamp(0.48rem, 0.72vw, 0.62rem);
  min-width: 0;
  padding: clamp(0.62rem, 0.9vw, 0.8rem) 0 0;
}

.product-card__meta {
  min-width: 0;
  color: #6e8b74;
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 500;
  line-height: 1.2;
}

.product-card__delivery {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.22rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__delivery-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__title {
  display: -webkit-box;
  min-height: calc(1.34em * 2);
  margin: 0;
  overflow: hidden;
  color: #2e2623;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.product-card__title-link:hover {
  color: #4b403c;
}

.product-card__rating {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.3rem;
  color: #6f6661;
  font-size: clamp(0.74rem, 0.88vw, 0.84rem);
  line-height: 1;
}

.product-card__rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #d8cec6;
  letter-spacing: 0;
}

.product-card__rating-star {
  display: inline-block;
  color: #d8cec6;
  font-size: 0.95em;
  line-height: 1;
}

.product-card__rating-star.is-filled {
  color: #f2af24;
}

.product-card__rating-count {
  color: #4f4743;
  font-weight: 600;
}

.product-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: clamp(0.48rem, 0.7vw, 0.62rem) 0 0;
}

.product-card__price {
  display: grid;
  gap: 0.12rem;
  align-items: start;
  min-width: 0;
}

.product-card__price-current {
  color: #2e2623;
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-card__price-old {
  color: #8a8581;
  font-size: clamp(0.74rem, 0.86vw, 0.84rem);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: line-through;
}

.product-card__cta {
  display: none;
}

.product-card--featured .product-card__media,
.product-card--compact .product-card__media {
  aspect-ratio: 3 / 4;
}

.product-card--compact .product-card__body {
  gap: clamp(0.42rem, 0.64vw, 0.54rem);
}

@media (max-width: 1099px) {
  .product-card__body {
    gap: 0.54rem;
    padding-top: 0.68rem;
  }

  .product-card__title {
    font-size: 0.92rem;
  }

  .product-card__price-current {
    font-size: 1.08rem;
  }
}

@media (max-width: 819px) {
  .product-card__media {
    border-radius: 5px;
  }

  .product-card__favorite {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }

  .product-card__body {
    gap: 0.48rem;
    padding-top: 0.58rem;
  }

  .product-card__meta {
    font-size: 0.68rem;
  }

  .product-card__title {
    font-size: 0.86rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
  }

  .product-card__rating {
    font-size: 0.74rem;
  }

  .product-card__footer {
    padding-top: 0.46rem;
  }
}

@media (max-width: 559px) {
  .product-card__favorite {
    width: 24px;
    height: 24px;
  }

  .product-card__favorite-icon {
    width: 14px;
    height: 14px;
  }

  .product-card__body {
    gap: 0.42rem;
  }

  .product-card__meta {
    font-size: 0.62rem;
  }

  .product-card__title {
    font-size: 0.8rem;
    line-height: 1.28;
    min-height: calc(1.28em * 2);
  }

  .product-card__rating {
    gap: 0.22rem;
    font-size: 0.68rem;
  }

  .product-card__price-current {
    font-size: 0.96rem;
  }

  .product-card__price-old {
    font-size: 0.68rem;
  }
}

@media (max-width: 359px) {
  .product-card__meta {
    white-space: normal;
  }

  .product-card__delivery {
    white-space: normal;
  }

  .product-card__title {
    font-size: 0.82rem;
  }

  .product-card__price-current {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media--loading::after {
    animation: none;
  }
}
