/* Cardápio digital · demonstração Origins Tech. Mobile-first. */
:root {
  --brand: #B3361F; --on-brand: #fff; --accent: #2F5233; --on-accent: #fff;
  --bg: #F5EEE3; --paper: #FFFBF4; --ink: #221C17; --ink-2: #5E534A; --ink-3: #6E6257;
  --line: #E6DBCB; --line-2: #D8CAB5;
  --ok: #2E6B3A; --warn: #8A5A00; --err: #A3261A;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgb(34 28 23 / .06), 0 8px 24px -12px rgb(34 28 23 / .25);
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bar-h: 44px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 118px); }
body { margin: 0; font: 400 16px/1.5 var(--f-ui); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, #000); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.loading { padding: 40vh 20px; text-align: center; color: var(--ink-2); }
.ico { display: inline-flex; flex: none; }

/* ---------- barra de demonstração ---------- */
.demo-bar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: #16120F; color: #F3EBDD; font-size: 13px; }
.demo-tag { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.demo-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #F2B53A; box-shadow: 0 0 0 3px rgb(242 181 58 / .25); }
.demo-switch { margin-inline: auto; display: flex; background: #2A2420; border-radius: 999px; padding: 3px; }
.demo-switch a { text-decoration: none; padding: 5px 12px; border-radius: 999px; color: #CFC4B5; font-weight: 600; }
.demo-switch a[aria-current] { background: #F3EBDD; color: #16120F; }
.demo-actions { display: flex; gap: 6px; align-items: center; }
.demo-btn { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid #3B342E; color: #E7DDCE; border-radius: 999px; padding: 5px 9px; font-size: 13px; }
.demo-cta { text-decoration: none; font-weight: 700; color: #16120F; background: #F2B53A; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.show-xs { display: none; }
@media (max-width: 560px) { .hide-sm { display: none; } }
@media (max-width: 380px) { .hide-xs { display: none; } .show-xs { display: inline; } .demo-bar { gap: 4px; padding: 0 6px; } .demo-switch a { padding: 5px 9px; } }
.is-preview { --bar-h: 0px; }

/* ---------- botões e controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: transform .15s var(--ease), background .2s, opacity .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgb(0 0 0 / .04); }
.btn-danger { background: var(--err); color: #fff; }
.btn-whats { background: #1F7A4A; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.danger { color: var(--err) !important; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; }
.icon-btn:hover:not(:disabled) { background: rgb(0 0 0 / .06); }
.icon-btn:disabled { opacity: .35; }
.icon-btn.is-on { color: #C98A10; }
.icon-btn.is-on svg { fill: currentColor; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.sm .icon-btn { width: 32px; height: 32px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: color-mix(in srgb, var(--accent) 80%, #000); text-transform: lowercase; }
.badge-promo { background: var(--brand); color: var(--on-brand); text-transform: none; }
.badge-dark { background: var(--ink); color: #fff; text-transform: none; }
.badge-off { background: #eee; color: #666; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hint { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.hint.warn { color: var(--warn); background: #FFF3D6; border-radius: var(--r-sm); padding: 8px 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 999px; padding: 4px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s; text-align: center; }
.seg small { font-weight: 500; font-size: 11.5px; opacity: .75; }
.seg input:checked + span { background: var(--paper); box-shadow: var(--shadow); color: var(--brand); }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); }

/* ---------- cardápio ---------- */
.menu-layout { max-width: 1240px; margin: 0 auto; }
.cat-rail, .comanda-col { display: none; }
.menu-main { padding: 0 16px 120px; min-width: 0; }
.store-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 22px 0 14px; }
.logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.logo-mono { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 600 30px/1 var(--f-display); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--on-brand) 22%, transparent); }
.logo-sm { width: 36px; height: 36px; font-size: 17px; }
.logo-lg { width: 88px; height: 88px; font-size: 40px; }
.store-id h1 { font: 600 clamp(28px, 7vw, 40px)/1 var(--f-display); letter-spacing: -.01em; font-variation-settings: 'opsz' 120; }
.tagline { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
.store-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.store-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.status { font-weight: 700; color: var(--err); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--ok); }
.info-btn { align-self: start; border: 1px solid var(--line-2); }
.closed-note { background: #FFF3D6; color: var(--warn); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }

.featured { margin: 6px -16px 8px; }
.featured .eyebrow { padding: 0 16px 10px; }
.feat-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(76%, 300px); gap: 12px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feat-track::-webkit-scrollbar { display: none; }
.feat-track li { scroll-snap-align: start; }
.feat { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: #2a221c; text-align: left; color: #fff; }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feat:hover img { transform: scale(1.04); }
.feat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(18 12 8 / .88)); }
.feat-txt { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 4px; justify-items: start; }
.feat-name { font: 600 21px/1.1 var(--f-display); }
.feat .price { color: #fff; }
.feat .price .was { color: rgb(255 255 255 / .7); }

.sticky-tools { position: sticky; top: var(--bar-h); z-index: 20; background: var(--bg); margin: 0 -16px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 44px; outline: none; color: var(--ink); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--paper); transition: background .2s, color .2s; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat { padding-top: 26px; }
.cat h2 { font: 600 25px/1.1 var(--f-display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 6px; }
.cat-note { font: 500 13px var(--f-ui); color: var(--ink-3); }
.prod-list li + li { border-top: 1px dashed var(--line-2); }
.prod { display: grid; grid-template-columns: 1fr auto; gap: 14px; width: 100%; padding: 16px 0; border: 0; background: transparent; text-align: left; align-items: center; border-radius: var(--r-sm); }
.prod:hover .prod-name { color: var(--brand); }
.prod-txt { display: grid; gap: 4px; min-width: 0; }
.prod-name { font-weight: 700; font-size: 16.5px; transition: color .2s; }
.prod-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); }
.price small { font-size: 12.5px; color: var(--ink-3); }
.price strong { font: 600 18px var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.price .was { font-size: 13px; color: var(--ink-3); }
.prod-img { position: relative; width: 104px; height: 104px; border-radius: var(--r); background: #eadfcd; display: grid; place-items: center; color: var(--ink-3); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.prod-img.is-round { border-radius: 50%; background: #2a221c; }
.prod-img.is-round img { transform: scale(1.22); }
.prod-img.is-round { overflow: hidden; }
.prod-add { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--brand); box-shadow: var(--shadow); }
.prod-img.is-round .prod-add { right: 4px; bottom: 4px; }
.empty { padding: 40px 0; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--ink-2); }
.menu-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.made-by { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); }
.made-by:hover strong { text-decoration: underline; }

.cart-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 16px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); }
.cart-bar strong { margin-left: auto; font-family: var(--f-display); font-size: 18px; }
.cart-count { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--on-brand) 18%, transparent); }
.cart-bar.bump .cart-count { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- comanda ---------- */
.comanda { position: relative; background: var(--paper); border-radius: 4px; padding: 22px 18px 20px; display: grid; gap: 16px;
  box-shadow: var(--shadow);
  --tooth: radial-gradient(circle at 8px 0, transparent 6px, var(--paper) 6.5px);
}
.comanda::before, .comanda::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--tooth); background-size: 16px 8px; }
.comanda::before { top: -8px; transform: scaleY(-1); }
.comanda::after { bottom: -8px; }
.comanda.in-sheet { box-shadow: none; padding: 0; background: transparent; }
.comanda.in-sheet::before, .comanda.in-sheet::after { display: none; }
.comanda-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.comanda.in-sheet .comanda-head { display: none; }
.comanda-title { font: 700 22px var(--f-display); }
.comanda-no { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.comanda-empty { text-align: center; padding: 18px 0; display: grid; gap: 4px; }
.ci-list { display: grid; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.ci-title { font-weight: 700; }
.ci-line { font-size: 13.5px; color: var(--ink-2); }
.ci-warn { font-size: 13px; color: var(--err); font-weight: 600; }
.ci.is-off .ci-title { text-decoration: line-through; color: var(--ink-3); }
.ci-side { display: grid; justify-items: end; gap: 6px; align-content: start; }
.ci-side strong { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.totals { margin: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font: 700 20px var(--f-display); }
.totals .grand dt { color: var(--ink); }

/* ---------- diálogos ---------- */
.dlg-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(20 14 10 / .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .22s; }
.dlg-backdrop.open { opacity: 1; }
.dlg { width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px 22px 0 0; transform: translateY(40px); transition: transform .3s var(--ease); }
.dlg-backdrop.open .dlg { transform: none; }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px 20px; }
.dlg-head h2 { font: 600 22px/1.15 var(--f-display); flex: 1; }
.dlg-body { overflow-y: auto; padding: 6px 20px 20px; overscroll-behavior: contain; }
.dlg-foot { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 22px 22px; }
.dlg-sm .dlg-body p { color: var(--ink-2); }
@media (min-width: 720px) {
  .dlg-backdrop { align-items: center; padding: 24px; }
  .dlg { max-width: 560px; border-radius: 22px; transform: translateY(16px) scale(.98); }
  .dlg-sm { max-width: 420px; }
  .dlg-product { max-width: 640px; }
}

/* produto */
.pd { display: grid; gap: 18px; }
.pd-visual { display: grid; justify-items: center; gap: 10px; padding-top: 4px; }
.pd-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r); }
.pz { position: relative; width: min(62vw, 240px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #2a221c; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.pz-part { position: absolute; inset: 0; transition: clip-path .45s var(--ease); }
.pz-part img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
.pz.is-half .pz-0 { clip-path: inset(0 50% 0 0); }
.pz.is-half .pz-1 { clip-path: inset(0 0 0 50%); animation: half-in .45s var(--ease); }
@keyframes half-in { from { clip-path: inset(0 0 0 100%); } }
.pz-cut { position: absolute; left: calc(50% - 1.5px); top: 0; bottom: 0; width: 3px; background: var(--paper); }
.pd-halves { display: flex; gap: 20px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pd-desc { color: var(--ink-2); }
.pd-info { display: grid; gap: 8px; }
.pd-promo { display: flex; gap: 6px; align-items: center; color: var(--brand); font-weight: 600; font-size: 14px; }
.opt-group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.opt-group legend, .legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-weight: 700; font-size: 15.5px; margin-bottom: 8px; padding: 0; }
.legend.sm { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.req { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .size-grid { grid-template-columns: repeat(4, 1fr); } }
.size { position: relative; display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.size input { position: absolute; opacity: 0; }
.size:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--paper)); }
.size:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.size-name { font-weight: 700; }
.size-sub { font-size: 12.5px; color: var(--ink-3); }
.size-price { font: 600 16px var(--f-display); margin-top: 4px; display: flex; gap: 6px; align-items: baseline; }
.size-price s { font: 400 12px var(--f-ui); color: var(--ink-3); }
.flavor-list { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.flavor { display: grid; grid-template-columns: auto 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.flavor:has(input:checked) { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.flavor img, .flavor-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #2a221c; }
.flavor-name { font-weight: 600; }
.flavor-price { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
input[type=radio], input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.addon-price { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
textarea, .field input, .field select, .adm input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .adm select {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
textarea:focus, .field input:focus, .field select:focus, .adm input:focus, .adm select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.dlg-product .dlg-foot { justify-content: space-between; }
.btn-add { flex: 1; justify-content: space-between; max-width: 360px; }
.btn-add strong { font-family: var(--f-display); font-size: 17px; }

/* finalização */
.checkout { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-weight: 600; font-size: 14.5px; }
.req-dot { color: var(--brand); }
.field-err { color: var(--err); font-size: 13px; min-height: 0; }
.field-err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.row-2 { display: grid; gap: 12px; }
@media (min-width: 480px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.pay-grid { display: grid; }
.ticket { white-space: pre-wrap; word-break: break-word; font: 13.5px/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 14px; margin: 0 0 14px; max-height: 46dvh; overflow: auto; }
.demo-note { font-size: 13.5px; background: #FFF6E0; border: 1px solid #F0D9A0; color: #5C4510; border-radius: var(--r-sm); padding: 10px 12px; }
.dlg-info h3 { font: 600 17px var(--f-display); margin: 18px 0 6px; }
.dlg-info .status { margin-bottom: 6px; }
.hours li, .facts li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.facts li { display: block; }
.hours li.today { font-weight: 700; }

/* toast */
#toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="err"] { background: var(--err); }
#toast[data-kind="warn"] { background: #6B4A00; }

/* ---------- cardápio: tablet e desktop ---------- */
@media (min-width: 768px) {
  .menu-main { padding: 0 28px 120px; }
  .sticky-tools { margin: 0 -28px; padding: 12px 28px 0; }
  .featured { margin: 6px -28px 8px; }
  .featured .eyebrow, .feat-track { padding-inline: 28px; }
  .feat-track { grid-auto-columns: 280px; }
  .prod-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .prod-list li + li { border-top: 0; }
  .prod-list li { border-bottom: 1px dashed var(--line-2); }
  .prod-img { width: 112px; height: 112px; }
  .logo { width: 76px; height: 76px; }
}
@media (min-width: 1100px) {
  .menu-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) 360px; gap: 32px; padding: 0 24px; }
  .menu-main { padding: 0 0 80px; }
  .sticky-tools { margin: 0; padding: 12px 0 0; }
  .sticky-tools .chips { display: none; }
  .sticky-tools { border-bottom: 0; padding-bottom: 8px; }
  .featured { margin: 6px 0 8px; }
  .featured .eyebrow, .feat-track { padding-inline: 0; }
  .cat-rail { display: block; position: sticky; top: calc(var(--bar-h) + 28px); align-self: start; padding-top: 28px; }
  .cat-rail .chips { flex-direction: column; gap: 2px; overflow: visible; }
  .cat-rail .chips a { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; }
  .cat-rail .chips a.on { background: var(--ink); color: #fff; }
  .comanda-col { display: block; position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; margin-top: 32px; max-height: calc(100dvh - var(--bar-h) - 56px); overflow-y: auto; padding: 10px 4px 14px; }
  .cart-bar { display: none; }
  .prod-list { grid-template-columns: 1fr; }
  html { scroll-padding-top: calc(var(--bar-h) + 76px); }
}


/* ---------- painel ---------- */
body[data-view="admin"] { background: #F3F2EF; --paper: #fff; --line: #E7E4DE; --line-2: #D9D5CD; }
.adm { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - var(--bar-h)); }
.adm-nav { position: sticky; top: var(--bar-h); z-index: 15; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-brand { display: none; }
.adm-nav ul { display: flex; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 12px; border-radius: 10px; color: #4A453F; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.adm-nav a[aria-current] { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); }
.adm-nav a:hover { background: #F3F2EF; }
.adm-see { margin-left: auto; }
.adm-main { padding: 18px 16px 80px; display: grid; gap: 16px; align-content: start; min-width: 0; outline: none; }
.adm-top { display: none; justify-content: flex-end; }
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.adm-head h1 { font: 600 clamp(24px, 5vw, 32px)/1.1 var(--f-display); }
.adm-head p { margin-top: 4px; }
.adm-actions { display: flex; gap: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.card h2 { font: 600 19px var(--f-display); display: flex; align-items: center; gap: 8px; }
.card-soft { background: #FBFAF7; }
.sub-title { font: 600 21px var(--f-display); margin-top: 8px; }
.count { font: 700 12px var(--f-ui); background: #F0EEE9; border-radius: 999px; padding: 2px 8px; color: #6B655C; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; text-decoration: none; }
.stat strong { font: 600 26px var(--f-display); }
.stat span { color: #6B655C; font-size: 13.5px; }
a.stat:hover { border-color: var(--brand); }
.stat.is-open strong { color: var(--ok); }
.try { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }
.try a { color: var(--brand); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar .search { flex: 1 1 220px; background: #fff; }
.toolbar select { width: auto !important; flex: 0 1 220px; }
.adm-list { display: grid; }
.adm-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'thumb txt sw' 'btns btns btns'; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-item:last-child { border-bottom: 0; }
.adm-item:not(:has(.thumb)) { grid-template-columns: 1fr auto; grid-template-areas: 'txt sw' 'btns btns'; }
.adm-item .thumb { grid-area: thumb; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #F0EEE9; display: grid; place-items: center; color: #999; }
.adm-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-item-txt { grid-area: txt; display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.adm-item-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item .switch { grid-area: sw; }
.row-btns { grid-area: btns; display: flex; justify-content: flex-end; gap: 2px; color: #57514A; }
.adm-item.is-off .thumb, .adm-item.is-off .adm-item-txt { opacity: .5; }
@media (min-width: 640px) {
  .adm-item { grid-template-columns: auto 1fr auto auto; grid-template-areas: 'thumb txt sw btns'; }
  .adm-item:not(:has(.thumb)) { grid-template-columns: 1fr auto auto; grid-template-areas: 'txt sw btns'; }
}
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; font-weight: 600; font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch-ui { width: 44px; height: 26px; border-radius: 999px; background: #CFCAC1; position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--brand); outline-offset: 2px; }
.inline-form { display: grid; gap: 10px; }
@media (min-width: 640px) { .inline-form { grid-template-columns: 1fr auto auto; } }
.table { display: grid; gap: 8px; }
.tr { display: grid; grid-template-columns: 1.4fr .8fr 1fr auto; gap: 8px; align-items: center; }
.tr.th { font-size: 12.5px; font-weight: 700; color: #6B655C; text-transform: uppercase; letter-spacing: .06em; }
.tr-opt { grid-template-columns: 1fr 110px auto; }
.tr-hour { grid-template-columns: 1fr auto; grid-template-areas: 'd s' 'o c'; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-hour > strong { grid-area: d; } .tr-hour .switch { grid-area: s; }
.tr-hour.is-off input[type=time] { opacity: .4; }
@media (min-width: 640px) { .tr-hour { grid-template-columns: 120px 120px 1fr 1fr; grid-template-areas: none; } .tr-hour > *, .tr-hour .switch { grid-area: auto; } }
.group-head { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: end; }
.size-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-form { display: grid; gap: 14px; }
.img-pick { display: flex; gap: 14px; align-items: flex-start; }
.img-prev { width: 96px; height: 96px; flex: none; border-radius: var(--r); overflow: hidden; background: #F0EEE9; display: grid; place-items: center; color: #999; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.img-actions .hint { width: 100%; margin: 0; }
.gallery { width: 100%; }
.gallery summary { list-style: none; }
.gallery summary::-webkit-details-marker { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin-top: 8px; }
.gal { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #eee; }
.gal:hover, .gal:focus-visible { border-color: var(--brand); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.brand-row { display: flex; gap: 16px; align-items: center; }
.colors { display: flex; gap: 16px; }
.colors label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.colors input[type=color] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.palettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pal { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13.5px; font-weight: 600; }
.pal span { width: 16px; height: 16px; border-radius: 50%; }
.promo-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-pct { font: 700 34px/1 var(--f-display); color: var(--brand); }
.promo.is-off { opacity: .6; }
.promo-items { font-size: 14px; }
.promo-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.adm-preview { display: none; }
.dlg-adm { max-width: 620px !important; }

@media (min-width: 980px) {
  .adm { grid-template-columns: 240px minmax(0, 1fr); }
  .adm-nav { flex-direction: column; align-items: stretch; height: calc(100dvh - var(--bar-h)); border: 0; border-right: 1px solid var(--line); padding: 18px 12px; overflow: visible; }
  .adm-nav ul { flex-direction: column; }
  .adm-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 8px; }
  .adm-brand span { display: grid; line-height: 1.2; }
  .adm-brand small { color: #6B655C; font-weight: 500; }
  .adm-see { margin: auto 0 0; border: 1px solid var(--line-2); justify-content: center; }
  .adm-main { padding: 26px 32px 80px; max-width: 900px; }
  .adm-top { display: flex; margin-bottom: -8px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .adm.with-preview { grid-template-columns: 240px minmax(0, 1fr) 400px; }
  .adm-preview { display: grid; justify-items: center; align-content: start; gap: 10px; position: sticky; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); padding: 24px 20px; border-left: 1px solid var(--line); background: #ECEAE5; }
  .phone { width: 360px; height: min(740px, calc(100dvh - var(--bar-h) - 80px)); border-radius: 40px; padding: 10px; background: #1a1612; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
  .phone iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: var(--bg); }
}
@media (max-width: 1279px) { .preview-toggle { display: none; } }

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

/* ajustes pós-teste */
.adm-nav .adm-brand { display: none; }
@media (min-width: 980px) { .adm-nav .adm-brand { display: flex; } }
.adm .search input { border: 0 !important; box-shadow: none !important; min-height: 0; padding: 0; background: transparent; }
.cat-note { display: block; font-size: 13px; color: var(--ink-3); margin-top: -2px; padding-bottom: 4px; }

/* ===== SaaS: cardápio público sem barra, estados de indisponibilidade, barra do painel ===== */
.no-bar { --bar-h: 0px; }
.state-page { min-height: 100dvh; display: grid; place-content: center; gap: 10px; padding: 32px 20px; text-align: center; max-width: 34rem; margin: 0 auto; }
.state-page h1 { font-family: var(--serif, Georgia, serif); font-size: clamp(1.5rem, 5vw, 2rem); text-wrap: balance; }
.state-page p { color: var(--ink-3); }
.app-bar .demo-tag strong { font-weight: 600; }
.pub-card { display: grid; gap: 12px; }
.pub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub-url { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; word-break: break-all; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.badge-ok { background: #E3F1E6; color: #1F5130; }
.badge-warn { background: #FBEBD5; color: #7A4A0B; }
.qr-box { display: grid; justify-items: start; gap: 8px; }
.qr-box canvas { width: 180px; height: 180px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
