@font-face { font-family: Geist; src: url(/_fc/f/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
/* Cor da marca vem da configuração do restaurante (--brand). Resto é neutro. */
:root {
  --brand: #C2410C; --brand-hover: #A3360A; --brand-c: #FCE7DC; --brand-on-c: #6B2106;
  --bg: #FAF8F6; --card: #FFFFFF; --fg: #1B1714; --copy: #4A433D; --muted: #F1EDE9; --muted-fg: #7A716A;
  --border: #E6E0DA; --ok: #1E7A4C; --ok-c: #DDF3E6; --bad: #B42318; --bad-c: #FDE8E6;
  --r: 16px; --control-h: 44px; --ease: cubic-bezier(.2, 0, 0, 1); --ease-in: cubic-bezier(.3, 0, .8, .15);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) { :root {
  --brand: #F0773D; --brand-hover: #FF8C55; --brand-c: #4A2210; --brand-on-c: #FFD9C6;
  --bg: #12100F; --card: #1C1917; --fg: #F3EFEC; --copy: #CFC7C0; --muted: #2A2522; --muted-fg: #A39A92;
  --border: #36302C; --ok: #5FD39A; --ok-c: #133524; --bad: #FF8A80; --bad-c: #3D1714;
} }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 120px; }
body { font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; padding-bottom: calc(96px + var(--safe-b)); }
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.star { width: 14px; height: 14px; fill: #E8A317; stroke: #E8A317; vertical-align: -2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted-fg); }
.link { color: var(--brand); font-weight: 600; font-size: 14px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 18px; border-radius: 999px; font-weight: 600; background: var(--muted); transition: background .2s var(--ease); }
.btn.primary { background: var(--brand); color: #fff; justify-content: space-between; padding: 0 22px; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.primary.soft { background: var(--fg); }
.btn.primary:disabled { opacity: 1; background: var(--muted); color: var(--muted-fg); cursor: not-allowed; }
.btn.tonal { background: var(--brand-c); color: var(--brand-on-c); }
.btn.grow { flex: 1; height: 48px; white-space: nowrap; min-width: 0; }
.btn.full { width: 100%; margin-top: 12px; }

/* topo: compacto, cardápio aparece já na primeira tela */
.hero { height: 136px; background: var(--brand); overflow: hidden; }
.store-top { display: flex; align-items: flex-end; gap: 12px; }
.logo { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; margin-top: -28px; border: 3px solid var(--bg); flex-shrink: 0; position: relative; }
.store-id { flex: 1; min-width: 0; }
.store-id h1 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-id p { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted-fg); flex-shrink: 0; }
.icon-btn:hover { background: var(--muted); }
.store-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status > i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin: 0; }
.status.on { color: var(--ok); }
.status.off { color: var(--bad); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--brand-c); color: var(--brand-on-c); font-size: 14px; margin-top: 10px; }
.notice.bad { background: var(--bad-c); color: var(--bad); }
.bar { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--muted); border-radius: 999px; }
.bar .seg { flex: 0 0 auto; }
.bar .fact { flex: none; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted-fg); transition: background .25s var(--ease), color .25s var(--ease); }
.seg button.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg.sm button { height: 44px; }
.fact { display: flex; align-items: center; gap: 8px; text-align: left; padding: 0 14px; height: 52px; border-radius: 14px; gap: 10px; background: var(--card); border: 1px solid var(--border); min-width: 0; flex: 1; overflow: hidden; }
.fact > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.25; }
.fact > span, .fact small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact small { font-weight: 400; color: var(--muted-fg); font-size: 13px; }
.fact.wide { width: 100%; height: auto; padding: 12px 14px; border-radius: var(--r); }
.fact.bad { border-color: var(--bad); }
.fact.bad small { color: var(--bad); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.again { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--brand-c); color: var(--brand-on-c); margin-top: 8px; font-size: 14px; text-align: left; }
.again span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.store h1 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin-top: 10px; }
.meta { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; color: var(--muted-fg); text-align: left; }
.meta .on { color: var(--ok); font-weight: 600; }
.meta .off { color: var(--bad); font-weight: 600; }
.meta.strong { display: flex; color: var(--fg); font-weight: 500; }
.meta svg.sm { color: var(--muted-fg); }
.store > .meta + .meta { margin-top: -2px; }

/* barra de categorias */
.catbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); margin-top: 8px; }
.catbar-in { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--muted); color: var(--muted-fg); flex: 0 0 auto; width: 44px; overflow: hidden; transition: width .3s var(--ease); cursor: text; }
.search:focus-within, .search:has(input:not(:placeholder-shown)) { width: min(280px, 70vw); color: var(--fg); }
.search input { outline: 0; width: 100%; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted-fg); transition: background .2s var(--ease), color .2s var(--ease); }
.chips a.on { background: var(--fg); color: var(--bg); }

/* cardápio */
.cat { padding-top: 16px; }
.cat h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px; }
.items { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); transition: border-color .2s var(--ease), transform .2s var(--ease); width: 100%; }
.item:hover { border-color: var(--muted-fg); }
.item:active { transform: scale(.99); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item h3 { font-size: 16px; font-weight: 600; }
.item p { color: var(--muted-fg); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 600; margin-top: auto; padding-top: 4px; }
.price .from { font-weight: 400; color: var(--muted-fg); font-size: 13px; }
.price s { color: var(--muted-fg); font-weight: 400; font-size: 13px; margin-left: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--muted); color: var(--copy); }
.tag.hot { background: var(--brand-c); color: var(--brand-on-c); }
.tag.off { background: var(--bad-c); color: var(--bad); }
.item .ph { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: visible; flex-shrink: 0; background: var(--muted); }
.item .ph img { border-radius: 12px; }
.plus { position: absolute; right: -8px; bottom: -8px; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--brand); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.item.sold { cursor: default; }
.item.sold .ph img, .item.sold h3, .item.sold .price { filter: grayscale(1); opacity: .55; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.rail::-webkit-scrollbar { display: none; }
.hl { flex: 0 0 116px; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.hl .ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--muted); margin-bottom: 6px; }
.hl b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.hl span { font-size: 13px; color: var(--muted-fg); }
.rail.sm .hl { flex-basis: 120px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 48px 16px; color: var(--muted-fg); }
.empty b { color: var(--fg); font-size: 17px; }
.empty .btn { margin-top: 10px; }
.foot { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--copy); padding-top: 40px; padding-bottom: 24px; }

/* sacola fixa */
.cartbar { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); height: 56px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 22px 0 8px; font-weight: 600; transform: translateY(120px); transition: transform .35s var(--ease); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cartbar.on { transform: none; }
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
.cartbar .count { min-width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.18); display: grid; place-items: center; }

/* esqueleto */
.sk, .skl { background: var(--muted); animation: pulse 1.4s var(--ease) infinite; }
.skl { display: block; height: 16px; border-radius: 8px; margin-top: 10px; }
.w60 { width: 60%; height: 26px; } .w40 { width: 40%; } .w30 { width: 30%; height: 22px; margin: 28px 0 12px; } .tall { height: 52px; border-radius: 999px; margin-top: 16px; }
.item.sk { border: 0; }
.item.sk i { display: block; height: 14px; border-radius: 7px; background: var(--border); width: 70%; }
.item.sk i.s { width: 30%; margin-top: auto; }

@media (min-width: 760px) {
  body { padding-bottom: 40px; }
  .hero { height: 180px; max-width: 1040px; margin: 12px auto 0; border-radius: 20px; }
  .store { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: end; }
  .store .logo { grid-row: span 3; align-self: start; width: 88px; height: 88px; font-size: 30px; margin-top: -32px; }
  .store h1 { font-size: 30px; margin-top: 12px; }
  .catbar { margin-top: 12px; }
  .items { grid-template-columns: 1fr 1fr; }
  .hl { flex-basis: 180px; }
  .cartbar { left: auto; right: max(24px, calc(50vw - 520px)); width: 380px; bottom: 24px; }
}
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.cartbar.alt { background: var(--fg); color: var(--bg); }
.cartbar.alt .count { background: transparent; }
.cartbar span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cartbar small { font-weight: 400; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { overflow: hidden; }
