/* Toko Instan — etalase bergaya aplikasi mobile. Tanpa framework. */
:root {
  --brand: #2F6B4F;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --ink: #17201b;
  --ink-2: #4f5a54;
  --ink-3: #8a948f;
  --line: #e7ebe9;
  --bg: #f6f8f7;
  --card: #fff;
  --ok: #1f8a4c;
  --bad: #d64545;
  --promo: #e5484d;
  --radius: 16px;
  --app-w: 460px;
  --tab-h: 64px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 6px 18px rgba(16, 32, 24, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 14.5px/1.45 var(--font); color: var(--ink); background: #e8eeeb; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.app {
  max-width: var(--app-w); margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative;
  background: var(--bg); padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 12px 48px rgba(16,32,24,.10);
}
@media (min-width: 520px) {
  body { padding: 18px 0 0; }
  .app { min-height: calc(100vh - 18px); border-radius: 28px 28px 0 0; overflow: clip; }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; background: var(--brand-soft); }
.brand-logo-text { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); font-size: 16px; }
.brand-logo.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 24px; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex: none; max-width: 42%; }
.loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.off { background: var(--bad); }
.cart-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); flex: none; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cart-badge.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.3); } }

.view { padding: 12px 14px 8px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Pencarian ---------- */
.search-fake, .search {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3); text-align: left;
}
.search input { flex: 1; border: 0; outline: none; background: transparent; height: 100%; font-size: 15px; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }

.notice { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 500; }
.notice-closed { background: #fff3e6; color: #9a5a00; }

/* ---------- Banner slider ---------- */
.slider { position: relative; margin-top: 12px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; gap: 10px; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  --bc: var(--brand); flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; border-radius: 20px; min-height: 168px;
  padding: 18px 18px 16px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--bc) 55%, #fff) 0%, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--bc) 85%, #fff), var(--bc));
}
.slide .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; opacity: .9; }
.slide h3 { margin: 6px 0 4px; font-size: 21px; line-height: 1.18; max-width: 64%; letter-spacing: -.01em; }
.slide p { margin: 0 0 12px; font-size: 12.5px; opacity: .92; max-width: 60%; }
.slide .cta { align-self: flex-start; background: #fff; color: var(--bc); border: 0; font-weight: 800; font-size: 12px; padding: 8px 14px; border-radius: 10px; letter-spacing: .02em; }
.slide img { position: absolute; right: -6px; bottom: 50%; transform: translateY(50%); width: 42%; max-width: 170px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: #cfd8d4; transition: .2s; }
.dots i.on { width: 18px; background: var(--brand); }

/* ---------- Section ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 10px; }
.sec-head h2 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.sec-head a { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.page-head { margin: 4px 2px 12px; }
.page-head small { color: var(--ink-3); font-size: 12.5px; }
.page-head h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.02em; }

/* Kategori berikon */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 calc((100% - 24px) / 5); min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; }
.cat-ic { width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow); transition: transform .12s; overflow: hidden; }
.cat-ic img { width: 100%; height: 100%; object-fit: cover; }
.cat:active .cat-ic { transform: scale(.94); }
.cat > span:last-child { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; }

/* Chips filter */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -14px 12px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Grid produk ---------- */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.layout-grid2 .grid { grid-template-columns: repeat(2, 1fr); }
.layout-list .grid { grid-template-columns: 1fr; }
@media (max-width: 340px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card { position: relative; background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card:active { transform: scale(.98); }
.card-img { position: relative; aspect-ratio: 1 / .92; background: #f1f3f2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 7px; left: 7px; z-index: 1; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: var(--promo); background: rgba(255,255,255,.92); padding: 2px 6px; border-radius: 6px; text-transform: uppercase; }
.card-body { padding: 8px 8px 9px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 12.5px; margin: 0 0 4px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .desc { display: none; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.price { font-weight: 800; font-size: 13px; color: var(--brand-ink); line-height: 1.2; }
.price s { display: block; font-weight: 500; font-size: 10.5px; color: var(--ink-3); }
.stock { font-size: 10.5px; color: var(--ink-3); margin: -2px 0 4px; }
.soldout { cursor: default; }
.soldout .card-img::after { content: "Habis"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.65); font-weight: 800; color: var(--bad); }
.add { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--brand); color: #fff; font-size: 18px; font-weight: 700; display: grid; place-items: center; flex: none; line-height: 1; padding: 0; }
.add small { font-size: 12px; }
.stepper { display: inline-flex; align-items: center; background: var(--brand-soft); border-radius: 9px; flex: none; }
.stepper button { width: 26px; height: 28px; border: 0; background: transparent; font-size: 17px; font-weight: 800; color: var(--brand); padding: 0; }
.stepper span { min-width: 16px; text-align: center; font-weight: 800; font-size: 13px; }

/* Grid 2 & daftar: kartu lebih lega */
.layout-grid2 .card h3 { font-size: 14px; }
.layout-grid2 .card .desc, .layout-list .card .desc { display: -webkit-box; font-size: 12px; color: var(--ink-3); margin: -2px 0 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.layout-grid2 .price, .layout-list .price { font-size: 15px; }
.layout-grid2 .add, .layout-list .add { width: 34px; height: 34px; border-radius: 10px; }
.layout-list .card { flex-direction: row; }
.layout-list .card-img { width: 100px; aspect-ratio: auto; flex: none; }
.layout-list .card-body { padding: 10px 12px; }
.layout-list .card h3 { font-size: 14.5px; min-height: 0; }

/* ---------- Kartu umum ---------- */
.card-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.card-box h3 { margin: 0 0 10px; font-size: 15px; }
.market-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-btn { --mk: #333; display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 12px; background: var(--mk); color: #fff; font-weight: 700; font-size: 13.5px; flex: 1; min-width: 96px; }
.install { display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border-color: transparent; }
.install div { flex: 1; }
.install b { display: block; font-size: 14px; }
.install small { color: var(--ink-2); font-size: 12.5px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin: 22px 0 4px; }
.muted-p { color: var(--ink-2); margin: 10px 0 0; font-size: 13.5px; }

/* Kontak */
.store-top { display: flex; align-items: center; gap: 12px; }
.store-top b { display: block; font-size: 17px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.status.on { color: var(--ok); } .status.off { color: var(--bad); }
.info-list { list-style: none; margin: 12px 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--ink-3); flex: none; }
.info-list b { text-align: right; font-weight: 600; }
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row .btn { flex: 1; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary { padding: 11px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 18px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }

/* Akun */
.profile .row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.profile b { display: block; font-size: 16px; }
.profile small { color: var(--ink-3); }
.order-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.order-item b { display: block; font-size: 14px; }
.order-item small { color: var(--ink-3); font-size: 12px; }
.order-item .r { text-align: right; flex: none; }
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); margin-top: 3px; }
.st-baru, .st-pending { background: #fff4e5; color: #9a5a00; }
.st-diproses { background: #e7f0ff; color: #1d5bd8; }
.st-siap { background: #efe7ff; color: #6b3fd1; }
.st-selesai, .st-paid { background: #e6f6ec; color: var(--ok); }
.st-batal { background: #fdecec; color: var(--bad); }
.empty { text-align: center; color: var(--ink-3); padding: 34px 16px; font-size: 14px; grid-column: 1 / -1; }
.empty .em { font-size: 40px; display: block; margin-bottom: 6px; }

/* ---------- Bar keranjang & menu bawah ---------- */
.cartbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
  width: min(calc(var(--app-w) - 24px), calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 0; border-radius: 14px; background: var(--brand); color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); animation: up .25s ease;
}
.cartbar-count { min-width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; font-size: 13px; padding: 0 6px; }
.cartbar-label { flex: 1; text-align: left; font-weight: 700; }
@keyframes up { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }

.tabbar {
  position: fixed; z-index: 35; bottom: 0; left: 50%; transform: translateX(-50%); width: min(var(--app-w), 100%);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; position: relative; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }

/* ---------- Sheets ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(10,20,15,.45); z-index: 40; animation: fade .2s; }
.sheet {
  position: fixed; z-index: 50; bottom: 0; left: 50%; transform: translateX(-50%); width: min(var(--app-w), 100%);
  max-height: 92vh; max-height: 92dvh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  animation: sheetUp .26s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 14px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--ink-2); font-size: 15px; }

/* Detail produk */
.pd-img { position: relative; aspect-ratio: 16 / 11; background: #f1f3f2; border-radius: 22px 22px 0 0; overflow: hidden; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-img .icon-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95); }
.pd-info h2 { margin: 0 0 4px; font-size: 19px; }
.pd-info p { margin: 0; color: var(--ink-2); font-size: 14px; }
.pd-price { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--brand-ink); }
.pd-price s { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.opt { margin-top: 16px; }
.opt-title { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.opt-title small { font-weight: 500; color: var(--ink-3); }
.opt label { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt label span { flex: 1; }
.opt label em { font-style: normal; color: var(--ink-3); font-size: 13.5px; }
.opt input { width: 19px; height: 19px; accent-color: var(--brand); margin: 0; }
.pd-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pd-links .mk-btn { font-size: 12.5px; padding: 8px 10px; }
.pd-foot { display: flex; gap: 10px; align-items: center; }
.pd-foot .stepper { height: 48px; border-radius: 12px; }
.pd-foot .stepper button { height: 48px; width: 40px; font-size: 20px; }
.pd-foot .stepper span { font-size: 15px; min-width: 22px; }
.pd-foot .btn { flex: 1; }

/* Keranjang */
.ci { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #f1f3f2; flex: none; }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; font-size: 14.5px; }
.ci-main small { display: block; color: var(--ink-3); font-size: 12.5px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ci-row .stepper button { height: 32px; width: 32px; }
.ci-note { width: 100%; margin-top: 6px; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; background: #fbfcfb; outline: none; }
.ci-note:focus { border-color: var(--brand); border-style: solid; }
.summary { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.summary .total { font-size: 16px; font-weight: 800; color: var(--ink); border-top: 1px dashed #d5ddd9; margin-top: 6px; padding-top: 8px; }

/* Form */
.form .field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.label em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.form input, .form textarea, .profile input, .profile textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; font-size: 16px;
}
.form input:focus, .form textarea:focus, .profile input:focus, .profile textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.form textarea { resize: vertical; }
.hint { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.seg { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 14px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.paylist { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.pay.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 13px; }
.pay b { display: block; font-size: 14px; }
.pay small { color: var(--ink-3); font-size: 12.5px; }
.pay-or { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }
.form-error { color: var(--bad); background: #fdecec; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 10px 0 0; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 13px; border: 0; font-weight: 700; font-size: 14.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:disabled { opacity: .55; }
.btn-wa { background: #25D366; color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 74px); transform: translate(-50%, 20px); background: #17201b; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90%; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Halaman status order ---------- */
.order-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.order-page { padding: 14px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 12px; }
.order-hero { text-align: center; }
.order-hero .ic { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--ok); }
.order-hero .ic.wait { background: #f59f00; }
.order-hero .ic.bad { background: var(--bad); }
.order-hero h1 { font-size: 19px; margin: 0 0 4px; }
.order-hero p { margin: 0; color: var(--ink-2); }
.order-code { display: inline-block; margin-top: 10px; padding: 6px 12px; background: var(--bg); border-radius: 10px; font-weight: 800; letter-spacing: .04em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-3); }
.kv span:last-child { text-align: right; font-weight: 600; }
.steps { display: flex; justify-content: space-between; margin: 16px 0 4px; position: relative; }
.steps::before { content: ""; position: absolute; top: 11px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.step { position: relative; flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.step i { display: block; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.step.on { color: var(--ink); font-weight: 700; }
.step.on i { background: var(--brand); border-color: var(--brand); }
.muted { color: var(--ink-3); font-size: 12.5px; }

/* Fase 2: meja QR, zona ongkir, kode promo */
.notice-table { background: color-mix(in srgb, var(--brand) 14%, #fff); }
.zones { display: grid; gap: 6px; }
.zone { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: 14px; }
.zone b { font-size: 13.5px; }
/* Ongkir per km: peta & pilihan kurir */
.ship-map { margin-top: 8px; }
#ship-map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.ship-map-act { display: flex; gap: 8px; margin-top: 8px; }
.ship-map-act .btn { flex: 1; }
#ship-list:not(:empty) { margin-top: 8px; }
.ship-postal { display: grid; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.ship-postal em { font-style: normal; color: var(--ink-3); }
.zone .zone-t { display: flex; flex-direction: column; }
.zone .zone-t small { color: var(--ink-3); font-size: 12px; }
.zone.on { border-color: var(--brand); background: var(--brand-soft); }
.voucher-row { display: flex; gap: 8px; }
.voucher-row input { flex: 1; min-width: 0; }
.voucher-row .btn { height: auto; flex: none; }
.hint.ok { color: var(--ok); font-weight: 600; }
.hint.bad { color: var(--bad); }
.summary .disc { color: var(--ok); }
.form input[readonly] { background: var(--bg); }

/* ===== Pre-order ===== */
.po-tag { display: inline-block; margin: 2px 0 4px; font-size: 10.5px; font-weight: 700; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 1px 6px; }
.po-box { display: grid; gap: 3px; margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff8e6; border: 1px solid #f5dfa3; font-size: 13.5px; color: #5c4300; }
.po-box small { color: #7a6420; }
.po-line { color: #8a5a00 !important; }
.po-note { display: flex; gap: 6px; margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: #fff8e6; color: #5c4300; font-size: 12.5px; font-weight: 500; }

/* ===== Kartu member (fase 4) ===== */
.mcard { position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.mcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.10); }
.mcard-top { display: flex; justify-content: space-between; font-weight: 700; opacity: .95; }
.mcard-top small { letter-spacing: .14em; font-size: 11px; opacity: .85; }
.mcard-name { font-size: 20px; font-weight: 800; margin-top: 18px; }
.mcard-phone { opacity: .85; font-size: 13px; }
.mcard-pts { margin-top: 14px; font-size: 14px; }
.mcard-pts b { font-size: 28px; }
.mcard-pts small { display: block; opacity: .85; }
.mqr { width: 200px; max-width: 70%; margin: 0 auto; }
.mqr svg { width: 100%; height: auto; display: block; }
.stamp-box { padding: 10px 0; border-top: 1px dashed var(--line); margin-top: 8px; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stamps i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line); }
.stamps i.on { border: 0; background: var(--brand); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.voucher-code { display: inline-block; font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .04em; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 2px 8px; }
.points-box { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.points-box .grow { flex: 1; min-width: 0; }
.points-box b { display: block; }
.points-box small { color: var(--ink-3); }
.member-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); }
.member-box .grow { flex: 1; }
.member-box b { font-size: 22px; }
.member-box a { color: #fff; }
