/* ===========================================================
   PRODUCT CARD (Light Edition)
   =========================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--parchment);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--gold);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: var(--parchment-deep);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-card-media img { transform: scale(1.045); }

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--cream);
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--gold-pale);
  z-index: 3;
}
.product-card-badge.out { color: var(--ink-faint); border-color: var(--line); }
.product-card-badge.sale { background: var(--ink); color: var(--bone-on-dark); border-color: var(--ink); }

.quick-add-btn {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out);
  z-index: 3;
}
.product-card:hover .quick-add-btn { opacity: 1; transform: translateY(0); }
.quick-add-btn:hover { background: var(--gold-deep); }
.quick-add-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (hover: none) {
  .quick-add-btn { opacity: 1; transform: none; }
}

.wishlist-toggle-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
  z-index: 3;
}
.wishlist-toggle-btn:hover { color: var(--error); transform: scale(1.08); }
.wishlist-toggle-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; transition: fill 0.2s, stroke 0.2s; }
.wishlist-toggle-btn.active { color: var(--error); }
.wishlist-toggle-btn.active svg { fill: var(--error); stroke: var(--error); }
.wishlist-toggle-btn.pulse svg { animation: wishlist-pulse 0.35s var(--ease-out); }
@keyframes wishlist-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.product-card-body {
  padding: var(--space-3) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  background: var(--cream);
}

.product-card-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.product-card-price .current {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.product-card-price .original {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: line-through;
}
