.product-card {
  background: #fff;
  border: 1px solid rgba(240, 216, 208, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--blush);
  display: block;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.product-media .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-media img { transform: scale(1.07); }
.product-card:hover .product-media .img-hover { opacity: 1; }

.badge-sale, .badge-new, .badge-hot {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  z-index: 2;
}
.badge-sale { background: var(--danger-color); color: #fff; }
.badge-new { background: var(--primary-color); color: #fff; }
.badge-hot { background: var(--warning-color); color: #111; }

.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.wish-btn.active { color: var(--primary-color); }
.wish-btn:hover { color: var(--primary-color); }

.quick-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 2;
}
.product-card:hover .quick-actions {
  opacity: 1;
  transform: none;
}

.stars { color: var(--warning-color); font-size: 0.85rem; }
.price-old { color: var(--secondary-color); text-decoration: line-through; font-size: 0.9rem; }
.off-pct { color: var(--success-color); font-weight: 700; font-size: 0.82rem; }

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-main:hover img { transform: scale(1.12); }

.thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
}
.thumbs img.active { border-color: var(--primary-color); opacity: 1; }

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e0c4bc;
  cursor: pointer;
}
.swatch.active { box-shadow: 0 0 0 2px var(--primary-color); }

.size-btn {
  min-width: 44px;
  height: 40px;
  border: 1.5px solid var(--border-color);
  background: #fffaf7;
  border-radius: 999px;
  font-weight: 600;
}
.size-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffe4e8;
}

.qty-ctrl {
  display: inline-flex;
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  background: #fffaf7;
}
.qty-ctrl button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}
.qty-ctrl input {
  width: 44px;
  border: 0;
  text-align: center;
  background: transparent;
}

.product-list-row .product-media {
  width: 180px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: var(--radius);
}
