/* Val's BBQ Express — one stylesheet. Tokens first. */
:root {
  --accent: #E4572E;
  --accent-ink: #fff;
  --accent-soft: #FDECE6;
  --ink: #161616;
  --ink-2: #4a4a4a;
  --muted: #8a8580;
  --bg: #F6F4F1;
  --card: #ffffff;
  --line: #ECE8E3;
  --ok: #2E7D4F;
  --ok-soft: #E3F2E9;
  --warn: #A86514;
  --warn-soft: #FBEFD9;
  --bad: #C0392B;
  --bad-soft: #FBE4E0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --tap: 48px;
  --bar: 56px;
  --tabbar: 62px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.i { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.sec { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 8px; }
.btn.danger { background: var(--card); color: var(--bad); border-color: var(--line); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }

/* ───────────── Forms ───────────── */
.form { display: grid; gap: 14px; }
.form h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
label > input, label > select, label > textarea, label > .money-input, label > .seg { margin-top: 6px; }
label > .money-input { display: block; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: var(--tap); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 16px; /* 16px stops iPhone zooming on focus */ font-weight: 400; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238a8580' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 96px; resize: vertical; }
input[type="date"], input[type="time"] { display: block; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
input[type="file"] { padding: 11px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 6px; flex: none; position: relative; }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > * { min-width: 0; }
.money-input { position: relative; }
.money-input::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.money-input input { padding-left: 28px; }
.big-input input { font-size: 28px; font-weight: 700; min-height: 64px; letter-spacing: -.01em; }
.big-input.money-input::before { font-size: 28px; font-weight: 700; left: 16px; }
.big-input.money-input input { padding-left: 36px; }
.help { font-size: .8rem; color: var(--muted); font-weight: 400; }
label > .help { margin-left: 4px; }
label > input ~ .help, label > .seg ~ .help, label > .money-input ~ .help, label > select ~ .help { display: block; margin: 6px 0 0; }
.file-pick { position: relative; display: block; }
.file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.file-pick .btn { pointer-events: none; }
.file-pick.has-file .btn { border-color: var(--ok); color: var(--ok); }

/* Segmented pills */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label { flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.stepper button { width: 46px; height: 46px; font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.stepper button:active { background: var(--bg); }
.stepper input { width: 56px; min-height: 46px; border: 0; border-radius: 0; text-align: center; padding: 0; font-weight: 700; box-shadow: none; }

/* ───────────── App shell ───────────── */
body.app { min-height: 100vh; min-height: 100dvh; }
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line); padding-top: var(--safe-t);
}
.appbar-in { max-width: 760px; margin: 0 auto; height: var(--bar); display: flex; align-items: center; gap: 4px; padding: 0 calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l)); }
.appbar-title { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
.appbar-btn + .appbar-title { padding-left: 0; }
.appbar-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.appbar-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); }
.appbar-btn:active { background: var(--bg); }
.appbar-actions .btn.sm { margin-right: 4px; }
.dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }

.app-main {
  max-width: 760px; margin: 0 auto;
  padding: 16px calc(16px + var(--safe-r)) calc(var(--tabbar) + var(--safe-b) + 28px) calc(16px + var(--safe-l));
  animation: fade .18s ease-out;
}
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
}
.tabbar a { flex: 1; max-width: 152px; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabbar a.on { color: var(--accent); }
.tabbar a:active .tab-ic { transform: scale(.9); }
.tab-ic { position: relative; transition: transform .12s ease; }
.tab-ic .dot { top: -6px; right: -12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); transform: translateX(-50%); z-index: 40; width: min(92vw, 520px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: toast-in .25s ease-out; }
.toast.err { background: var(--bad); }
.toast.hide { opacity: 0; transform: translate(-50%, 8px); transition: all .3s ease; }
.toast + .toast { bottom: calc(var(--tabbar) + var(--safe-b) + 68px); }
body.auth .toast, body.site .toast { bottom: calc(var(--safe-b) + 16px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ───────────── Building blocks ───────────── */
.section { margin-top: 22px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 8px; }
.section-head h2, .section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.section-head a { font-size: .9rem; font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.pad-0 { padding: 0; overflow: hidden; }

.hero-stat { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px; }
.hero-stat .label { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hero-stat .value { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.hero-stat .sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .9rem; }
.hero-stat .sub span { opacity: .75; }
.hero-stat .sub strong { font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.stat .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.wide { grid-column: 1 / -1; }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.action { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; font-size: .95rem; min-width: 0; }
.action .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.action span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action:active { transform: scale(.98); }

/* Lists */
.list { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; color: var(--ink); min-width: 0; }
a.li:active, button.li:active { background: var(--bg); }
button.li { width: 100%; text-align: left; }
.li-main { flex: 1; min-width: 0; }
.li-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { font-size: .84rem; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.li-end { flex: none; text-align: right; display: flex; align-items: center; gap: 8px; }
.li-end .amount { font-weight: 700; white-space: nowrap; }
.li-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--ink-2); flex: none; }
.li-ic.accent { background: var(--accent-soft); color: var(--accent); }
.li .chev { color: #c9c3bc; }
.li-form { display: flex; align-items: center; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.icon-btn:active { background: var(--bg); }
.icon-btn.del:hover, .icon-btn.del:active { color: var(--bad); }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.tag.low, .tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

.note { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }
.note.ok { background: var(--ok-soft); border-color: transparent; color: #1f5a38; }
.note.err { background: var(--bad-soft); border-color: transparent; color: #8c2a1f; }
.note.warn { background: var(--warn-soft); border-color: transparent; color: #7a4a0e; }
.note + .note, .note + form, .note + .card { margin-top: 12px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); margin-bottom: 16px; }
.banner .banner-ic { color: var(--accent); flex: none; }
.banner .banner-text { flex: 1; min-width: 0; font-size: .9rem; }
.banner .banner-text strong { display: block; }

.empty { text-align: center; padding: 36px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.empty-title { font-weight: 700; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

details.more-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
details.more-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 600; cursor: pointer; }
details.more-box > summary::-webkit-details-marker { display: none; }
details.more-box > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
details.more-box[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.more-box > .more-body { padding: 0 16px 16px; }

/* Chips row (filters / categories) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Sell grid */
.sell-bar { position: sticky; top: calc(var(--safe-t) + var(--bar)); z-index: 10; background: var(--bg); margin: -16px -16px 0; padding: 12px 16px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.sell-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sell-row .seg { flex: 1; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 84px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-align: left; min-width: 0; transition: transform .1s ease, border-color .1s; }
.tile:active { transform: scale(.96); border-color: var(--accent); }
.tile-name { font-weight: 700; font-size: .95rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-price { font-size: .88rem; color: var(--muted); font-weight: 600; }
.cat-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin: 20px 4px 8px; scroll-margin-top: calc(var(--safe-t) + var(--bar) + 130px); }

/* Bars (reports / today) */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .82rem; }
.bar-track { display: grid; gap: 3px; min-width: 0; }
.bar { height: 8px; border-radius: 4px; background: var(--accent); min-width: 3px; }
.bar.exp { background: #CFC8BF; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 6px; vertical-align: -1px; }
.legend i.exp { background: #CFC8BF; }

.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.share-row:first-child { border-top: 0; }
.share-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .meter { width: 70px; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; flex: none; }
.share-row .meter span { display: block; height: 100%; background: var(--accent); }
.share-row .amount { font-weight: 700; white-space: nowrap; min-width: 74px; text-align: right; }

.receipt-thumb { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-weight: 600; min-width: 0; }
code.copy { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .8rem; word-break: break-all; user-select: all; }

/* ───────────── Auth (login / installer) ───────────── */
body.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.auth-card .brand-mark { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.auth-card .form { margin-top: 20px; }
.auth-card .note { margin-top: 16px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 16px 0 4px; font-size: .82rem; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--bad); font-weight: 700; }

/* ───────────── Public website ───────────── */
body.site { background: #fff; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l)); }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(22, 22, 22, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; padding-top: var(--safe-t); }
.site-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.site-logo { color: #fff; font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-nav-links { display: flex; align-items: center; gap: 22px; flex: none; }
.site-nav-links a:not(.btn) { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.site-hero { background: #161616; color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.site-hero::after { content: ""; position: absolute; right: -200px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 87, 46, .5), rgba(228, 87, 46, 0) 65%); pointer-events: none; }
.site-hero .wrap { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-hero h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; max-width: 12ch; }
.site-hero .lead { font-size: 1.08rem; color: rgba(255, 255, 255, .78); max-width: 32rem; margin: 18px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-section { padding: 64px 0; }
.site-section.alt { background: var(--bg); }
.site-section h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); letter-spacing: -.03em; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.menu-cat { margin-top: 28px; scroll-margin-top: 80px; }
.menu-cat h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.menu-list { list-style: none; display: grid; grid-template-columns: 1fr; column-gap: 40px; }
.menu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.menu-list .m-name { font-weight: 600; }
.menu-list .m-desc { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.menu-list .m-price { font-weight: 700; white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.info { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); min-width: 0; }
.info .i { color: var(--accent); margin-top: 2px; }
.info strong { display: block; }
.info span { color: var(--ink-2); font-size: .95rem; }
.site-foot { background: #161616; color: rgba(255, 255, 255, .6); font-size: .88rem; padding: 24px 0 calc(24px + var(--safe-b)); }
.site-foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: rgba(255, 255, 255, .6); }
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.page-404 h1 { font-size: 3rem; letter-spacing: -.03em; }

@media (min-width: 720px) {
  .menu-list { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat.wide { grid-column: auto; }
  .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .site-nav-links a:not(.btn) { display: none; }
  .site-hero { padding: 56px 0 64px; }
  .site-section { padding: 48px 0; }
}
@media (max-width: 360px) {
  .row2 { grid-template-columns: 1fr; }
  .hero-stat .value { font-size: 2rem; }
  .tabbar a { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Shopping items expand in place */
details.shop-item > summary { list-style: none; cursor: pointer; }
details.shop-item > summary::-webkit-details-marker { display: none; }
details.shop-item[open] > summary { background: var(--bg); }
details.shop-item[open] .li-ic { background: var(--accent); color: #fff; }

/* Menu ↔ stock link rows */
.link-row { grid-template-columns: minmax(0, 1fr) 96px; }

/* Sell: search, stock status on tiles, quick-add feedback */
.sell-search { position: relative; }
.sell-search input { padding-left: 40px; min-height: 44px; }
.sell-search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tile { position: relative; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.tile .tag { height: 20px; padding: 0 7px; font-size: .68rem; }
.tile.added { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.tile.added::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--ok); font-weight: 800; }
.li.new { animation: flash-in 1.2s ease-out; }
@keyframes flash-in { from { background: var(--ok-soft); } to { background: transparent; } }
.no-match { display: none; }
.no-match.show { display: block; margin-top: 16px; }

/* ───────────── Vals POS register ───────────── */
.sell-bar .chips { margin-top: 2px; }
.tile.in-ticket { border-color: var(--accent); background: #fffaf8; }
.tile.added { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile.added::after { content: none; }
.tile-qty { position: absolute; top: -8px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--accent); color: #fff; font-weight: 800; font-size: .82rem; line-height: 26px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

body.has-cart .app-main { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 96px); }
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 25; padding: 8px calc(12px + var(--safe-r)) 10px calc(12px + var(--safe-l)); background: linear-gradient(to top, rgba(246,244,241,1) 60%, rgba(246,244,241,0)); }
.cartbar-main { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 736px; margin: 0 auto; min-height: 56px; padding: 0 18px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 24px rgba(228, 87, 46, .32); }
.cartbar-main:active { transform: scale(.98); }
.cartbar-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: rgba(255,255,255,.22); line-height: 28px; text-align: center; font-size: .9rem; }
.cartbar-label { flex: 1; text-align: left; }
.cartbar strong { font-size: 1.1rem; white-space: nowrap; }
.toast { z-index: 60; }
body.has-cart .toast { bottom: calc(var(--tabbar) + var(--safe-b) + 84px); }

.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0); transition: background .2s ease; display: flex; align-items: flex-end; justify-content: center; }
.sheet.open { background: rgba(0,0,0,.38); }
.sheet-panel { width: 100%; max-width: 760px; max-height: calc(100% - var(--safe-t) - 24px); display: flex; flex-direction: column; background: var(--bg); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .22s ease-out; overflow: hidden; }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { font-size: 1.1rem; font-weight: 700; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px calc(16px + var(--safe-r)) 16px calc(16px + var(--safe-l)); }
.sheet-foot { flex: none; padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l)); background: var(--card); border-top: 1px solid var(--line); }
.sheet-foot-row { display: flex; gap: 10px; }
.btn.grow { flex: 1; min-height: 54px; font-size: 1.05rem; }
.sheet-foot .btn.sec { min-height: 54px; }
.sheet-foot [data-ticket-new] { min-height: 54px; font-size: 1.05rem; }
body.sheet-open { overflow: hidden; }

.ticket-line { gap: 10px; }
.stepper.sm button { width: 38px; height: 38px; font-size: 1.2rem; display: grid; place-items: center; }
.stepper-val { min-width: 26px; text-align: center; font-weight: 700; }
.line-amt { min-width: 64px; text-align: right; font-weight: 700; white-space: nowrap; }

.ticket-sum { display: grid; gap: 10px; font-size: .95rem; }
.ticket-sum > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-sum > div > span:first-child { color: var(--ink-2); }
.ticket-sum .grand { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.3rem; font-weight: 800; }
.ticket-sum .grand span:first-child { color: var(--ink); }
.ticket-sum .disc { width: 120px; }
.ticket-sum .disc input { min-height: 40px; text-align: right; }
.change-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; padding-top: 4px; }
.change-row strong { font-size: 1.4rem; }

.done { text-align: center; padding: 28px 8px 12px; }
.done-check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done-num { font-weight: 700; color: var(--ink-2); }
.done-total { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; }
.done-change { margin: 16px auto 0; display: inline-block; padding: 10px 18px; border-radius: 12px; background: var(--warn-soft); color: #7a4a0e; font-weight: 800; font-size: 1.2rem; }

/* Menu photos (admin) */
.menu-photo-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--bg); }
.li-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg); }
.li-thumb.empty { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.1rem; }

/* ───────────── Public photo menu ───────────── */
.menu-nav { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
.menu-nav .chips { margin: 0 calc(-20px - var(--safe-l)); padding: 0 calc(20px + var(--safe-l)); }
.menu-nav .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.9); min-height: 34px; }
.menu-nav .chip:active, .menu-nav .chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu-hero { background: #161616; color: #fff; padding: 40px 0 44px; position: relative; overflow: hidden; }
.menu-hero::after { content: ""; position: absolute; right: -220px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 87, 46, .45), rgba(228, 87, 46, 0) 65%); pointer-events: none; }
.menu-hero .wrap { position: relative; z-index: 1; }
.menu-hero h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; }
.menu-hero .lead { color: rgba(255,255,255,.78); margin-top: 10px; font-size: 1.05rem; max-width: 34rem; }
.hero-facts { list-style: none; display: grid; gap: 8px; margin-top: 18px; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-facts li { display: flex; align-items: flex-start; gap: 10px; }
.hero-facts .i { color: var(--accent); margin-top: 2px; }
.hero-facts a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.site-menu { padding: 8px 0 48px; }
.site-menu .menu-cat { margin-top: 36px; scroll-margin-top: 124px; }
.site-menu .menu-cat h2 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.dish-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dish { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.dish-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.dish-noimg { display: grid; place-items: center; background: linear-gradient(135deg, #2a2a2a, #161616); }
.dish-noimg span { color: var(--accent); font-size: 2.6rem; font-weight: 800; opacity: .9; }
.dish-body { padding: 14px 16px 16px; }
.dish-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.site-menu .dish h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; min-width: 0; margin: 0; color: var(--ink); text-transform: none; letter-spacing: -.01em; }
.dish-price { font-weight: 800; white-space: nowrap; color: var(--accent); }
.dish p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.menu-note { margin-top: 24px; }
@media (min-width: 560px) { .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  /* Phones: compact rows, photo on the left, so more of the menu fits on screen */
  .dish { flex-direction: row; align-items: stretch; }
  .dish-img { width: 116px; height: auto; min-height: 104px; aspect-ratio: auto; flex: none; }
  .dish-noimg span { font-size: 1.8rem; }
  .dish-body { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
  .dish-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dish p { font-size: .86rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Register: bigger, calmer product buttons */
.sell-bar { gap: 10px; }
[data-pos] .tiles { gap: 10px; }
[data-pos] .tile { min-height: 92px; padding: 14px; border-radius: 16px; }
[data-pos] .tile-name { font-size: 1rem; }
[data-pos] .tile-price { font-size: .95rem; color: var(--ink-2); }
[data-pos] .cat-title { margin-top: 18px; }

/* ───────────── Vals POS sign-in ───────────── */
body.pos-login {
  min-height: 100vh; min-height: 100dvh; margin: 0; color: #fff;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(228, 87, 46, .55), rgba(228, 87, 46, 0) 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(228, 87, 46, .22), rgba(228, 87, 46, 0) 60%),
    #121212;
  display: flex; align-items: center; justify-content: center;
  padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b));
}
.pl-wrap { width: 100%; max-width: 400px; }
.pl-brand { text-align: center; margin-bottom: 28px; animation: fade .35s ease-out; }
.pl-icon { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 14px 40px rgba(228, 87, 46, .35), 0 0 0 1px rgba(255,255,255,.08); }
.pl-brand h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.pl-brand p { color: rgba(255,255,255,.6); margin-top: 6px; font-size: .95rem; }
.pl-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 22px 18px; display: grid; gap: 16px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: fade .45s ease-out; }
.pl-field { display: grid; gap: 7px; color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; }
.pl-field input { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; min-height: 52px; border-radius: 14px; font-size: 16px; padding: 0 16px; }
.pl-field input::placeholder { color: rgba(255,255,255,.35); }
.pl-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228, 87, 46, .25); background: rgba(255,255,255,.1); }
.pl-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #2a2422 inset; caret-color: #fff; }
.pl-pass { position: relative; display: block; }
.pl-pass input { padding-right: 72px; }
.pl-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 40px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }
.pl-show:active { background: rgba(255,255,255,.08); }
.pl-btn { margin-top: 4px; min-height: 54px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 12px 28px rgba(228, 87, 46, .35); transition: transform .12s ease; }
.pl-btn:active { transform: scale(.98); }
.pl-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,.55); font-size: .82rem; }
.pl-note .i { color: var(--accent); }
.pl-error { background: rgba(192, 57, 43, .18); border: 1px solid rgba(192, 57, 43, .45); color: #ffd7d1; border-radius: 12px; padding: 11px 14px; font-size: .9rem; }
.pl-foot { text-align: center; color: rgba(255,255,255,.4); font-size: .8rem; margin-top: 20px; }

/* ═════════════ Public website (welcoming redesign) ═════════════ */
body.site { --display: "Bricolage Grotesque", "Inter", -apple-system, sans-serif; font-family: "Inter", var(--font); background: #FFFCF8; color: #1b1715; }
body.site .wrap { max-width: 1120px; }
body.site h1, body.site h2, body.site h3 { font-family: var(--display); }

/* Nav: transparent over the photo, solid after scrolling */
.w-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: var(--safe-t); color: #fff; transition: background .25s ease, box-shadow .25s ease; }
.w-nav.solid { background: rgba(22, 18, 16, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.w-nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w-logo { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w-nav-links { display: flex; align-items: center; gap: 24px; flex: none; }
.w-nav-links > a:not(.w-pill) { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; }
.w-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 18px rgba(228, 87, 46, .35); }

/* Hero */
.w-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: radial-gradient(110% 70% at 80% 0%, rgba(228, 87, 46, .55), rgba(228, 87, 46, 0) 60%), radial-gradient(80% 60% at 0% 100%, rgba(228, 87, 46, .25), rgba(228, 87, 46, 0) 60%), #161210; }
.w-hero:not(.has-photo)::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px); }
.w-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.w-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,7,.55) 0%, rgba(10,8,7,.15) 30%, rgba(10,8,7,.55) 62%, rgba(10,8,7,.92) 100%); }
.w-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 56px; animation: rise .7s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.w-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.w-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(228, 87, 46, .3); }
.w-hero h1 { margin-top: 18px; font-size: clamp(2.7rem, 11vw, 5.6rem); line-height: .98; font-weight: 800; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
.w-hero h1 span { display: block; font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.w-lead { margin-top: 16px; max-width: 34rem; font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: rgba(255,255,255,.85); }
.w-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.w-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; box-shadow: 0 10px 26px rgba(228, 87, 46, .35); transition: transform .15s ease, box-shadow .15s ease; }
.w-btn:hover { transform: translateY(-1px); }
.w-btn.glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.w-btn.ghost { background: transparent; color: #1b1715; border: 1.5px solid #e5ddd5; box-shadow: none; }
.w-hours { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(255,255,255,.75); font-size: .92rem; }
.w-hours .i { color: var(--accent); }

/* Welcome */
.w-welcome { padding: 72px 0 40px; }
.w-welcome-head { max-width: 640px; }
.w-welcome h2, .w-sec-head h2, .w-visit h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.w-welcome-head p { margin-top: 14px; font-size: 1.08rem; color: #5b524c; line-height: 1.6; }
.w-highlights { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.w-hl { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #F0E8E0; box-shadow: 0 1px 2px rgba(60, 30, 10, .04); }
.w-hl strong { display: block; font-size: 1.02rem; }
.w-hl span:not(.w-hl-ic) { display: block; color: #6b625b; font-size: .93rem; margin-top: 2px; }
.w-hl-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }

/* Favourites rail */
.w-favs { padding: 28px 0 8px; }
.w-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.w-sec-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.w-note { color: #8a817a; font-size: .85rem; white-space: nowrap; }
.w-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(20px, calc((100vw - 1120px) / 2 + 20px)) 20px; scroll-padding: 0 20px; }
.w-rail::-webkit-scrollbar { display: none; }
.w-fav { position: relative; flex: none; width: min(72vw, 300px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; scroll-snap-align: start; color: #fff; box-shadow: 0 12px 30px rgba(40, 20, 10, .16); }
.w-fav img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.w-fav:hover img { transform: scale(1.04); }
.w-fav::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75)); }
.w-fav-info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.w-fav-info strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; }
.w-fav-info em { font-style: normal; font-weight: 700; background: var(--accent); padding: 5px 11px; border-radius: 999px; font-size: .88rem; white-space: nowrap; }

/* Menu */
.w-menu { padding: 48px 0 64px; }
.w-tabs-bar { position: sticky; top: calc(64px + var(--safe-t)); z-index: 30; background: rgba(255, 252, 248, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #F0E8E0; margin-bottom: 8px; }
.w-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; scroll-behavior: smooth; }
.w-tabs::-webkit-scrollbar { display: none; }
.w-tabs a { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #ECE3DA; color: #4a423c; font-weight: 600; font-size: .92rem; }
.w-tabs a.on { background: #1b1715; border-color: #1b1715; color: #fff; }
.w-cat { padding-top: 28px; scroll-margin-top: calc(64px + 60px + var(--safe-t)); }
.w-cat-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.w-dishes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.w-dish { display: flex; background: #fff; border: 1px solid #F0E8E0; border-radius: 20px; overflow: hidden; min-width: 0; box-shadow: 0 1px 2px rgba(60, 30, 10, .04); scroll-margin-top: 140px; }
.w-dish-img { width: 118px; flex: none; object-fit: cover; align-self: stretch; min-height: 118px; background: #f3ece5; }
.w-dish-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.w-dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.w-dish h4 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; min-width: 0; }
.w-price { flex: none; font-weight: 700; color: var(--accent); font-size: 1rem; }
.w-dish p { margin-top: 5px; color: #6b625b; font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-dish.no-photo { border-left: 4px solid var(--accent); }
.w-empty { padding: 40px 0; color: #6b625b; font-size: 1.05rem; }

/* Visit */
.w-visit { padding: 72px 0; background: #F6EFE8; }
.w-visit-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.w-visit-lead { margin-top: 10px; color: #5b524c; font-size: 1.05rem; }
.w-facts { list-style: none; display: grid; gap: 16px; margin: 26px 0 4px; }
.w-facts li { display: flex; gap: 14px; align-items: flex-start; }
.w-facts strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8a817a; margin-bottom: 2px; }
.w-facts a, .w-facts span:not(.w-hl-ic) { color: #1b1715; font-size: 1.02rem; font-weight: 500; }
.w-map { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9dfd5; box-shadow: 0 12px 30px rgba(40, 20, 10, .12); }
.w-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.w-foot { background: #161210; color: rgba(255,255,255,.7); padding: 48px 0 calc(28px + var(--safe-b)); }
.w-foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.w-foot-name { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.w-foot-tag { margin-top: 6px; max-width: 26rem; }
.w-foot-list { list-style: none; display: grid; gap: 12px; }
.w-foot-list li { display: flex; gap: 10px; align-items: flex-start; }
.w-foot-list .i { color: var(--accent); margin-top: 2px; }
.w-foot-list a, .w-foot-list span { color: rgba(255,255,255,.85); }
.w-foot-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.45); }

@media (min-width: 720px) {
  .w-highlights { grid-template-columns: repeat(3, 1fr); }
  .w-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-dish { flex-direction: column; }
  .w-dish-img { width: 100%; height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .w-dish-body { justify-content: flex-start; padding: 16px 18px 18px; }
  .w-visit-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .w-foot-grid { grid-template-columns: 1.2fr 1fr; }
  .w-hero-in { padding-bottom: 80px; }
}
@media (min-width: 1000px) { .w-dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .w-nav-links > a:not(.w-pill) { display: none; } }
.w-dishes { align-items: start; }

/* POS buttons with the product photo */
[data-pos] .tile.has-photo { padding: 0; overflow: hidden; gap: 0; justify-content: flex-start; }
[data-pos] .tile.has-photo .tile-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg); }
[data-pos] .tile.has-photo .tile-name { padding: 10px 12px 0; }
[data-pos] .tile.has-photo .tile-foot { padding: 4px 12px 12px; margin-top: auto; }
[data-pos] .tile.has-photo .tile-qty { z-index: 2; }
[data-pos] .tile { overflow: visible; }
[data-pos] .tile.has-photo { overflow: visible; }
[data-pos] .tile.has-photo .tile-img { border-radius: 15px 15px 0 0; }
[data-pos] .tiles { align-items: start; }
