/* =============================================================
   global.css — La Samasta Frontend
   Load di SEMUA halaman via assets_css.php

   Direstrukturisasi per-blok (per komponen) untuk memudahkan
   maintenance. Media query ditempatkan menempel pada section
   komponennya masing-masing (urutan breakpoint di dalam tiap
   komponen dijaga: makin sempit makin ke bawah, supaya
   cascade/override tetap sama).

   REVISI TIPOGRAFI (font-size)
   - Semua token --fs-* memakai rem, sehingga ikut pengaturan
     ukuran font browser pengguna (aksesibilitas).
   - Token besar (xl, 2xl, 3xl, card-title) bersifat fluid lewat
     clamp(), jadi tidak perlu override per breakpoint.
   - Ukuran teks terkecil dinaikkan: minimum 11px (sebelumnya 8px).
   - Aturan: JANGAN menulis font-size dalam px untuk teks. Pakai
     token di bawah. Pengecualian hanya ikon/glyph (mis. panah
     owl-nav, tombol slide QV).

   DAFTAR ISI
   -----------------------------------------------------------
   1.  ROOT & COLOR PALETTE
   2.  BOOTSTRAP OVERRIDES
   3.  RESET & BASE
   4.  SCROLLBAR
   5.  UTILITY CLASSES
   6.  BUTTONS (custom LS)
   7.  SCROLL REVEAL ANIMATIONS
   8.  NAVBAR
       8.1  Base & Transparent Mode
       8.2  Logo
       8.3  Nav Links (Desktop)
       8.4  Nav Actions & Icons
       8.5  Mobile Menu Toggle Button
       8.6  Mobile Nav Panel
       8.7  Sale Mini Mega Menu
       8.8  Mega Menu — Collections (Static/Legacy)
       8.9  Mega Menu — Collections (Dynamic)
       8.10 Mobile Accordion — Collections (Dynamic, 2 Tingkat)
       8.11 Mobile Collections/Sale Accordion (Wrapper & Trigger)
       8.12 Navbar — Responsive (semua breakpoint navbar)
   9.  SEARCH OVERLAY
   10. TOAST NOTIFICATION (SweetAlert2)
   11. WISHLIST DRAWER  } satu sistem tampilan
   12. CART DRAWER      } (selector digabung)
   13. USER SUBMENU
   14. IMAGE PLACEHOLDERS
   15. FOOTER
   16. LOOKBOOK
   17. PRODUCT CARD
       17.1 Base
       17.2 Responsive
   18. PRODUCTS GRID, TOOLBAR & FILTER TAGS
       18.1 Grid & View Modes
       18.2 Toolbar (sort, view toggle, load more)
       18.3 Filter Tags
       18.4 Responsive
   19. QUICK VIEW MODAL (QV)
       19.1 Base
       19.2 Responsive
   20. TOUCH DEVICE OVERRIDES (hover: none)
============================================================= */


/* =============================================
   1. ROOT & COLOR PALETTE
============================================= */
:root {
  --clr-dark:        #2e3640;
  --clr-accent:      #757159;
  --clr-soft:        #d5d2c3;
  --clr-soft-light:  #eceae3;
  --clr-soft-xlight: #f4f3ef;
  --clr-white:       #ffffff;
  --clr-muted:       #8a8070;
  --clr-sale:        #c0392b;

  /* Aliases */
  --sage:        #757159;
  --sage-light:  #d5d2c3;
  --sage-dark:   #5c5847;
  --cream:       #eceae3;
  --cream-dark:  #d5d2c3;
  --warm-white:  #f4f3ef;
  --earth:       #757159;
  --earth-light: #b0ad9e;
  --charcoal:    #2e3640;
  --muted:       #8a8070;
  --border:      rgba(117,113,89,0.2);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  /* Spacing */
  --section-py: clamp(3.5rem, 2.4rem + 4.8vw, 6.25rem);
  --transition: 0.22s ease;
  --radius-input: 0.625rem;

  /* Font-size scale (token tunggal — dipakai di seluruh file).
     rem: 1rem = 16px (mengikuti pengaturan browser pengguna).
     Token xl ke atas fluid (clamp), tidak perlu media query. */
  --fs-3xs:  0.6875rem;  /* 11px  badge, label kecil, count */
  --fs-2xs:  0.75rem;    /* 12px  meta text, promo notes, sublabel */
  --fs-xs:   0.8125rem;  /* 13px  tombol, toolbar, filter tag, nav link */
  --fs-sm:   0.875rem;   /* 14px  body kecil, harga lama, email */
  --fs-base: 0.9375rem;  /* 15px  teks UI standar */
  --fs-md:   1rem;       /* 16px  nav-links mobile, harga, input */
  --fs-lg:   1.125rem;   /* 18px  judul kartu/menu */
  --fs-xl:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);    /* 18 → 22px  heading sekunder */
  --fs-2xl:  clamp(1.375rem, 1.1rem + 1vw, 1.75rem);     /* 22 → 28px  heading utama */
  --fs-3xl:  clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);   /* 26 → 36px  hero-level, dipakai terbatas */

  /* Nama produk di kartu: fluid 16 → 18px, satu aturan untuk semua
     lebar layar (menggantikan override 860/540/380px yang lama). */
  --fs-card-title: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);

  /* Judul hero halaman (news, sale, dst): fluid 32 → 56px */
  --fs-hero: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);

  /* Teks watermark dekoratif raksasa: fluid 80 → 200px */
  --fs-watermark: clamp(5rem, 16vw, 12.5rem);

  /* ---------- Heading scale (font display) ----------
    Level heading (h1–h4) dipilih berdasarkan STRUKTUR halaman (SEO).
    Tampilannya dipilih lewat class .t-* di section 5, jadi H3 yang besar
    atau H2 yang kecil tidak perlu merusak hierarki heading. */
  --fs-display: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem);   /* 40 → 88  H1 hero */
  --fs-h1:      clamp(2.25rem, 1.6rem + 3vw, 4rem);       /* 36 → 64  judul halaman */
  --fs-h2:      clamp(2rem, 1.55rem + 2.2vw, 3.5rem);     /* 32 → 56  judul section */
  --fs-h3:      clamp(1.5rem, 1.3rem + 1vw, 2rem);        /* 24 → 32  sub-section */
  --fs-h4:      clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);  /* 20 → 24  judul kartu */
  --fs-lead:    clamp(1rem, 0.95rem + 0.3vw, 1.125rem);   /* 16 → 18  paragraf pembuka */

  /* ---------- Spacing scale (basis 4px) ---------- */
  --sp-1:  0.25rem;  /*  4 */
  --sp-2:  0.5rem;   /*  8 */
  --sp-3:  0.75rem;  /* 12 */
  --sp-4:  1rem;     /* 16 */
  --sp-5:  1.25rem;  /* 20 */
  --sp-6:  1.5rem;   /* 24 */
  --sp-8:  2rem;     /* 32 */
  --sp-10: 2.5rem;   /* 40 */
  --sp-12: 3rem;     /* 48 */
  --sp-16: 4rem;     /* 64 */
  --sp-20: 5rem;     /* 80 */
  --sp-24: 6rem;     /* 96 */

  /* Ritme layout — fluid, tidak perlu media query */
  --gutter:           clamp(1.5rem, 0.75rem + 3vw, 3rem);    /* 24 → 48  padding kiri-kanan */
  --section-head-gap: clamp(2rem, 1.6rem + 1.8vw, 3.5rem);   /* 32 → 56  header section → isi */
  --nav-h:            72px;                                   /* tinggi navbar (64px di ≤540px) */

  /* ---------- Line height & letter spacing ---------- */
  --lh-tight:   1.1;    /* display, H1, H2 */
  --lh-snug:    1.25;   /* H3, H4, judul kartu */
  --lh-normal:  1.5;    /* teks UI: tombol, label, menu */
  --lh-relaxed: 1.75;   /* paragraf panjang */

  --ls-tight:   -0.01em;
  --ls-wide:    0.08em;
  --ls-wider:   0.16em;
  --ls-widest:  0.25em;

  --measure: 62ch;      /* lebar baris paragraf yang nyaman dibaca */
}


/* =============================================
   2. BOOTSTRAP OVERRIDES
============================================= */
.btn-primary {
  background-color: var(--clr-dark);
  border-color: var(--clr-dark);
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0;
  transition: all var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn-outline-dark {
  color: var(--clr-dark);
  border-color: var(--clr-dark);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0;
  transition: all var(--transition);
}
.btn-outline-dark:hover {
  background-color: var(--clr-dark);
  border-color: var(--clr-dark);
  color: var(--clr-white);
}


/* =============================================
   3. RESET & BASE
============================================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* Heading tanpa class mengikuti palet brand (bukan abu-biru bawaan
   vendor core.css). Ukuran/font tetap diatur lewat class .t-*. */
h1, h2, h3, h4, h5, h6 {
  color: var(--charcoal);
  text-wrap: balance;      /* baris judul lebih seimbang (progressive) */
}
p { text-wrap: pretty; }   /* hindari 1 kata yatim di baris terakhir */

/* Fokus keyboard yang jelas (aksesibilitas). Tidak muncul saat klik mouse. */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}
.site-main:focus { outline: none; }   /* target skip-link, bukan elemen interaktif */


/* =============================================
   4. SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--clr-soft); border-radius: 2px; }


/* =============================================
   5. UTILITY CLASSES
============================================= */
.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  opacity: 0.5;
  background: var(--clr-accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--charcoal);
}
.section-title em {
  font-style: italic;
  color: var(--clr-accent);
}

@media (max-width: 540px) {
  .section-label { margin-bottom:10px; }
}
  /* ---- Typography utilities ----
   Pisahkan "level heading" (SEO) dari "tampilan": misal <h2 class="t-h3">. */
  .t-display,
  .t-h1,
  .t-h2 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--charcoal);
  }
  .t-display { font-size: var(--fs-display); }
  .t-h1      { font-size: var(--fs-h1); }
  .t-h2      { font-size: var(--fs-h2); }

  .t-h3,
  .t-h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--lh-snug);
    color: var(--charcoal);
  }
  .t-h3 { font-size: var(--fs-h3); }
  .t-h4 { font-size: var(--fs-h4); }

  .t-display em, .t-h1 em, .t-h2 em, .t-h3 em {
    font-style: italic;
    color: var(--clr-accent);
  }

  .t-eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    line-height: var(--lh-normal);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--clr-accent);
  }
  .t-lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-relaxed);
    color: var(--muted);
    max-width: var(--measure);
  }
  .t-body {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    max-width: var(--measure);
  }
  .t-small {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--muted);
  }

  /* ---- Skip link: tersembunyi sampai difokus lewat keyboard (Tab) ---- */
  .skip-link {
    position: fixed;
    top: var(--sp-4);
    left: var(--sp-4);
    z-index: 10000;
    padding: var(--sp-3) var(--sp-5);
    background: var(--clr-dark);
    color: var(--clr-white);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--transition);
  }
  .skip-link:focus { transform: none; color: var(--clr-white); }

  /* Padding kiri-kanan konten halaman = --gutter (sejajar navbar & footer).
   Pakai bersama .container-fluid sebagai pengganti px-4 px-lg-5. */
.page-gutter { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- Page head halaman listing (partials/page_head.php) ----
   Breadcrumb + H1 + deskripsi. Dipakai Collections, Sale, New In.
   Konten mulai tepat di bawah navbar fixed lewat .page-offset. */
.page-offset { margin-top: var(--nav-h); }
.page-head { padding: var(--sp-8) 0 var(--sp-6); }

.page-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
.page-breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); color: var(--muted); }
.page-breadcrumb li + li::before { content: '/'; color: var(--clr-soft); }
.page-breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.page-breadcrumb a:hover { color: var(--clr-accent); }
.page-breadcrumb [aria-current="page"] { color: var(--charcoal); }
/* Label terakhir (mis. nama produk panjang) dipotong "…" agar breadcrumb tidak memakan banyak baris */
.page-breadcrumb li:last-child { min-width: 0; max-width: 100%; }
.page-breadcrumb li:last-child [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* <h1> tampil seukuran judul section (--fs-h2): halaman listing fokus ke produk */
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--charcoal);
}
.page-desc {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  max-width: var(--measure);
}
@media (max-width: 768px) {
  .page-head { padding: var(--sp-6) 0 var(--sp-4); }
  .page-desc br { display: none; }
}


/* =============================================
   6. BUTTONS (custom LS)
============================================= */
.btn-primary-ls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: var(--clr-dark);
  border: none;
  padding: 14px 28px;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary-ls:hover {
color: white;
}
.btn-primary-ls::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--clr-accent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary-ls:hover::after { transform: translateX(0); }
.btn-primary-ls span { position: relative; z-index: 1; }
.btn-primary-ls .arrow { position: relative; z-index: 1; transition: transform 0.3s; }
.btn-primary-ls:hover .arrow { transform: translateX(4px); }
.btn-outline-ls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-dark);
  background: transparent;
  border: 1px solid var(--clr-dark);
  padding: 13px 28px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-ls:hover {
  background: var(--clr-dark);
  color: var(--clr-white);
}
.btn-outline-ls.btn-nav-sm {
  padding: 10px 18px;
  font-size: var(--fs-3xs);
}
.btn-white-ls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-dark);
  background: white;
  border: none;
  padding: 14px 28px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-white-ls:hover { background: var(--cream); }

.btn-ghost-ls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 13px 28px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-ghost-ls:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-wa-ls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-dark);
  background: #25D366;
  border: none;
  padding: 14px 28px;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-wa-ls:hover {
  background: #1ebe5a;
  color: var(--clr-dark);
}
.btn-wa-ls svg {
  width: 16px; height: 16px;
}


/* =============================================
   7. SCROLL REVEAL ANIMATIONS
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================
   8. NAVBAR
============================================================= */

/* -----------------------------------------------
   8.1 Base & Transparent Mode
----------------------------------------------- */
.navbar-ls {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, color 0.4s;
}
.navbar-ls.scrolled {
  background: rgba(244,243,239,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-ls.navbar-transparent.nav-white .nav-logo,
.navbar-ls.navbar-transparent.nav-white .nav-links a,
.navbar-ls.navbar-transparent.nav-white .nav-icon,
.navbar-ls.navbar-transparent.nav-white .nav-currency,
.navbar-ls.navbar-transparent.nav-white,
.navbar-ls.navbar-transparent.nav-white .nav-menu-btn span {
  color: white;
  border-color: rgba(255,255,255,0.5);
}

/* Chevron-nya SVG inline ber-currentColor, jadi ikut memutih dari aturan di
   atas tanpa perlu gambar terpisah. Yang masih perlu diatur hanya hover,
   karena latar --cream tidak terbaca di atas hero gelap. */
.navbar-ls.navbar-transparent.nav-white .nav-currency:hover {
  background: rgba(255,255,255,0.18);
}
.navbar-ls.navbar-transparent.nav-white img{
   filter: brightness(0) invert(1);
}
.navbar-ls.navbar-transparent.nav-white .nav-logo .logo-dot {
  background: var(--clr-soft);
}
.navbar-ls.navbar-transparent.nav-white .nav-links a::after {
  background: var(--clr-soft);
}
.navbar-ls.navbar-transparent.nav-white .nav-menu-btn span {
  background: white;
}

/* -----------------------------------------------
   8.2 Logo
----------------------------------------------- */
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.4s;
  flex-shrink: 0;
}
.nav-logo .logo-dot {
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.4s;
}
.nav-logo img {
  max-width: 100%;
  height: auto;
}
.nav-logo-img {
  display: block;
  width: 160px;                      /* lebar visual sama dengan 180px - padding 10px lama */
  transition: width var(--transition);
}

/* -----------------------------------------------
   8.3 Nav Links (Desktop)
----------------------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.7vw - 1.08rem, 2.25rem);   /* 16px @900 → 36px @1440 */
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
  opacity: 0;
  animation: navLinkIn 0.5s ease forwards;
  animation-delay: calc(var(--nav-i, 0) * 0.06s + 0.1s);
}
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--clr-accent); }

.nav-links a.nav-link-sale,
.nav-links a.nav-link-sale:hover,
.nav-links a.nav-link-sale.active {
  color: var(--clr-sale);
}

/* Chevron kecil di samping Collections / Sale */
.nav-chev {
  width: 10px; height: 10px;
  margin-left: var(--sp-1);
  vertical-align: middle;
}

/* -----------------------------------------------
   8.4 Nav Actions & Icons
----------------------------------------------- */
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.nav-icon {
  width: 40px; height: 40px;         /* area sentuh ≥40px */
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition), color 0.4s;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.nav-icon:hover { background: var(--cream); }

/* PENGALIH MATA UANG TAMPILAN
   Dropdown custom, bukan <select> bawaan: daftar pilihan <select> dirender
   sistem operasi dan tidak bisa diberi gaya, jadi tidak akan pernah menyatu
   dengan dropdown lain di navbar ini. Struktur dan ragam visualnya meniru
   .user-submenu — panel warm-white bersudut siku, item huruf kapital
   berjarak lebar, garis aksen di kiri saat hover. */
.currency-wrap { position: relative; }

.nav-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: background var(--transition), color 0.4s;
}
.nav-currency:hover { background: var(--cream); }
.nav-currency:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.nav-currency-chev {
  width: 9px; height: 6px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-currency[aria-expanded="true"] .nav-currency-chev { transform: rotate(180deg); }

.currency-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 232px;
  max-width: calc(100vw - 32px);
  background: var(--warm-white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(46,54,64,0.1);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.currency-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.currency-menu-caret {
  position: absolute;
  top: -7px;
  right: 12px;
  width: 13px;
  height: 13px;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.currency-menu-items { padding: 6px 0; }
.currency-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.currency-item:hover {
  color: var(--charcoal);
  background: var(--cream);
  border-left-color: var(--clr-accent);
  padding-left: 22px;
}
.currency-item:focus-visible { outline: 2px solid var(--charcoal); outline-offset: -2px; }
.currency-item-code { flex-shrink: 0; min-width: 30px; }
/* Nama mata uang jadi keterangan, bukan label utama — jarak hurufnya
   dirapatkan supaya nama panjang tetap muat di panel 232px. */
.currency-item-name {
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  color: var(--clr-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.currency-item:hover .currency-item-name { color: var(--clr-muted); }
/* Pilihan yang sedang aktif ditandai permanen dengan garis aksen yang sama
   dengan hover — tanpa ini pelanggan tidak tahu sedang melihat mata uang apa. */
.currency-item.is-active {
  color: var(--charcoal);
  border-left-color: var(--clr-accent);
}
.currency-item.is-active .currency-item-name { color: var(--clr-muted); }
/* Selama permintaan ganti mata uang berjalan: panel dikunci supaya tidak ada
   klik kedua, dan terlihat sedang memproses. */
.currency-menu.is-busy { pointer-events: none; opacity: 0.55; }
.nav-icon svg { width: 18px; height: 18px; }

/* Badge jumlah: bentuk pil supaya angka dua digit tetap muat dengan
   font 11px (sebelumnya lingkaran 14px untuk font 8px). */
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--clr-sale);
  color: white; border-radius: 999px;
  font-size: var(--fs-3xs); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.wishlist-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--clr-sale);
    color: white; border-radius: 999px;
    font-size: var(--fs-3xs); line-height: 1;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500;
}

/* Bendera di tombol pengalih dan di daftar pilihan mata uang.
   .fi (flag-icons) sudah inline-block dengan lebar 1.333em; di sini hanya
   jarak, pelurusan vertikal, dan sudut halus. */
.currency-flag {
    margin-right: 0.45em;
    vertical-align: -0.12em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}


/* -----------------------------------------------
   8.5 Mobile Menu Toggle Button
----------------------------------------------- */
.nav-menu-btn {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--charcoal); margin: 2.5px 0; transition: all 0.3s;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------------
   8.6 Mobile Nav Panel
----------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--warm-white); z-index: 999;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: flex-start;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--gutter) var(--sp-10);
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--charcoal); text-decoration: none; letter-spacing: 0.02em;
  transition: color var(--transition);
  opacity: 0;
  transform: translateY(12px);
  text-align: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open a {
  animation: mobileNavIn 0.4s ease forwards;
}
.mobile-nav.open a,
.mobile-nav.open .mobile-nav-collection-btn {
  animation-delay: calc(var(--nav-i, 0) * 0.04s);
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav a:hover,
.mobile-nav a:active { color: var(--clr-accent); }
.mobile-nav a:last-of-type { border-bottom: none; }
/* Item utilitas di bawah menu (Wishlist, Login) — lebih kecil dari menu utama
   supaya hierarki "navigasi" vs "akun" terlihat jelas. */
.mobile-nav-util,
.mobile-nav a.mobile-nav-login {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-2);
  padding: var(--sp-3) 0;
  background: none; border: 0;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
}
.mobile-nav-util svg { width: 16px; height: 16px; }
.mobile-nav a.mobile-nav-login { color: var(--clr-accent); margin-top: 0; }
.mobile-nav.open .mobile-nav-util { animation: mobileNavIn 0.4s ease forwards; animation-delay: calc(var(--nav-i, 0) * 0.04s); }
.mobile-nav-util:hover { color: var(--clr-accent); }

/* -----------------------------------------------
   8.7 Sale Mini Mega Menu
----------------------------------------------- */
.nav-has-dropdown { position: relative; }

.nav-sale-mega {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--warm-white);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(46, 54, 64, 0.08);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-sale-mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
.nav-sale-mega-inner { padding: 28px 32px 24px; }

/* -----------------------------------------------
   8.8 Mega Menu — Collections (Static/Legacy)
----------------------------------------------- */
.nav-mega-wrap {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(46,54,64,0.08);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-mega-wrap.open {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.mega-col-label {
  font-size: var(--fs-3xs); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.mega-col-label::before {
  content: ''; width: 20px; height: 1px; background: var(--clr-soft); display: block;
}
.mega-cats { display: flex; flex-direction: column; gap: 2px; }
.mega-cat-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease; position: relative;
}
.mega-cat-item:hover {
  border-left-color: var(--clr-accent); background: var(--cream); padding-left: 20px;
}
.mega-cat-body { flex: 1; min-width: 0; }
.mega-cat-name {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 400;
  color: var(--charcoal); line-height: 1.1; transition: color var(--transition);
}
.mega-cat-item:hover .mega-cat-name { color: var(--clr-accent); }
.mega-cat-arrow {
  width: 14px; height: 14px; color: var(--clr-soft);
  opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; flex-shrink: 0;
}
.mega-cat-item:hover .mega-cat-arrow { opacity: 1; transform: translateX(0); }
.mega-cat-season {
  font-size: var(--fs-2xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clr-accent); padding: 10px 16px 0;
  display: flex; align-items: center; gap: 8px;
}
.mega-cat-season::before {
  content: ''; width: 16px; height: 1px; background: var(--clr-soft); display: block;
}
.mega-footer {
  border-top: 1px solid var(--border); padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); max-width: 100%;
  flex-wrap: wrap; gap: 12px;
}
.mega-footer-text { font-family: var(--font-display); font-size: var(--fs-base); font-style: italic; color: var(--muted); }
.mega-footer-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none; transition: color var(--transition);
  white-space: nowrap;
}
.mega-footer-cta:hover { color: var(--clr-accent); }
.mega-footer-cta svg { transition: transform 0.2s; }
.mega-footer-cta:hover svg { transform: translateX(4px); }

/* -----------------------------------------------
   8.9 Mega Menu — Collections (Dynamic)
----------------------------------------------- */
.nav-mega-wrap-dynamic {
  overflow: visible;
}
.mega-dyn-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 40px;
  display: grid;
  gap: 0;
  align-items: start;
}
.mega-dyn-cols-1 { grid-template-columns: 1fr; }
.mega-dyn-cols-2 { grid-template-columns: 1fr 1fr; gap: 0 48px; }
.mega-dyn-cols-3 { grid-template-columns: 1fr 1fr 1fr; gap: 0 48px; }
.mega-dyn-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0 48px; }
.mega-dyn-cols-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 0 40px; }
.mega-dyn-divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 28px;
  display: none;
}
.mega-dyn-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mega-dyn-root {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
}
.mega-dyn-root:hover::after { width: 100%; }
.mega-dyn-root-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.mega-dyn-root:hover .mega-dyn-root-name { opacity: 0.55; }
.mega-dyn-root-count {
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}
.mega-dyn-child-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 0;
}
.mega-dyn-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  margin: 0;
  text-decoration: none;
  transition: color 0.18s ease;
}
.mega-dyn-child-link:hover {
background: none;
}
.mega-dyn-child-name {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--muted);
  transition: color 0.18s ease;
}
.mega-dyn-child-link:hover .mega-dyn-child-name { color: var(--charcoal); }
.mega-dyn-child-count {
  font-size: var(--fs-xs);
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  display: none;
}
.mega-dyn-col:not(:has(.mega-dyn-child-list)) {
  padding-bottom: 4px;
}

@media (max-width: 1180px) {
  .mega-dyn-inner {
    padding: 28px 24px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mega-dyn-cols-3,
  .mega-dyn-cols-4,
  .mega-dyn-cols-5 {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    grid-template-columns: none;
  }
  .mega-dyn-divider { margin: 4px 18px; display: none; }
}

@media (max-width: 1179px) {
  .nav-mega-wrap-dynamic { display: none; }   /* ikut breakpoint hamburger (8.12) */
}

/* -----------------------------------------------
   8.10 Mobile Accordion — Collections (Dynamic, 2 Tingkat)
----------------------------------------------- */
.mob-dyn-cat-list {
  display: flex;
  flex-direction: column;
}
.mob-dyn-root-item {
  border-bottom: 1px solid var(--border);
}
.mob-dyn-root-item:last-child {
  border-bottom: none;
}
.mob-dyn-root-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-dyn-root-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--charcoal);
  transition: color var(--transition);
}
.mob-dyn-root-link:hover,
.mob-dyn-root-link:active {
  color: var(--clr-accent);
}
.mob-dyn-root-name {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.mob-dyn-root-count {
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.mob-dyn-expand-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--clr-soft);
  transition: color var(--transition);
}
.mob-dyn-expand-btn:hover { color: var(--clr-accent); }
.mob-dyn-expand-chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}
.mob-dyn-expand-chevron.open { transform: rotate(180deg); }
.mob-dyn-child-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mob-dyn-child-accordion.open {
  max-height: 600px;
}
.mob-dyn-child-list {
  list-style: none;
  padding: 0 0 8px;
}
.mob-dyn-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 8px 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
/* Dulu memakai !important untuk mengalahkan `.mobile-nav a`.
   Sekarang cukup menaikkan specificity (0,2,0 > 0,1,1). */
.mobile-nav .mob-dyn-child-link { font-size: var(--fs-sm); }
.mob-dyn-child-link:hover,
.mob-dyn-child-link:active {
  color: var(--clr-accent);
}
.mob-dyn-child-count {
  font-size: var(--fs-3xs);
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .mob-dyn-root-link { padding: 12px 2px; }
  .mob-dyn-expand-btn { width: 36px; height: 36px; }
  .mob-dyn-child-link { padding: 7px 2px 7px 16px; }
}

/* -----------------------------------------------
   8.11 Mobile Collections/Sale Accordion (Wrapper & Trigger)
----------------------------------------------- */
.mobile-nav-collection-wrap {
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
}
.mobile-nav.open .mobile-nav-collection-wrap {
  animation: mobileNavIn 0.4s ease forwards;
}
.mobile-nav-collection-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; padding: var(--sp-3) 0; background: none; border: none;
  border-bottom: 1px solid var(--border);
  line-height: var(--lh-snug);
  text-decoration: none; color: var(--charcoal);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: 0.02em; transition: color var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-collection-btn:hover,
.mobile-nav-collection-btn.active { color: var(--clr-accent); }
.mobile-nav-collection-chevron {
  width: 18px; height: 18px; color: var(--clr-soft);
  transition: transform 0.35s ease, color var(--transition); flex-shrink: 0;
}
.mobile-nav-collection-chevron.open { transform: rotate(180deg); color: var(--clr-accent); }
.mobile-collection-accordion { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); }
.mobile-collection-accordion.open { max-height: 800px; }

.mob-acc-inner {
  padding: 4px 0 12px;
}
.mob-acc-sublabel {
  font-size: var(--fs-3xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  text-align: left;
}

/* List — flat, sama persis dengan Collections */
.mob-acc-cat-list {
  display: flex;
  flex-direction: column;
}
.mob-acc-cat-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mob-acc-cat-list a.mob-acc-cat-link:last-child {
  border-bottom: none;
}
.mob-acc-cat-link:hover,
.mob-acc-cat-link:active {
  color: var(--clr-accent);
}
.mob-acc-cat-text { flex: 1; min-width: 0; }
.mob-acc-cat-name-mob {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: inherit;
}
.mob-acc-cat-cnt {
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ikon lingkaran — disediakan, tidak dipakai default agar tetap minimalis */
.mob-acc-cat-ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(117,113,89,0.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mob-acc-cat-ico svg { width: 11px; height: 11px; color: var(--clr-accent); }

.mob-feat-section { margin-top: 14px; }
.mob-feat-label { font-size: var(--fs-3xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mob-feat-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.mob-feat-strip::-webkit-scrollbar { display: none; }
.mob-feat-thumb { flex-shrink: 0; width: 80px; position: relative; overflow: hidden; border-radius: 2px; }
.mob-feat-thumb-ph { width: 100%; aspect-ratio: 3/4; display: block; }
.mob-feat-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 6px 6px;
  background: linear-gradient(to top, rgba(46,54,64,0.8) 0%, transparent 100%);
  font-family: var(--font-display); font-size: var(--fs-2xs); color: white; line-height: 1.2;
}

.mob-acc-viewall {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 0;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; transition: all var(--transition);
}
/* Dulu !important untuk mengalahkan `.mobile-nav a`; sekarang specificity. */
.mobile-nav .mob-acc-viewall { font-size: var(--fs-2xs); font-weight: 500; }
.mob-acc-viewall svg {
  width: 11px; height: 11px;
  transition: transform 0.2s;
}
.mob-acc-viewall:hover { background: var(--clr-dark); color: white; border-color: var(--clr-dark); }
.mob-acc-viewall:hover svg { transform: translateX(4px); }
.mobile-nav-collection-btn.nav-link-sale,
.mobile-nav-collection-btn.nav-link-sale:hover {
  color: var(--clr-sale);
}

/* Kontainer dibatasi lebar & di-center — konsisten untuk semua submenu mobile */
.mob-dyn-cat-list,
.mob-acc-cat-list,
.mob-acc-viewall {
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 380px) {
  .mob-acc-cat-link { padding: 12px 2px; }
}

/* -----------------------------------------------
   8.12 Navbar — Responsive
----------------------------------------------- */
/* Breakpoint navbar: menu desktop lengkap butuh ±1180px (7 link + ikon).
   Di bawah itu pakai hamburger — sebelumnya link baru disembunyikan di
   860px sehingga navbar meluber keluar layar di 860–1240px.
   Sinkron dengan NAV_DESKTOP_MIN di navbar.js. */
@media (max-width: 1279px) {
  .nav-links a  { letter-spacing: var(--ls-wide); }
  .nav-logo-img { width: 140px; }
}
@media (max-width: 1179px) {
  .nav-primary  { display: none; }
  .nav-actions  { margin-left: auto; }   /* ikon rapat kanan, tidak "melayang" di tengah */
  .nav-menu-btn { display: flex; }
  .user-submenu { right: -8px; }
}
@media (max-width: 1179px) and (max-height: 480px) {
  .mobile-nav { padding-top: calc(var(--nav-h) + var(--sp-2)); padding-bottom: var(--sp-6); }
  .mobile-nav a,
  .mobile-nav-collection-btn { padding: var(--sp-2) 0; }
}
@media (max-width: 540px) {
  :root { --nav-h: 64px; }
  .navbar-ls    { gap: var(--sp-2); }
  .nav-logo-img { width: 112px; }
  .nav-actions  { gap: var(--sp-1); }
  .nav-icon,
  .nav-menu-btn { width: 36px; height: 36px; }
  .nav-currency { height: 36px; padding: 0 var(--sp-2); gap: var(--sp-1); }
  .nav-currency .currency-flag { display: none; }   /* kode mata uang saja, hemat ruang */
  /* Wishlist & Login dipindah ke panel menu supaya logo tetap tampil */
  .nav-actions .wl-nav-trigger,
  .nav-actions .btn-nav-sm { display: none; }
}
@media (max-width: 360px) {
  :root { --gutter: 1rem; }               /* layar sangat sempit: 16px */
  .nav-logo-img { width: 84px; }
  .nav-icon,
  .nav-menu-btn { width: 32px; height: 32px; }
  .nav-icon svg { width: 16px; height: 16px; }
  .nav-currency { height: 32px; padding: 0 var(--sp-1); letter-spacing: 0.1em; }
}


/* =============================================
   9. SEARCH OVERLAY
============================================= */
.search-overlay {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(244,243,239,0.98); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(46,54,64,0.07);
  z-index: 998; padding: var(--sp-8) var(--gutter) var(--sp-10);
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  box-sizing: border-box;
}
.search-overlay.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.search-overlay-inner { max-width: 680px; margin: 0 auto; }
.search-input-wrap {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--clr-dark); padding-bottom: 12px; margin-bottom: 24px;
  transition: border-color var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--clr-accent); }
.search-icon-inner { width: 20px; height: 20px; color: var(--clr-muted); flex-shrink: 0; margin-right: 14px; }
.search-input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--font-display); font-size: var(--fs-2xl);
  font-weight: 300; color: var(--charcoal); letter-spacing: -0.01em;
}
.search-input::placeholder { color: rgba(138,128,112,0.4); font-style: italic; }
.search-close-btn {
  border: none; background: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-muted); flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.search-close-btn:hover { background: var(--cream); color: var(--clr-dark); }
.search-close-btn svg { width: 16px; height: 16px; }
.search-suggestions-label {
  font-size: var(--fs-3xs); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--clr-muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.search-suggestions-label::before {
  content: ''; width: 16px; height: 1px; background: var(--clr-soft); display: block;
}
.search-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom:15px;}
.search-pill {
  font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: var(--cream); border: 1px solid var(--border);
  padding: 6px 14px; text-decoration: none; transition: all var(--transition);
}
.search-pill:hover { background: var(--clr-dark); color: white; border-color: var(--clr-dark); }
.search-recent-list { display: flex; flex-direction: column; gap: 4px; }

/* Spinner */
@keyframes search-spin {
    to { transform: rotate(360deg); }
}
.search-spinner svg {
    animation: search-spin 0.7s linear infinite;
    color: var(--clr-muted);
}

/* Kategori results */
.search-cat-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.search-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 6px 14px;
    text-decoration: none;
    transition: all var(--transition);
}
.search-cat-chip:hover {
    background: var(--clr-dark);
    color: white;
    border-color: var(--clr-dark);
}
.search-cat-chip svg { flex-shrink: 0; }

/* Produk results */
.search-prod-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.search-prod-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    text-decoration: none;
    transition: background var(--transition);
    border-left: 2px solid transparent;
}
.search-prod-item:hover {
    background: var(--cream);
    border-left-color: var(--clr-accent);
}
.search-prod-thumb {
    width: 48px;
    height: 60px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--cream);
}
.search-prod-info { flex: 1; min-width: 0; }
.search-prod-cat {
    font-size: var(--fs-2xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 3px;
}
.search-prod-name {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-prod-price {
    font-size: var(--fs-sm);
    color: var(--muted);
    flex-shrink: 0;
}

.search-prod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.search-prod-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 2px;
    background: rgba(117, 113, 89, 0.14);
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: var(--fs-3xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage-dark, #5c5847);
    white-space: nowrap;
}

/* View all */
.search-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    transition: all var(--transition);
}
.search-view-all:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}
.search-view-all svg { transition: transform 0.2s; }
.search-view-all:hover svg { transform: translateX(4px); }

/* Recent search */
.search-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.search-recent-item:last-child { border-bottom: none; }
.search-recent-keyword {
    font-size: var(--fs-base);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
}
.search-recent-keyword svg { color: var(--muted); flex-shrink: 0; }
.search-recent-remove {
    background: none;
    border: none;
    padding: 4px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.search-recent-remove:hover { color: var(--charcoal); }

/* Empty state */
.search-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
}
.search-empty svg {
    margin-bottom: 12px;
    color: var(--clr-soft);
}
.search-empty p {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--charcoal);
    margin-bottom: 6px;
}
.search-empty span { font-size: var(--fs-sm); }

/* Responsive — Search Overlay (gutter & tinggi navbar sudah fluid lewat token) */
@media (max-width: 540px) {
  .search-overlay { padding: var(--sp-5) var(--gutter) var(--sp-6); }
  .search-pills { gap: 6px; }
}

/* =============================================
   10. TOAST NOTIFICATION (SweetAlert2) — La Samasta style
============================================= */
.ls-toast.swal2-popup.swal2-toast {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 380px !important;
  min-width: 0 !important;
  background: var(--warm-white) !important;
  border: none !important;
  border-left: 3px solid var(--clr-accent) !important;
  border-radius: 2px !important;
  box-shadow: 0 4px 20px rgba(46, 54, 64, 0.15) !important;
  padding: 12px 18px !important;
  gap: 10px !important;
}

.ls-toast-success.swal2-popup.swal2-toast { border-left-color: var(--clr-accent) !important; }
.ls-toast-error.swal2-popup.swal2-toast   { border-left-color: #a8503f !important; }
.ls-toast-info.swal2-popup.swal2-toast    { border-left-color: var(--muted) !important; }

/* Icon — biarkan ukuran/posisi bawaan library, cuma ganti warna */
.ls-toast .swal2-icon {
  margin: 0 !important;
  flex-shrink: 0;
}
.ls-toast .swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--clr-accent) !important;
}
.ls-toast .swal2-icon.swal2-success .swal2-success-ring {
  border-color: var(--clr-accent) !important;
}
.ls-toast .swal2-icon.swal2-error {
  border-color: #a8503f !important;
}
.ls-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #a8503f !important;
}

/* Teks */
.ls-toast .swal2-title {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-body) !important;
  font-size: var(--fs-base) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: var(--clr-dark) !important;
  text-align: left !important;
}

.ls-toast .swal2-timer-progress-bar {
  background: var(--clr-soft) !important;
  height: 3px !important;
}


/* =============================================
   11. WISHLIST DRAWER  &  12. CART DRAWER
   ---------------------------------------------
   Kedua drawer berbagi satu sistem tampilan (selector digabung) supaya
   ukuran, jarak & tipografinya selalu identik. Prefix kelas tetap
   wl-* / ct-* karena dipakai JS (global.js) — JANGAN diganti.
   Tipografi item mengikuti product card: nama = display font
   --fs-card-title, harga --fs-md 500. Thumbnail 3:4 = rasio foto produk.
============================================= */
.wl-overlay,
.ct-overlay {
    position: fixed; inset: 0; z-index: 1040;
    background: rgba(46, 54, 64, 0);
    transition: background 0.35s ease;
    pointer-events: none;
}
.wl-overlay.open,
.ct-overlay.open {
    background: rgba(46, 54, 64, 0.45);
    pointer-events: auto;
}

.wl-drawer,
.ct-drawer {
    --drawer-px: var(--sp-6);
    position: fixed; top: 0; right: 0; bottom: 0;
    z-index: 1050;
    width: clamp(360px, 30vw, 440px);
    max-width: 100vw;
    background: var(--warm-white);
    box-shadow: -12px 0 40px rgba(46, 54, 64, 0.08);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.wl-drawer.open,
.ct-drawer.open { transform: translateX(0); }

/* ---- Header ---- */
.wl-header,
.ct-header {
    flex-shrink: 0;
    min-height: var(--nav-h);
    padding: 0 var(--drawer-px);
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    border-bottom: 1px solid var(--border);
}
.wl-title,
.ct-title {
    margin: 0;
    display: flex; align-items: center; gap: var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 400;
    line-height: var(--lh-snug);
    color: var(--charcoal);
}
/* Badge jumlah di judul (dulu "(2)" — di wishlist kurung tetap tampil saat
   angka disembunyikan JS di 0) */
.wl-count,
.ct-count {
    min-width: 22px; height: 22px; padding: 0 var(--sp-2);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 500;
    line-height: 1;
    color: var(--charcoal);
}
.wl-close-btn,
.ct-close-btn {
    width: 40px; height: 40px; margin-right: calc(var(--sp-2) * -1);
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-radius: 50%;
    color: var(--muted); cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.wl-close-btn:hover,
.ct-close-btn:hover { background: var(--cream); color: var(--charcoal); }
.wl-close-btn svg,
.ct-close-btn svg { width: 18px; height: 18px; }

/* ---- Body (daftar item) ---- */
.wl-body,
.ct-body {
    flex: 1; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 0 var(--drawer-px);
    scrollbar-width: thin;
}
.wl-body::-webkit-scrollbar,
.ct-body::-webkit-scrollbar { width: 3px; }
.wl-body::-webkit-scrollbar-thumb,
.ct-body::-webkit-scrollbar-thumb { background: var(--clr-soft); }

/* Item: [thumb] [info]
               [aksi]   — thumb 3:4 setinggi dua baris */
.wl-item,
.ct-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: var(--sp-4);
    row-gap: var(--sp-3);
    align-items: start;
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.wl-item:last-child,
.ct-item:last-child { border-bottom: 0; }

.wl-thumb,
.ct-thumb {
    grid-row: 1 / span 2;
    display: block;
    width: 84px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--cream);
}
.wl-thumb img,
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wl-item-info,
.ct-item-info {
    min-width: 0;
    display: flex; flex-direction: column; gap: var(--sp-1);
}
.wl-item-name,
.ct-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: var(--fs-card-title);
    font-weight: 400;
    line-height: var(--lh-snug);
    color: var(--charcoal);
    text-decoration: none;
}
.wl-item-name:hover,
.ct-item-name:hover { color: var(--clr-accent); }

.ct-item-variant {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    line-height: var(--lh-normal);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--muted);
}
.wl-item-price,
.ct-item-price {
    margin: var(--sp-1) 0 0;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: var(--lh-normal);
    color: var(--charcoal);
}
.wl-item-price-old,
.ct-item-price-old {
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--muted);
    text-decoration: line-through;
}
.wl-item-discount-hint,
.ct-item-discount-hint {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    line-height: var(--lh-normal);
    color: var(--clr-sale);
}

/* Baris aksi (kolom 2, di bawah info) */
.wl-item-actions,
.ct-item-actions {
    grid-column: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
}
.wl-btn-remove,
.ct-btn-remove {
    padding: var(--sp-1) 0;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px;
    transition: color var(--transition);
}
.wl-btn-remove:hover,
.ct-btn-remove:hover { color: var(--clr-sale); }

/* Wishlist: tombol "Lihat Produk" garis tipis, kecil */
.wl-btn-cart {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 0 var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--fs-2xs); font-weight: 500;
    letter-spacing: var(--ls-wide); text-transform: uppercase;
    color: var(--charcoal); background: transparent;
    border: 1px solid var(--charcoal);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.wl-btn-cart:hover { background: var(--charcoal); color: var(--cream); }
.wl-btn-cart:disabled { border-color: var(--clr-soft); color: var(--clr-soft); cursor: not-allowed; }

/* Cart: qty stepper — tombol 32px (tap target), input ≥16px (cegah zoom iOS) */
.ct-qty-stepper {
    display: inline-flex; align-items: center;
    border: 1px solid var(--border);
}
.ct-qty-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}
.ct-qty-btn:hover { background: var(--cream); color: var(--charcoal); }
.ct-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ct-qty-btn:disabled:hover { background: none; color: var(--muted); }
.ct-qty-input {
    width: 40px; height: 32px;
    padding: 0; border: 0; background: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--fs-md);
    color: var(--charcoal);
}
.ct-qty-input:focus { outline: none; background: var(--cream); }

/* ---- Footer ---- */
.wl-footer,
.ct-footer {
    flex-shrink: 0;
    padding: var(--sp-5) var(--drawer-px) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--warm-white);
    display: flex; flex-direction: column; gap: var(--sp-3);
}
.ct-footer-total {
    margin: 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--muted);
}
.ct-footer-total span:last-child {
    font-size: var(--fs-lg);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--charcoal);
}
.ct-footer-note {
    margin: calc(var(--sp-2) * -1) 0 var(--sp-1);
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    line-height: var(--lh-normal);
    color: var(--muted);
}
.wl-footer-info {
    margin: 0 0 var(--sp-1);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--muted);
    text-align: center;
}
.wl-footer-info span { color: var(--charcoal); font-weight: 500; }

/* Tombol: primer gelap 48px, sekunder tautan tenang */
.wl-btn-primary,
.ct-btn-primary {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 48px; padding: 0 var(--sp-6);
    font-family: var(--font-body);
    font-size: var(--fs-xs); font-weight: 500;
    letter-spacing: var(--ls-wider); text-transform: uppercase;
    color: var(--cream); background: var(--charcoal);
    border: 0; text-decoration: none; text-align: center; cursor: pointer;
    transition: background var(--transition);
}
.wl-btn-primary:hover,
.ct-btn-primary:hover { background: var(--clr-accent); color: var(--cream); }
.wl-btn-secondary,
.ct-btn-secondary {
    width: 100%; min-height: 40px;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wide); text-transform: uppercase;
    color: var(--muted); background: none;
    border: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
    transition: color var(--transition);
}
.wl-btn-secondary:hover,
.ct-btn-secondary:hover { color: var(--charcoal); }

/* ---- Empty / login state ---- */
.wl-empty-state,
.ct-empty-state {
    min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-12) var(--sp-4);
    text-align: center;
}
.wl-empty-state > svg,
.ct-empty-state > svg {
    width: 72px; height: 72px; padding: 20px;
    margin-bottom: var(--sp-2);
    border-radius: 50%;
    background: var(--cream);
    color: var(--clr-accent);
}
.wl-empty-title,
.ct-empty-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 400;
    line-height: var(--lh-snug);
    color: var(--charcoal);
}
.wl-empty-desc,
.ct-empty-desc {
    margin: 0 0 var(--sp-3);
    max-width: 260px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--muted);
}
.wl-empty-state .wl-btn-primary,
.ct-empty-state .ct-btn-primary { width: auto; min-width: 200px; }

.wl-close-btn:focus-visible,
.ct-close-btn:focus-visible,
.wl-drawer a:focus-visible,
.wl-drawer button:focus-visible,
.ct-drawer a:focus-visible,
.ct-drawer button:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }

.wl-nav-trigger, .cart-nav-trigger {
    background: none; border: none; cursor: pointer;
    padding: 0; position: relative; display: flex; align-items: center;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .wl-drawer,
    .ct-drawer { --drawer-px: var(--sp-5); width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
    .wl-drawer, .ct-drawer, .wl-overlay, .ct-overlay { transition: none; }
}

/* =============================================
   13. USER SUBMENU
============================================= */
.user-icon-wrap { position: relative; }
.user-submenu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 210px;
  max-width: calc(100vw - 32px);
  background: var(--warm-white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(46,54,64,0.1);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.user-submenu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.user-submenu-header {
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--border);
}
.user-submenu-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 3px;
}
.user-submenu-email {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-submenu-items { padding: 6px 0; }
.user-submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.user-submenu-item:hover {
  color: var(--charcoal);
  background: var(--cream);
  border-left-color: var(--clr-accent);
  padding-left: 22px;
}
.user-submenu-item svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--clr-soft);
  transition: color var(--transition);
}
.user-submenu-item:hover svg { color: var(--clr-accent); }
.user-submenu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.user-submenu-item.logout { color: #9e5240; }
.user-submenu-item.logout:hover {
  background: #fdf0ec;
  border-left-color: #9e5240;
  color: #7a3e2b;
}
.user-submenu-item.logout svg { color: #c9806a; }
.user-submenu-item.logout:hover svg { color: #7a3e2b; }
.user-submenu-caret {
  position: absolute;
  top: -7px;
  right: 12px;
  width: 13px;
  height: 13px;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Responsive — User Submenu */
@media (max-width: 860px) {
  .user-submenu { right: -8px; }
}


/* =============================================
   14. IMAGE PLACEHOLDERS
============================================= */
.img-placeholder { width: 100%; display: block; }
.img-placeholder.ratio-tall { aspect-ratio: 3/4; }
.img-placeholder.ratio-wide { aspect-ratio: 4/3; }
.img-placeholder.ratio-pas { aspect-ratio: 3/3; }
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #d5d2c3 0%, #c4c1b1 30%, #b5b2a3 60%, #a6a394 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-right .hero-img-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-1 { background: linear-gradient(145deg, #d5d2c3, #c0bdb0, #aaa89c); }
.ph-2 { background: linear-gradient(145deg, #c8c9bf, #b5b6ac, #a2a39a); }
.ph-3 { background: linear-gradient(145deg, #d8d4c8, #c5c1b6, #b2aea4); }
.ph-4 { background: linear-gradient(145deg, #cdd0ca, #b9bcb7, #a5a8a4); }
.ph-5 { background: linear-gradient(145deg, #d0cdc4, #bdbab2, #aaa7a0); }
.pph-1 { background: linear-gradient(160deg, #ddd9ce, #ccc8bc, #b8b5ab); }
.pph-2 { background: linear-gradient(160deg, #c8ccca, #b5b9b7, #a2a6a4); }
.pph-3 { background: linear-gradient(160deg, #d8d2c4, #c4bfb2, #b0aba0); }
.pph-4 { background: linear-gradient(160deg, #d0d4ce, #b8bcb6, #a4a8a2); }
.lph-1 { background: linear-gradient(160deg, #d5d2c3, #c4c1b2, #b3b0a2); }
.lph-2 { background: linear-gradient(160deg, #c4c8c2, #b4b8b2, #a4a8a2); }
.lph-3 { background: linear-gradient(160deg, #d8d4c8, #c5c1b5, #b2aea3); }
.lph-4 { background: linear-gradient(160deg, #cacdc8, #babdb8, #aaada8); }
.lph-5 { background: linear-gradient(160deg, #d0cdc4, #bdbab2, #aaa7a0); }
.tph-1 { background: linear-gradient(145deg, #d5d2c3, #c0bdb0, #aaa89c); }
.tph-2 { background: linear-gradient(145deg, #c8ccca, #b5b9b7, #a2a6a4); }
.tph-3 { background: linear-gradient(145deg, #d8d4c8, #c5c1b5, #b2aea3); }

/* =============================================
   15. FOOTER
============================================= */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: clamp(3.5rem, 2.6rem + 3vw, 5rem) 0 var(--sp-6);   /* 56 → 80px */
}
/* Gutter sama dengan navbar & konten, jadi tepi kiri logo footer sejajar logo navbar */
.footer-inner { padding: 0 var(--gutter); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-12) clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* <nav> pembungkus kolom ikut grid induk (3 kolom terakhir) */
.footer-nav { display: contents; }

/* ---- Brand ---- */
.footer-brand { max-width: 320px; }
.footer-logo { display: inline-block; margin-bottom: var(--sp-6); }
.footer-logo img {
  display: block;
  width: 120px; height: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-6);
}

/* Alamat di kolom Contact — tampil sama dengan link, tapi bukan link */
.footer-links address {
  margin: 0;
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.7);
}

.footer-social { list-style: none; display: flex; gap: var(--sp-2); }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover { border-color: var(--clr-accent); color: var(--clr-soft); background: rgba(117,113,89,0.15); }
.social-btn svg { width: 16px; height: 16px; }

/* ---- Kolom link ---- */
.footer-col-title {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  margin-bottom: var(--sp-5);
  padding: 0;
  background: none; border: 0;
  text-align: left;
  cursor: default;
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.footer-col-chevron {
  display: none;
  width: 14px; height: 14px; flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}
.footer-col-toggle.open .footer-col-chevron { transform: rotate(180deg); }
.footer-col-accordion {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: rgba(255,255,255,0.7);   /* kontras ±7:1 di atas --clr-dark (dulu 0.5 ≈ 3.6:1) */
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-soft); }

/* ---- Bottom bar ---- */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
}
.footer-copy {
  margin: 0;
  font-size: var(--fs-2xs);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.55);
}
.footer-copy a { color: inherit; text-decoration: none; transition: color var(--transition); }
.footer-copy a:hover { color: var(--clr-soft); }

/* Responsive — Footer */
@media (max-width: 1024px) {
  /* Brand satu baris penuh di atas, 3 kolom link di bawahnya */
  .footer-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 480px; }
}
/* Breakpoint accordion — WAJIB sama dengan config.accordionMaxWidth di footer.js */
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-10);
    padding-bottom: var(--sp-8);
    border-bottom: 0;
  }
  .footer-nav { display: flex; flex-direction: column; }

  .footer-col-toggle {
    margin-bottom: 0;
    padding: var(--sp-4) 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-col:first-child .footer-col-toggle { border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-col-chevron { display: block; }

  .footer-col-accordion      { max-height: 0; }
  .footer-col-accordion.open { max-height: 480px; }
  .footer-links { padding: var(--sp-4) 0 var(--sp-5); }

  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 0; }
}


/* =============================================
   16. LOOKBOOK
============================================= */
.lookbook { padding: var(--section-py) 0; background: var(--warm-white); }
.lookbook-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); margin-bottom: var(--section-head-gap); }
.lookbook-header .section-title { margin-bottom: 0; }   /* reset margin H2 bawaan vendor */
.lookbook-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.look-link { display: block; text-decoration: none; color: inherit; }
.look-item { position: relative; overflow: hidden; }
.look-item:hover .look-ph { transform: scale(1.08); }
.look-overlay {
  position: absolute; inset: 0;
  background: rgba(46,54,64,0); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.look-item:hover .look-overlay { background: rgba(46,54,64,0.4); }
.look-shop {
  font-size: var(--fs-2xs); line-height: var(--lh-normal); letter-spacing: var(--ls-wider); text-transform: uppercase; color: white;
  background: rgba(244,243,239,0.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4); padding: 8px 14px;
  opacity: 0; transform: translateY(8px); transition: all var(--transition);
}
.look-item:hover .look-shop { opacity: 1; transform: translateY(0); }
.look-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: white; background: var(--clr-accent); padding: 3px 8px;
}
.look-ph {
    width: 100%;
    aspect-ratio: 3 / 4;        /* ganti 4/5 bila dipilih */
    background-color: #f0f0f0;
    display: block;
    overflow: hidden;
    transition: transform var(--transition);
}
/* Dulu background-image inline; sekarang <img> (alt + lazy load, terbaca Google Images) */
.look-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* fallback browser lama tanpa aspect-ratio */
@supports not (aspect-ratio: 3 / 4) {
    .look-ph { height: 0; padding-top: 133.333%; }
}
/* font-size 20px di bawah adalah ukuran glyph panah (ikon), bukan teks —
   sengaja dibiarkan px. */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.owl-nav .owl-prev {
    left: -18px;
}
.owl-nav .owl-next {
    right: -18px;
}
.lookbook-grid.owl-carousel {
    position: relative;
}
.lookbook-grid .look-item {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}


/* =============================================================
   17. PRODUCT CARD
   (dipakai bersama di halaman sale dan product list)
============================================================= */

/* -----------------------------------------------
   17.1 Base
----------------------------------------------- */
.product-card {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  display: flex;
  flex-direction: column;
}
/* Image wrap */
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img-ph {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  display: block;
  object-fit: cover;            /* <img>: crop rapi ke rasio 3:4 */
  object-position: center;
  background-color: var(--cream-dark);   /* tampil selama gambar dimuat */
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-ph { transform: scale(1.05); }

/* Badges */
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
/* Badge "Sold Out" di pojok kanan atas. Dulu hanya ada di home.css, sehingga
   di Collections/Sale/New In/Wishlist badge ini ikut alur dokumen dan
   mendorong isi kartu ke bawah. */
.product-badges-corner { position: absolute; top: 10px; right: 10px; z-index: 5; }
.product-badges-corner .badge-soldout { margin: 0; }
.product-badge {
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  display: inline-block;
  line-height: 1.6;
}
.badge-sale { background: var(--clr-sale); color: white; }
.badge-limited   { background: #5c5847; color: white; }
.badge-soldout   { background: var(--muted); color: white; }
.badge-new       { background: #2e3640; color: white; }
.badge-bestseller{ background: var(--clr-accent); color: white; }

/* Action buttons */
.product-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
  transform: translateX(48px);
  transition: transform 0.3s ease;
}
.product-card:hover .product-actions { transform: translateX(0); }
.product-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--charcoal);
  cursor: pointer;
}
.product-action-btn:hover  { background: var(--clr-dark); color: white; }
.product-action-btn.active { background: var(--clr-accent); color: white; }
.product-action-btn svg { width: 14px; height: 14px; }

/* Card info */
.product-info {
    padding: var(--sp-3) var(--sp-3) var(--sp-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-category {
  font-size: var(--fs-2xs);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-name {
    /* <h3>: margin bawaan vendor di-reset, jarak ke harga diatur di sini */
    margin: 0 0 var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--fs-card-title);
    font-weight: 400;
    color: var(--charcoal);
    line-height: var(--lh-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Selalu setinggi 2 baris → harga sejajar antar kartu walau nama 1 baris
       (dulu 2em, kurang dari 2 baris × line-height 1.25) */
    min-height: calc(var(--lh-snug) * 2em);
}
.product-card:hover .product-name { color: var(--clr-accent); }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; }

/* Price */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-bottom: var(--sp-2);
    line-height: var(--lh-normal);
}
.product-price     { font-size: var(--fs-md); font-weight: 500; color: var(--charcoal); }
.product-price-old { font-size: var(--fs-sm); color: var(--muted); text-decoration: line-through; }

/* Promo notes
   min-height = 2 baris chip (tinggi chip = font × line-height 1.3 + padding 2×3px
   + border 2×1px ≈ font × 1.3 + 8px) + 1 gap 4px. */
.product-promo-notes {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: var(--sp-1);
    margin-bottom: var(--sp-2);
    min-height: calc((var(--fs-2xs) * 1.3 + 8px) * 2 + 4px);
}
.product-max-discount-note,
.product-min-purchase-note,
.product-discount-hint-note {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* Paling "menggoda" — dibuat solid supaya paling menonjol */
.product-discount-hint-note {
    background: var(--clr-sale);
    color: white;
}
/* Info kondisi diskon — tetap merah tapi bentuk outline, lebih ringan dari hint */
.product-max-discount-note {
    background: rgba(192, 57, 43, 0.08);
    color: var(--clr-sale);
    border: 1px solid rgba(192, 57, 43, 0.22);
}
/* Syarat pembelian — netral, informatif saja */
.product-min-purchase-note {
    background: var(--cream);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* Footer: color dots */
.product-info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: var(--sp-2);
    margin-top: auto; /* dorong footer ke bawah */
}
.product-colors { display: flex; gap: 5px; align-items: center; }
.color-dot {
  width: 12px;
  height: 12px;
  padding: 0;                    /* <button>: reset gaya bawaan browser */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}
.color-dot:disabled { cursor: default; }
.color-dot:disabled:hover { transform: none; }
.color-dot:hover { transform: scale(1.3); }
.color-dot.active {
  box-shadow: 0 0 0 2px white, 0 0 0 3px var(--clr-accent);
}
.color-more { font-size: var(--fs-2xs); color: var(--muted); letter-spacing: 0.04em; }
.product-color-count {
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* Image link */
.product-img-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Sold out */
.product-card.sold-out .product-img-ph { filter: grayscale(0.25); }
.product-card.sold-out .product-name   { color: var(--muted); }
.product-card.sold-out .product-price  { color: var(--muted); }

/* Image placeholder backgrounds */
.prod-bg-1  { background: linear-gradient(160deg, #ccc9ba 0%, #b8b5a7 100%); }
.prod-bg-2  { background: linear-gradient(160deg, #b8bfbc 0%, #a4acaa 100%); }
.prod-bg-3  { background: linear-gradient(160deg, #c9c5b9 0%, #b6b2a6 100%); }
.prod-bg-4  { background: linear-gradient(160deg, #c2c5c0 0%, #afb3ae 100%); }
.prod-bg-5  { background: linear-gradient(160deg, #cbc7bc 0%, #b8b4a9 100%); }
.prod-bg-6  { background: linear-gradient(160deg, #bec2bf 0%, #abb0ad 100%); }
.prod-bg-7  { background: linear-gradient(160deg, #c8c4b8 0%, #b5b1a5 100%); }
.prod-bg-8  { background: linear-gradient(160deg, #c0c4c1 0%, #adb2af 100%); }
.prod-bg-9  { background: linear-gradient(160deg, #cac6ba 0%, #b7b3a7 100%); }
.prod-bg-10 { background: linear-gradient(160deg, #c4c1b5 0%, #b1aea3 100%); }
.prod-bg-11 { background: linear-gradient(160deg, #bdbfbd 0%, #aaacaa 100%); }
.prod-bg-12 { background: linear-gradient(160deg, #ccc8bc 0%, #b9b5a9 100%); }

/* -----------------------------------------------
   17.2 Responsive
   Ukuran font nama/harga sudah fluid dari token, jadi di sini
   hanya spacing dan elemen non-teks yang disesuaikan.
----------------------------------------------- */
@media (max-width: 860px) {
  .product-info { padding: var(--sp-3) var(--sp-2) var(--sp-3); }
  .product-actions { transform: translateX(0); opacity: 0.92; bottom: 8px; right: 8px; }
}
@media (max-width: 540px) {
  .product-info   { padding: var(--sp-2) var(--sp-2) var(--sp-3); }
  .product-category { letter-spacing: var(--ls-wide); }
  .product-price-row { gap: var(--sp-1); margin-bottom: var(--sp-1); }
  .color-dot { width: 11px; height: 11px; }
  .product-color-count { display: none; }
  .product-badge { font-size: var(--fs-3xs); padding: 2px 6px; }
  .product-badges { top: 8px; left: 8px; }
  .product-action-btn { width: 30px; height: 30px; }
  .product-action-btn svg { width: 13px; height: 13px; }
}
@media (max-width: 380px) {
  .product-color-count { display: block; }
  .product-info   { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
}


/* =============================================================
   18. PRODUCTS GRID, TOOLBAR & FILTER TAGS
============================================================= */

/* -----------------------------------------------
   18.1 Grid & View Modes
   Default: 6 kolom (halaman sale). Tiap halaman bisa override
   lewat wrapper selector sendiri (e.g. .pl-grid-wrap).
----------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.products-grid.view-6col { grid-template-columns: repeat(6, 1fr); }
.products-grid.view-4col { grid-template-columns: repeat(4, 1fr); }
.products-grid.view-list { grid-template-columns: 1fr; }

/* List view overrides */
.products-grid.view-list .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex-direction: unset;
}
.products-grid.view-list .product-card-img-wrap { width: 200px; flex-shrink: 0; }
.products-grid.view-list .product-img-ph { aspect-ratio: unset; height: 100%; }
.products-grid.view-list .product-info   { padding: 24px 28px; justify-content: center; }
.products-grid.view-list .product-name   { font-size: var(--fs-xl); -webkit-line-clamp: 3; min-height: unset; }
.products-grid.view-list .product-promo-notes { min-height: unset; }
.products-grid.view-list .product-actions { flex-direction: row; bottom: 16px; right: 16px; }

/* -----------------------------------------------
   18.2 Toolbar (sort, separator, view toggle, load more)
----------------------------------------------- */
.products-sort { position: relative; }
.products-sort select {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 36px 9px 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition);
  min-width: 148px;
  cursor: pointer;
}
.products-sort select:focus { border-color: var(--clr-accent); }
.products-sort::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.products-view-toggle { display: flex; gap: 2px; }
.products-view-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--muted);
  cursor: pointer;
}
.products-view-btn.active {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
  color: white;
}
.products-view-btn:not(.active):hover {
  border-color: var(--clr-soft);
  color: var(--charcoal);
}
.products-view-btn svg { width: 14px; height: 14px; }

/* Load more */
.products-load-more {
  padding: 48px 0 0;
  text-align: center;
  border-top: 1px solid rgba(117, 113, 89, 0.1);
  margin-top: 40px;
}
.products-load-progress {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.products-load-bar {
  width: 180px;
  height: 1px;
  background: var(--clr-soft);
  margin: 0 auto 20px;
  position: relative;
}
.products-load-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--clr-accent);
  transition: width 0.6s ease;
}

/* -----------------------------------------------
   18.3 Filter Tags (active filters row di product_list)
----------------------------------------------- */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 5px 10px 5px 12px;
  transition: all var(--transition);
}
.filter-tag-x {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--transition);
}
.filter-tag-x:hover { color: var(--clr-dark); }

/* -----------------------------------------------
   18.4 Responsive
----------------------------------------------- */
@media (max-width: 860px) {
  /* Grid — default 2 kolom di tablet */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .products-sort { display: none; }
  .toolbar-sep   { display: none; }

  /* List view: paksa grid 2 kolom di tablet */
  .products-grid.view-list { grid-template-columns: repeat(2, 1fr); }
  .products-grid.view-list .product-card { display: flex; flex-direction: column; grid-template-columns: unset; }
  .products-grid.view-list .product-card-img-wrap { width: 100%; }
  .products-grid.view-list .product-img-ph { aspect-ratio: 3/4; height: unset; }
  .products-grid.view-list .product-info   { padding: 10px 10px 12px; }
  .products-grid.view-list .product-name   { font-size: var(--fs-card-title); }
  .products-grid.view-list .product-actions { flex-direction: column; }
  .js-view-list { display: none; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; gap: 3px; }
  .products-view-toggle { display: none; }
  .toolbar-sep          { display: none; }
}


/* =============================================================
   19. QUICK VIEW MODAL (QV)
   dipakai dari product_sale view, bisa dipakai halaman lain
   yang butuh QV.
============================================================= */

/* -----------------------------------------------
   19.1 Base
----------------------------------------------- */
.qv-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 54, 64, 0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.qv-backdrop.open { opacity: 1; pointer-events: all; }

.qv-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(860px, 92vw);
  max-height: 88vh;
  background: var(--warm-white);
  z-index: 2001;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.qv-backdrop.open .qv-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.qv-img-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}
.qv-img {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.qv-img-ph { width: 100%; height: 100%; }

/* font-size di tombol slide = ukuran glyph panah (ikon), tetap px */
.qv-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--charcoal);
  z-index: 10;
  opacity: 0;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), opacity var(--transition);
}
.qv-img:hover .qv-slide-btn { opacity: 1; }
.qv-slide-btn:hover { background: var(--clr-dark); color: white; }
.qv-prev { left: 10px; }
.qv-next { right: 10px; }

.qv-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
  transition: background var(--transition);
}
.qv-close:hover { background: var(--clr-accent); }
.qv-close:hover svg { color: white; }
.qv-close svg { width: 14px; height: 14px; color: var(--charcoal); }

.qv-thumbs {
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  background: var(--cream);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.qv-thumbs::-webkit-scrollbar { display: none; }
.qv-thumb {
  width: 48px;
  height: 60px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.55;
  border: 1px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}
.qv-thumb:hover  { opacity: 0.85; }
.qv-thumb.active { opacity: 1; border-color: var(--clr-accent); }

.qv-body {
  padding: 36px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.qv-category {
  font-size: var(--fs-3xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.qv-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.qv-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--clr-sale, #c0392b);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.qv-price-orig {
  font-size: var(--fs-md);
  color: var(--muted);
  text-decoration: line-through;
  font-style: italic;
  font-weight: 400;
}
.qv-desc { font-size: var(--fs-sm); font-weight: 300; line-height: 1.9; color: var(--muted); }
.qv-desc p      { margin-bottom: 8px; }
.qv-desc ul,
.qv-desc ol     { padding-left: 18px; margin-bottom: 8px; }
.qv-desc li     { margin-bottom: 4px; }
.qv-desc strong { font-weight: 600; }
.qv-desc em     { font-style: italic; }
.qv-desc a      { color: var(--clr-accent); text-decoration: underline; }

.qv-active-color { display: flex; flex-direction: column; gap: 8px; }
.qv-size-label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.qv-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 6px 12px 6px 8px;
  width: fit-content;
  background: var(--cream);
}
.qv-color-chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.qv-color-chip-name {
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}

.qv-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.qv-size-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.qv-size-btn:hover,
.qv-size-btn.active {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
  color: white;
}

.qv-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.qv-atc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: var(--clr-dark);
  border: none;
  padding: 14px 24px;
  width: 100%;
  transition: background var(--transition);
  cursor: pointer;
}
.qv-atc-btn:hover { background: var(--clr-accent); }
.qv-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: none;
  border: 1px solid var(--border);
  padding: 11px 24px;
  text-decoration: none;
  transition: all var(--transition);
}
.qv-view-btn:hover { background: var(--cream); color: var(--charcoal); }

.qv-modal.qv-loading .qv-body,
.qv-modal.qv-loading .qv-img {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}
.qv-spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: qv-spin 0.7s linear infinite;
  z-index: 21;
}
@keyframes qv-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* -----------------------------------------------
   19.2 Responsive
----------------------------------------------- */
@media (max-width: 860px) {
  .qv-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 92vh;
    width: 96vw;
  }
  .qv-img-section .qv-img { aspect-ratio: 4/3; flex: none; min-height: unset; }
  .qv-slide-btn  { opacity: 1; }
  .qv-body       { padding: 20px 18px; gap: 12px; }
  .qv-price      { font-size: var(--fs-lg); padding-top: 10px; }
}
@media (max-width: 540px) {
  .qv-thumbs { padding: 4px 6px; }
  .qv-thumb  { width: 38px; height: 48px; }
  .qv-body   { padding: 16px 14px; gap: 10px; }
  .qv-name   { font-size: var(--fs-xl); }
  .qv-price  { font-size: var(--fs-lg); }
  .qv-size-btn { width: 38px; height: 38px; }
  .qv-atc-btn  { padding: 12px 16px; font-size: var(--fs-2xs); }
  .qv-view-btn { padding: 10px 16px; font-size: var(--fs-2xs); }
  .qv-slide-btn { width: 28px; height: 28px; font-size: 15px; }
}
@media (max-width: 380px) {
  .qv-modal  { width: 100vw; max-height: 96vh; }
  .qv-body   { padding: 14px 12px; }
  .qv-size-btn { width: 36px; height: 36px; }
}


/* =============================================================
   20. TOUCH DEVICE OVERRIDES (hover: none)
   Menonaktifkan efek yang mengandalkan :hover (mis. muncul saat
   hover) di perangkat sentuh, supaya elemen selalu terlihat.
============================================================= */
@media (hover: none) and (pointer: coarse) {
  .product-actions { transform: translateX(0); opacity: 1; }
  .qv-slide-btn { opacity: 1; }
  .product-card:hover .product-img-ph { transform: none; }
  .cat-arrow { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GRATIS ONGKIR
   Harga asli tetap ditampilkan (dicoret) di samping label FREE,
   supaya pelanggan melihat nilai yang ditanggung toko — bukan
   sekadar "Rp 0" yang tidak menjelaskan apa-apa.
   ============================================================ */
.co-shipping-original {
  text-decoration: line-through;
  color: var(--clr-muted, #8a8070);
  font-weight: 400;
  margin-right: .5em;
}

.co-shipping-free {
  color: var(--sage-dark, #5c5847);
  font-weight: 600;
  letter-spacing: .04em;
}