.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--color-shadow-soft-rgba);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  overflow: hidden;
  -webkit-user-drag: none;
  user-select: none;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transition-slow);
  -webkit-user-drag: none;
  user-select: none;
}

.product-card__image--secondary {
  opacity: 0;
}

.product-card:hover .product-card__image--primary,
.product-card:focus-within .product-card__image--primary,
.product-card.is-media-hovered .product-card__image--primary {
  transform: scale(1.05);
}

.product-card:hover .product-card__image--secondary,
.product-card:focus-within .product-card__image--secondary,
.product-card.is-media-hovered .product-card__image--secondary {
  opacity: 1;
}

.product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 0.55rem;
  border-radius: 100px;
  background: var(--color-metal);
  color: var(--color-surface);
  font-size: 10px;
  line-height: 1;
}

.product-card__badge--inventory {
  background: var(--color-shell-surface-strong);
  border: 1px solid var(--color-shell-category-active-border);
  color: var(--color-espresso);
}

.product-card__badge--new {
  background: var(--color-shell-surface-strong);
  border: 1px solid var(--color-shell-category-border);
  color: var(--color-metal);
}

.product-card__fallback {
  position: absolute;
  inset: 0;
  display: none !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: var(--color-espresso);
}

.product-card__fallback.is-visible {
  display: none !important;
}

.product-card__content {
  padding: 18px 16px 20px;
  text-align: center;
}

.product-card__content-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
  user-select: none;
}

.product-card__content-link:hover,
.product-card__content-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.product-card__meta {
  margin: 0 0 0.45rem;
  color: var(--color-taupe);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__title,
.product-card__price-row {
  margin: 0;
}

.product-card__rating {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--color-taupe);
  font-size: 12px;
  line-height: 1;
}

.product-card__rating-stars {
  display: inline-flex;
  gap: 0.03rem;
  color: var(--color-border);
  letter-spacing: 0;
}

.product-card__rating-stars .is-filled {
  color: #f4a51c;
}

.product-card__rating-score {
  color: var(--color-espresso);
  font-weight: 800;
}

.product-card__rating-count {
  color: var(--color-taupe);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: clamp(15px, 0.95vw, 16px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--color-charcoal);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-card__price-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  color: var(--color-charcoal);
}

.product-card__price-original {
  color: var(--color-taupe);
  text-decoration: line-through;
  font-size: 13px;
}

.product-card__price-current {
  color: var(--color-espresso);
  font-size: 15px;
  font-weight: 800;
}

.product-card__price-discount {
  color: #16833a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card__timer-wrap {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-shell-surface-strong);
  border: 1px solid var(--color-border);
}

.product-card__timer-progress {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.product-card__timer-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-action-primary) 0%, var(--color-action-primary-hover) 100%);
  transition: width 0.9s linear;
}

.product-card__timer-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-taupe);
  white-space: nowrap;
}

.product-card__timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-espresso);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .product-card__timer-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 18px;
    border: 0;
  }

  .product-card__timer-progress {
    flex: none;
    width: 100%;
    height: 5px;
  }

  .product-card__timer-label,
  .product-card__timer {
    display: block;
    width: 100%;
    text-align: center;
  }

  .product-card__timer {
    font-size: 11px;
    line-height: 1.2;
  }
}

.product-card__actions {
  display: flex;
  align-items: stretch;
  padding: 0 16px 20px;
  margin-top: auto;
}

.product-card__cta-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #551c25;
  background: #551c25;
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 800;
  box-shadow: 0 1px 0 var(--color-shadow-subtle-rgba);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card__cta-button:hover,
.product-card__cta-button:focus-visible {
  background: #a9246c;
  border-color: #a9246c;
  transform: translateY(-1px);
}

.product-card__cta-button:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.product-card__cta-button:active {
  transform: translateY(0);
  box-shadow: none;
}
