/* Gratto — site público em formato de app. Cores: vinho + creme. */
:root {
  --bg: #f6f0e8;
  --card: #fffdf9;
  --soft: #efe5d8;
  --soft-2: #e7dacb;
  --ink: #1f1916;
  --ink-2: #5d5049;
  --muted: #92857a;
  --wine: #7a1d17;
  --wine-2: #5f140f;
  --wine-soft: #f5e3df;
  --line: #e6dbcd;
  --ok: #2f6b3a;
  --red: #b4261f;
  --r-lg: 26px;
  --r: 18px;
  --shadow: 0 14px 34px -18px rgba(70, 30, 15, .35);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --tabbar: 74px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.demo-banner { background: var(--ink); color: #f4ece2; font-size: 12px; text-align: center; padding: 7px 12px; }

/* ---------- topo ---------- */
.app-top { position: sticky; top: 0; z-index: 40; background: rgba(246, 240, 232, .9); backdrop-filter: blur(14px); }
.app-top .in { max-width: 1180px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.round img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.round .badge-n { position: absolute; top: -3px; right: -3px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.loc { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.loc > div { min-width: 0; }
.loc svg { color: var(--wine); width: 24px; height: 24px; }
.loc small { display: block; font-size: 12px; color: var(--muted); }
.loc b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 2px; }
.loc b svg { width: 16px; height: 16px; color: var(--ink-2); }
.loc b { min-width: 0; }
.loc b .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.top-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top-nav a { padding: 10px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.top-nav a.on, .top-nav a:hover { background: var(--card); color: var(--wine); }
.top-nav + .round { margin-left: 4px; }
.sp { flex: 1; }
@media (max-width: 899px) { .top-nav, .app-top .sp { display: none; } }
@media (min-width: 900px) { .loc { flex: 0 1 auto; } }

/* ---------- containers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
main.app { padding-bottom: calc(var(--tabbar) + 40px); min-height: 70vh; }
@media (min-width: 900px) { main.app { padding-bottom: 60px; } }

/* ---------- banner ---------- */
.hero-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 6px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero { scroll-snap-align: start; flex: 0 0 100%; background: radial-gradient(120% 140% at 0% 0%, #8a241c 0%, var(--wine) 45%, var(--wine-2) 100%); color: #fff; border-radius: var(--r-lg); padding: 26px 24px; min-height: 210px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; align-items: center; position: relative; overflow: hidden; }
.hero .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.08; margin: 8px 0 8px; }
.hero p { margin: 0 0 16px; font-size: 14px; opacity: .9; line-height: 1.45; max-width: 340px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; background: #f6ece4; color: var(--wine); border: 0; border-radius: 99px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.pill-btn svg { width: 18px; height: 18px; }
.hero .art { position: relative; height: 100%; min-height: 170px; }
.hero .art img { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 115%; max-width: 330px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .45); }
.hero .deco { position: absolute; right: 44%; top: 18px; opacity: .35; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft-2); transition: all .2s; }
.dots i.on { background: var(--wine); width: 18px; border-radius: 9px; }
@media (min-width: 900px) { .hero { flex-basis: calc(50% - 7px); min-height: 240px; } }

/* ---------- títulos de seção ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.sec-head h3 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.sec-head a, .sec-head button { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--ink-2); }
.sec-head svg { width: 16px; height: 16px; }

/* ---------- categorias ---------- */
.cats { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.cats::-webkit-scrollbar { display: none; }
.cat { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 70px; }
.cat .ic { width: 66px; height: 66px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--wine); transition: all .2s; }
.cat .ic svg { width: 28px; height: 28px; }
.cat span { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.cat.on .ic { background: var(--wine); color: #fff; box-shadow: 0 8px 18px -8px rgba(122, 29, 23, .7); }
.cat.on span { background: var(--wine); color: #fff; }

/* ---------- populares ---------- */
.pop { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.pop::-webkit-scrollbar { display: none; }
.pcard { scroll-snap-align: start; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; text-align: left; padding: 0; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .media { position: relative; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; height: 140px; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; }
.chip-float { position: absolute; top: 8px; left: 8px; background: #fff; border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.chip-float svg { width: 13px; height: 13px; color: #d69a1f; fill: #e9b23a; stroke: #d69a1f; }
.fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); }
.fav svg { width: 17px; height: 17px; }
.fav.on svg { fill: var(--red); color: var(--red); }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .nm { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pcard .pr { font-weight: 700; font-size: 15px; }
.meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.meta span { display: flex; align-items: center; gap: 4px; }
.meta svg { width: 15px; height: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--ink-2); font-weight: 500; }
.tag.wine { background: var(--wine-soft); color: var(--wine); }

/* placeholder sem foto */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #efe3d4, #e5d5c2); color: var(--wine); }
.ph svg { width: 40%; height: 40%; max-width: 54px; opacity: .55; }

/* ---------- lista do cardápio ---------- */
.mlist { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .mlist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .mlist { grid-template-columns: 1fr 1fr 1fr; } }
.mcard { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: left; width: 100%; transition: box-shadow .2s; }
.mcard:hover { box-shadow: var(--shadow); }
.mcard .th { width: 86px; height: 86px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.mcard .th img { width: 100%; height: 100%; object-fit: cover; }
.mcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mcard .nm { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mcard .ds { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .pr { font-weight: 700; font-size: 15px; }
.mcard .pr small { font-weight: 500; color: var(--muted); font-size: 11px; }
.add-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--wine); color: #fff; display: grid; place-items: center; flex-shrink: 0; align-self: flex-end; }
.add-btn svg { width: 18px; height: 18px; }
.mcard.off .add-btn { background: var(--soft-2); color: var(--muted); }
.cat-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.cat-title h4 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 600; }
.cat-title span { font-size: 13px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty svg { width: 42px; height: 42px; color: var(--soft-2); margin-bottom: 8px; }

/* ---------- barra inferior ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--card); border-top: 1px solid var(--line); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .25); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--wine); font-weight: 600; }
.tabbar a.center .bub { width: 50px; height: 50px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 18px -6px rgba(122, 29, 23, .6); border: 4px solid var(--card); }
.tabbar a.center.on { color: var(--wine); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* barra de carrinho flutuante */
.cartbar { position: fixed; z-index: 44; left: 14px; right: 14px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); display: none; }
.cartbar.on { display: block; }
.cartbar button { width: 100%; border: 0; border-radius: 16px; background: var(--ink); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; box-shadow: var(--shadow); }
.cartbar .n { background: var(--wine); border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; }
.cartbar b { margin-left: auto; }
@media (min-width: 900px) { .cartbar { left: auto; right: 24px; bottom: 24px; width: 360px; } }

/* ---------- telas sobrepostas (item, carrinho, checkout) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(25, 18, 14, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 70; inset: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sheet.on { transform: none; }
@media (min-width: 900px) {
  .sheet { inset: auto; left: 50%; top: 50%; width: 480px; height: min(820px, calc(100vh - 40px)); border-radius: 28px; overflow: hidden; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: all .25s; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet.side { left: auto; right: 0; top: 0; height: 100vh; border-radius: 0; transform: translateX(100%); width: 460px; }
  .sheet.side.on { transform: none; }
}
.sheet .scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg); }
.sheet-head h3 { margin: 0; font-size: 19px; font-weight: 600; flex: 1; text-align: center; padding-right: 46px; }
.sheet-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.sheet-foot .tot small { display: block; font-size: 12.5px; color: var(--muted); }
.sheet-foot .tot b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.big-btn { flex: 1; border: 0; border-radius: 99px; background: var(--wine); color: #fff; padding: 16px 20px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.big-btn:hover { background: var(--wine-2); }
.big-btn:disabled { opacity: .45; cursor: not-allowed; }
.big-btn svg { width: 20px; height: 20px; }

/* detalhe do item */
.item-hero { position: relative; height: 44vh; min-height: 280px; max-height: 420px; background: var(--soft); }
.item-hero img { width: 100%; height: 100%; object-fit: cover; }
.item-hero .ph svg { max-width: 90px; }
.item-hero .round { position: absolute; top: 16px; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.item-hero .round.l { left: 16px; } .item-hero .round.r { right: 16px; }
.item-hero .round.on svg { fill: var(--red); color: var(--red); }
.item-body { position: relative; margin-top: -30px; background: var(--card); border-radius: 28px 28px 0 0; padding: 26px 22px 20px; min-height: 60%; }
.item-title { display: flex; gap: 14px; align-items: flex-start; }
.item-title h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0; line-height: 1.12; flex: 1; }
.item-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 99px; padding: 4px; flex-shrink: 0; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.stepper button:last-child { background: var(--wine); color: #fff; }
.stepper button svg { width: 18px; height: 18px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.stepper.sm button { width: 28px; height: 28px; } .stepper.sm button svg { width: 15px; height: 15px; } .stepper.sm span { min-width: 20px; font-size: 14px; }
.item-body h5 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.item-body p.desc { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 4px; padding: 14px 0; }
.stats3 div { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; border-left: 1px solid var(--line); }
.stats3 div:first-child { border-left: 0; padding-left: 0; }
.stats3 b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.stats3 b svg { width: 18px; height: 18px; color: var(--ink-2); }
.stats3 small { font-size: 11.5px; color: var(--muted); }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--card); }
.opt:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); }
.opt input { accent-color: var(--wine); width: 18px; height: 18px; margin: 0; }
.opt span { flex: 1; font-weight: 500; }
.notice { background: var(--soft); color: var(--ink-2); padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-top: 16px; }

/* formulários */
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin: 16px 0 7px; }
.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; font-size: 15px; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--wine); }
textarea.input { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer; font-size: 14px; font-weight: 500; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg label svg { width: 18px; height: 18px; }
.seg label:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.seg input { display: none; }
.err { background: #f7dfdc; color: var(--red); padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-top: 14px; }
.okbox { background: #e3efe4; color: var(--ok); padding: 12px 14px; border-radius: 14px; font-size: 14px; }

/* carrinho */
.citem { display: flex; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; align-items: center; }
.citem .th { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.citem .th img { width: 100%; height: 100%; object-fit: cover; }
.citem .info { flex: 1; min-width: 0; }
.citem .nm { font-weight: 600; font-size: 14.5px; }
.citem .meta2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.citem .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 6px; }
.sumrow { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin: 5px 0; gap: 12px; }
.sumrow.total { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.sumrow.disc { color: var(--ok); }
.loyal-box { background: radial-gradient(120% 140% at 0% 0%, #8a241c 0%, var(--wine) 50%, var(--wine-2) 100%); color: #f8e9e6; border-radius: var(--r); padding: 16px; margin-top: 12px; font-size: 14px; }
.loyal-box b { color: #fff; }
.rw { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px 12px; margin-top: 8px; cursor: pointer; }
.rw input { accent-color: #fff; }
.rw.lock { opacity: .5; cursor: not-allowed; }

/* eventos */
.ev-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; margin-top: 6px; }
.ev-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 10, 8, .05) 20%, rgba(60, 12, 9, .88) 100%); }
.ev-hero .txt { position: relative; z-index: 1; color: #fff; padding: 24px; }
.ev-hero h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 6px 0; font-weight: 600; line-height: 1.08; }
.ev-hero p { margin: 0; opacity: .9; max-width: 520px; font-size: 14.5px; line-height: 1.5; }
.ev-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .ev-grid { grid-template-columns: .9fr 1.1fr; margin-top: 10px; } }
.perks { display: grid; gap: 10px; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.perk .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; flex-shrink: 0; }
.perk b { display: block; font-size: 14.5px; }
.perk small { color: var(--muted); font-size: 13px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 22px; }
.form-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.chk { display: flex; flex-wrap: wrap; gap: 8px; }
.chk label { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; background: #fff; font-weight: 500; }
.chk label:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); }
.chk input { display: none; }
.success { text-align: center; padding: 26px 10px; }
.success .ic { width: 70px; height: 70px; border-radius: 50%; background: #e3efe4; color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.success .ic svg { width: 34px; height: 34px; }

/* busca */
.searchbox { position: relative; margin-top: 6px; }
.searchbox svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 15px 18px 15px 48px; font-size: 16px; outline: none; }
.searchbox input:focus { border-color: var(--wine); }

/* botões genéricos */
.btn { border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-wa { background: #1f8b4c; color: #fff; }
.btn-block { width: 100%; }

/* rodapé desktop */
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 20px; }
.foot b { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: .06em; display: block; margin-bottom: 6px; }
.foot a { color: var(--wine); }

/* toasts */
#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 80px); display: grid; gap: 8px; width: max-content; max-width: 90vw; }
@media (min-width: 900px) { #toasts { bottom: 30px; } }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); transition: all .4s; text-align: center; }
.toast-err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- páginas Pedido e Clube ---------- */
.page { padding: 10px 0 30px; }
.narrow { max-width: 620px; margin: 0 auto; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.page-title { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 8px 0 4px; }
.timeline { display: grid; margin: 20px 0; }
.tl { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.tl:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; border-left: 2px solid var(--line); }
.tl .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; filter: grayscale(1); opacity: .55; }
.tl.done .dot { background: var(--wine-soft); filter: none; opacity: 1; }
.tl.now .dot { background: var(--wine); filter: none; opacity: 1; box-shadow: 0 0 0 6px rgba(122, 29, 23, .14); }
.tl.done:not(:last-child)::before { border-color: var(--wine); }
.tl .t { font-weight: 600; padding-top: 9px; }
.tl.now .t { color: var(--wine); }
.club-card { background: radial-gradient(120% 140% at 0% 0%, #8a241c 0%, var(--wine) 45%, var(--wine-2) 100%); color: #fff; border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
.club-card .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.club-card h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 6px 0; }
.club-card p { margin: 0; opacity: .9; font-size: 14px; }
.club-card .deco { position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; opacity: .12; color: #fff; }
.club-card .deco svg { width: 100%; height: 100%; }
.big-points { font-family: var(--serif); font-size: 60px; font-weight: 700; color: var(--wine); line-height: 1; }
.rewards-list { display: grid; gap: 10px; margin-top: 14px; }
.reward { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--card); }
.reward .pts { width: 64px; height: 64px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 18px; line-height: 1; flex-shrink: 0; }
.reward .pts small { display: block; font-size: 10px; font-weight: 600; margin-top: 2px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: 13px; color: var(--ink-2); }
.step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 14px; margin-bottom: 8px; }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.hist { font-size: 14px; }
.hist div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.plus { color: var(--ok); font-weight: 700; } .minus { color: var(--red); font-weight: 700; }

/* ================= Login da equipe (garçom / cozinha) ================= */
.staff-login { max-width: 380px; margin: 8vh auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; text-align: center; display: grid; gap: 12px; }
.staff-login img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; }
.staff-login h1 { font-family: var(--serif); margin: 0; font-size: 32px; letter-spacing: .04em; }
.staff-login p { margin: 0 0 6px; color: var(--muted); }
.staff-login small { color: var(--muted); font-size: 12px; }

/* ================= App do garçom ================= */
.w-top { position: sticky; top: 0; z-index: 30; background: rgba(246, 240, 232, .94); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.w-top h2 { margin: 0; font-size: 19px; font-weight: 600; flex: 1; }
.w-top small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.w-body { padding: 4px 16px 140px; max-width: 760px; margin: 0 auto; }
.w-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.w-table { border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; padding: 12px 8px; text-align: center; display: grid; gap: 2px; min-height: 92px; align-content: center; }
.w-table b { font-size: 26px; line-height: 1; }
.w-table small { font-size: 11.5px; color: var(--muted); }
.w-table.aberta { background: var(--wine); border-color: var(--wine); color: #fff; }
.w-table.aberta small { color: #f3d9d5; }
.w-table.conta { background: #fbefd9; border-color: #f0d49f; color: #8a5a07; }
.w-ready { background: #e3efe4; border: 1px solid #c9e0cb; border-radius: var(--r); padding: 12px 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.w-ready .t { flex: 1; font-size: 13.5px; }
.w-ready b { font-size: 15px; }
.w-line { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.w-line .nm { font-weight: 600; font-size: 14.5px; }
.w-line .sub { font-size: 12.5px; color: var(--muted); }
.w-line .info { flex: 1; min-width: 0; }
.w-line .th { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.w-line .th img { width: 100%; height: 100%; object-fit: cover; }
.w-line.has { border-color: var(--wine); background: var(--wine-soft); }
.w-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 12px; }
.w-chips::-webkit-scrollbar { display: none; }
.w-chips button { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; white-space: nowrap; font-weight: 500; font-size: 13.5px; }
.w-chips button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.w-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .3); }
.w-bar .tot small { display: block; font-size: 12px; color: var(--muted); }
.w-bar .tot b { font-size: 20px; }
.w-round { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.w-round .h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.w-round .h b { color: var(--ink); }
.w-round .l { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.st { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.st-novo, .st-confirmado { background: #e6eef7; color: #2f5f8f; } .st-preparo { background: #fcefd9; color: #b26b0b; }
.st-pronto, .st-entregue { background: #e3efe4; color: #2f6b3a; } .st-cancelado { background: #eee; color: #777; } .st-saiu { background: #ece6f7; color: #5b3d99; }

/* ---- Clube: login por e-mail e código do salão ---- */
.otp { font-size: 26px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--wine); }
.club-code { margin-top: 14px; padding: 16px; border-radius: 18px; border: 2px dashed var(--wine); text-align: center; background: var(--card); }
.club-code .digits { font-size: 42px; font-weight: 800; letter-spacing: 6px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 8px; background: rgba(0,0,0,.08); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--wine); border-radius: 8px; }
.hist .hrow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; }
.hist .pos { color: var(--ok); } .hist .neg { color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 0; }

/* ---- Cardápio de consulta: logo + categorias no menu fixo, busca logo abaixo ---- */
.view-top { border-bottom: 1px solid var(--line); }
.view-top .brand-row { padding: 10px 18px 4px; gap: 10px; }
.round.sm { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.view-top .top-cats { padding: 4px 12px 8px; display: block; }
.cats.mini { gap: 6px; padding: 2px 2px 2px; }
.cats.mini .cat { min-width: 62px; gap: 4px; }
.cats.mini .cat .ic { width: 44px; height: 44px; }
.cats.mini .cat .ic svg { width: 21px; height: 21px; }
.cats.mini .cat span { font-size: 12px; padding: 2px 8px; }
.cats.mini .cat.on .ic { box-shadow: none; }
.view-search { margin: 4px 0 16px; }
@media (min-width: 900px) { .view-top .top-cats .cats { justify-content: center; } }
