/* Layout: band-band penuh seperti referensi; HP = satu kolom & katalog 2 kolom, tablet 3, desktop 4 */
:root {
  --wall: #e7ebe3;
  --ledge: #f5f7f2;
  --bg: #f1f3ee;
  --surface: #ffffff;
  --well: #edf0e9;
  --well-hi: #f7f9f5;
  --ink: #1d2719;
  --ink-2: #56624f;
  --ink-3: #87917f;
  --line: #e1e6dc;
  --line-strong: #cdd5c6;
  --brand: #55a02b;
  --brand-ink: #2c6a19;
  --btn: #3f8d1e;
  --btn-hover: #357b18;
  --brand-soft: #e6f0dc;
  --bar: #1f3a15;
  --star: #d9a21b;
  --danger: #b93a2e;
  --focus: #2f7ad8;
  --chat-bg: #efeae2;
  --bubble: #d9fdd3;
  --bubble-ink: #111b21;
  --shadow: 0 1px 2px rgba(30, 45, 25, .06), 0 6px 18px rgba(30, 45, 25, .07);
  --shadow-lift: 0 2px 4px rgba(30, 45, 25, .07), 0 14px 30px rgba(30, 45, 25, .12);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 60px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #1b2219; --ledge: #242d21; --bg: #131811; --surface: #1b2219; --well: #232c20; --well-hi: #2a3427;
    --ink: #e6ede2; --ink-2: #aab5a3; --ink-3: #7f8a79; --line: #2c3729; --line-strong: #3a4836;
    --brand: #4a8f25; --brand-ink: #9ad670; --btn: #4a9a22; --btn-hover: #57ab2b; --brand-soft: #22341d;
    --bar: #2c5420; --star: #e3b12f; --danger: #ec7a6c; --focus: #7fb2ff;
    --chat-bg: #0b141a; --bubble: #005c4b; --bubble-ink: #e9edef;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .22);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 34px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #1b2219; --ledge: #242d21; --bg: #131811; --surface: #1b2219; --well: #232c20; --well-hi: #2a3427;
  --ink: #e6ede2; --ink-2: #aab5a3; --ink-3: #7f8a79; --line: #2c3729; --line-strong: #3a4836;
  --brand: #4a8f25; --brand-ink: #9ad670; --btn: #4a9a22; --btn-hover: #57ab2b; --brand-soft: #22341d;
  --bar: #2c5420; --star: #e3b12f; --danger: #ec7a6c; --focus: #7fb2ff;
  --chat-bg: #0b141a; --bubble: #005c4b; --bubble-ink: #e9edef;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .22);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 34px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
body.lock { overflow: hidden; }
body.has-bar .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.i { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--btn); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.art { display: block; width: 100%; height: 100%; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 5px; border: 1px solid var(--btn);
  background: var(--btn); color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; font-size: 15.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--brand-ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--brand-soft); border-color: var(--btn); }
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0;
  color: var(--brand-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; justify-self: start;
}
.link-btn .i { width: 18px; height: 18px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.muted { color: var(--ink-3); font-weight: 600; font-size: 12.5px; padding: 0; }

.stepper {
  display: grid; grid-template-columns: 40px minmax(36px, 1fr) 40px; height: 40px;
  border: 1px solid var(--btn); border-radius: 5px; overflow: hidden; background: var(--surface);
}
.stepper button { border: 0; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: color-mix(in srgb, var(--btn) 22%, var(--surface)); }
.stepper .i { width: 16px; height: 16px; }
.stepper output { display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.stepper.sm { height: 34px; grid-template-columns: 34px 40px 34px; width: max-content; }
.stepper.sm output { font-size: 14px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-ink); min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark .i { width: 19px; height: 19px; }
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: .07em; font-size: 15px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; }
.badge {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; background: var(--btn); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--surface); font-variant-numeric: tabular-nums;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--wall); overflow: hidden; --ledge-h: 46px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--ledge-h);
  background: var(--ledge); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent), 0 -1px 0 rgba(0, 0, 0, .035);
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 4px; padding-block: 30px 0; }
.hero-copy { display: grid; gap: 14px; justify-items: start; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 8.6vw, 52px);
  line-height: 1.04; letter-spacing: .005em; text-transform: uppercase; color: var(--brand-ink); text-wrap: balance;
}
.hero-lead { color: var(--ink-2); max-width: 40ch; font-size: 15px; }
.hero-art { margin: 0 -10px 12px; aspect-ratio: 420 / 300; max-width: calc(100% + 20px); }

/* ---------- fitur ---------- */
.features { background: var(--surface); border-bottom: 1px solid var(--line); }
.features-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; padding: 18px 6px; min-width: 0; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .i { width: 28px; height: 28px; color: var(--brand-ink); }
.feature h3 { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.feature p { display: none; font-size: 12.5px; color: var(--ink-3); max-width: 28ch; line-height: 1.45; }

/* ---------- promo ---------- */
.promo { display: grid; background: var(--surface); }
.promo-media { display: none; background: var(--well); place-items: center; padding: 20px; min-width: 0; }
.promo-media .art { max-width: 420px; height: auto; aspect-ratio: 320 / 260; }
.promo-panel { background: var(--brand); padding-block: 28px; padding-left: var(--gut-l); padding-right: var(--gut-r); display: grid; place-items: center; min-width: 0; }
.deal-card {
  background: var(--surface); border-radius: 6px; box-shadow: 0 14px 34px rgba(16, 48, 8, .22);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; width: 100%; max-width: 440px;
}
.deal-info { padding: 16px; display: grid; gap: 7px; align-content: start; min-width: 0; }
.deal-pct {
  justify-self: start; min-width: 58px; height: 44px; padding: 0 10px; border: 1px solid var(--line);
  background: var(--well-hi); display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 16px; color: var(--brand-ink); margin-bottom: 6px;
}
.deal-kicker { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink); }
.deal-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 6.4vw, 32px); color: var(--brand-ink); text-transform: uppercase; line-height: .98; }
.deal-sub { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.deal-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.deal-price b { font-size: 17px; color: var(--ink); }
.deal-price s { font-size: 12.5px; color: var(--ink-3); }
.deal-cta { padding-top: 4px; }
.deal-media { border: 0; padding: 10px; background: radial-gradient(110% 80% at 50% 30%, var(--well-hi), var(--well)); cursor: pointer; min-width: 0; display: grid; place-items: center; }
.deal-media .art { aspect-ratio: 1; height: auto; }

/* ---------- katalog ---------- */
.catalog { scroll-margin-top: calc(var(--header-h) + 4px); }
.save-row { display: grid; gap: 14px; padding-block: 28px 12px; }
.save-row h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 6vw, 31px);
  line-height: 1.08; text-transform: uppercase; color: var(--brand-ink); text-wrap: balance;
}
.save-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat {
  width: 100%; height: 100%; display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center;
  padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer;
}
.stat:hover { border-color: var(--btn); }
.stat b { font-family: var(--font-display); font-size: 18px; line-height: 1.1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }

.toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 30;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-block: 10px;
}
.toolbar-in { display: grid; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 12px; height: 44px; color: var(--ink-3);
}
.search:focus-within { border-color: var(--btn); box-shadow: 0 0 0 3px var(--brand-soft); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r));
  padding-left: var(--gut-l); padding-right: var(--gut-r); scroll-padding-inline: var(--gut-l);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.chip small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.result-note { font-size: 12.5px; color: var(--ink-3); padding-block: 4px 10px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 44px; }
.card {
  background: var(--surface); border-radius: 8px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / .86; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 18%, var(--well-hi), var(--well));
}
.card-media .art, .card-media img { position: absolute; inset: 5% 7% 1%; width: 86%; height: 94%; object-fit: contain; }
.tag-disc {
  position: absolute; top: 8px; right: 8px; background: var(--btn); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 3px; font-variant-numeric: tabular-nums;
}
.tag-note {
  position: absolute; top: 8px; left: 8px; background: var(--surface); color: var(--brand-ink);
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; flex: 1; min-width: 0; }
.card-name {
  font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card-unit { font-size: 12px; color: var(--ink-3); }
.card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-variant-numeric: tabular-nums; }
.card-price b { font-size: 16px; font-weight: 800; color: var(--brand-ink); }
.card-price s { font-size: 12px; color: var(--ink-3); }
.card-meta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.card-meta .sold { display: none; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 11px; height: 11px; fill: currentColor; opacity: .28; }
.stars svg.on { opacity: 1; }
.card-cta { margin-top: auto; padding-top: 9px; }
.card-cta .btn, .card-cta .stepper { width: 100%; }
.out { font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: block; text-align: center; padding: 10px 0; border: 1px dashed var(--line-strong); border-radius: 5px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 36px 12px; color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }
.empty .art { width: 140px; height: 140px; }

/* ---------- band QR ---------- */
.qr-band { display: grid; background: var(--surface); scroll-margin-top: var(--header-h); }
.qr-left { background: var(--brand); color: #fff; min-width: 0; }
.qr-left-in { padding-block: 34px; padding-left: var(--gut-l); padding-right: var(--gut-r); display: grid; gap: 14px; justify-items: start; }
.qr-left h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 6vw, 30px); text-transform: uppercase; line-height: 1.08; color: #fff; text-wrap: balance; }
.qr-left p { color: rgba(255, 255, 255, .88); max-width: 42ch; font-size: 14px; }
.qr-mini {
  background: #fff; border: 0; border-radius: 10px; padding: 10px 10px 8px; width: 168px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 40, 4, .25); display: grid; gap: 4px; justify-items: center; margin-top: 4px;
}
.qr-mini .qr-svg { width: 148px; height: 148px; }
.qr-mini small { color: #2c6a19; font-weight: 800; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.qr-right { min-width: 0; }
.qr-right-in { padding-block: 30px 34px; padding-left: var(--gut-l); padding-right: var(--gut-r); display: grid; gap: 18px; align-items: center; }
.qr-right h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); }
.steps li::before {
  counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; font-size: 13px;
}
.steps b { color: var(--ink); }
.qr-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.pot-art { display: none; width: 150px; aspect-ratio: 160 / 190; background: var(--well); border-radius: 4px; padding: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 26px 28px; font-size: 13.5px; color: var(--ink-2); }
.footer-in { display: grid; gap: 16px; }
.footer .brand { margin-bottom: 2px; }
.footer dl { margin: 0; display: grid; gap: 10px; }
.footer dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer dd { margin: 2px 0 0; color: var(--ink); }
.footer .wa-num { user-select: all; font-weight: 700; font-variant-numeric: tabular-nums; }
.footer small { color: var(--ink-3); }

/* ---------- bar keranjang (HP) ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; pointer-events: none;
  padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
}
.cartbar-in {
  pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: var(--bar); color: #fff; border-radius: 14px; padding: 8px 8px 8px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28); animation: rise .3s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: .3; } }
.cartbar-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 4px; }
.cartbar-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.cartbar-sum span { display: grid; min-width: 0; line-height: 1.2; }
.cartbar-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cartbar-sum small { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar-go { height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: #fff; color: #23501a; font-weight: 800; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cartbar-go .i { width: 18px; height: 18px; transform: rotate(180deg); }

/* ---------- sheet: bottom sheet di HP, panel kanan di desktop ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(12, 20, 10, .48); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
  background: var(--surface); border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.sheet-root.open .scrim { opacity: 1; }
.sheet-root.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sh-head { display: flex; align-items: center; gap: 8px; padding: 6px var(--gut-r) 10px var(--gut-l); border-bottom: 1px solid var(--line); flex: none; }
.sh-head h2 { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-scroll { grid-template-columns: minmax(0, 1fr); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gut-r) 18px var(--gut-l); flex: 1; min-height: 0; display: grid; gap: 16px; align-content: start; }
.sh-foot { flex: none; border-top: 1px solid var(--line); padding: 12px var(--gut-r) 14px var(--gut-l); display: grid; gap: 10px; background: var(--surface); }
.sh-foot.row { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.sh-foot.two { grid-template-columns: 1fr 1fr; }

/* keranjang */
.ship { background: var(--brand-soft); border-radius: 10px; padding: 12px; display: grid; gap: 8px; font-size: 13px; color: var(--brand-ink); }
.ship b { font-variant-numeric: tabular-nums; }
.ship-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--btn) 20%, transparent); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--btn); border-radius: 3px; transition: width .3s; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.line-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--well); padding: 4px; overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-info { display: grid; gap: 5px; min-width: 0; justify-items: start; }
.line-info b { font-size: 14px; line-height: 1.3; }
.line-info span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.line-total { display: grid; justify-items: end; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.sum { margin: 0; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.sum dt { min-width: 0; }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.sum .save dd { color: var(--brand-ink); }
.sum .total { font-size: 16px; color: var(--ink); font-weight: 800; padding-top: 7px; border-top: 1px dashed var(--line-strong); }
.sum .total dd { color: var(--brand-ink); font-weight: 800; }
.note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.note.warn { color: var(--danger); }

/* form checkout */
.form { gap: 14px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: 13px; font-weight: 700; color: var(--ink); padding: 0; }
.field > legend { margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); padding: 10px 12px; font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--btn); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.prefix:focus-within { border-color: var(--btn); box-shadow: 0 0 0 3px var(--brand-soft); }
.prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--well); font-weight: 700; color: var(--ink-2); border-right: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.hint { font-size: 12px; color: var(--ink-3); }
.err { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.field.invalid input, .field.invalid textarea, .field.invalid .prefix { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; cursor: pointer; display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span, .seg button {
  width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px;
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13.5px; font-weight: 600;
  line-height: 1.25; background: var(--surface); color: var(--ink); cursor: pointer;
}
.seg input:checked + span, .seg button[aria-pressed="true"] { border-color: var(--btn); background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--btn); }
.seg input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ref-note { font-size: 12.5px; color: var(--ink-2); background: var(--well); border-radius: 8px; padding: 8px 10px; }
.alert { border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--ink); border-radius: 10px; padding: 12px; display: grid; gap: 10px; font-size: 13.5px; }
.alert b { color: var(--danger); }
.btn-wa .i { width: 20px; height: 20px; }
.fine { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.45; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sukses */
.ok { display: grid; justify-items: center; text-align: center; gap: 8px; padding-top: 4px; }
.ok-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--btn); display: grid; place-items: center; }
.ok-mark .i { width: 32px; height: 32px; stroke-width: 2.4; }
.ok h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.ok p { color: var(--ink-2); font-size: 14px; max-width: 36ch; }
.order-id { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 6px; user-select: all; }
.mini-lines { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.mini-lines li span:first-child { min-width: 0; }
.mini-lines .tot { border-top: 1px dashed var(--line-strong); padding-top: 6px; font-weight: 800; color: var(--brand-ink); }
.wa-preview { background: var(--chat-bg); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.wa-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; }
.bubble { justify-self: end; max-width: 100%; background: var(--bubble); color: var(--bubble-ink); border-radius: 10px 2px 10px 10px; padding: 8px 10px 6px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.bubble time { display: block; text-align: right; font-size: 10.5px; opacity: .6; margin-top: 2px; }

/* detail produk */
.pd-media { position: relative; aspect-ratio: 1 / .78; border-radius: 12px; background: radial-gradient(120% 90% at 50% 18%, var(--well-hi), var(--well)); overflow: hidden; }
.pd-media .art, .pd-media img { position: absolute; inset: 4% 14% 0; width: 72%; height: 96%; object-fit: contain; }
.pd-info { display: grid; gap: 6px; }
.pd-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pd-name { font-family: var(--font-display); font-size: 22px; line-height: 1.15; color: var(--ink); }
.pd-price b { font-size: 21px; }
.pd-desc { color: var(--ink-2); font-size: 14.5px; }

/* QR share */
.qr-frame { display: grid; justify-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--brand); color: #fff; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: min(236px, 66vw); aspect-ratio: 1; }
.qr-svg { display: block; width: 100%; height: 100%; }
.qr-cap { display: grid; justify-items: center; text-align: center; gap: 2px; }
.qr-cap b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.qr-cap span { font-size: 12.5px; opacity: .88; }
.qr-fail { color: #2c6a19; font-size: 13px; text-align: center; padding: 30px 10px; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; font-size: 13px; color: var(--ink-2); background: var(--well); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px); width: max-content; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.lock .toast { bottom: auto; top: calc(16px + env(safe-area-inset-top, 0px)); }

/* ---------- breakpoint ---------- */
@media (min-width: 400px) {
  .card-meta .sold { display: inline; }
}
@media (min-width: 560px) {
  .feature { padding: 26px 18px; }
  .feature h3 { font-size: 14px; }
  .feature p { display: block; }
  .promo { grid-template-columns: 1fr 1fr; }
  .promo-media { display: grid; }
  .promo-panel { padding-block: 34px; }
}
@media (min-width: 720px) {
  .hero { --ledge-h: 66px; }
  .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: end; padding-top: 46px; gap: 24px; }
  .hero-copy { padding-bottom: calc(var(--ledge-h) + 44px); }
  .hero-lead { font-size: 15.5px; }
  .hero-art { margin: 0 0 18px; max-width: 100%; }
  .save-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 40px; }
  .save-stats { grid-template-columns: repeat(3, 120px); gap: 0; }
  .stat { border: 0; border-radius: 0; background: none; }
  .save-stats li + li .stat { border-left: 1px solid var(--line); }
  .toolbar-in { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: center; }
  .chips { margin: 0; padding: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .card-body { padding: 12px 14px 14px; }
  .card-name { font-size: 15px; }
  .qr-band { grid-template-columns: 1fr 1fr; }
  .qr-left-in { padding-block: 46px; height: 100%; align-content: center; }
  .qr-right-in { grid-template-columns: minmax(0, 1fr) 150px; height: 100%; }
  .pot-art { display: block; }
  .footer-in { grid-template-columns: 1.2fr 2fr; align-items: start; }
  .footer dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); padding-top: env(safe-area-inset-top, 0px); }
  .sheet-handle { display: none; }
  .sh-head { padding-top: 14px; }
  .toast { bottom: 110px; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- branding klien ---------- */
.brand-mark.has-img { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 36px rgba(20, 40, 10, .18); }
.promo-media .promo-photo { width: 100%; max-width: 420px; aspect-ratio: 320 / 260; object-fit: cover; border-radius: 8px; }
.closed-bar { background: var(--bar); color: #fff; font-size: 13.5px; }
.closed-in { display: flex; align-items: center; gap: 10px; padding-block: 10px; flex-wrap: wrap; }
.closed-in .i { width: 18px; height: 18px; flex: none; }
.closed-in span { flex: 1; min-width: 12em; }
.closed-in a { color: #fff; font-weight: 800; white-space: nowrap; }
.seg.one { grid-template-columns: minmax(0, 1fr); }
.pay-info { display: grid; gap: 8px; justify-items: start; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px; background: var(--well-hi); font-size: 14px; }
.pay-info p { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.pay-info img { width: min(220px, 70%); border-radius: 8px; background: #fff; }
.pay-info small { color: var(--ink-3); }
