.product-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  background: var(--color-bg-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 12px 14px;
  position: relative;
  scroll-snap-align: start;
  transition: box-shadow 0.25s ease-in-out, transform 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #bfdcff;
}

.product-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  background: var(--color-badge-pink-bg);
  color: var(--color-badge-pink-text);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: 5px;
  line-height: 1.6;
}

.product-card__img {
  position: relative;
  display: block;
  height: 160px;
  background: var(--color-bg-white);
  border-radius: 8px;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__img img {
  transform: scale(1.04);
}

/* Two-tone promo ribbon, flush against the bottom edge of the image, with
   a thin gold accent line along its top edge. */
.product-card__ribbon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  border-top: 2px solid #ffc107;
}

.product-card__ribbon-promo {
  flex: 1;
  padding: 2px 8px;
  background: #d32f2f;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.product-card__ribbon-percent {
  flex-shrink: 0;
  padding: 2px 8px;
  margin-left: -8px;
  background: var(--color-brand-blue);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

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

.product-card__name h3 {
  margin: 8px 0 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.42em * 2);
  transition: color var(--transition-fast);
}

.product-card__name:hover h3 {
  color: var(--color-brand-blue);
}

.product-card__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 1.4em;
}

.product-card__old-price {
  flex-basis: 100%;
  margin-bottom: 2px;
  color: #9ca3af;
  font-size: 12px;
  text-decoration: line-through;
  font-weight: 400;
}

.product-card__price {
  margin: 0;
  color: #d32f2f;
  font-size: 16px;
  font-weight: 800;
}

.product-card__discount {
  color: #ffffff;
  background: #c62828;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.product-card__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
  min-height: 1.6em;
}

.product-card__attr {
  font-size: 10.5px;
  font-weight: 500;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__compare {
  font-size: 11.5px;
  font-weight: 500;
  color: #059669;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card__compare:hover {
  color: #10b981;
}

.product-card__cart {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #f0f7ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.product-card__cart:hover {
  background: var(--color-brand-blue);
  color: #ffffff;
}

.product-card__cart svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Flash-sale card variant — sits on a red container, so the white border
   gets dropped and a couple of accent colors shift slightly.
   ========================================================================== */
.product-section--flash .product-card {
  border: 0;
}

.product-section--flash .product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-section--flash .product-card__discount {
  background: #d32f2f;
}

.product-section--flash .product-card__cart {
  background: #e0f2fe;
  color: #0284c7;
}

.product-section--flash .product-card__cart:hover {
  background: #0284c7;
  color: #ffffff;
}
