/* =============================================
   FONT SCALE — DESIGN TOKENS
   Satu sumber kebenaran untuk semua ukuran font di
   navbar & komponen terkait (mega menu, dropdown,
   product card, mobile nav). Skala dasar mengikuti
   rasio ~1.125-1.2 (minor third / major second),
   konsisten dari desktop sampai mobile.

   Pemakaian: font-size: var(--fs-base);
   Override per-breakpoint dilakukan dengan redefinisi
   variabel ini di dalam @media, BUKAN dengan menulis
   ulang angka px di tiap selector — supaya satu titik
   ubah saja yang perlu disentuh.
============================================= */
:root {
  --fs-3xs:  8px;   /* label super kecil: mega-col-label, badge tag */
  --fs-2xs:  9px;   /* meta text: product count, promo notes, sublabel */
  --fs-xs:   10px;  /* button text, toolbar, filter tag */
  --fs-sm:   11px;  /* body kecil: price-old, email */
  --fs-base: 13px;  /* body text standar: child link, desc */
  --fs-md:   14px;  /* nav-links desktop, product-name mobile */
  --fs-lg:   16px;  /* root category mobile, card title */
  --fs-xl:   20px;  /* heading sekunder: root category desktop */
  --fs-2xl:  24px;  /* heading utama mobile nav */
  --fs-3xl:  30px;  /* hero-level, dipakai terbatas */
}

/* Tablet & bawahnya: skala sedikit menyempit supaya tetap
   proporsional di layar lebih kecil tanpa mengubah hierarki. */
@media (max-width: 860px) {
  :root {
    --fs-xl:  18px;
    --fs-2xl: 22px;
    --fs-3xl: 26px;
  }
}

@media (max-width: 380px) {
  :root {
    --fs-md:  13px;
    --fs-lg:  15px;
    --fs-xl:  17px;
    --fs-2xl: 20px;
    --fs-3xl: 22px;
  }
}

/* =============================================
   NAVBAR
============================================= */
.navbar-ls {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  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);
}

/* Transparent hero mode (get_connection, about_us) */
.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 .btn-outline-ls,
.navbar-ls.navbar-transparent.nav-white .nav-menu-btn span {
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.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;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  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-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  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-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  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); }
.nav-icon svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--clr-accent);
  color: white; border-radius: 50%;
  font-size: var(--fs-3xs); display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.nav-menu-btn {
  display: none; background: none; border: none; padding: 4px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--charcoal); margin: 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); }

/* Mobile Nav
   Catatan desain: link utama TIDAK lagi pakai font display
   raksasa (sebelumnya 36px) — dengan accordion Collections/Sale
   yang sekarang berisi banyak item (root + child + product count),
   ukuran sebesar itu membuat hierarki dengan child (13px) terlalu
   jauh dan memakan tempat vertikal berlebihan di viewport mobile
   pendek. --fs-2xl (~22-24px) tetap terasa editorial (font-display,
   letter-spacing) tapi proporsional sebagai item navigasi list,
   sejalan dengan pola umum (mis. Apple HIG / Material) yang
   mencadangkan ukuran "hero" untuk judul halaman, bukan menu. */
.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;
  padding: 96px 24px 40px;
  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;
  color: var(--charcoal); text-decoration: none; letter-spacing: 0.02em;
  transition: color var(--transition);
  opacity: 0;
  transform: translateY(12px);
  text-align: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open a {
  animation: mobileNavIn 0.4s ease forwards;
}
/* Animasi delay dipasang lewat custom property --nav-i (di-set inline
   dari view, sama seperti pola .nav-links a di desktop) — BUKAN
   :nth-child, karena direct children .mobile-nav bukan murni <a>
   (ada <div> wrapper accordion Collections/Sale yang menyela urutan,
   jadi nth-child(n) pada <a> tidak match berurutan dengan benar). */
.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; }

/* =====================
   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; }

/* =============================================
   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);
}

/* =============================================
   MEGA MENU — Collections
============================================= */
.nav-mega-wrap {
  position: fixed;
  top: 72px; 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 - 72px);
  overflow-y: auto;
}
.nav-mega-wrap.open {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-mega-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1px 1.3fr; gap: 0;
}
.mega-left { padding: 40px 48px 40px 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-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(117,113,89,0.08); border: 1px solid rgba(117,113,89,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.mega-cat-item:hover .mega-cat-icon { background: var(--clr-accent); border-color: var(--clr-accent); }
.mega-cat-icon svg { width: 16px; height: 16px; color: var(--clr-accent); transition: color var(--transition); }
.mega-cat-item:hover .mega-cat-icon svg { color: white; }
.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-count { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }
.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-divider { background: var(--border); width: 1px; margin: 32px 0; }
.mega-right { padding: 40px 0 40px 48px; }
.mega-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega-feat-card { position: relative; overflow: hidden; }
.mega-feat-img {
  width: 100%; aspect-ratio: 3/4; display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.mega-feat-card:hover .mega-feat-img { transform: scale(1.08); }
.mega-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,54,64,0.7) 0%, transparent 55%);
}
.mega-feat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 12px; }
.mega-feat-tag { font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.mega-feat-name { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 400; color: white; line-height: 1.2; }
.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); }

/* ============================================================
   MEGA MENU — COLLECTIONS (DYNAMIC)
   Menggantikan layout statis lama (.mega-left/.mega-right/.mega-cats)
   khusus untuk dropdown Collections. Jumlah kolom menyesuaikan
   jumlah root category (maks tampil rapi sampai 5 kolom, lebih
   dari itu mulai discroll horizontal di breakpoint sempit).
============================================================ */

.nav-mega-wrap-dynamic {
  /* override beberapa default lama yang tidak relevan lagi */
  overflow: visible;
}

.mega-dyn-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 40px;
  display: grid;
  gap: 0;
  align-items: start;
}

/* Grid kolom dinamis berdasarkan jumlah root category.
   Tiap root dapat kolomnya sendiri + divider di antaranya. */
.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;
  /* background: var(--border); */
  align-self: stretch;
  margin: 4px 28px;
  display: none;
}

.mega-dyn-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Root category — heading bold, sekaligus link */
.mega-dyn-root {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  /* padding-bottom: 14px; */
  margin-bottom: 10px;
  /* HAPUS: border-bottom, ::after pseudo element */
  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;
}

/* Child list */
.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;        /* Hapus padding kiri-kanan, biar natural */
  margin: 0;             /* Hapus margin negatif */
  text-decoration: none;
  /* HAPUS: border-left */
  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;
}

/* Kosongkan child list dengan rapi kalau root tidak ada child
   (tetap konsisten tinggi karena root sudah punya border-bottom) */
.mega-dyn-col:not(:has(.mega-dyn-child-list)) {
  padding-bottom: 4px;
}


/* ============================================================
   RESPONSIVE — Dynamic Mega Menu Collections
============================================================ */

/* Laptop kecil / tablet lanskap: mulai sempit, kurangi padding,
   biarkan kolom tetap grid tapi lebih rapat. Untuk root category
   yang banyak (4-5), izinkan scroll horizontal agar tidak gepeng. */
@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; }
}

/* ---------------------------------------------------------
   DI BAWAH 860px: mega menu desktop digantikan oleh accordion
   mobile (lihat blok mobile accordion terpisah). nav-mega-wrap
   sendiri sudah otomatis tersembunyi karena trigger-nya
   (#collectionsNavItem hover) tidak relevan di touch device,
   tapi kita pastikan juga secara eksplisit di sini supaya tidak
   ada kemungkinan nyangkut.
--------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-mega-wrap-dynamic { display: none; }
}


/* ============================================================
   MOBILE ACCORDION — COLLECTIONS (DYNAMIC, 2 TINGKAT)
   Root category jadi accordion trigger sendiri (bisa expand/
   collapse), child-nya muncul sebagai sub-list saat root dibuka.
   Beberapa root bisa terbuka bersamaan (tidak exclusive),
   supaya user bisa banding-bandingkan tanpa bolak-balik tap.
============================================================ */

.mob-dyn-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mob-dyn-root-item {
  border: 1px solid var(--border);
  background: rgba(117,113,89,0.03);
}

.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: 13px 14px;
  text-decoration: none;
  color: var(--charcoal);
}

.mob-dyn-root-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.2;
}

.mob-dyn-root-count {
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tombol expand terpisah dari link supaya tap nama = ke halaman,
   tap chevron = expand child (tidak ambigu / tidak saling rebutan). */
.mob-dyn-expand-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--clr-soft);
}

.mob-dyn-expand-chevron {
  width: 16px;
  height: 16px;
  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);
  background: var(--warm-white);
  border-top: 1px solid transparent;
}
.mob-dyn-child-accordion.open {
  max-height: 600px;
  border-top-color: var(--border);
}

.mob-dyn-child-list {
  list-style: none;
  padding: 6px 0;
}

.mob-dyn-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 10px 24px;
  text-decoration: none;
  color: var(--muted);
  font-size: var(--fs-base);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.mob-dyn-child-link:hover,
.mob-dyn-child-link:active {
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
  background: rgba(117,113,89,0.06);
}

.mob-dyn-child-count {
  font-size: var(--fs-xs);
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .mob-dyn-root-link { padding: 11px 12px; }
  .mob-dyn-root-name { font-size: var(--fs-md); }
  .mob-dyn-expand-btn { width: 40px; height: 40px; }
  .mob-dyn-child-link { padding: 9px 12px 9px 20px; font-size: var(--fs-sm); }
}


/* Mobile Collections/Sale Accordion — wrapper & trigger button.
   Disamakan tinggi/ritme dengan .mobile-nav a (padding 13px,
   border-bottom) supaya accordion trigger terlihat sebagai bagian
   dari list yang sama, bukan komponen terpisah. */
.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: space-between;
  width: 100%; padding: 13px 0; background: none; border: none;
  border-bottom: 1px solid var(--border);
  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: 8px 0 16px; }
.mob-acc-sublabel { font-size: var(--fs-3xs); letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding-left: 4px; }
.mob-acc-cat-list { display: flex; flex-direction: column; gap: 2px; }
.mob-acc-cat-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--charcoal);
  text-decoration: none;
  border-left: 2px solid transparent; background: rgba(117,113,89,0.04);
  transition: all var(--transition);
}
.mob-acc-cat-link:hover { border-left-color: var(--clr-accent); background: rgba(117,113,89,0.1); color: var(--clr-accent); }
.mob-acc-cat-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(117,113,89,0.08); border: 1px solid rgba(117,113,89,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mob-acc-cat-ico svg { width: 12px; height: 12px; color: var(--clr-accent); }
.mob-acc-cat-text { flex: 1; min-width: 0; }
.mob-acc-cat-name-mob { font-size: var(--fs-md); color: inherit; }
.mob-acc-cat-cnt { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.05em; }
.mob-feat-section { margin-top: 16px; }
.mob-feat-label { font-size: var(--fs-3xs); letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding-left: 4px; }
.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-xs); color: white; line-height: 1.2;
}
.mob-acc-viewall {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1px solid var(--border); font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; transition: all var(--transition);
}
.mob-acc-viewall:hover { background: var(--clr-dark); color: white; border-color: var(--clr-dark); }
.mob-acc-viewall svg { transition: transform 0.2s; }
.mob-acc-viewall:hover svg { transform: translateX(4px); }

/* =============================================
   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); }


/* =============================================
   STORE INFO STRIP
============================================= */
.store-strip { background: var(--clr-dark); padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.store-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.store-item { display: flex; align-items: center; gap: 14px; }
.store-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(117,113,89,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.store-icon svg { width: 18px; height: 18px; color: var(--clr-soft); }
.store-item-title { font-size: var(--fs-sm); font-weight: 500; color: white; }
.store-item-sub { font-size: var(--fs-xs); color: rgba(255,255,255,0.35); margin-top: 2px; }
.store-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* =============================================
   FOOTER
============================================= */
.footer { background: var(--clr-dark); padding: 72px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px;
}
.footer-logo { text-align: center; }
.footer-logo img { max-width: 130px; filter: brightness(0) invert(1); margin-bottom: 2rem; }
.footer-tagline { font-size: var(--fs-sm); line-height: 1.7; color: rgba(255,255,255,0.35); margin-bottom: 24px; max-width: 240px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.4); text-decoration: none;
}
.social-btn:hover { border-color: var(--clr-accent); color: var(--clr-soft); background: rgba(117,113,89,0.15); }
.social-btn svg { width: 15px; height: 15px; }
.footer-col-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: var(--fs-base); color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--clr-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-copy { font-size: var(--fs-sm); color: rgba(255,255,255,0.2); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: var(--fs-sm); color: rgba(255,255,255,0.2); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }
.footer-pay { display: flex; gap: 8px; align-items: center; }
.pay-badge {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 8px; font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3); text-transform: uppercase;
}

/* =============================================
   SEARCH OVERLAY
============================================= */
.search-overlay {
  position: fixed; top: 72px; 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: 32px 40px 36px;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  max-height: calc(100vh - 72px);
  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: 1.5px 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: clamp(20px, 3vw, 28px);
  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;
}

/* 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); }

/* =============================================
   LOOKBOOK
============================================= */
.lookbook { padding: var(--section-py) 0; background: var(--warm-white); }
.lookbook-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.lookbook-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.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); letter-spacing: 0.2em; 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%;
    height: 420px !important;
    background-color: #f0f0f0;
    display: block !important;
}

.lookbook-grid .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);
}

.lookbook-grid .owl-nav .owl-prev {
    left: -18px;
}

.lookbook-grid .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;
}


/* ============================================================
   SCROLL REVEAL
   Dipakai di product_sale, product_list, dan halaman lain.
============================================================ */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal       { transform: translateY(16px); }
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   PRODUCT CARD — shared antara sale dan list
============================================================ */
.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%;
  aspect-ratio: 3/4;
  display: block;
  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;
}
.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: #cb3115; 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: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-category {
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.25;
    /* margin-bottom: 8px; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Kunci: height fixed 2 baris supaya price row selalu di posisi sama */
    min-height: calc(1.25em * 2);
}
.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: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.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 */
.product-promo-notes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    /* HAPUS min-height sama sekali */
}
.product-max-discount-note,
.product-min-purchase-note {
    font-size: var(--fs-xs);
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.product-max-discount-note { color: var(--clr-sale, #c0392b); }
.product-min-purchase-note { color: var(--muted); }

/* Footer: color dots */
.product-info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 9px;
    margin-top: auto; /* dorong footer ke bawah */
}
.product-colors { display: flex; gap: 5px; align-items: center; }
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}
.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%); }


/* ============================================================
   PRODUCTS 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(6, 1fr);
  gap: 5px;
}
.products-grid.view-4col { grid-template-columns: repeat(4, 1fr); }
.products-grid.view-2col { grid-template-columns: repeat(2, 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; }


/* ============================================================
   TOOLBAR SHARED — sort, separator, view toggle, load more
============================================================ */
.products-sort { position: relative; }
.products-sort select {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  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;
}

/* Shared CTA button */
.btn-outline-ls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--border);
  padding: 12px 28px;
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline-ls:hover {
  background: var(--clr-dark);
  color: white;
  border-color: var(--clr-dark);
}

/* 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); }


/* ============================================================
   QUICK VIEW MODAL — dipakai dari product_sale view,
   bisa dipakai halaman lain yang butuh QV.
============================================================ */
.qv-backdrop {
  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%; }

.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: clamp(20px, 2.4vw, 30px);
  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); }
}


/* ============================================================
   RESPONSIVE — Component-level
============================================================ */

/* ---------------------------------------------------------
   ~1180px ke bawah: mega menu collections (grid 2 kolom +
   divider) mulai sempit. Kurangi padding & ubah grid jadi
   1 kolom sebelum benar2 ketat di laptop kecil.
--------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-mega-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .mega-divider { display: none; }
  .mega-left  { padding: 28px 0 16px; }
  .mega-right { padding: 0 0 28px; }
}

/* ---------------------------------------------------------
   1024px ke bawah: nav-links mulai padat (gap 36px + 7 item
   + nav-actions di kanan tidak lagi cukup). Kecilkan gap dan
   font SEBELUM hamburger muncul di 860px, supaya tidak ada
   rentang lebar dimana menu numpuk/overflow.
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .navbar-ls   { padding: 0 24px; }
  .nav-links   { gap: 18px; }
  .nav-links a { font-size: var(--fs-xs); letter-spacing: 0.1em; }
  .nav-actions { gap: 12px; }
  .mega-featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .navbar-ls { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .store-strip-inner { flex-wrap: wrap; gap: 20px; }
  .store-divider { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .conn-stores-grid { grid-template-columns: 1fr; }
  .conn-stores-header { flex-direction: column; align-items: flex-start; }
  .search-overlay { padding: 20px; }
  .user-submenu { right: -8px; }

  /* Product card */
  .product-info { padding: 10px 10px 12px; }
  .product-name { font-size: var(--fs-md); }
  .product-price { font-size: var(--fs-base); }
  .product-price-old { font-size: var(--fs-sm); }
  .product-promo-notes { min-height: 24px; }
  .product-max-discount-note,
  .product-min-purchase-note { font-size: var(--fs-2xs); }
  .product-actions { transform: translateX(0); opacity: 0.92; bottom: 8px; right: 8px; }

  /* QV */
  .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-name       { font-size: clamp(18px, 5vw, 24px); }
  .qv-price      { font-size: var(--fs-lg); padding-top: 10px; }

  /* 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-md); }
  .products-grid.view-list .product-actions { flex-direction: column; }
  .js-view-list { display: none; }
}

/* ---------------------------------------------------------
   Mobile landscape pendek (HP rebah / lebar layar kecil
   dengan tinggi terbatas): rapatkan padding antar-item supaya
   list tetap pas tanpa scroll berlebihan. Font-size TIDAK
   di-override di sini — sudah ditangani otomatis oleh token
   --fs-2xl yang turun ke 22px di breakpoint 860px (lihat
   definisi :root di atas), supaya tetap satu sumber kebenaran.
--------------------------------------------------------- */
@media (max-width: 860px) and (max-height: 480px) {
  .mobile-nav { gap: 0; padding: 80px 20px 24px; justify-content: flex-start; }
  .mobile-nav a,
  .mobile-nav-collection-btn { padding: 9px 0; }
}

@media (max-width: 540px) {
  .nav-logo { display: none; }
  .navbar-ls { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .search-overlay { padding: 16px; }
  .search-pills { gap: 6px; }
  .mobile-nav { padding: 88px 16px 32px; }

  /* Card compact */
  .product-info   { padding: 8px 8px 10px; }
  .product-category { font-size: var(--fs-3xs); letter-spacing: 0.12em; }
  .product-name   { font-size: var(--fs-base); margin-bottom: 6px; }
  .product-price  { font-size: var(--fs-base); }
  .product-price-old { font-size: var(--fs-xs); }
  .product-price-row { gap: 4px; margin-bottom: 4px; }
  .product-promo-notes { min-height: 22px; gap: 1px; margin-bottom: 8px; }
  .product-max-discount-note,
  .product-min-purchase-note { font-size: var(--fs-2xs); }
  .product-info-footer { padding-top: 8px; }
  .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; }
  .products-load-more { padding: 32px 0 0; }
  .btn-outline-ls { padding: 11px 20px; font-size: var(--fs-3xs); }

  /* QV */
  .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) {
  .products-grid { grid-template-columns: 1fr; gap: 3px; }
  .product-color-count { display: block; }
  .product-info   { padding: 12px 12px 14px; }
  .product-name   { font-size: var(--fs-lg); }
  .product-price  { font-size: var(--fs-md); }
  .product-price-old { font-size: var(--fs-sm); }
  .product-max-discount-note,
  .product-min-purchase-note { font-size: var(--fs-xs); }
  .products-view-toggle { display: none; }
  .toolbar-sep          { display: none; }
  .qv-modal  { width: 100vw; max-height: 96vh; }
  .qv-body   { padding: 14px 12px; }
  .qv-size-btn { width: 36px; height: 36px; }
  .navbar-ls { padding: 0 16px; height: 64px; }
  .nav-mega-wrap { top: 64px; }
  .search-overlay { top: 64px; padding: 14px; }
  .nav-actions { gap: 8px; }
  .nav-icon { width: 32px; height: 32px; }
  .nav-icon svg { width: 16px; height: 16px; }
  .mobile-nav { padding: 80px 14px 28px; gap: 0; }
  .mobile-nav a,
  .mobile-nav-collection-btn { padding: 11px 0; }
  .mob-acc-cat-name-mob { font-size: var(--fs-md); }
}

/* ---------------------------------------------------------
   Layar sangat sempit (<=320px, mis. iPhone SE gen 1 / lipat):
   pastikan icon nav-actions tidak overflow dan tetap rapat.
--------------------------------------------------------- */
@media (max-width: 320px) {
  .navbar-ls   { padding: 0 12px; }
  .nav-actions { gap: 6px; }
  .nav-icon    { width: 30px; height: 30px; }
  .btn-outline-ls { padding: 9px 14px; font-size: var(--fs-3xs); }
}

@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; }
}