/* Web pesan pelanggan Yuka — palet Tinta & Zamrud (docs/design-system.md),
   struktur ala kopiplus62.id: navbar → hero → kategori → grid kartu menu →
   keranjang (panel samping di desktop, bar bawah di HP) → status pesanan.
   Breakpoint: < 640 HP, 640–1023 tablet, ≥ 1024 desktop. */
:root {
  --ink: #111827;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-ink: #ffffff;
  --accent-soft: rgba(4, 120, 87, 0.10);
  --glow: #34d399;
  --amber: #92400e;
  --amber-soft: #fef3c7;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f0f0ec;
  --border: #e5e5e0;
  --text: #111827;
  --muted: #4b5563;
  --success: #16a34a;
  --warning: #b45309;
  --error: #dc2626;
  --on-hero: #ffffff;
  --on-hero-muted: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.16);
  --nav-h: 64px;
  --cat0: #b45309; --cat1: #047857; --cat2: #1d4ed8; --cat3: #6d28d9; --cat4: #be185d; --cat5: #0e7490;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0b0f14;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-ink: #052e1f;
    --accent-soft: rgba(52, 211, 153, 0.14);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.14);
    --bg: #0b0f14;
    --surface: #14181d;
    --surface-muted: #1f242b;
    --border: #2f3640;
    --text: #f3f4f6;
    --muted: #c4c9d0;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    --shadow-sm: none;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button, a { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.skip:focus { top: 8px; }

/* ── Tombol ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #ffffff; color: #111827; }
.btn-light:hover { background: #e5e7eb; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: var(--on-hero); background: transparent; }
.btn-outline-light:hover { border-color: #ffffff; }
.btn-block { width: 100%; }

/* ── Muat & galat ── */
.loading, .state { min-height: 70dvh; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state h1 { margin: 0; font-size: 22px; }
.state p { margin: 0; color: var(--muted); max-width: 36ch; }
.state .icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); color: var(--muted); }
.state .icon svg { width: 28px; height: 28px; }
.noscript { padding: 24px; text-align: center; }

/* ── Navbar ── */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: #111827; color: var(--on-hero); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #ffffff; color: #111827; display: grid; place-items: center; font-weight: 800; font-size: 18px; position: relative; }
.brand-mark::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); }
.brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-mode { display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--on-hero-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-mode svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .nav-mode { display: inline-flex; } }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--on-hero); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color 0.18s ease, background-color 0.18s ease; }
.nav-btn:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn .label { display: none; }
@media (min-width: 640px) { .nav-btn .label { display: inline; } }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--glow); color: #052e1f; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.count[hidden] { display: none; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; color: var(--on-hero);
  background:
    radial-gradient(55% 70% at 88% 18%, rgba(52, 211, 153, 0.28), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(4, 120, 87, 0.45), transparent 60%),
    linear-gradient(180deg, #111827 0%, #0b1220 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0); background-size: 22px 22px; }
.hero .wrap { position: relative; display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 72px; padding-bottom: 80px; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(52, 211, 153, 0.14); color: #a7f3d0; font-size: 14px; font-weight: 600; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lead { margin: 0; max-width: 46ch; font-size: clamp(16px, 2vw, 18px); color: var(--on-hero-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--on-hero-muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--glow); flex: none; }
.showcase { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.showcase h2 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.showcase h2 svg { width: 18px; height: 18px; color: #fbbf24; }
.showcase p { margin: 0 0 12px; font-size: 13px; color: var(--on-hero-muted); }
.showcase ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.showcase li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); color: inherit; text-align: left; transition: background-color 0.18s ease; }
.showcase li button:hover { background: rgba(255, 255, 255, 0.10); }
.showcase .rank { flex: none; width: 24px; text-align: center; font-weight: 800; color: #fbbf24; }
.showcase .media { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.showcase .media img, .showcase .media .tile { width: 100%; height: 100%; object-fit: cover; font-size: 22px; }
.showcase .n { font-weight: 600; line-height: 1.3; }
.showcase .p { font-size: 14px; color: var(--on-hero-muted); }
.showcase .go { margin-left: auto; color: var(--glow); display: grid; }
.showcase .go svg { width: 20px; height: 20px; }

/* ── Langkah ── */
.steps-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.steps-strip ol { list-style: none; margin: 0 auto; padding: 16px; max-width: 1200px; display: grid; gap: 12px; }
@media (min-width: 768px) { .steps-strip ol { grid-template-columns: repeat(3, 1fr); padding: 20px 24px; } }
.steps-strip li { display: flex; align-items: center; gap: 12px; }
.steps-strip .no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.steps-strip b { display: block; }
.steps-strip span { font-size: 14px; color: var(--muted); }

/* ── Kategori (lengket di bawah navbar) ── */
.cats { position: sticky; top: var(--nav-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.cats ul { list-style: none; margin: 0 auto; max-width: 1200px; padding: 12px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 640px) { .cats ul { padding: 12px 24px; } }
.cats ul::-webkit-scrollbar { display: none; }
.cats a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color 0.18s ease, background-color 0.18s ease; }
.cats a:hover { border-color: var(--text); }
.cats a .c { font-size: 12px; font-weight: 600; color: var(--muted); }
.cats a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cats a[aria-current="true"] .c { color: inherit; opacity: 0.85; }
.cats a svg { width: 16px; height: 16px; color: #d97706; }
.cats a[aria-current="true"] svg { color: inherit; }

/* ── Tata letak menu + keranjang ── */
.layout { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.menu section { margin-bottom: 40px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.sec-head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.sec-head h2 svg { width: 24px; height: 24px; color: #d97706; }
.sec-head .sub { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Desktop: panel keranjang 360 px di kanan, jadi menu 2 kolom (1024–1279) atau 3 kolom (≥ 1280). */
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empty-menu { padding: 48px 0; text-align: center; color: var(--muted); }

/* Kartu menu */
.card-item { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-item.out { opacity: 0.6; }
.card-item.out:hover { transform: none; box-shadow: var(--shadow-sm); }
.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-muted); aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img, .card-media .tile { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card-item:hover .card-media img, .card-item:hover .card-media .tile { transform: scale(1.04); }
.card-tags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--amber-soft); color: var(--amber); box-shadow: var(--shadow-sm); }
.tag svg { width: 12px; height: 12px; }
.tag.out { background: #111827; color: #ffffff; }
/* Tag di atas foto/tile selalu pekat: di mode gelap latar transparan tidak terbaca di atas foto berwarna. */
.card-tags .tag { background: #fef3c7; color: #92400e; }
.card-tags .tag.out { background: #111827; color: #ffffff; }
.incart { position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.incart[hidden] { display: none; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
@media (min-width: 640px) { .card-body { padding: 14px 16px 16px; } }
.card-body h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.card-body h3 button { padding: 0; border: 0; background: none; text-align: left; font-weight: inherit; line-height: inherit; }
.card-body h3 button:hover { color: var(--accent); }
.card-body .hint { font-size: 13px; color: var(--muted); }
.card-body .pricing { margin-top: auto; padding-top: 8px; }
.card-body .from { font-size: 12px; color: var(--muted); }
.card-body .price { font-size: 17px; font-weight: 800; color: var(--accent); }
.card-body .btn { margin-top: 10px; min-height: 44px; }

/* Tile tanpa foto: warna kategori + inisial (bukan gambar palsu). */
.tile { position: relative; display: grid; place-items: center; color: #ffffff; font-weight: 800; font-size: 48px; background: var(--c, var(--cat0)); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 80% 0%, rgba(255, 255, 255, 0.30), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(0, 0, 0, 0.25), transparent 60%); }
.tile::after { content: ""; position: absolute; inset: 0; opacity: 0.14; background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0); background-size: 14px 14px; }
.tile span { position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

/* ── Panel keranjang (desktop) ── */
.cart-panel { display: none; }
@media (min-width: 1024px) {
  .cart-panel { display: block; position: sticky; top: calc(var(--nav-h) + 84px); max-height: calc(100dvh - var(--nav-h) - 104px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
}
.cart-panel .head { position: sticky; top: 0; z-index: 1; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.cart-panel .head h2 { margin: 0; font-size: 18px; }
.cart-panel .head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cart-panel .body { padding: 4px 20px 20px; display: grid; gap: 16px; }
.cart-empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.cart-empty .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface-muted); display: grid; place-items: center; }
.cart-empty svg { width: 24px; height: 24px; }
.cart-empty b { display: block; color: var(--text); }

/* ── Bar keranjang (HP & tablet) ── */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.10); }
.cartbar[hidden] { display: none; }
@media (min-width: 1024px) { .cartbar { display: none; } }
.cartbar button { display: flex; width: 100%; max-width: 720px; margin: 0 auto; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
body.has-cart .foot .wrap { padding-bottom: 112px; }
@media (min-width: 1024px) { body.has-cart .foot .wrap { padding-bottom: 32px; } }

/* ── Footer ── */
.foot { border-top: 1px solid var(--border); background: var(--surface); }
.foot .wrap { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
@media (min-width: 1024px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot b { color: var(--text); }

/* ── Sheet / modal (dialog) ── */
dialog.sheet { width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); color: var(--text); overflow: hidden; box-shadow: var(--shadow-lg); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: up 0.24s ease-out; }
dialog.sheet::backdrop { background: rgba(17, 24, 39, 0.55); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) {
  dialog.sheet { margin: auto; border-radius: var(--radius-lg); }
  dialog.sheet.wide { max-width: 880px; }
}
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 20px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 18px; line-height: 1.3; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--muted); transition: background-color 0.18s ease; }
.icon-btn:hover { background: var(--surface-muted); }
.icon-btn svg { width: 22px; height: 22px; }
.sheet-body { overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; }
.sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.sheet-foot .btn { flex: 1; }
/* Modal produk di layar lebar: foto kiri, pilihan kanan. */
.product-grid { display: grid; gap: 16px; }
.product-grid .left { display: grid; gap: 12px; }
.product-grid .media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; }
.product-grid .media img, .product-grid .media .tile { width: 100%; height: 100%; object-fit: cover; }
.product-grid .media .tile { font-size: 72px; }
.product-grid .info .price { font-size: 20px; font-weight: 800; color: var(--accent); }
.product-grid .info p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.product-grid .opts { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .product-grid { grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
  .product-grid .left { position: sticky; top: 0; }
}
@media (max-width: 767px) { .product-grid .media { max-height: 220px; } }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
legend .req { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 700; }
legend .opt { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 8px; transition: border-color 0.18s ease, background-color 0.18s ease; cursor: pointer; }
.choice:hover { border-color: var(--text); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.choice span { flex: 1; }
label.field { display: grid; gap: 6px; font-weight: 700; }
label.field .help { font-weight: 400; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="tel"], textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; transition: border-color 0.18s ease; }
input[type="text"]:hover, input[type="tel"]:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 76px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--text); }
.stepper button:hover { background: var(--surface-muted); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }

/* ── Isi keranjang (dipakai panel & sheet) ── */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line .name { font-weight: 700; }
.line .desc { font-size: 14px; color: var(--muted); }
.line .total { text-align: right; font-weight: 700; }
.line .stepper { justify-self: start; margin-top: 6px; }
.sum { display: grid; gap: 4px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .grand { font-size: 18px; font-weight: 800; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border); }
.info { margin: 0; padding: 12px; border-radius: var(--radius-md); background: var(--surface-muted); font-size: 14px; color: var(--muted); }

/* ── Status pesanan ── */
.status { padding-top: 32px; padding-bottom: 64px; display: grid; gap: 20px; }
@media (min-width: 1024px) { .status { grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; padding-top: 48px; } }
.status .col { display: grid; gap: 20px; }
.status-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.status-card .big-icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.status-card .big-icon svg { width: 36px; height: 36px; }
.status-card.bad .big-icon { background: rgba(220, 38, 38, 0.10); color: var(--error); }
.status-card.wait .big-icon { background: var(--amber-soft); color: var(--warning); }
.status-card h1 { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.status-card p { margin: 8px auto 0; max-width: 40ch; color: var(--muted); }
.order-no { margin: 16px 0 0; font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: 0.02em; color: var(--text); }
.steps { list-style: none; margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 16px; box-shadow: var(--shadow-sm); }
.step { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.step .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.step .dot svg { width: 16px; height: 16px; }
.step.done { color: var(--text); }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.now { color: var(--text); font-weight: 700; }
.step.now .dot { border-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 20px 20px; box-shadow: var(--shadow-sm); }
.card h2 { margin: 12px 0 0; font-size: 18px; }
.offline { margin: 0; text-align: center; font-size: 14px; color: var(--warning); }
.offline:empty { display: none; }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--radius-md); background: #111827; color: #ffffff; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.toast.show { opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
