:root {
  --ink: #0e0e10;
  --ink-2: #1b1b1f;
  --bg: #f4f4f1;
  --card: #ffffff;
  --muted: #6c6c72;
  --line: #e5e5e0;
  --accent: #ff6b1a;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255,107,26,.35); }
.btn-primary:hover { background: #ff7d36; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,244,241,.85); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-mark { font-family: var(--head); font-weight: 800; font-size: 24px; font-style: italic; letter-spacing: -0.04em; }
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-links button { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: #3a3a40; transition: background .2s; }
.nav-links a:hover, .nav-links button:hover { background: rgba(0,0,0,.06); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.6,1);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(255,107,26,.28), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(255,255,255,.06), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 500;
}
.eyebrow b { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.72); max-width: 480px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--head); font-size: 26px; font-weight: 700; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.55); }

.hero-right { position: relative; height: 520px; }
.hero-visual { position: absolute; inset: 30px 0; }

/* ---------- Story 3D (aktif hanya jika WebGL jalan: html.has-3d) ---------- */
.hero-3d, .story-ghost, .story-dots, .hero-hint, .now-chip, .sp-side, .sp-center { display: none; }
.has-3d .hero-visual { display: none; }
.has-3d .story { height: 460vh; overflow: visible; }
.has-3d .story::before { display: none; }
.has-3d .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(900px 600px at 70% 45%, rgba(255,107,26,.16), transparent 70%), radial-gradient(800px 500px at 15% 90%, rgba(120,140,190,.10), transparent 70%), var(--ink); }
.has-3d .hero-3d { display: block; position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: pan-y; }
.hero-3d.grabbing { cursor: grabbing; }
.hero-3d canvas { width: 100%; height: 100%; display: block; }
.has-3d .hero-inner { position: relative; z-index: 2; height: 100%; padding: 68px 0 0; pointer-events: none; }
.has-3d .hero-inner > * { pointer-events: auto; }
.has-3d .hero-right { height: 100%; pointer-events: none; }
.has-3d .now-chip {
  display: inline-flex; position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); pointer-events: auto;
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s;
}
.now-chip:hover { background: rgba(255,255,255,.16); }
.has-3d .story-ghost {
  display: block; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 0; text-align: center;
  font-family: var(--head); font-weight: 800; font-size: clamp(90px, 19vw, 300px); letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.07); white-space: nowrap; pointer-events: none; transition: opacity .4s;
}
.sp { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.sp.off { opacity: 0; transform: translateY(26px); pointer-events: none !important; }
.has-3d .sp-side, .has-3d .sp-center { display: block; position: absolute; z-index: 2; color: #fff; }
.sp-side { top: 50%; width: min(420px, 38vw); margin-top: -150px; }
.sp-side.off { transform: translateY(26px); }
.sp-right { right: max(16px, calc((100vw - 1200px) / 2)); }
.sp-left { left: max(16px, calc((100vw - 1200px) / 2)); }
.sp-num { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.sp h2 { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 14px; }
.sp-side p, .sp-center p { color: rgba(255,255,255,.7); margin: 0 0 18px; font-size: 16px; }
.sp-feats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-feats li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 500; }
.sp-buy { display: flex; align-items: center; gap: 16px; }
.sp-buy b { font-family: var(--head); font-size: 26px; }
.sp-center { left: 16px; right: 16px; bottom: 12%; text-align: center; }
.sp-center.off { transform: translateY(26px); }
.has-3d .story-dots { display: flex; position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 28px; gap: 18px; white-space: nowrap; }
.story-dots span { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.35); display: flex; align-items: center; gap: 8px; transition: color .3s; }
.story-dots span::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width .3s; }
.story-dots span.on { color: #fff; }
.story-dots span.on::before { width: 34px; background: var(--accent); }
.has-3d .hero-hint { display: block; position: absolute; z-index: 3; left: max(16px, calc((100vw - 1200px) / 2)); bottom: 30px; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.45); animation: hintb 2s ease-in-out infinite; }
@keyframes hintb { 50% { transform: translateY(4px); } }
.has-3d .trust { margin-top: 24px; }

/* Header gelap saat di atas story */
.site-header.on-dark { background: rgba(14,14,16,.55); border-color: rgba(255,255,255,.08); }
.site-header.on-dark .logo-mark, .site-header.on-dark .nav-links a, .site-header.on-dark .nav-links button, .site-header.on-dark .icon-btn { color: #fff; }
.site-header.on-dark .logo-sub { color: rgba(255,255,255,.5); }
.site-header.on-dark .nav-links a:hover, .site-header.on-dark .nav-links button:hover, .site-header.on-dark .icon-btn:hover { background: rgba(255,255,255,.1); }
.site-header.on-dark .acc-btn .avatar { background: #fff; color: var(--ink); }
.has-3d .site-header { margin-bottom: -68px; }

/* ---------- Intro 3D ---------- */
#intro { display: none; }
.intro-on #intro {
  display: block; position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at 50% 40%, #1a1a1f 0%, #070708 70%);
  transition: opacity .7s ease, visibility .7s;
}
.intro-lock body { overflow: hidden; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro.leave { opacity: 0; visibility: hidden; }
.intro-word {
  position: absolute; left: 0; right: 0; bottom: 16vh; text-align: center; color: #fff;
  opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s;
}
.intro-word .logo-mark { font-size: 30px; display: block; }
.intro-word small { font-size: 11px; letter-spacing: .4em; color: rgba(255,255,255,.5); font-weight: 600; }
#intro.show-word .intro-word { opacity: 1; transform: none; }
.intro-bar { position: absolute; left: 50%; bottom: 10vh; width: 140px; height: 2px; margin-left: -70px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.intro-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: introbar 3.6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes introbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.intro-skip { position: absolute; top: 20px; right: 20px; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); }
.intro-skip:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-card {
  position: absolute; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); padding: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.c1 { width: 62%; aspect-ratio: 1; left: 20%; top: 6%; z-index: 3; animation: float 7s ease-in-out infinite; }
.hero-card.c2 { width: 40%; aspect-ratio: 1; left: 0; top: 48%; z-index: 2; transform: rotate(-8deg); animation: float 8s ease-in-out -2s infinite; }
.hero-card.c3 { width: 40%; aspect-ratio: 1; right: 0; top: 54%; z-index: 4; transform: rotate(7deg); animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 5; }
.trust-item { background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.trust-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------- Section ---------- */
section.block { padding: 72px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

/* Kategori */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  background: var(--card); border-radius: var(--radius); padding: 14px; text-align: left; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 10px;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.1); }
.cat-img { aspect-ratio: 1.3; border-radius: 12px; overflow: hidden; background: #efefec; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat b { font-family: var(--head); font-size: 15px; }
.cat span { font-size: 12.5px; color: var(--muted); }

/* Toolbar katalog */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s;
}
.chip:hover { border-color: #bdbdb7; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { position: relative; }
.search input {
  height: 42px; width: 230px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  padding: 0 16px 0 40px; outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--ink); }
.search .icon { position: absolute; left: 13px; top: 10px; width: 19px; height: 19px; color: var(--muted); }
.select {
  height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; outline: none;
}

/* ---------- Kartu produk ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.card-img { aspect-ratio: 1; background: #efefec; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 2; font-size: 11.5px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--ink); color: #fff; letter-spacing: .02em;
}
.badge.sale { background: var(--danger); }
.badge.out { background: #8a8a8f; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 8px; }
.price { font-family: var(--head); font-weight: 700; font-size: 17px; }
.price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; display: block; font-family: var(--body); font-weight: 400; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  flex: none; transition: background .2s, transform .2s;
}
.add-btn:hover { background: var(--accent); transform: rotate(90deg); }
.add-btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.add-btn:disabled { background: #c8c8c4; transform: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }

/* Skeleton */
.skel { background: linear-gradient(90deg, #ececE8 25%, #f6f6f3 50%, #ececE8 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Banner QRIS ---------- */
.promo {
  margin-top: 72px; background: var(--ink); color: #fff; border-radius: 28px; padding: 44px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden;
}
.promo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,26,.35), transparent 70%); }
.promo h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.promo p { color: rgba(255,255,255,.7); margin: 0; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; justify-content: flex-end; }
.pay-logos span { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site-footer { margin-top: 90px; background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 30px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover, .site-footer button:hover { color: #fff; }
.site-footer .logo-mark { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Overlay / Modal / Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,10,12,.5); backdrop-filter: blur(3px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 70; width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  background: var(--card); border-radius: 24px; overflow: auto; box-shadow: var(--shadow-lg);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal.sm { width: min(520px, calc(100% - 32px)); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.modal-pad { padding: 28px; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: #efefec; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pd-main { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.pd-thumbs button.active { border-color: var(--ink); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.pd-info h2 { font-size: 26px; padding-right: 30px; }
.pd-price { font-family: var(--head); font-size: 30px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price .price-old { display: inline; font-size: 15px; }
.pd-desc { white-space: pre-line; color: #45454b; font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.stock { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.none { color: var(--danger); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; font-size: 18px; font-weight: 600; }
.qty input { width: 40px; text-align: center; border: 0; outline: none; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.pd-actions .btn { flex: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(430px, 100%); background: var(--card);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.row.total { font-family: var(--head); font-weight: 700; font-size: 18px; }
.ci { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #efefec; }
.ci-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ci .qty { height: 34px; }
.ci .qty button { width: 32px; font-size: 16px; }
.ci .qty input { width: 30px; font-size: 14px; }
.link-danger { color: var(--danger); font-size: 13px; font-weight: 500; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .icon { width: 54px; height: 54px; margin: 0 auto 14px; stroke-width: 1.3; }

/* Form */
.form { display: grid; gap: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; background: #fff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 80px; }
.summary { background: var(--bg); border-radius: 14px; padding: 16px; display: grid; gap: 8px; }
.summary .row { font-size: 14px; }
.err { color: var(--danger); font-size: 13.5px; }

/* Toast */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: tin .3s; transition: opacity .3s, transform .3s; }
.toast-err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

.demo-bar { background: var(--accent); color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; font-weight: 500; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Halaman pesanan ---------- */
.order-page { padding: 40px 0 0; }
.order-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.panel { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 22px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.st-pending { background: #fef3c7; color: #92400e; }
.st-paid { background: #dbeafe; color: #1e40af; }
.st-shipped { background: #ede9fe; color: #5b21b6; }
.st-completed { background: #dcfce7; color: #166534; }
.st-cancelled { background: #f3f4f6; color: #6b7280; }
.steps { display: flex; justify-content: space-between; position: relative; margin: 26px 0 6px; }
.steps::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.steps .bar { position: absolute; top: 15px; left: 8%; height: 3px; background: var(--accent); transition: width .6s; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 25%; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.step i { width: 33px; height: 33px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.step.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done { color: var(--ink); }
.qris-box, .pay-box { text-align: center; }
.bank-card {
  text-align: left; border-radius: 18px; padding: 18px 20px; color: #fff;
  background: linear-gradient(135deg, #0b3d91 0%, #0a2a66 60%, #0e0e10 140%); box-shadow: 0 12px 30px rgba(11,61,145,.25);
}
.bank-card .muted { color: rgba(255,255,255,.65); }
.bank-top { display: flex; justify-content: space-between; align-items: center; }
.bank-logo { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 22px; letter-spacing: .02em; }
.bank-num { font-family: var(--head); font-size: 26px; font-weight: 700; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bank-card .copy { background: rgba(255,255,255,.15); color: #fff; font-family: var(--body); letter-spacing: 0; }
.bank-card .copy:hover { background: rgba(255,255,255,.25); }
.promo-bank { position: relative; z-index: 1; }
.bank-role { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px; }
.bank-role::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 700; }
.owner-note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #dcfce7; color: #14532d; font-size: 13px; text-align: left; line-height: 1.5; }
.owner-note a { font-weight: 700; text-decoration: underline; color: inherit; white-space: nowrap; }
.promo .owner-note { background: rgba(34,197,94,.14); color: #bbf7d0; position: relative; z-index: 1; }
.qris-alt { margin: 4px 0 14px; text-align: left; font-size: 14px; }
.qris-alt summary { cursor: pointer; font-weight: 600; color: var(--muted); }
/* Tombol Customer Service mengambang */
.cs-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 28px rgba(37,211,102,.4); transition: transform .2s;
}
.cs-float:hover { transform: translateY(-2px); }
.cs-float svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
@media (max-width: 720px) { .cs-float span { display: none; } .cs-float { padding: 14px; } }
.qris-frame { width: min(300px, 100%); margin: 6px auto 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); position: relative; }
.qris-frame svg { width: 100%; height: auto; display: block; }
.qris-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-family: var(--head); margin-bottom: 8px; font-size: 14px; }
.qris-head .q { background: #e31e24; color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
.amount { font-family: var(--head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.amount mark { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 4px; }
.copy { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg); }
.copy:hover { background: var(--line); }
.countdown { font-weight: 600; color: var(--warn); }
.howto { text-align: left; background: var(--bg); border-radius: 14px; padding: 14px 18px 14px 34px; font-size: 14px; margin: 16px 0; }
.howto li { margin: 4px 0; }
.upload {
  display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; font-size: 14px;
}
.upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload input { display: none; }
.oi { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.oi:last-of-type { border-bottom: 0; }
.oi img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #efefec; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.notice.ok { background: #dcfce7; color: #14532d; }
.notice.info { background: #dbeafe; color: #1e3a8a; }
.notice.warn { background: #fef3c7; color: #78350f; }
.recent { display: grid; gap: 8px; margin-top: 14px; }
.recent a { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 500; }
.recent a:hover { background: var(--line); }

/* ---------- Akun pelanggan ---------- */
.acc-page { padding: 36px 0 0; }
.auth-card { max-width: 440px; margin: 20px auto 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; }
.auth-tabs button { height: 40px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .2s; }
.auth-tabs button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn { font-size: 13.5px; font-weight: 600; color: var(--muted); justify-self: center; }
.link-btn:hover { color: var(--ink); }
.field small { display: block; margin-top: 5px; font-size: 12.5px; }
.acc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 24px; flex: none; }
.acc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs button { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.acc-tabs button .icon { width: 19px; height: 19px; }
.acc-tabs button.active { color: var(--ink); border-color: var(--accent); }
.ord { padding: 18px 20px; margin-bottom: 14px; }
.panel.ord + .panel.ord { margin-top: 0; }
.ord-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ord-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.ord-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #efefec; flex: none; }
.ord-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ord-resi { background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ord-resi .copy { background: var(--card); }
.ord-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 50px 20px; display: grid; justify-items: center; gap: 6px; }
.empty-state .icon { width: 46px; height: 46px; stroke-width: 1.4; color: var(--muted); margin-bottom: 6px; }
.empty-state p { margin: 0 0 12px; }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .2s;
}
.heart:hover { transform: scale(1.1); }
.heart .icon { width: 19px; height: 19px; }
.heart.on { color: #e11d48; }
.heart.on .icon { fill: currentColor; }
.pd-actions .heart-lg { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.pd-actions .heart-lg.on { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.pd-actions .heart-lg.on .icon { fill: currentColor; }
.acc-btn .avatar { width: 32px; height: 32px; font-size: 14px; }
.save-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 70px; }
  .hero-right { height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  /* story di layar sempit: jam di atas, teks di bawah */
  .has-3d .hero-inner { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; }
  .has-3d .hero-right { display: none; }
  .has-3d .hero-copy .lead, .has-3d .hero-copy .hero-stats { display: none; }
  .has-3d .hero-copy h1 { font-size: clamp(30px, 8vw, 44px); margin: 14px 0 18px; }
  .has-3d .sp-side { left: 16px; right: 16px; width: auto; top: auto; bottom: 70px; margin-top: 0; }
  .has-3d .sp-side p { display: none; }
  .has-3d .sp h2 { font-size: 30px; margin-bottom: 10px; }
  .has-3d .sp-feats { margin-bottom: 14px; }
  .has-3d .story-dots { left: 16px; transform: none; bottom: 24px; gap: 10px; }
  .has-3d .story-dots span { font-size: 11px; }
  .has-3d .hero-hint { display: none; }
  .has-3d .story-ghost { top: 30%; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .nav-links .hide-m { display: none; }
  .logo-sub { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 13.5px; }
  .price { font-size: 15px; }
  .add-btn { width: 34px; height: 34px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-item { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-right { height: 360px; }
  .hero-stats { gap: 22px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .tb-right { display: flex; gap: 8px; }
  .tb-right .search { flex: 1; }
  .promo { grid-template-columns: 1fr; padding: 30px 24px; }
  .pay-logos { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-info { padding: 22px; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 20px; }
  .form-2 { grid-template-columns: 1fr; }
  .amount { font-size: 28px; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
