/* Cardápio digital público (cliente final). Mesma fonte do cardápio do site (Poppins), dourado da marca com texto escuro.
   Mobile primeiro, claro e escuro, sem rastreadores. Texto mínimo 13px, alvos de toque 44px. */
:root {
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --caps: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #FFF7EA; --surface: #FFFFFF; --surface-2: #FBEBD3; --ink: #2A1308; --ink-2: #5A3B2A; --muted: #7B5A47;
  --line: #EAD6BE; --line-strong: #D3B896;
  --primary: #FDBD1C; --primary-hover: #F2A900; --on-primary: #2A1308; --gold: #FDBD1C; --on-gold: #2A1308; --gold-soft: #FFF0C2; --price: #A14B00; --accent: #B45309;
  --ok: #166534; --ok-soft: #E3F5E9; --danger: #B91C1C; --danger-soft: #FDECEC; --focus: #7C2D12;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(42, 19, 8, .06), 0 8px 24px rgba(42, 19, 8, .10);
  --tap: 44px; --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1A0E07; --surface: #261710; --surface-2: #33200F; --ink: #FFEFD9; --ink-2: #E6CFB5; --muted: #C8A98F; --line: #3A2618; --line-strong: #5A3D28;
    --primary: #FDBD1C; --primary-hover: #FFCB45; --on-primary: #2A1308; --gold-soft: #3A2C0B; --price: #FFC94D; --accent: #FDBD1C; --ok: #4ADE80; --ok-soft: #12301D; --danger: #F87171; --danger-soft: #34171A;
    --focus: #FFD27A; --shadow: 0 8px 28px rgba(0, 0, 0, .55); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 18px; }
.boot { text-align: center; padding: 56px 18px; color: var(--muted); }

/* carregando (esqueleto) */
.skel { display: grid; gap: 14px; padding: 18px; width: min(var(--max), 100%); margin: 0 auto; }
.skel i { display: block; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.3s linear infinite; }
.skel .a { height: 190px; } .skel .b { height: 120px; } .skel .c { height: 120px; }
@keyframes sh { to { background-position: -200% 0; } }

/* topo */
.hero { position: relative; }
.cover-wrap { position: relative; height: clamp(180px, 38vw, 300px); background: var(--gold); overflow: hidden; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.cover-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 19, 8, .05) 35%, rgba(42, 19, 8, .55)); }
.brand-row { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; gap: 14px; }
.logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); background: #fff; box-shadow: var(--shadow); flex: none; }
.brand-row h1 { margin: 0; font: 700 clamp(28px, 7vw, 40px)/1.05 var(--display); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); letter-spacing: -.01em; }
.brand-row .eyebrow { margin: 0 0 4px; font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.info { position: relative; z-index: 3; margin: -2px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--ok-soft); color: var(--ok); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.closed { background: var(--danger-soft); color: var(--danger); }
.fact { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.fact .ico { color: var(--accent); }
.wa { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink); }
.wa:hover { border-color: var(--accent); color: var(--accent); }
.banner { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; background: var(--gold-soft); color: var(--ink); border-left: 5px solid var(--gold); display: flex; gap: 10px; align-items: center; }
.banner .ico { color: var(--accent); }
.banner.alert { background: var(--danger-soft); color: var(--danger); border: 1.5px solid var(--danger); }
.banner.soft { background: var(--gold-soft); color: var(--ink); font-weight: 500; }
.banner a { color: inherit; font-weight: 700; }

/* categorias */
.cats { position: sticky; top: 0; z-index: 20; margin-top: 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s; }
.cats a.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* produtos */
.section { padding-top: 32px; scroll-margin-top: 76px; }
.section h2 { margin: 0 0 18px; font: 700 clamp(22px, 5.5vw, 28px)/1.15 var(--caps); letter-spacing: 0; }
.section h2::after { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--gold); margin-top: 8px; }
.products { display: grid; gap: 14px; }
@media (min-width: 640px) { .products { grid-template-columns: 1fr 1fr; } }
.product { position: relative; display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; min-height: 132px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.product:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.product:active { transform: scale(.985); }
.p-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.product h3 { margin: 0; font: 600 16px/1.3 var(--body); }
.product p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; font: 700 19px var(--body); font-variant-numeric: tabular-nums; color: var(--price); }
.price small { font-weight: 500; font-size: 14px; color: var(--muted); margin-right: 2px; }
.p-media { position: relative; flex: none; width: 104px; align-self: flex-start; }
.p-media img, .p-media .noimg { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.add { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); border: 3px solid var(--surface); }
.add .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.foot { margin: 44px 0 130px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.foot a { color: inherit; }

/* botões */
.btn { color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.ghost { color: var(--ink-2); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.block { width: 100%; min-height: 54px; font-size: 18px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; color: var(--ink); }

/* barra da sacola */
.bag-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 45%); pointer-events: none; }
.bag-bar .btn { pointer-events: auto; width: min(var(--max), 100%); margin: 0 auto; display: flex; justify-content: space-between; min-height: 58px; font-size: 17px; box-shadow: 0 10px 28px rgba(240, 169, 0, .45); }
.bag-bar .l { display: inline-flex; align-items: center; gap: 12px; }
.count { background: var(--on-gold); color: var(--gold); border-radius: 999px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 15px; padding: 0 8px; font-weight: 700; }

/* folhas */
.sheet-root { position: fixed; inset: 0; z-index: 60; background: rgba(26, 14, 7, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-root[hidden] { display: none; }
.sheet { position: relative; width: min(var(--max), 100%); max-height: 94dvh; background: var(--bg); border-radius: 26px 26px 0 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: up .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(28px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 700 22px var(--caps); }
.sheet-body { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.sheet-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 12px; align-items: center; }
.sheet-foot .btn.primary { flex: 1; min-height: 54px; font-size: 17px; }
@media (min-width: 700px) { .sheet-root { align-items: center; } .sheet { border-radius: 26px; max-height: 90dvh; } }
.media { position: relative; flex: none; }
.photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.media .icon-btn { position: absolute; top: 12px; right: 12px; background: var(--surface); box-shadow: var(--shadow); }
.title-block h2 { margin: 0; font: 700 26px/1.15 var(--body); }
.title-block p { margin: 8px 0 0; color: var(--ink-2); }
.title-block .price { margin-top: 10px; display: block; font-size: 20px; }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-weight: 400; font-size: 17px; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.err { color: var(--danger); font-size: 14px; font-weight: 700; margin: 0; }
.err:empty { display: none; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); }
.step h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font: 700 14px var(--body); }
.group { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0; margin: 0; overflow: hidden; min-width: 0; }
.group-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 13px 16px; background: var(--surface-2); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line-strong); white-space: nowrap; }
.badge.req { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.opt { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.opt input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.opt .n { flex: 1; font-size: 17px; }
.opt .p { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.opt.off { opacity: .45; cursor: not-allowed; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 16px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button[aria-pressed="true"] .ico { color: var(--accent); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; color: var(--ink); }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* sacola */
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line:last-child { border-bottom: 0; }
.line .inf { flex: 1; min-width: 0; }
.line .inf b { display: block; font: 700 17px var(--body); }
.line .inf span { display: block; font-size: 14px; color: var(--muted); }
.line .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line .side > b { font-variant-numeric: tabular-nums; }
.totals { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1.5px dashed var(--line-strong); margin-top: 8px; padding-top: 12px; font-size: 21px; font-weight: 700; }
.totals .grand b { color: var(--price); }

/* confirmação e acompanhamento */
.done-card { text-align: center; padding: 30px 18px 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done-card .big { font: 700 34px/1.1 var(--display); margin: 0; }
.seal { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.seal.cancel { background: var(--danger-soft); color: var(--danger); }
.seal .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.stat-now { font: 700 20px var(--display); margin: 0; }
.timeline { list-style: none; margin: 10px 0 6px; padding: 0; width: min(340px, 100%); text-align: left; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 0 26px 0; color: var(--muted); font-weight: 600; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--bg); flex: none; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 3px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.past { color: var(--ink-2); }
.timeline li.past::before { background: var(--ok); border-color: var(--ok); }
.timeline li.past::after { background: var(--ok); }
.timeline li.on { color: var(--ink); font-weight: 700; }
.timeline li.on::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px); background: var(--ink); color: var(--bg); padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: 15px; font-weight: 600; }
.toast[hidden] { display: none; }
.toast.err { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { .sheet, .skel i { animation: none; } .product, .btn { transition: none; } }

/* os blocos da folha nunca encolhem (a folha rola); sem isso as opções ficavam sobrepostas */
.sheet-body > *, .sheet-body form > *, .group, .step, .totals, .title-block, .field { flex-shrink: 0; }

.sheet-foot .btn { white-space: nowrap; }
@media (min-width: 700px) { .photo { aspect-ratio: 16 / 7; max-height: 280px; } .sheet-body { padding: 22px; } }

.p-media.nophoto { width: auto; align-self: flex-end; }
.p-media.nophoto .add { position: static; border-color: var(--surface); }
