:root {
  --yellow: #F0CC03; --yellow-dim: #FFF7C0; --mustard: #EEA703;
  --orange: #F84D00; --orange-mid: #A81C02;
  --verde: #25D366; --verde-dark: #1DA851;
  --cream: #FBF8F0; --paper: #F5EFD9; --rule: #E0D5B8; --rule-soft: #EDE6CE;
  --ink: #0A0804; --ink-mid: #4A3A28; --ink-light: #7A6A54;
  --shadow: 3px 3px 0 var(--ink);
  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'IBM Plex Sans Condensed', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { background: var(--ink); color: var(--ink); font-family: var(--body); min-height: 100svh; display: flex; justify-content: center; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.page { width: 100%; max-width: 560px; background: var(--cream); padding-bottom: 110px; position: relative; }
.hidden { display: none !important; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.topbar-main { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; }
.logo-img { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; flex-shrink: 0; }
.topbar-text { flex: 1; min-width: 0; }
.topbar-name { font-family: var(--display); font-size: 27px; letter-spacing: .04em; line-height: 1; display: block; }
.topbar-hours { font-size: 11.5px; font-weight: 500; color: var(--ink-mid); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde-dark); box-shadow: 0 0 0 2px var(--ink); }
.dot.closed { background: var(--orange-mid); }
.search { background: var(--ink); padding: 8px 14px 0; }
.search input { width: 100%; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--cream); background: var(--cream); font-size: 14px; }
.search input::placeholder { color: var(--ink-light); }
.cat-nav { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; background: var(--ink); padding: 9px 14px 11px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill { padding: 6px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: var(--cream); border: 2px solid var(--cream); border-radius: 999px; flex-shrink: 0; transition: background .12s; }
.cat-pill:hover { background: var(--yellow-dim); }
.cat-pill.active { background: var(--yellow); border-color: var(--yellow); }

/* Hero strip */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 14px 4px; }
.mode-chip { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; box-shadow: 2px 2px 0 var(--ink); }
.mode-chip span { display: block; font-size: 22px; margin-bottom: 2px; }
.table-banner { margin: 10px 14px 0; background: var(--ink); color: var(--yellow); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.table-banner button { color: var(--cream); text-decoration: underline; font-size: 12px; }

/* Sections */
.section { border-bottom: 2px solid var(--rule); }
.section-head { padding: 16px 18px 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; border-bottom: 3px solid var(--ink); }
.section-title { font-family: var(--display); font-size: 30px; letter-spacing: .05em; line-height: 1; }
.section-note { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.sub-head { padding: 8px 18px; background: var(--yellow-dim); border-bottom: 1px solid var(--rule); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-mid); }
.info-box { padding: 14px 18px; font-size: 14px; line-height: 1.5; background: var(--paper); color: var(--ink-mid); }

/* Item rows */
.item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--paper); }
.item-thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--yellow-dim); border: 1.5px solid var(--rule); display: grid; place-items: center; font-size: 25px; flex-shrink: 0; }
.item-left { flex: 1; min-width: 0; }
.item-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.item-note { font-size: 12px; color: var(--ink-light); margin-top: 1px; }
.item-price { font-size: 12px; color: var(--ink-mid); margin-top: 3px; font-weight: 600; }
.item-price b { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: .03em; color: var(--orange-mid); }
.item-price i { font-style: normal; color: var(--ink-light); font-size: 11px; margin: 0 2px 0 8px; }
.item-price i:first-child { margin-left: 0; }
.add-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: 24px; font-weight: 700; line-height: 1; flex-shrink: 0; transition: transform .08s, box-shadow .08s; }
.add-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.stepper { display: flex; align-items: center; background: var(--ink); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); font-weight: 700; font-size: 20px; line-height: 1; }
.stepper span { min-width: 28px; text-align: center; color: var(--cream); font-weight: 700; }
.no-results { padding: 40px 20px; text-align: center; color: var(--ink-light); }

/* Cart bar */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.cart-bar button { pointer-events: auto; width: 100%; max-width: 536px; min-height: 54px; background: var(--ink); color: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 0 0 3px var(--yellow); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.cart-bar .cnt { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-right: 10px; }
.cart-bar .tot { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .04em; }

/* Sheets (modal + cart) */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 8, 4, .62); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet { width: 100%; max-width: 560px; max-height: 92svh; background: var(--cream); border: 3px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.overlay.open .sheet { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 10px; border-bottom: 3px solid var(--ink); background: var(--yellow); border-radius: 17px 17px 0 0; }
.sheet-head h2 { font-family: var(--display); font-size: 28px; letter-spacing: .05em; font-weight: 400; line-height: 1; }
.x-btn { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); font-size: 18px; font-weight: 700; flex-shrink: 0; }
.sheet-body { overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 3px solid var(--ink); background: var(--paper); }
.fgroup-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-mid); margin-bottom: 7px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 2px solid var(--rule); border-radius: 10px; background: #fff; margin-bottom: 7px; cursor: pointer; min-height: 46px; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--yellow-dim); box-shadow: 2px 2px 0 var(--ink); }
.opt label, .opt { font-size: 15px; font-weight: 600; }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin-right: 10px; }
.opt .l { display: flex; align-items: center; flex: 1; }
.opt .p { font-family: var(--display); font-size: 19px; letter-spacing: .03em; color: var(--orange-mid); }
.hint { font-size: 12px; color: var(--ink-light); margin-top: -3px; margin-bottom: 7px; }
textarea, .field input, .field select { width: 100%; padding: 12px 13px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: 16px; min-height: 48px; }
textarea { resize: vertical; min-height: 72px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mid); }
.field.err input, .field.err select { border-color: var(--orange-mid); background: #fff1ec; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.btn-main { width: 100%; min-height: 54px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; transition: transform .08s, box-shadow .08s; }
.btn-main:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-main:disabled { opacity: .55; }
.btn-main .pr { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .04em; }
.btn-main.go { background: var(--verde); }
.btn-ghost { text-decoration: underline; font-size: 13px; color: var(--ink-mid); padding: 8px 0; }

/* Cart lines */
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.line-name { font-weight: 700; font-size: 15px; }
.line-sub { font-size: 12px; color: var(--ink-light); grid-column: 1; line-height: 1.4; }
.line-price { font-family: var(--display); font-size: 21px; letter-spacing: .03em; color: var(--orange-mid); text-align: right; }
.line-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.line-actions .rm { font-size: 12px; text-decoration: underline; color: var(--ink-mid); }
.stepper.sm button { width: 28px; height: 28px; font-size: 17px; }
.empty-cart { text-align: center; padding: 30px 10px; color: var(--ink-light); }
.empty-cart span { font-size: 44px; display: block; margin-bottom: 8px; }

/* Order type tabs */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-btn { border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; min-height: 66px; }
.type-btn span { display: block; font-size: 22px; margin-bottom: 2px; }
.type-btn[aria-pressed="true"] { background: var(--yellow); box-shadow: var(--shadow); }
.totals { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.totals .t { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 17px; border-top: 2px solid var(--ink); padding-top: 7px; margin-top: 4px; }
.totals .grand b { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: .04em; }
.notice { font-size: 13px; background: var(--yellow-dim); border: 2px dashed var(--mustard); border-radius: 10px; padding: 9px 12px; line-height: 1.4; }
.notice.warn { background: #fff1ec; border-color: var(--orange-mid); color: var(--orange-mid); font-weight: 600; }

/* Confirmation */
.done { text-align: center; padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.done .big { font-size: 56px; }
.done h3 { font-family: var(--display); font-size: 34px; font-weight: 400; letter-spacing: .05em; line-height: 1; }
.folio { font-family: var(--display); font-size: 44px; letter-spacing: .08em; background: var(--ink); color: var(--yellow); border-radius: 12px; padding: 4px 22px; }

.toast { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -80px); z-index: 120; background: var(--ink); color: var(--yellow); padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; max-width: 90vw; text-align: center; transition: transform .25s; box-shadow: 0 0 0 3px var(--yellow); }
.toast.show { transform: translate(-50%, 0); }
.footer { padding: 26px 18px; text-align: center; font-size: 12px; color: var(--ink-light); line-height: 1.6; }
.in-cart { font-size: 12px; font-weight: 700; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 2px 8px; }
