/* ============================================================
   Zavora  -  Design System  (de-slopped: human touch)
   Paper / ink / accent, radius tidak seragam, grain halus,
   editorial hero, staggered cards. Satu file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,ital,wght@9..144,0,700;9..144,1,700&family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #fdf8f0;
  --bg-2: #f3efe6;
  --surface: #ffffff;
  --surface-low: #f6f3eb;
  --surface-high: #e9e4d6;
  --surface-paper: #fffbf3;
  --on-surface: #14120f;
  --on-surface-variant: #5b5a56;
  --outline: #9a9996;
  --outline-variant: #e7e2d6;
  --primary: #0f2d4d;
  --primary-container: #1a4b8a;
  --on-primary: #ffffff;
  --accent: #e8b73a;
  --accent-ink: #14120f;
  --secondary: #4b41e1;
  --error: #d92d20;
  --success: #1a7a4c;
  --warning: #b45309;
  --shadow-sm: 0 1px 2px rgba(20,18,15,.07), 0 4px 12px rgba(20,18,15,.06);
  --shadow-md: 0 8px 24px rgba(20,18,15,.10), 0 2px 8px rgba(20,18,15,.08);
  --shadow-paper: 4px 4px 0 #14120f;
  --font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-display: 52px; --text-h2: 30px; --text-h3: 22px;
  --text-lg: 18px; --text-md: 16px; --text-sm: 14px; --text-xs: 12px;
  --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 40px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --container: 1200px;
}
[data-theme="dark"] {
  --bg: #0f1419;
  --bg-2: #171d24;
  --surface: #1c242e;
  --surface-low: #1a232f;
  --surface-high: #243041;
  --surface-paper: #1e2936;
  --on-surface: #f0ead8;
  --on-surface-variant: #a8b0bf;
  --outline: #6b7280;
  --outline-variant: #2a3647;
  --primary: #8fb4ff;
  --primary-container: #3b82f6;
  --on-primary: #0f1419;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-paper: 4px 4px 0 #f0ead8;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; height: 100%; }
.icon { width: 20px; height: 20px; display: block; }
body {
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-md); }
.page { padding-bottom: var(--sp-xl); flex: 1 0 auto; width: 100%; }
.muted { color: var(--on-surface-variant); }
.small { font-size: var(--text-sm); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--outline-variant);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--sp-md); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.brand em { font-style: italic; font-weight: 700; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--on-surface-variant);
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--on-surface); }
.nav-links a.active { color: var(--on-surface); border-color: var(--on-surface); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 1.5px solid transparent; background: transparent;
  display: grid; place-items: center; color: var(--on-surface-variant);
  position: relative; transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-low); border-color: var(--outline-variant); color: var(--on-surface); }
.cart-badge {
  position: absolute; top: 0; right: -2px;
  background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: var(--r-pill); display: grid; place-items: center; border: 1.5px solid var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--on-surface); color: var(--bg); border-color: var(--on-surface); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1e1c18; color: var(--accent); border-color: #1e1c18; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--on-surface); color: var(--on-surface); background: transparent; }
.btn-outline:hover { background: var(--on-surface); color: var(--bg); }
.btn-ghost { border-color: transparent; color: var(--on-surface); padding: 10px 14px; }
.btn-ghost:hover { background: var(--surface-low); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ---------- Hero editorial ---------- */
.hero {
  position: relative; overflow: visible;
  display: grid; grid-template-columns: 1.05fr .92fr; gap: var(--sp-xl);
  align-items: center;
  padding: 36px 0 8px; min-height: 0; border: none; box-shadow: none; background: none; margin-top: 10px;
}
.hero-copy { padding: 12px 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-surface-variant); margin-bottom: 14px;
}
.hero-kicker i { width: 28px; height: 1.5px; background: var(--on-surface); display: inline-block; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; line-height: .95; letter-spacing: -.03em;
  font-size: clamp(34px, 5vw, 54px); margin-bottom: 14px;
}
.hero h1 em { font-style: italic; font-weight: 700; background: linear-gradient(180deg, transparent 62%, rgba(232,183,58,.35) 62%); padding: 0 4px 2px 1px; }
.hero h1 .line2 { display: block; font-size: .78em; font-weight: 700; letter-spacing: -.02em; color: var(--on-surface-variant); margin-top: 4px; }
.hero p { font-size: 16px; color: var(--on-surface-variant); max-width: 460px; line-height: 1.6; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--outline-variant); max-width: 420px; }
.hero-proof-avatars { display: flex; }
.hero-proof-avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; object-fit: cover; }
.hero-proof-avatars img:first-child { margin-left: 0; }
.hero-proof-text { font-size: 12px; line-height: 1.4; }
.hero-proof-text strong { font-weight: 800; }
.hero-visual { position: relative; padding: 8px 0 8px 8px; perspective: 900px; }
.hero-card-stack { position: relative; width: 100%; aspect-ratio: 4/3.1; transform-style: preserve-3d; transition: transform .35s ease; cursor: grab; }
.hero-card-stack:active { cursor: grabbing; }
.hero-card {
  position: absolute; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--on-surface);
  box-shadow: var(--shadow-md); background: var(--surface); cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, filter .3s;
}
.hero-card:hover { box-shadow: 0 14px 36px rgba(20,18,15,.14), 0 4px 12px rgba(20,18,15,.1); }
.hero-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-card--back { inset: 0 18% 18% 0; transform: rotate(-1.2deg) translateZ(0); }
.hero-card--back img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.hero-card--front { inset: 18% 0 0 18%; transform: rotate(0.7deg) translateZ(12px); display: flex; flex-direction: column; }
.hero-card--front img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.hero-card-meta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-top: 1px solid var(--outline-variant); }
.hero-card-meta b { font-family: var(--font-display); font-size: 14px; }
.hero-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--on-surface); color: var(--bg); font-size: 16px; transition: transform .2s; flex-shrink: 0; }
.hero-card--front:hover .hero-go { transform: translate(2px,-2px) rotate(-8deg); }
.hero-card-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  background: var(--bg); color: var(--on-surface); font-family: var(--font-ui); font-size: 11px; font-weight: 800;
  padding: 6px 10px; border-radius: var(--r-pill); border: 1.5px solid var(--on-surface); box-shadow: 1.5px 1.5px 0 var(--on-surface);
}
.hero-sticker {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 7px 11px; border-radius: var(--r-pill); border: 1.5px solid var(--on-surface); box-shadow: 2px 2px 0 var(--on-surface);
  transform: rotate(2deg); cursor: default; user-select: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.hero-sticker:hover { transform: rotate(2deg) scale(1.03); box-shadow: 3px 3px 0 var(--on-surface); }
.hero-sticker small { font-weight: 700; opacity: .7; }
.hero-hint { text-align: center; margin-top: 10px; font-size: 11px; letter-spacing: .02em; opacity: .7; }
/* tilt interaksi */
.hero-card-stack.is-hover .hero-card--back { transform: rotate(-2deg) translateY(-4px) translateZ(-6px); }
.hero-card-stack.is-hover .hero-card--front { transform: rotate(1.2deg) translateY(-6px) translateZ(18px); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-visual { order: -1; }
  .hero-card-stack { aspect-ratio: 16/10; max-width: 520px; margin: 0 auto; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-surface-variant); margin-bottom: 8px;
}

/* ---------- Sections ---------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h1, .section-head h2 { font-family: var(--font-display); font-size: var(--text-h2); letter-spacing: -.02em; line-height: 1; }
.section-head h2 em { font-style: italic; font-weight: 700; }
.section-head p { font-size: 13px; color: var(--on-surface-variant); margin-top: 6px; }
.link-arrow { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--on-surface); border-bottom: 1.5px solid var(--on-surface); padding-bottom: 1px; }
.link-arrow:hover { color: var(--primary-container); border-color: var(--primary-container); }

/* ---------- Bento kategori (tidak simetris sempurna & dinamis) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: minmax(175px, auto); }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.35fr .9fr .9fr; }
}
.bento-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 20px 20px 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; border: 1.5px solid rgba(255,255,255,.08); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s;
  text-decoration: none;
  background-color: #141210;
  min-height: 180px;
}
.bento-card::before, .bento-card-bg {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .5s ease;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bento-card:hover::before, .bento-card:hover .bento-card-bg { transform: scale(1.04); }
.bento-card::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(14,12,10,.94) 22%, rgba(14,12,10,.55) 65%, rgba(14,12,10,.20) 100%);
  pointer-events: none;
}
.bento-card > :not(.bento-card-bg):not(.bento-arrow) { position: relative; z-index: 3; }
.bento-card h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.1; margin-bottom: 6px; text-shadow: 0 1px 10px rgba(0,0,0,.5); padding-right: 48px; }
.bento-card h3 em { font-style: italic; }
.bento-card p { font-size: 13px; opacity: .9; line-height: 1.4; max-width: 32ch; text-shadow: 0 1px 4px rgba(0,0,0,.4); margin: 0; padding-right: 48px; }
.bento-card .meta { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; padding-right: 48px; }
.bento-card .bento-arrow {
  position: absolute !important; right: 16px; bottom: 16px; z-index: 4;
  width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 16px;
  background: var(--bg); color: var(--on-surface); border: 1.5px solid var(--on-surface); transition: transform .2s;
  pointer-events: none;
}
.bento-card:hover .bento-arrow { transform: translateX(3px) rotate(-6deg); }
.bento-card:nth-child(1) { border-radius: 22px 18px 20px 16px; }
.bento-card:nth-child(2) { border-radius: 18px 22px 16px 20px; }
.bento-card:nth-child(3) { border-radius: 20px 16px 22px 18px; }
.cat-digital::before { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1200&q=80&auto=format&fit=crop'); }
.cat-laptop::before  { background-image: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?w=900&q=80&auto=format&fit=crop'); }
.cat-phone::before   { background-image: url('https://images.unsplash.com/photo-1510557880182-3d4d3cba35a5?w=900&q=80&auto=format&fit=crop'); }

/* ---------- Product cards (rapi & responsive) ---------- */
.grid-products {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-products .product-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* HP & Layar Portrait: Wajib 2 kolom kesamping (2 2 per banjar), tidak lurus 1 kolom kebawah */
@media (max-width: 768px) {
  .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .product-card {
    border-radius: 14px !important;
  }
  .product-card:nth-child(n) {
    border-radius: 14px !important;
  }
  .product-thumb {
    aspect-ratio: 4 / 3.05;
  }
  .thumb-overlay {
    padding: 6px;
  }
  .tag {
    font-size: 8.5px;
    padding: 3px 6px;
    transform: none !important;
    box-shadow: none !important;
  }
  .tag-stock {
    display: none;
  }
  .product-body {
    padding: 10px 9px 12px;
    gap: 4px;
  }
  .product-cat {
    font-size: 9.5px;
  }
  .product-name {
    font-size: 13px;
    line-height: 1.25;
    min-height: 33px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-desc {
    display: none; /* Sembunyikan deskripsi di HP agar kartu seragam, rapi & tidak ketekan */
  }
  .product-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: auto;
    padding-top: 8px;
  }
  .price {
    font-size: 15px;
    font-weight: 700;
  }
  .product-foot .muted.small {
    font-size: 9.5px;
    line-height: 1.2;
  }
  .card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }
  .card-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 7px 4px !important;
    font-size: 11px !important;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
  }
  .btn-detail-prefix {
    display: none; /* 'Lihat Detail' menjadi 'Detail' di HP agar muat berdampingan dengan tombol 'Beli' */
  }
}

@media (max-width: 400px) {
  .grid-products {
    gap: 8px !important;
  }
  .product-body {
    padding: 8px 7px 10px;
    gap: 3px;
  }
  .product-name {
    font-size: 12px;
    min-height: 30px;
  }
  .price {
    font-size: 14px;
  }
  .card-actions {
    gap: 4px;
  }
  .card-actions .btn {
    padding: 6px 2px !important;
    font-size: 10px !important;
  }
}

.product-card {
  background: var(--surface); border: 1.5px solid var(--outline-variant); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s, border-color .18s;
  position: relative;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--on-surface); }
.product-card:nth-child(3n+1) { border-radius: 18px 16px 18px 20px; }
.product-card:nth-child(3n+2) { border-radius: 16px 18px 20px 18px; }
.product-card:nth-child(3n) { border-radius: 20px 18px 16px 18px; }
.product-card:nth-child(5) { background: var(--surface-paper); }
.product-thumb {
  position: relative; aspect-ratio: 4/3.05; overflow: hidden; display: block;
  background: var(--surface-low); border-bottom: 1.5px solid var(--outline-variant);
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }
.thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,12,10,.42), transparent 46%);
  display: flex; align-items: flex-end; padding: 10px;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-pill); border: 1px solid;
}
.tag-digital { background: var(--bg); color: var(--on-surface); border-color: var(--on-surface); transform: rotate(-1.2deg); box-shadow: 1.5px 1.5px 0 var(--on-surface); }
.tag-physical { background: var(--accent); color: var(--accent-ink); border-color: var(--on-surface); transform: rotate(1deg); box-shadow: 1.5px 1.5px 0 var(--on-surface); }
.tag-stock { background: var(--error); color: #fff; border-color: var(--on-surface); margin-left: 6px; }
.product-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-family: var(--font-ui); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--on-surface-variant); }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.product-name a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.product-desc { font-size: 13px; color: var(--on-surface-variant); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--outline-variant); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.price-old { font-size: 12px; color: var(--outline); text-decoration: line-through; margin-left: 6px; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.chip {
  border: 1.5px solid var(--outline-variant); background: var(--surface); color: var(--on-surface);
  padding: 9px 15px; border-radius: var(--r-pill); font-family: var(--font-ui); font-size: 13px; font-weight: 700; transition: all .18s;
}
.chip:hover { border-color: var(--on-surface); transform: translateY(-1px); }
.chip.active { background: var(--on-surface); border-color: var(--on-surface); color: var(--bg); box-shadow: var(--shadow-sm); }
.chip small { opacity: .65; font-weight: 600; margin-left: 4px; }

/* ---------- Detail produk ---------- */
.detail-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: start; }
.detail-thumb {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1.5px solid var(--on-surface); aspect-ratio: 1; background: var(--surface-low); box-shadow: var(--shadow-paper);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.05; margin: 8px 0 10px; }
.detail-info h1 em { font-style: italic; }
.detail-desc { color: var(--on-surface-variant); margin: 12px 0 18px; line-height: 1.6; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-meta span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--outline-variant); background: var(--surface); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; margin-top: 20px; }
.card {
  background: var(--surface); border: 1.5px solid var(--outline-variant);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm);
}
.card--paper { background: var(--surface-paper); border-color: var(--on-surface); box-shadow: var(--shadow-paper); }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--outline-variant); }
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 74px; height: 74px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
  background: var(--surface-low); border: 1.5px solid var(--outline-variant);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-family: var(--font-display); font-size: 14px; line-height: 1.2; }
.qty { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--outline-variant); border-radius: var(--r-pill); padding: 3px 6px; }
.qty button { border: none; background: var(--surface); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--on-surface); border: 1px solid transparent; }
.qty button:hover { border-color: var(--on-surface); background: var(--bg-2); }
.link-danger { background: none; border: none; font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--error); border-bottom: 1.5px solid transparent; padding-bottom: 1px; }
.link-danger:hover { border-color: var(--error); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: var(--on-surface-variant); }
.summary-row.total { border-top: 1.5px solid var(--on-surface); margin-top: 8px; padding-top: 12px; color: var(--on-surface); font-weight: 800; font-size: 15px; font-family: var(--font-ui); }
.empty-state { text-align: center; padding: 32px; color: var(--on-surface-variant); border: 1.5px dashed var(--outline-variant); border-radius: 20px; background: var(--surface-paper); }
.empty-state h2 { font-family: var(--font-display); color: var(--on-surface); margin-bottom: 8px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.steps { display: flex; gap: 10px; list-style: none; margin-bottom: 18px; font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.steps li:nth-child(1)::before { content: '1'; }
.steps li:nth-child(2)::before { content: '2'; }
.steps li:nth-child(3)::before { content: '3'; }
.steps .done { color: var(--success); }
.steps .done::before { background: var(--success); border-color: var(--success); color: #fff; content: '✓'; }
.steps .active { color: var(--on-surface); }
.steps .active::before { background: var(--on-surface); border-color: var(--on-surface); color: var(--bg); }
.qris-card { text-align: center; border-color: var(--on-surface); box-shadow: var(--shadow-paper); background: var(--surface-paper); }
.qris-card h2 { font-family: var(--font-display); margin-bottom: 12px; font-size: 24px; }
.qr-box {
  display: grid; place-items: center; padding: 16px;
  border: 1.5px solid var(--on-surface); border-radius: 16px;
  margin: 0 auto 14px; width: fit-content; background: #fff; color: #0b1c30; box-shadow: 3px 3px 0 var(--on-surface);
}
.order-id { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--on-surface-variant); }
.qris-total { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 4px 0 8px; letter-spacing: -.02em; }
.checkout-side { display: grid; gap: 14px; }
.sim-box { border-style: dashed; background: var(--bg-2); }
.sim-box p { font-size: 13px; color: var(--on-surface-variant); margin: 6px 0 12px; line-height: 1.5; }

/* ---------- Orders (footer tetap di bawah + slot kosong estetik) ---------- */
.orders-list { display: grid; gap: 14px; min-height: 42vh; align-content: start; }
.orders-list:has(.empty-state) { min-height: 48vh; }
.order-card { display: flex; flex-direction: column; gap: 8px; border-radius: 18px; }
/* slot kosong estetik agar footer tidak nempel saat order sedikit */
.order-slot-empty {
  border: 1.5px dashed var(--outline-variant);
  border-radius: 18px;
  background: repeating-linear-gradient( -45deg, var(--surface) 0 8px, var(--surface-low) 8px 16px);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  opacity: .62;
}
.order-slot-empty .slot-icon {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px dashed var(--outline-variant);
  display: grid; place-items: center; background: var(--surface); flex-shrink: 0; font-size: 18px;
}
.order-slot-empty .slot-line { height: 10px; border-radius: 999px; background: var(--outline-variant); opacity: .7; }
.order-slot-empty .slot-line.w1 { width: 120px; }
.order-slot-empty .slot-line.w2 { width: 180px; margin-top: 8px; }
.order-slot-empty .slot-line.w3 { width: 90px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-id-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.status-pill {
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid;
}
.status-pill.paid { background: #dcfce7; color: #166534; border-color: #86efac; }
.status-pill.pending { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.order-items { font-size: 13px; color: var(--on-surface-variant); line-height: 1.5; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed var(--outline-variant); }

/* ---------- Success ---------- */
.success-wrap { display: grid; place-items: center; margin-top: 32px; }
.success-card { text-align: center; max-width: 520px; padding: 32px; border-color: var(--on-surface); box-shadow: var(--shadow-paper); background: var(--surface-paper); }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 28px; color: #fff;
  background: var(--success); border: 2px solid var(--on-surface); box-shadow: 2px 2px 0 var(--on-surface); animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
.success-card h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; letter-spacing: -.02em; }
.digital-note { font-size: 13px; color: var(--on-surface-variant); margin-top: 8px; line-height: 1.5; }
.success-actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.success-actions .btn { min-width: 160px; flex: 0 1 180px; justify-content: center; }
@media (max-width: 480px) { .success-actions { flex-direction: column; } .success-actions .btn { width: 100%; flex: 1 1 auto; } }
@keyframes pop { from { transform: scale(.85); } to { transform: scale(1); } }

/* ---------- Auth ---------- */
.auth-page-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; margin-top: 20px; min-height: calc(100vh - 160px);
}
@media (max-width: 900px) {
  .auth-page-wrap { grid-template-columns: 1fr; }
  .auth-hero-col { display: none; }
}
.auth-hero-col {
  padding: 22px; background: var(--surface); border-radius: 22px;
  border: 1.5px solid var(--outline-variant); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.auth-hero-col::before { display: none; }
.auth-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--on-surface); color: var(--bg); padding: 5px 10px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.auth-hero-col h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 8px; }
.auth-hero-col h2 em { font-style: italic; background: none; padding: 0; }
.auth-hero-col > p { color: var(--on-surface-variant); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.auth-features-list { display: grid; gap: 10px; }
.auth-feat-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--outline-variant);
}
.auth-feat-item:nth-child(2) { transform: rotate(.18deg); }
.auth-feat-item:nth-child(3) { transform: rotate(-.14deg); }
.auth-feat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-2); border: 1px solid var(--outline-variant); }
.auth-feat-item h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.auth-feat-item p { font-size: 12px; color: var(--on-surface-variant); margin: 0; line-height: 1.4; }
.auth-page-container {
  max-width: 640px;
  margin: 36px auto 60px;
}
.auth-card-wrap { width: 100%; max-width: 640px; margin: 0 auto; }
.auth-card {
  background: var(--surface); border: 1.5px solid var(--on-surface); border-radius: 26px; padding: 34px 38px; box-shadow: var(--shadow-paper); position: relative;
}
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface-low); padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--outline-variant);
}
.auth-tab {
  flex: 1; border: none; background: none; padding: 10px; border-radius: var(--r-pill); font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--on-surface-variant); transition: all .18s; text-align: center;
}
.auth-tab.active { background: var(--on-surface); color: var(--bg); }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: .02em; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--outline-variant); background: var(--surface); color: var(--on-surface);
  font-family: inherit; font-size: 15px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--on-surface); box-shadow: 0 0 0 3px rgba(20,18,15,.08); }

/* Saved Accounts */
.saved-accounts-box { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--outline-variant); }
.saved-accounts-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-variant); margin-bottom: 14px; }
.saved-account-list { display: grid; gap: 10px; }
.saved-account-card {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--surface-low); border: 1.5px solid var(--outline-variant); border-radius: 16px; cursor: pointer; transition: all .18s;
}
.saved-account-card:hover { border-color: var(--on-surface); background: var(--surface); transform: translateY(-1px); box-shadow: 2px 2px 0 var(--on-surface); }
.saved-account-user { display: flex; align-items: center; gap: 14px; }
.saved-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--on-surface); }
.saved-info h5 { font-family: var(--font-ui); font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.saved-info p { font-size: 13px; color: var(--on-surface-variant); margin: 0; }
.saved-account-btn { font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--on-surface); display: flex; align-items: center; gap: 4px; border-bottom: 1.5px solid var(--on-surface); padding: 2px 0; }

@media (max-width: 640px) {
  .auth-page-container { max-width: 100%; margin: 16px auto 32px; padding: 0 14px; }
  .auth-card-wrap { max-width: 100%; }
  .auth-card { border-radius: 20px; padding: 20px 16px; }
  .saved-accounts-title { font-size: 11px; margin-bottom: 10px; }
  .saved-account-card { padding: 10px 12px; border-radius: 14px; }
  .saved-account-user { gap: 10px; }
  .saved-avatar { width: 38px; height: 38px; }
  .saved-info h5 { font-size: 13.5px; }
  .saved-info p { font-size: 12px; }
  .saved-account-btn { font-size: 11.5px; }
}

/* OTP */
.otp-container { text-align: center; padding: 6px 0; }
.otp-inputs { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.otp-box {
  width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 800; font-family: var(--font-display);
  border: 1.5px solid var(--outline-variant); border-radius: 12px; background: var(--surface); color: var(--on-surface); outline: none; transition: all .15s;
}
.otp-box:focus { border-color: var(--on-surface); box-shadow: 2px 2px 0 var(--on-surface); transform: translateY(-1px); }
.sim-otp-banner {
  background: #dcfce7; border: 1.5px solid #14120f; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 12px; color: #14120f; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: 2px 2px 0 #14120f;
}
.sim-otp-banner strong { color: #14120f; }
.sim-otp-badge { background: #14120f; color: #fdf8f0; font-family: var(--font-ui); font-weight: 800; padding: 3px 7px; border-radius: var(--r-pill); letter-spacing: .04em; font-size: 11px; }
.sim-otp-banner #autoFillOtpBtn { background: #14120f; color: #fdf8f0; border-color: #14120f; }
.sim-otp-banner #autoFillOtpBtn:hover { background: #1e1c18; }
[data-theme="dark"] .sim-otp-banner { background: #dcfce7; color: #14120f; border-color: #14120f; box-shadow: 2px 2px 0 #14120f; }
.demo-login-box {
  margin-top: 12px; padding: 12px; background: var(--surface-low); border-radius: 14px; border: 1.5px dashed var(--outline-variant); text-align: center;
}
.demo-login-box p { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); margin-bottom: 8px; }
.demo-btn-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.btn-demo {
  background: var(--surface); border: 1.5px solid var(--outline-variant); padding: 7px 12px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--on-surface); transition: all .18s;
}
.btn-demo:hover { border-color: var(--on-surface); background: var(--on-surface); color: var(--bg); }
.social-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1.5px solid var(--outline-variant); border-radius: 14px; background: var(--surface);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--on-surface); transition: all .18s;
}
.btn-social:hover { border-color: var(--on-surface); box-shadow: 2px 2px 0 var(--on-surface); transform: translateY(-1px); }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: var(--on-surface-variant); }
.remember-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.remember-label input { accent-color: var(--on-surface); }

/* ---------- User Nav ---------- */
.user-menu-wrap { position: relative; }
.user-pill-btn {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--surface); border: 1.5px solid var(--outline-variant); border-radius: var(--r-pill);
  color: var(--on-surface); font-family: var(--font-ui); font-size: 12px; font-weight: 700; transition: all .18s;
}
.user-pill-btn:hover { border-color: var(--on-surface); box-shadow: 1.5px 1.5px 0 var(--on-surface); }
.user-pill-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--outline-variant); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 240px; background: var(--surface); border: 1.5px solid var(--on-surface); border-radius: 18px; box-shadow: var(--shadow-paper); padding: 8px 0; z-index: 100; display: none;
}
.user-dropdown.show { display: block; }
.user-drop-header { padding: 10px 16px; border-bottom: 1.5px dashed var(--outline-variant); }
.user-drop-header strong { display: block; font-family: var(--font-ui); font-size: 13px; }
.user-drop-header span { display: block; font-size: 11px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--on-surface); border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.user-drop-link:hover { background: var(--on-surface); color: var(--bg); border-left-color: var(--accent); transform: translateX(1px); }
.user-drop-link:hover svg { stroke: currentColor; }
.user-drop-link:active { transform: scale(.99); }
.user-drop-divider { height: 1px; background: var(--outline-variant); margin: 4px 0; }
.user-drop-logout { color: var(--error); }
.user-drop-logout:hover { background: var(--error); color: #fff; border-left-color: var(--error); }
[data-theme="dark"] .user-drop-link:hover { background: var(--surface-high); color: var(--on-surface); border-left-color: var(--accent); }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar { background: var(--surface); border: 1.5px solid var(--on-surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-paper); }
.account-sidebar-user { text-align: center; padding: 12px 0 14px; border-bottom: 1.5px dashed var(--outline-variant); margin-bottom: 8px; }
.account-sidebar-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; border: 2px solid var(--on-surface); box-shadow: 2px 2px 0 var(--on-surface); }
.account-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: none; background: transparent;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--on-surface-variant); text-align: left; transition: all .15s;
}
.account-nav-btn:hover { background: var(--surface-low); color: var(--on-surface); }
.account-nav-btn.active { background: var(--on-surface); color: var(--bg); }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--success); background: #dcfce7; border: 1px solid #86efac; padding: 3px 8px; border-radius: var(--r-pill); margin-top: 4px; }
.addr-card-item { border: 1.5px solid var(--outline-variant); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.addr-card-item.default { border-color: var(--on-surface); background: var(--surface-paper); box-shadow: 2px 2px 0 var(--on-surface); }
.badge-default-addr { background: var(--on-surface); color: var(--bg); font-family: var(--font-ui); font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: var(--r-pill); }

/* ---------- Features & newsletter ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--surface); border: 1.5px solid var(--outline-variant); border-radius: 20px; padding: 18px; position: relative; }
.feature:nth-child(1) { transform: rotate(-.18deg); }
.feature:nth-child(2) { transform: rotate(.14deg); background: var(--surface-paper); border-color: var(--on-surface); box-shadow: var(--shadow-paper); }
.feature:nth-child(3) { transform: rotate(-.12deg); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--on-surface); color: var(--bg); margin-bottom: 12px; }
.feature:nth-child(2) .feature-icon { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--on-surface); }
.feature h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--on-surface-variant); line-height: 1.5; }
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px; border-radius: 22px; background: var(--on-surface); color: var(--bg); border: 1.5px solid var(--on-surface); box-shadow: var(--shadow-paper);
}
.newsletter h2 { font-family: var(--font-display); font-size: 22px; color: var(--bg); }
.newsletter h2 em { font-style: italic; color: var(--accent); }
.newsletter p { color: rgba(253,248,240,.75); font-size: 13px; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 440px; min-width: 260px; }
.newsletter-form input {
  flex: 1; padding: 13px 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(253,248,240,.45); background: #23211e; color: #fdf8f0; outline: none; font-family: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(253,248,240,.62); }
.newsletter-form input:focus { border-color: var(--accent); background: #2a2825; box-shadow: 0 0 0 3px rgba(232,183,58,.22); }
[data-theme="dark"] .newsletter { background: #14120f; color: #fdf8f0; border-color: #14120f; }
[data-theme="dark"] .newsletter h2 { color: #fdf8f0; }
[data-theme="dark"] .newsletter p { color: rgba(253,248,240,.72); }
.newsletter .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.newsletter .btn-primary:hover { background: #f0c44a; }

/* ---------- Footer (sticky: tetap di bawah) ---------- */
.footer { border-top: 1.5px solid var(--on-surface); background: var(--surface-paper); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 16px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.footer-brand em { font-style: italic; }
.footer p { font-size: 13px; color: var(--on-surface-variant); margin-top: 6px; max-width: 320px; line-height: 1.5; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.footer-links a:hover { color: var(--on-surface); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); margin-bottom: 8px; }
.copyright { font-family: var(--font-ui); font-size: 12px; color: var(--on-surface-variant); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--on-surface); color: var(--bg); padding: 11px 16px; border-radius: var(--r-pill); border: 1px solid var(--on-surface);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 100; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature:nth-child(n) { transform: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(160px, auto); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  :root { --text-display: 36px; --text-h2: 26px; }
}

/* ---------- Inputs & checkout extras ---------- */
.input {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--outline-variant); background: var(--surface);
  color: var(--on-surface); font: inherit; font-size: 14px;
}
.input:focus { outline: none; border-color: var(--on-surface); box-shadow: 0 0 0 3px rgba(20,18,15,.08); }
.addr-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--outline-variant); border-radius: 12px;
  margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; font-size: 13px; background: var(--surface);
}
.addr-option:hover { border-color: var(--on-surface); background: var(--surface-low); }
.addr-option input { margin-top: 3px; accent-color: var(--on-surface); }
.pay-status { margin-top: 8px; font-size: 13px; color: var(--on-surface-variant); }
.paid-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: var(--success); font-weight: 800; margin-right: 6px; border: 1px solid #86efac; }
.status-pill.processing { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.status-pill.shipped { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.status-pill.completed { background: #dcfce7; color: #166534; border-color: #86efac; }
.status-pill.cancelled, .status-pill.expired { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
#qrImg { border-radius: 10px; }

/* ---------- Bottom Navigation Mobile (Android & iOS) ---------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--outline-variant);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  gap: 4px;
  flex: 1;
  height: 100%;
  transition: color 0.2s, transform 0.1s;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s;
}

.mobile-nav-item.active {
  color: var(--primary-container);
}

.mobile-nav-item.active svg {
  transform: translateY(-2px);
  stroke-width: 2.2;
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: flex; /* Aktifkan di layar HP */
  }
  body {
    padding-bottom: 74px; /* Tambahkan ruang di bawah agar konten tidak tertutup */
  }
  .toast {
    bottom: 80px; /* Geser toast ke atas nav agar tidak terhalang */
  }
}

/* ---------- Live Chat Widget (Customer <-> Admin) ---------- */
.zav-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--on-surface);
  color: var(--bg);
  border: 2px solid var(--surface-paper);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.zav-chat-launcher:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.zav-chat-launcher:active {
  transform: scale(0.95);
}

.zav-chat-launcher svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.zav-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.zav-chat-window {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  animation: zavChatPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zav-chat-window.open {
  display: flex;
}

@keyframes zavChatPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zav-chat-header {
  padding: 14px 18px;
  background: var(--surface-paper);
  border-bottom: 1.5px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zav-chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zav-chat-head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--on-surface);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--outline-variant);
}

.zav-chat-head-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  color: var(--on-surface);
}

.zav-chat-head-status {
  font-size: 11px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.zav-chat-head-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.zav-chat-close-btn {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.zav-chat-close-btn:hover {
  background: var(--surface-low);
  color: var(--on-surface);
}

.zav-chat-notice {
  padding: 8px 14px;
  background: var(--surface-low);
  font-size: 11px;
  color: var(--on-surface-variant);
  text-align: center;
  border-bottom: 1px dashed var(--outline-variant);
}

.zav-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zav-chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.zav-chat-bubble.customer {
  align-self: flex-end;
  background: var(--on-surface);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.zav-chat-bubble.admin {
  align-self: flex-start;
  background: var(--surface-low);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-bottom-left-radius: 4px;
}

.zav-chat-bubble-sender {
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--accent);
}

.zav-chat-bubble.customer .zav-chat-bubble-sender {
  display: none;
}

.zav-chat-bubble-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.65;
  text-align: right;
}

.zav-chat-attachment-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 6px;
  cursor: pointer;
  display: block;
}

.zav-chat-attachment-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.1);
}

.zav-chat-attachment-file:hover {
  text-decoration: underline;
}

.zav-chat-preview-box {
  padding: 8px 14px;
  background: var(--surface-low);
  border-top: 1px dashed var(--outline-variant);
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.zav-chat-preview-box.show {
  display: flex;
}

.zav-chat-footer {
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1.5px solid var(--outline-variant);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zav-chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--outline-variant);
  background: var(--surface);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}

.zav-chat-input:focus {
  border-color: var(--on-surface);
}

.zav-chat-attach-btn,
.zav-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  transition: transform 0.15s, background 0.15s;
}

.zav-chat-attach-btn {
  background: var(--surface-low);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
}

.zav-chat-attach-btn:hover {
  background: var(--surface-paper);
  color: var(--on-surface);
}

.zav-chat-send-btn {
  background: var(--on-surface);
  color: var(--bg);
}

.zav-chat-send-btn:hover {
  transform: scale(1.05);
}

.zav-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .zav-chat-launcher {
    bottom: 84px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .zav-chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

/* ── Smooth Touch Scroll Horizontal (Sembunyikan scrollbar jelek di HP) ── */
.orders-filter-bar,
.chip-row,
.catalog-toolbar,
.pill-scroll-wrap,
.filter-tabs-row {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Edge */
}

.orders-filter-bar::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.catalog-toolbar::-webkit-scrollbar,
.pill-scroll-wrap::-webkit-scrollbar,
.filter-tabs-row::-webkit-scrollbar {
  display: none !important; /* Chrome / Safari */
  width: 0 !important;
  height: 0 !important;
}

/* ── Shopee-Style Product Image Zoom & Lightbox ── */
.detail-thumb {
  cursor: pointer;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.detail-thumb:hover {
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.12));
}
.detail-thumb .detail-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(14, 12, 10, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0.88;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
}
.detail-thumb:hover .detail-zoom-badge {
  opacity: 1;
  transform: scale(1.04);
}

/* ── Shopee-Style Product Image Modal (Persis Shopee) ── */
.shopee-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  user-select: none;
  -webkit-user-select: none;
}
.shopee-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.shopee-lightbox-card {
  position: relative;
  background: var(--surface, #ffffff);
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  width: 980px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--outline-variant, rgba(0,0,0,0.1));
  transform: scale(0.96);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .shopee-lightbox-card {
  background: #141820;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}
.shopee-lightbox-overlay.active .shopee-lightbox-card {
  transform: scale(1);
}

.shopee-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  color: var(--on-surface, #333);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all .15s;
}
[data-theme="dark"] .shopee-lightbox-close {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.shopee-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  transform: scale(1.08);
}

/* Left side: Big Main Image Pane */
.shopee-main-pane {
  flex: 1.45;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  max-height: 84vh;
  overflow: hidden;
}
.shopee-main-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.shopee-main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform .08s ease-out;
  transform-origin: center center;
  pointer-events: none;
}
.shopee-zoom-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-family: var(--font-ui, sans-serif);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity .2s;
}
.shopee-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 68px;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  opacity: 0.75;
  transition: all .18s ease;
}
.shopee-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  opacity: 1;
}
.shopee-nav-arrow.prev { left: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.shopee-nav-arrow.next { right: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }

/* Right side: Sidebar Title & Gallery Grid */
.shopee-side-pane {
  flex: 0.95;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  overflow-y: auto;
  border-left: 1px solid var(--outline-variant, rgba(0,0,0,0.08));
}
[data-theme="dark"] .shopee-side-pane {
  background: #141820;
  border-left-color: rgba(255,255,255,0.08);
}
.shopee-side-title {
  font-family: var(--font-display, inherit);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--on-surface, #1e293b);
  margin: 0 28px 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .shopee-side-title {
  color: #f1f5f9;
}
.shopee-side-counter {
  font-size: 12px;
  color: var(--on-surface-variant, #64748b);
  margin-bottom: 12px;
  font-weight: 600;
}
.shopee-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shopee-thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .16s ease;
  background: var(--surface-low, #f8fafc);
}
[data-theme="dark"] .shopee-thumb-item {
  background: #1e2430;
}
.shopee-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shopee-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(238, 77, 45, 0.6);
}
.shopee-thumb-item.active {
  border-color: #ee4d2d; /* Shopee signature orange-red */
  box-shadow: 0 0 0 1px #ee4d2d;
  opacity: 1;
}

@media (max-width: 768px) {
  .shopee-lightbox-card {
    flex-direction: column;
    max-height: 92vh;
    width: 95vw;
  }
  .shopee-main-pane {
    min-height: 280px;
    max-height: 48vh;
    flex: none;
  }
  .shopee-side-pane {
    border-left: none;
    border-top: 1px solid var(--outline-variant, rgba(0,0,0,0.08));
    padding: 14px 16px;
    flex: 1;
  }
  .shopee-side-title {
    font-size: 13.5px;
    margin-bottom: 10px;
  }
  .shopee-side-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .shopee-nav-arrow {
    width: 36px;
    height: 52px;
  }
}

/* ==========================================================================
   PROMO POPUP MODAL (Custom 3D VRChat Avatar)
   ========================================================================== */
.zav-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.zav-promo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.zav-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.zav-promo-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #090d16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85),
              0 0 0 1.5px rgba(139, 92, 246, 0.45),
              0 0 32px -6px rgba(139, 92, 246, 0.4);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.zav-promo-overlay.active .zav-promo-card {
  transform: scale(1) translateY(0);
}

.zav-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.zav-promo-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1) rotate(90deg);
}

.zav-promo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  line-height: 0;
}

.zav-promo-img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.zav-promo-link:hover .zav-promo-img {
  transform: scale(1.015);
  filter: brightness(1.04);
}

@media (max-width: 540px) {
  .zav-promo-card {
    max-width: 88vw;
    border-radius: 16px;
  }
  .zav-promo-img {
    max-height: 78vh;
  }
}

