:root {
  --ink: #2A0A08; --ink-2: #451A16; --bone: #FAF8F5; --card: #FFFFFF;
  --text: #231A17; --muted: #6B5B52; --line: #E2DFD8;
  --gold: #D8A729; --gold-2: #8F6606; --sage: #4E7766; --chilli: #A84332;
  --radius: 16px; --shadow: 0 1px 2px rgba(42,10,8,.04), 0 8px 24px rgba(42,10,8,.06);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif; --display: 'Outfit', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bone); line-height: 1.5; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--gold-2); margin: 0 0 .35rem; }

.c-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(42,10,8,.94); backdrop-filter: blur(14px); color: #F7F0E6; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; color: var(--gold); }
.brand span { white-space: nowrap; }
@media (max-width: 440px) { .hide-sm { display: none; } }
.c-header-right { display: flex; gap: 6px; justify-content: flex-end; }
.pill { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.pill-open { color: #9FD3BE; } .pill-open::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6FBF9C; margin-right: 6px; vertical-align: middle; }
.pill-closed { color: #E6A79C; }
.pill-table { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.c-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; }
.c-intro { padding: 12px 0 16px; }
.brand-hero-logo { width: 136px; height: 136px; object-fit: contain; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 6px 20px rgba(42,10,8,.25); }
.c-intro h1 { font-size: 1.75rem; line-height: 1.15; }
.c-intro p { margin: .4rem 0 0; }
.notice { background: #EEF3F0; color: #2F4D41; border: 1px solid #D5E3DC; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 14px; }
.notice-warn { background: #F8EDEA; color: #7A3428; border-color: #EDD3CD; }

.menu-board { margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.menu-board img { width: 100%; height: auto; display: block; }
@media (min-width: 700px) { .menu-board { max-width: 100%; } }
.cat-chips { position: sticky; top: 58px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; background: var(--bone); scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip { text-decoration: none; white-space: nowrap; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: background-color .2s, color .2s; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat-section { margin-top: 18px; }
.cat-title { font-size: 1.05rem; margin-bottom: 10px; }
.menu-list { display: grid; gap: 4px; }
.menu-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; transition: transform .2s, box-shadow .2s; }
.menu-card:hover { box-shadow: var(--shadow); }
.menu-card.is-out { opacity: .55; }
.menu-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #EFEBE4; }
.menu-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-body h3 { font-size: 1rem; font-weight: 600; }
.menu-body p { margin: 4px 0 0; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.price { font-weight: 700; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; vertical-align: middle; font-family: var(--font); }
.badge-out { background: #F3E1DD; color: var(--chilli); }
.badge-low { background: #FBF0D2; color: #7A5806; }
.badge-ok { background: #E1EEE8; color: #2F5C4A; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; font: 600 .92rem var(--font); padding: 12px 20px; cursor: pointer; text-decoration: none; transition: background-color .2s, transform .15s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover:not(:disabled) { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink); } .btn-gold:hover:not(:disabled) { background: #E9BC4A; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-block { width: 100%; margin-top: 14px; padding: 15px 20px; }

.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bone) 70%, transparent); }
.cart-bar-btn { width: 100%; max-width: 728px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 16px 22px; font: 500 .95rem var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(42,10,8,.25); }
.cart-bar-btn strong { color: var(--gold); }

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(42,10,8,.5); backdrop-filter: blur(4px); animation: fade .2s; }
.sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-panel { border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.sheet-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2; }
.sheet-img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.sheet-title { font-size: 1.3rem; margin: 4px 44px 6px 0; }
.opt-group { border: 0; padding: 0; margin: 16px 0 0; }
.opt-group legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.opt-list { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt.is-checked { border-color: var(--ink); background: #F6F4F0; }
.opt input { accent-color: var(--ink); width: 18px; height: 18px; }
.opt-name { flex: 1; font-weight: 500; }
.opt-price { font-size: .85rem; color: var(--muted); }
.opt.is-out { opacity: .5; cursor: not-allowed; }
.field-label { display: block; font-weight: 700; font-size: .9rem; margin: 16px 0 8px; }
.input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 10px; }
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-weight: 600; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F2EFEA; font-size: 1.1rem; cursor: pointer; }
.qty-val { min-width: 28px; text-align: center; font-weight: 700; }

.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line.is-out { opacity: .7; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; }
.note { color: var(--sage); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.sum-total { font-size: 1.08rem; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .88rem; max-width: 90vw; box-shadow: var(--shadow); animation: up .2s; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, #EFEBE4, #F7F4EF, #EFEBE4); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.c-footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: .85rem; }
.c-footer p { margin: 4px 0; }

.order-page .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.order-page h2 { font-size: 1.05rem; margin-bottom: 10px; }
.order-code { font-size: 1.6rem; letter-spacing: .02em; }
.pay-card { text-align: center; }
.pay-amount { font-family: var(--display); font-size: 2rem; font-weight: 700; margin: 0 0 10px; }
.qr-box { display: flex; justify-content: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 auto 10px; max-width: 300px; }
.qr-box.static img { max-height: 420px; width: auto; }
.steps { text-align: left; padding-left: 20px; }
.steps li { margin: 6px 0; }
.countdown { font-weight: 600; margin: 10px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 8px 0 8px 30px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li::after { content: ''; position: absolute; left: 12px; top: 27px; bottom: -13px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); } .timeline li.done::before { background: var(--sage); border-color: var(--sage); }
.timeline li.current { color: var(--text); font-weight: 700; } .timeline li.current::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(216,167,41,.25); }

/* ===== Tambahan: pilihan tipe pesanan (customer) ===== */
.seg { display: flex; gap: 6px; background: #F2EFEA; border-radius: 999px; padding: 4px; margin-top: 8px; }
.seg-btn { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-btn.active { background: var(--ink); color: #fff; }

.promo-tag { display: block; font-size: .72rem; font-weight: 600; color: #b3261e; }
.promo-tag s { color: #888; font-weight: 400; }

.rec-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }

/* ===== Kios pesan sendiri ===== */
body.kiosk .c-intro, body.kiosk .menu-board, body.kiosk .c-footer, body.kiosk .hide-sm { display: none; }
body.kiosk .btn, body.kiosk .cat-chips button { min-height: 52px; font-size: 1.05rem; }
body.kiosk .c-main { max-width: 960px; }
.kiosk-done { position: fixed; inset: 0; z-index: 90; background: var(--bg, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.kiosk-code { font-family: ui-monospace, monospace; font-size: clamp(1.6rem, 6vw, 3rem); font-weight: 700; letter-spacing: .08em; padding: 14px 22px; border: 3px dashed currentColor; border-radius: 14px; word-break: break-all; }
.kiosk-total { font-size: 1.4rem; font-weight: 700; }
