/* ═══════════════════════════════════════════════════════════════════ */
/* base.css — Ghamima Storefront                                       */
/* Shared: reset, variables, typography, header, footer, bottom nav   */
/* ═══════════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Primary: Functional naming ─────────────────────────────── */
  --color-bg:         #FAF7F4;   /* warm off-white — kertas premium */
  --color-surface:    #FFFFFF;   /* container cards */
  --color-border:     #EDE4D8;   /* warm beige untuk garis */
  --color-gold:       #C9A96E;   /* rose gold konsisten */
  --color-mocha:      #4A8A9E;   /* teal aksen */
  --color-espresso:   #1B4F5E;   /* deep teal — nav, primary */
  --color-ink:        #163D4A;   /* darkest — footer/overlay */
  --color-text:       #1B4F5E;   /* primary text */
  --color-text-muted: #7C6B5E;   /* warm taupe — secondary text */

  /* ── Legacy aliases (backward compat) ──────────────────────── */
  --cream:    var(--color-bg);
  --white:    var(--color-surface);
  --beige:    var(--color-border);
  --rose:     var(--color-gold);
  --blush:    var(--color-gold);
  --mocha:    var(--color-mocha);
  --espresso: var(--color-espresso);
  --ink:      var(--color-ink);

  /* collection.html compatibility aliases (were undefined → broke collection design) */
  --primary:  var(--color-espresso);
  --surface:  var(--color-surface);
  --ink-2:    var(--color-espresso);
  --ink-3:    var(--color-text-muted);
  --border:   var(--color-border);
  --radius:   10px;

  /* ── Typography ────────────────────────────────────────────── */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── DESKTOP HEADER ─────────────────────────────────────────── */
.header-desktop {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--color-surface);
}

/* index.html hero variant: transparent until scroll */
.header-desktop.transparent {
  background: transparent;
  box-shadow: none;
}
.header-desktop.transparent.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}
.header-desktop.transparent:not(.scrolled) .logo { color: var(--white); }
.header-desktop.transparent.scrolled .logo { color: var(--espresso); }
.header-desktop.transparent:not(.scrolled) .nav-links a { color: var(--white); }
.header-desktop.transparent.scrolled .nav-links a { color: var(--espresso); }
.header-desktop.transparent:not(.scrolled) .header-icons button svg { color: var(--white); }
.header-desktop.transparent.scrolled .header-icons button svg { color: var(--espresso); }

/* index.html legacy class */
.header-desktop:not(.scrolled) .logo { color: var(--espresso); }
.header-desktop.scrolled .logo { color: var(--espresso); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--espresso);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--espresso); transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }
.nav-links a.active-nav { border-bottom: 1.5px solid var(--rose); padding-bottom: 1px; }
.header-icons { display: flex; align-items: center; gap: 8px; }
.header-icons button {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: var(--espresso);
}
.header-icons button:hover { background: rgba(61,43,31,0.08); }
.header-icons svg { width: 20px; height: 20px; }

/* ─── MOBILE HEADER ──────────────────────────────────────────── */
.header-mobile {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-mobile .header-inner {
  flex: 1; width: 100%; padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: flex-start;
}
.header-mobile .mobile-menu-btn { flex: 0 0 44px; }
.header-mobile .logo {
  flex: 1; font-size: 18px;
  text-align: center; white-space: nowrap;
}
.header-mobile .mobile-cart-wrap { flex: 0 0 44px; display: flex; justify-content: flex-end; }
.mobile-menu-btn, .mobile-cart-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: var(--espresso);
}
.mobile-menu-btn:active, .mobile-cart-btn:active { background: var(--beige); }
.mobile-menu-btn svg, .mobile-cart-btn svg { width: 22px; height: 22px; }

/* back button variant (cart, checkout, etc.) */
.back-btn {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso); transition: background 0.2s;
}
.back-btn:active { background: var(--beige); }
.back-btn svg { width: 22px; height: 22px; }
.header-spacer { flex: 0 0 44px; }

/* ─── CART BADGE ─────────────────────────────────────────────── */
.cart-badge {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose); color: white;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.mobile-cart-wrap { position: relative; }

/* ─── MOBILE DRAWER ──────────────────────────────────────────── */
.drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(26,16,8,0.45); backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: flex; }
.drawer {
  width: 88%; max-width: 360px; height: 100%;
  background: var(--cream); overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--beige);
}
.drawer-header .logo { color: var(--espresso); font-size: 18px; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso); transition: background 0.2s;
}
.drawer-close:hover { background: var(--beige); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-section { padding: 20px; }
.drawer-section + .drawer-section { border-top: 1px solid var(--beige); }
.drawer-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid;
}
.badge-new   { background: #EEF4EE; color: #3D7A3D; border-color: #C2DCC2; }
.badge-sale  { background: #FEF0EE; color: #B94040; border-color: #F4C5C0; }
.badge-offer { background: #FFF7EC; color: #A0651A; border-color: #F5DEB3; }
.badge-best  { background: #F5F0FA; color: #6B4C9A; border-color: #D9C8F0; }
.badge-soon  { background: var(--beige); color: var(--mocha); border-color: var(--blush); }
.drawer-category { margin-bottom: 16px; }
.drawer-category-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 8px;
}
.drawer-links { display: flex; flex-direction: column; gap: 0; }
.drawer-links a {
  padding: 10px 0; font-size: 15px; color: var(--espresso);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.drawer-links a:last-child { border-bottom: none; }
.drawer-links a:hover { color: var(--rose); }
.drawer-links a svg { width: 14px; height: 14px; opacity: 0.4; }

/* ─── MOBILE BOTTOM PILL NAV ──────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 99;
  isolation: isolate;
}
.bottom-nav ul {
  display: flex; align-items: stretch; gap: 4px;
  background: rgba(22, 61, 74, 0.38);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 20px; padding: 4px;
  box-shadow: 0 10px 28px -10px rgba(22,61,74,0.45),
              0 0 0 1px rgba(255,255,255,0.12),
              inset 0 1px 0 rgba(255,255,255,0.15);
  list-style: none;
}
.bottom-nav li { flex: 1; }
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 48px; width: 100%; border-radius: 16px; gap: 3px;
  color: rgba(255,255,255,0.55); font-size: 9px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.bottom-nav a svg, .bottom-nav button svg { width: 20px; height: 20px; }
.bottom-nav a.active {
  background: var(--cream); color: var(--espresso);
  box-shadow: 0 2px 10px -2px rgba(232,196,184,0.3);
}
.bottom-nav a:not(.active):hover, .bottom-nav button:hover { color: var(--blush); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--espresso); color: var(--cream); padding: 56px 40px 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 12px; display: block; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 220px; }
.footer-col-title {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.65); }
.footer-social-icons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.social-icon-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: all .2s;
}
.social-icon-link:hover { background: rgba(255,255,255,0.15); color: var(--cream); transform: scale(1.08); }
.social-icon-link svg { width: 18px; height: 18px; }
.social-about-link { font-size: 12px; color: rgba(255,255,255,0.65); margin-left: 8px; transition: color .2s; }
.social-about-link:hover { color: var(--cream); }

/* ─── VISIBILITY ────────────────────────────────────────────── */
.desktop-only { display: flex; }
.mobile-only  { display: none; }
.bottom-nav   { display: none; }

@media (min-width: 768px) {
  .header-desktop { display: flex; align-items: center; }
  .header-desktop .header-inner { width: 100%; }
}
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
  .bottom-nav   { display: block !important; }
  .footer { padding: 48px 24px 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── BUTTON STATES ──────────────────────────────────────────── */

/* Base button look — shared pill CTA style (auth forms, empty states, etc.) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, opacity .2s;
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover:not(:disabled) { background: var(--ink); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

/* Active press feedback — all primary/secondary/CTA buttons */
.btn-primary:active,
[class*="cta"]:active,
.cart-drawer-checkout-btn:active,
.cart-drawer-continue-btn:active,
.checkout-cta-btn:active,
.sticky-cta-btn:active,
.cart-empty-cta:active,
.newsletter-form button:active,
.promo-cta:active {
  transform: scale(0.97);
  opacity: 0.92;
  transition: transform 0.1s, opacity 0.1s;
}

/* Disabled state — cursor + muted appearance */
button:disabled,
a.disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}
/* Override pointer-events only for true <button> disabled so events still bubble for a11y */
button:disabled { pointer-events: auto; }

/* ─── UTILS ─────────────────────────────────────────────────── */
.hidden { display: none !important; }

.placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(61,43,31,0.3);
}
.placeholder-hero  { background: linear-gradient(135deg, #E8DDD5 0%, #D4C4B8 100%); }
.placeholder-feat1 { background: linear-gradient(160deg, #C9B5A8 0%, #A68B7B 100%); }
.placeholder-feat2 { background: linear-gradient(160deg, #B8C9C0 0%, #8BA898 100%); }
.placeholder-prod1 { background: linear-gradient(170deg, #EDE0D8 0%, #D6C4B8 100%); }
.placeholder-prod2 { background: linear-gradient(170deg, #D8E0D4 0%, #C0CCBB 100%); }
.placeholder-prod3 { background: linear-gradient(170deg, #E0D8E8 0%, #C8BCDC 100%); }
.placeholder-prod4 { background: linear-gradient(170deg, #E8E0D0 0%, #D0C8B8 100%); }
.placeholder-promo { background: linear-gradient(135deg, #8B6E5A 0%, #6B4E3A 100%); }
.placeholder-g1 { background: linear-gradient(160deg, #EDE4DC 0%, #D8CABC 100%); }
.placeholder-g2 { background: linear-gradient(160deg, #E0D0C8 0%, #CCC0B4 100%); }
.placeholder-g3 { background: linear-gradient(160deg, #D8E0DC 0%, #C0CCC8 100%); }
.placeholder-g4 { background: linear-gradient(160deg, #E8E0D4 0%, #D4C8B8 100%); }

/* ─── CART DRAWER ────────────────────────────────────────────── */
.cart-drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(26,16,8,0.45); backdrop-filter: blur(2px);
}
.cart-drawer-overlay.open { display: flex; justify-content: flex-end; }
.cart-drawer {
  width: 92%; max-width: 400px; height: 100%;
  background: var(--cream); overflow: hidden;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer-overlay.open .cart-drawer { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--beige); flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 300; color: var(--espresso);
}
.cart-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso); transition: background 0.2s;
}
.cart-drawer-close:hover { background: var(--beige); }
.cart-drawer-close svg { width: 20px; height: 20px; }

.cart-drawer-body { flex: 1; overflow-y: auto; }

.cart-drawer-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--beige);
  align-items: start;
}
.cart-drawer-item-img {
  aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--beige);
}
.cart-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-item-name { font-size: 13px; color: var(--espresso); font-weight: 500; line-height: 1.4; }
.cart-drawer-item-variant { font-size: 11px; color: var(--mocha); }
.cart-drawer-item-price { font-size: 13px; font-weight: 500; color: var(--ink); }
.cart-drawer-item-row {
  display: flex; align-items: center; justify-content: space-between; margin-top: 4px;
}
.cart-drawer-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--beige); border-radius: 999px; overflow: hidden;
}
.cart-drawer-qty-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--espresso); transition: background .15s; line-height: 1;
}
.cart-drawer-qty-btn:hover { background: var(--beige); }
.cart-drawer-qty-btn:disabled { opacity: .35; cursor: default; }
.cart-drawer-qty-num {
  width: 36px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink);
}
.cart-drawer-remove-btn {
  font-size: 11px; color: var(--mocha); text-decoration: underline;
  text-underline-offset: 2px; background: none; transition: color .2s;
}
.cart-drawer-remove-btn:hover { color: var(--ink); }

.cart-drawer-empty {
  padding: 60px 24px; text-align: center; color: var(--mocha); font-size: 14px;
}

.cart-drawer-footer {
  flex-shrink: 0; padding: 16px 20px;
  border-top: 1px solid var(--beige); background: var(--cream);
}
.cart-drawer-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.cart-drawer-subtotal-label { font-size: 13px; color: var(--mocha); }
.cart-drawer-subtotal-val { font-size: 16px; font-weight: 500; color: var(--ink); }
.cart-drawer-actions { display: flex; flex-direction: column; gap: 8px; }
.cart-drawer-checkout-btn {
  display: block; width: 100%; padding: 14px;
  border-radius: 999px; background: var(--espresso); color: var(--cream);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; transition: background .2s;
}
.cart-drawer-checkout-btn:hover { background: var(--ink); }
.cart-drawer-continue-btn {
  display: block; width: 100%; padding: 12px;
  border-radius: 999px; border: 1.5px solid var(--beige);
  color: var(--espresso); font-size: 13px; font-weight: 500;
  text-align: center; transition: background .2s, border-color .2s;
}
.cart-drawer-continue-btn:hover { background: var(--beige); }

/* ─── CART TOAST (T17) ───────────────────────────────────────── */
.cart-toast {
  position: fixed; bottom: 80px; right: 20px; z-index: 9999;
  background: var(--espresso); color: var(--cream);
  padding: 12px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(22,61,74,0.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: 280px;
}
.cart-toast.visible {
  opacity: 1; transform: translateY(0);
}
@media (max-width: 767px) {
  .cart-toast { bottom: 100px; left: 16px; right: 16px; max-width: none; text-align: center; }
}

/* ─── SEARCH OVERLAY ─────────────────────────────────────────── */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(250,247,244,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(22,61,74,0.12);
}
.search-overlay.open {
  transform: translateY(0);
}
.search-overlay-inner {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
}
.search-bar svg {
  width: 20px; height: 20px;
  color: var(--color-mocha);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-espresso);
  padding: 14px 0;
  outline: none;
  min-width: 0;
}
.search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}
.search-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-espresso);
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}
.search-close:hover {
  background: var(--color-border);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  margin-top: 12px;
  max-height: 60vh;
}
.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.search-result-card:last-child {
  border-bottom: none;
}
.search-result-card:hover {
  background: rgba(201,169,110,0.08);
}
.search-result-card > div:last-child {
  flex: 1;
  min-width: 0;
}
.search-result-card p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .search-overlay-inner {
    padding: 12px 16px 16px;
  }
  .search-input {
    font-size: 16px;
    padding: 12px 0;
  }
  .search-results {
    max-height: 50vh;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GRID & CARD — single source of truth
   Used by: index.html, catalog.html, collection.html, products.html, pdp.html
   ═══════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.product-card { cursor: pointer; min-width: 0; }
.product-img-wrap {
  position: relative; aspect-ratio: 3/4; border-radius: 12px;
  overflow: hidden; background: var(--beige); margin-bottom: 12px; width: 100%;
}
.product-img-wrap img, .product-img-inner {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: var(--mocha); border: none; cursor: pointer;
}
.wishlist-btn:hover { background: var(--cream); }
.wishlist-btn svg { width: 15px; height: 15px; }
/* Wishlist heart — filled/gold when the product is saved (see js/wishlist.js) */
.wishlist-btn.active { color: var(--rose); }
.wishlist-btn.active svg { fill: currentColor; }

/* Same corner-icon chrome as .wishlist-btn, but for a genuine "add to cart"
   shortcut (product-card cart icon, related products) — kept as a separate
   class so it's never confused with the real wishlist toggle above. */
.cart-quick-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: var(--mocha); border: none; cursor: pointer;
}
.cart-quick-btn:hover { background: var(--cream); }
.cart-quick-btn svg { width: 15px; height: 15px; }
.cart-quick-btn.loading { opacity: 0.6; pointer-events: none; }

.product-info { padding: 0 2px; }
.product-name {
  font-size: 14px; color: var(--espresso); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.price-sale { font-size: 14px; font-weight: 500; color: var(--mocha); }
.price-original { font-size: 12px; color: var(--rose); text-decoration: line-through; }

.color-swatches { display: flex; gap: 5px; }
.swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(61,43,31,0.15); transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.25); }

.product-badge, .product-tag {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.badge-new-prod, .tag-new  { background: var(--espresso); color: var(--cream); }
.badge-sale-prod, .tag-sale { background: #B94040; color: white; }
.tag-best { background: #F5F0FA; color: #6B4C9A; }
.product-card.sold-out { opacity: 0.6; }

.stock-badge {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 999px; font-weight: 500; letter-spacing: 0.03em;
}
.stock-badge.low  { background: #FFF7EC; color: #8B5E00; }
.stock-badge.sold { background: #FEF0EE; color: #B94040; }

/* ─── SKELETON LOADERS ─────────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
.skeleton { background: var(--beige, #f5f0eb); border-radius: 4px; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-card { background: white; border-radius: 8px; overflow: hidden; }
.skeleton-img { width: 100%; aspect-ratio: 3/4; }
.skeleton-text { height: 14px; margin: 8px 12px 4px; border-radius: 3px; }
.skeleton-text.short { width: 60%; height: 12px; margin-bottom: 12px; }

/* ── SCROLL ENTRANCE ANIMATIONS ──────────────────────────────────── */
.anim-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-reveal { transition: none; opacity: 1; transform: none; }
}
