/* Sutil Gastrobeer
   Paleta: ambar, preto chumbo, marrom escuro, laranja dourado e preto.
   O dourado do S vai de #e2860f (laranja dourado) a #f9a100 (ambar).
   Tipos: Playfair Display (alto contraste, como o S) em titulos e precos; Outfit (geometrica, como o
   logotipo) no texto. Tudo em variaveis abaixo. */

/* Fontes servidas daqui (licenca SIL OFL, textos em /fonts). Variaveis: um arquivo cobre todos os pesos.
   Recorte latino (portugues) + latino estendido (so baixa se aparecer um caractere dele, ex.: nome de cerveja). */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/outfit-latin.woff2?v=bBjVef2Hw3dr) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2?v=D1PRwDs5GNdE) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/playfair-latin.woff2?v=4MdkqOnhzOkh) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/playfair-latin-ext.woff2?v=QomK1JprI_Mr) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #000;             /* preto: fundo de todas as paginas */
  --ink: #0d0d0e;            /* fundo de campos */
  --graphite: #1f1f21;       /* preto chumbo */
  --graphite-2: #2a2a2d;
  --brown: #2a1a0f;          /* marrom escuro */
  --brown-2: #3d2716;
  --gold: #e2860f;           /* laranja dourado */
  --amber: #f9a100;          /* ambar */
  --grad: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  --card: #1c1c1e;           /* preto chumbo dos cartoes (solido) */
  --text: #f3e9da;
  --muted: #a8998a;
  --faint: #6f6458;
  --line: rgba(243, 233, 218, .08);
  --line-2: rgba(243, 233, 218, .15);
  --gold-line: rgba(249, 161, 0, .38);
  --accent-ink: #1c1004;
  --danger: #f08a73;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --bar-h: 3.75rem;
  --tabs-h: 4.25rem;
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --glow: 0 10px 26px rgba(226, 134, 15, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--black); }
body {
  min-height: 100vh; color: var(--text); font: 400 1rem/1.5 var(--sans);
  background: var(--black);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 1.75rem);
  -webkit-font-smoothing: antialiased;
}
/* Moldura de app (index.html, html.shell): o documento nao rola; quem rola e o #page. Sem rolagem do documento,
   o Safari do iPhone nao recolhe/expande a barra de endereco nem "quica" a pagina, e a barra inferior (fora do
   #page) nunca se mexe. As paginas legais continuam rolando normalmente. */
html.shell, html.shell body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.shell { scroll-behavior: auto; }
/* Sem zoom: pinca e duplo toque nao ampliam, a rolagem continua. :where() nao pesa: regras mais especificas
   (touch-action: none na barra e na alca do sheet, pan-y no seletor de abas) continuam valendo. */
:where(html.shell, html.shell *) { touch-action: pan-x pan-y; }
/* Celular e tablet: nenhuma barra de rolagem visivel (a rolagem continua). No computador com mouse ela fica. */
@media (hover: none) and (pointer: coarse) {
  html.shell, html.shell * { scrollbar-width: none; }
  html.shell::-webkit-scrollbar, html.shell ::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
}
html.shell body, html.shell body.has-cart { min-height: 0; padding-bottom: 0; }
.page { position: fixed; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scroll-behavior: smooth; }
/* espaco no fim para a barra inferior (e a do pedido) nao cobrirem o ultimo item */
html.shell main { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 1.75rem); }
html.shell body.has-cart main { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 5.5rem); }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Barra superior ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--black); border-bottom: 1px solid var(--line); }
.appbar-in { max-width: 40rem; margin: 0 auto; height: var(--bar-h); padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { display: block; height: 2.15rem; width: auto; }
.acct { display: inline-flex; align-items: center; gap: .45rem; height: 2.3rem; padding: 0 .95rem; border-radius: 99px;
  border: 1px solid var(--gold-line); background: #140d03; color: var(--text); text-decoration: none;
  font: 500 .85rem var(--sans); white-space: nowrap; transition: border-color .15s, background .15s; }
.acct:hover { background: #1f1505; }
.acct svg { color: var(--amber); }
.acct b { font-weight: 600; font-variant-numeric: tabular-nums; }

main { position: relative; z-index: 1; max-width: 40rem; margin: 0 auto; padding: 1.25rem 1rem 0; outline: none; }

/* Bolhas de cerveja subindo: camada fixa atras de todo o conteudo (so aparece no fundo preto) */
/* Entra suave; sai na hora (sem transicao ao remover .on) */
canvas.bubbles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: none; }
canvas.bubbles.on { opacity: 1; transition: opacity .45s ease; }
.legal { position: relative; z-index: 1; }

/* ---------- Cabecalho de pagina ---------- */
.eyebrow { display: flex; align-items: center; gap: .55rem; font: 600 .68rem var(--sans); letter-spacing: .24em;
  text-transform: uppercase; color: var(--amber); }
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: var(--grad); }
.ph { margin: .2rem 0 1.25rem; }
.ph h1, .hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font: 600 2.2rem/1.1 var(--display); letter-spacing: -.01em; margin: .5rem 0 .45rem; }
.lede { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.tag { display: inline-flex; align-items: center; height: 1.35rem; padding: 0 .55rem; border-radius: 99px; border: 1px solid var(--gold-line);
  color: var(--amber); font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* Destaque de marca (madeira escura + emblema) */
.hero { border-radius: 22px; padding: 1.35rem 1.3rem 1.2rem; margin-bottom: 1.25rem;
  background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)), url(/img/brand/textura-madeira.jpg?v=oHpKHjYqx8kn) center / cover;
  /* WebP de 800 px (telas ate 2x, 16 KB) ou 1200 px (3x, 40 KB) no lugar do JPG de 98 KB; navegador antigo fica no JPG acima.
     Mesmos arquivos do preload no index.html. */
  background-image: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)),
    image-set(url(/img/brand/textura-madeira-800.webp?v=IBKJf0d6KXu5) type("image/webp") 2x, url(/img/brand/textura-madeira-1200.webp?v=kj_I1z6RQR6b) type("image/webp") 3x);
  border: 1px solid var(--line-2); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.hero h1 { margin-bottom: .35rem; }
.hero-mark { flex: none; height: 4.1rem; width: auto; margin-top: .05rem; }
.hero .lede { max-width: 26rem; }
.hero-stats { display: grid; grid-template-columns: auto auto 1fr; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.hs { display: grid; gap: .15rem; padding: 0 1.1rem; border-left: 1px solid var(--line-2); }
.hs:first-child { padding-left: 0; border-left: 0; }
.hs b { font: 700 1.25rem/1.1 var(--sans); color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs span { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Filtros ---------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 2.25rem; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--line-2);
  background: #0e0e0f; color: var(--text); font: 500 .85rem var(--sans); cursor: pointer;
  transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--gold-line); }
.chip[aria-pressed="true"], .chip.on { background: var(--grad); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.filters { margin: 0 0 1rem; }
.sticky { position: sticky; top: var(--bar-h); z-index: 6; margin: 0 -1rem 1rem; padding: .7rem 1rem .6rem; background: var(--black); }

/* ---------- Chopes ---------- */
.beers { display: grid; gap: .9rem; }
.beer { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; align-items: start; padding: 1rem;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), var(--shadow); }
/* Rotulos com fundo branco ficam numa moldura creme (multiply funde o branco da foto) */
.pic { width: 4.6rem; height: 5.9rem; border-radius: 14px; background: #efe4d1; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; }
.pic img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; mix-blend-mode: multiply; }
.pic.none { background: var(--brown); }
.pic.none::before { content: ""; width: 58%; height: 58%; background: url(/img/brand/emblema.svg?v=o0PgrwjGyugR) center / contain no-repeat; }
.beer h3 { font: 600 1.3rem/1.15 var(--display); }
.beer .meta { color: var(--muted); font-size: .84rem; margin-top: .25rem; }
.beer .desc { color: var(--muted); font-size: .84rem; margin-top: .5rem; }
.stats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.stat { font: 500 .72rem var(--sans); letter-spacing: .03em; padding: .2rem .55rem; border-radius: 99px;
  background: rgba(243, 233, 218, .06); border: 1px solid var(--line); }
.stat b { color: var(--amber); font-weight: 600; }
/* Precos em Outfit (a virgula da Playfair some em tamanho pequeno) */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; white-space: nowrap; }
.price strong { font: 700 1.45rem/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--amber); }
.price small { color: var(--muted); font-size: .8rem; }
.price s { color: var(--faint); font-size: .85rem; }
.off { display: inline-block; background: var(--grad); color: var(--accent-ink); font: 700 .66rem var(--sans);
  letter-spacing: .04em; padding: .15rem .5rem; border-radius: 99px; align-self: center; }
.tapact { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-top: .85rem; border-top: 1px dashed var(--line-2); }
.tapact .price { flex-direction: column; align-items: flex-start; gap: .2rem; }
.beer .head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
/* Numero da torneira em destaque, ao lado do nome */
.tapbadge { flex: none; display: grid; justify-items: center; align-content: center; min-width: 3.3rem; padding: .35rem .55rem .4rem;
  border-radius: 14px; background: var(--grad); color: var(--accent-ink); box-shadow: var(--glow); line-height: 1; }
.tapbadge small { font: 700 .5rem var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.tapbadge b { font: 700 1.55rem/1 var(--sans); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.sheet-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.sheet-head .lede { margin-bottom: 0; }
.sheet-head .tapbadge { min-width: 3.8rem; padding: .45rem .6rem .5rem; }
.sheet-head .tapbadge b { font-size: 1.85rem; }
.release svg { width: 1rem; height: 1rem; }
.release { display: inline-flex; align-items: center; gap: .45rem; height: 2.45rem; padding: 0 1.15rem; border: 0; border-radius: 99px;
  background: var(--grad); color: var(--accent-ink); font: 600 .88rem var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: var(--glow); transition: transform .1s; }
.release:active { transform: translateY(1px); }
.tapbanner { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; border-color: var(--gold-line); }
.tapbanner .tb-info { flex: 1; min-width: 0; }
.tapbanner strong { display: block; font: 600 1.1rem var(--display); }
.tapbanner span { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Cardapio ---------- */
.search-wrap { position: relative; margin-bottom: .65rem; }
.search-wrap svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search { width: 100%; height: 2.95rem; padding: 0 1rem 0 2.65rem; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text); font: 400 1rem var(--sans); } /* 16px: o iPhone nao amplia ao focar */
.search::placeholder { color: var(--faint); }
.search:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 4px rgba(249, 161, 0, .12); }
section.cat { scroll-margin-top: calc(var(--bar-h) + 7.5rem); margin-bottom: 1.9rem; }
.cat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--line-2); }
.cat-h h2 { font: 600 1.45rem/1.2 var(--display); }
.cat-h span { color: var(--faint); font-size: .78rem; letter-spacing: .04em; }
.add { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--gold-line); background: #140d03;
  color: var(--amber); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.add:hover { background: #1f1505; }
.qty { display: inline-flex; align-items: center; height: 2.25rem; border-radius: 99px; background: var(--grad); color: var(--accent-ink); }
.qty button { width: 2.25rem; height: 2.25rem; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.qty span { min-width: 1.3rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Barra do pedido (flutuante) */
#cartbar { position: fixed; left: 1rem; right: 1rem; max-width: 38rem; margin: 0 auto; z-index: 19;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + .75rem); display: flex; align-items: center; gap: .8rem;
  padding: .5rem .6rem; border-radius: 18px; background: var(--grad); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; box-shadow: 0 16px 34px rgba(0, 0, 0, .55), var(--glow); animation: rise .22s ease-out; }
#cartbar[hidden] { display: none; }
body.has-cart { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 5.5rem); }
#cartbar .count { width: 2.3rem; height: 2.3rem; border-radius: 12px; background: rgba(28, 16, 4, .9); color: var(--amber);
  display: grid; place-items: center; font-weight: 700; }
#cartbar .lbl { flex: 1; }
#cartbar strong { font: 700 1.08rem var(--sans); padding-right: .45rem; font-variant-numeric: tabular-nums; }

/* ---------- Paineis, formularios e botoes ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem; margin-top: 1rem;
  box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field label, .label { font: 600 .68rem var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; height: 3.2rem; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink);
  color: var(--text); font: 500 1.06rem var(--sans); letter-spacing: .02em; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--faint); font-weight: 400; }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(249, 161, 0, .14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.cta { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 3.35rem; border: 0; border-radius: 14px;
  background: var(--grad); color: var(--accent-ink); font: 600 1.02rem var(--sans); cursor: pointer; box-shadow: var(--glow);
  transition: transform .1s, opacity .15s; }
.cta:active { transform: translateY(1px); }
.cta[disabled] { opacity: .38; box-shadow: none; cursor: default; }
.link { display: inline-block; background: none; border: 0; padding: 0; margin-top: 1.1rem; color: var(--muted); font: 400 .9rem var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--text); }
.err { color: var(--danger); font-size: .88rem; margin: -.2rem 0 .9rem; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: .84rem; margin-top: .8rem; }
.hint:empty { display: none; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .25rem 0 1.1rem; cursor: pointer; }
.check input { margin-top: .15rem; width: 1.15rem; height: 1.15rem; accent-color: var(--amber); flex: none; }
.check a { color: var(--text); }
/* Senha com "mostrar"; saidas da conta; aviso de sucesso */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 6.2rem; }
.pw-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); height: 2.3rem; padding: 0 .8rem; border: 0;
  border-radius: 10px; background: #26272a; color: var(--text); font: 600 .78rem var(--sans); cursor: pointer; }
.pw-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pw-hint { margin: .1rem 0 0; }
.out-links { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
/* Caixa (/caixa) */
.cx-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cx-head h1 { margin: 0; }
.cx-head .link { margin: 0 0 0 auto; }
.cx-reminder { margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--gold-line); background: #1a1406;
  color: var(--amber); font-weight: 600; }
.cx-list { display: grid; gap: .5rem; margin-top: 1rem; }
.cx-row { display: grid; gap: .15rem; text-align: left; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.cx-row span { color: var(--muted); font-size: .88rem; }
.cx-st.pendente { color: var(--amber); }
.cx-st.bloqueado { color: var(--danger); }
.cx-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.cx-kv span { color: var(--muted); }
.cx-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.cx-act { width: 100%; text-align: center; justify-content: center; }
.cx-pass { font: 700 2rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--amber);
  text-align: center; margin: 1rem 0; user-select: all; }
.ok-note { margin: .2rem 0 1rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid rgba(52, 199, 89, .4);
  background: rgba(52, 199, 89, .08); color: var(--text); font-size: .9rem; }
/* Aviso no inicio da recarga (saldo nao estornado, sem validade) com o "Estou ciente" */
.notice { border-color: var(--gold-line); background: #120d05; }
.notice h2 { display: flex; align-items: center; gap: .5rem; font: 600 1rem var(--sans); color: var(--amber); margin-bottom: .6rem; }
.notice h2 svg.i { width: 1.2rem; height: 1.2rem; }
.notice p { font-size: .9rem; line-height: 1.55; color: var(--text); }
.notice p + p { margin-top: .6rem; }
.notice b { font-weight: 600; color: var(--amber); }
.notice .tip { color: var(--muted); }
.notice .tip b { color: var(--text); }
.notice .check { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-2); color: var(--text); font-size: .95rem; font-weight: 500; }
.codebox { text-align: center; letter-spacing: .55em; font-size: 1.6rem; font-weight: 600; }
.actions { display: grid; gap: .65rem; margin-top: 1rem; }
.btn { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; text-decoration: none;
  color: var(--text); background: #121213; border: 1px solid var(--line-2); transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--gold-line); }
.btn > div { flex: 1; min-width: 0; }
.btn strong { display: block; font: 600 1rem var(--sans); }
.btn span { display: block; font-size: .83rem; color: var(--muted); margin-top: .1rem; }
.btn::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); opacity: .55; margin-right: .2rem; }
.btn.primary { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: var(--glow); }
.btn.primary span { color: rgba(28, 16, 4, .72); }
.who { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.who strong { display: block; font: 600 1.1rem var(--sans); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: .35rem; height: 2.3rem; padding: 0 .95rem; border-radius: 99px; flex: none;
  background: var(--grad); color: var(--accent-ink); font: 600 .85rem var(--sans); text-decoration: none; box-shadow: var(--glow); }
.pill svg { width: .95rem; height: .95rem; }
.who span { color: var(--muted); font-size: .85rem; }
.who .link { margin-top: 0; }
.panel > .label { margin-bottom: .75rem; }

/* Etapas (recarga) */
.steps { display: flex; gap: .35rem; margin: -.4rem 0 1.1rem; }
.steps i { flex: 1; height: 3px; border-radius: 99px; background: var(--line-2); }
.steps i.on { background: var(--grad); }

/* Valores e volumes */
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
.amt { border: 1px solid var(--line-2); background: var(--ink); color: var(--text); border-radius: 14px; padding: .85rem .5rem;
  font: 600 1.1rem var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s; }
.amt small { display: block; font: 400 .74rem var(--sans); color: var(--muted); margin-top: .2rem; }
.amt[aria-pressed="true"] { border-color: var(--amber); background: rgba(249, 161, 0, .1); color: var(--amber); }
.amt[disabled] { opacity: .3; cursor: default; }
.tapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.9rem, 1fr)); gap: .45rem; }
.tapnum { height: 2.75rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text);
  font: 600 1rem var(--display); cursor: pointer; }
.tapnum[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); background: rgba(249, 161, 0, .1); }

/* ---------- Listas animadas (estilo AnimatedList da React Bits, nas cores do Sutil) ---------- */
:root { --spring: cubic-bezier(.34, 1.4, .64, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .0603, .2033, .3821, .5633, .7258, .8584, .9574, 1.0242, 1.0634, 1.0809, 1.0828, 1.0747, 1.0613,
    1.046, 1.0313, 1.0186, 1.0085, 1.0012, .9965, .994, .9931, .9933, .9941, .9953, .9966, .9978, .9988, 1); }
}
/* moldura fosca */
.al { position: relative; padding: 6px; border-radius: 26px; background: rgba(26, 26, 28, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .8), 0 6px 16px -8px rgba(0, 0, 0, .5); }
.al::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06); }
.al-track { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 20px; outline: none; }
.al:has(> .al-track:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
/* linha em "ladrilho" */
.al-row { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px 10px 10px;
  border-radius: 14px; background: linear-gradient(180deg, #2a2a2e 0%, #1e1e21 100%); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .7);
  color: var(--text); cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 620ms var(--spring), opacity 300ms cubic-bezier(.22, 1, .36, 1), filter 200ms ease; }
.al-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .1); }
/* entrada com "pop" (linhas fora da tela ficam encolhidas e transparentes) */
.al-row:not([data-state]) { opacity: 0; }
.al-row[data-state="above"], .al-ring[data-state="above"] { opacity: 0; transform: translate3d(0, -12px, 0) scale(.8); }
.al-row[data-state="below"], .al-ring[data-state="below"] { opacity: 0; transform: translate3d(0, 12px, 0) scale(.8); }
@media (hover: hover) { .al-row:hover { filter: brightness(1.12); } }
.al-row[data-selected]:not(:active) { filter: brightness(1.16); }
.al-row:active { filter: brightness(.88); }
.al-lead { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; overflow: hidden;
  border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.al-lead.lg { width: 52px; height: 52px; border-radius: 12px; }
.al-lead img { display: block; width: 100%; height: 100%; object-fit: cover; }
.al-ph { width: 100%; height: 100%; background: url(/img/brand/emblema.svg?v=o0PgrwjGyugR) center / 52% no-repeat; opacity: .42; }
.al-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.al-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: .94rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.al-desc { overflow: hidden; font-size: .82rem; line-height: 1.35; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.al-price { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.al-meta { flex: none; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.al-row.in .al-lead { color: var(--amber); background: rgba(249, 161, 0, .12); }
.al-row.in .al-meta { color: var(--amber); }
.al-row .add, .al-row .qty { position: relative; z-index: 4; flex: none; }
/* contorno ambar que desliza (mola) ate a linha selecionada */
.al-indicator { position: absolute; top: 0; left: 6px; right: 6px; z-index: 2; height: 0; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.al-ring { position: absolute; inset: 0; border-radius: 14px; background: rgba(249, 161, 0, .06); box-shadow: inset 0 0 0 1px rgba(249, 161, 0, .6);
  transition: transform 620ms var(--spring), opacity 300ms cubic-bezier(.22, 1, .36, 1); }
section.cat .al { margin-top: .75rem; }

/* ---------- Conta ---------- */
.balance { position: relative; overflow: hidden; padding: 1.4rem 1.3rem; border-radius: 22px; border: 1px solid var(--gold-line);
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)), url(/img/brand/textura-madeira.jpg?v=oHpKHjYqx8kn) center / cover;
  box-shadow: var(--shadow); }
.balance::after { content: ""; position: absolute; right: -1.4rem; top: -1.4rem; width: 8rem; height: 8rem;
  background: url(/img/brand/emblema.svg?v=o0PgrwjGyugR) center / contain no-repeat; opacity: .16; pointer-events: none; }
.balance .label { color: var(--amber); }
.balance strong { display: block; font: 700 2.8rem/1.05 var(--display); margin: .5rem 0 .4rem; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.balance small { color: var(--muted); font-size: .82rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; }
.duo a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 3.05rem; border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: .95rem; }
.duo .solid { background: var(--grad); color: var(--accent-ink); box-shadow: var(--glow); }
.duo .ghost { background: #121213; border: 1px solid var(--line-2); color: var(--text); }
h2.sec { font: 600 1.35rem var(--display); margin: 1.9rem 0 .35rem; }

/* ---------- Area da conta: abas e extrato ---------- */
.subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; margin-bottom: 1.1rem; border-radius: 14px;
  background: #101011; border: 1px solid var(--line); }
.subtabs a { display: grid; place-items: center; height: 2.4rem; border-radius: 11px; text-decoration: none; color: var(--muted);
  font: 600 .88rem var(--sans); }
.subtabs a[aria-current="page"] { background: var(--grad); color: var(--accent-ink); }
.st-warn { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1rem; padding: .75rem .9rem; border-radius: 14px;
  border: 1px dashed rgba(240, 138, 115, .45); background: rgba(240, 138, 115, .07); color: var(--text); font-size: .86rem; }
.st-warn svg.i { color: var(--danger); margin-top: .1rem; }
.st-filters { display: grid; gap: .55rem; margin: 1.2rem 0 .3rem; }
.st-day { margin-top: 1.3rem; }
.st-day h3 { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .55rem .2rem; }
.al-row.st .al-desc { white-space: normal; }
.st-when, .st-det { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ID inteiro (quebra onde precisar, sem cortar) */
.st-id { display: block; margin-top: 1px; font-size: .74rem; color: var(--faint); white-space: normal; overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums; }
.st-when { font-variant-numeric: tabular-nums; color: var(--faint); font-size: .76rem; }
.st-badge { display: inline-block; margin-right: .4rem; padding: 0 .45rem; border-radius: 99px; font-size: .7rem; font-weight: 600;
  line-height: 1.45rem; vertical-align: 1px; }
.st-badge::first-letter { text-transform: uppercase; }
/* verde = deu certo (aprovada, enviado); vermelho = falhou / nao realizado / estornada */
.st-badge.ok { background: rgba(52, 199, 89, .16); color: #34c759; }
.st-badge.wait { border: 1px solid var(--line-2); color: var(--muted); line-height: 1.35rem; }
.st-badge.bad { background: rgba(255, 69, 58, .16); color: #ff453a; }
.st-amt { white-space: nowrap; }
/* cor e icone por tipo */
.al-row.k-bonus .al-lead { color: #ffd27a; background: rgba(255, 210, 122, .12); }
.al-row.k-dosagem .al-lead { color: #d9a35f; background: rgba(217, 163, 95, .12); }
.al-row.k-pedido .al-lead { color: var(--text); background: var(--graphite-2); }
.al-row.k-estorno .al-lead { color: var(--danger); background: rgba(240, 138, 115, .12); }
.al-row.k-estorno .al-meta { color: var(--danger); }
.al-row.off .al-meta { color: var(--faint); text-decoration: line-through; }
.al-row.pend .al-meta { color: var(--muted); }
.st-more { display: block; margin: 1.2rem auto 0; }
.st-empty-sub { font-size: .86rem; margin-top: .3rem; }
/* Detalhe de uma linha do extrato (sheet) */
.st-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .6rem; }
.st-head h2 { margin-bottom: .1rem; }
.st-head .lede { margin: 0; font-variant-numeric: tabular-nums; font-size: .88rem; }
.st-ico { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; color: var(--amber);
  background: rgba(249, 161, 0, .12); }
.st-ico svg.i { width: 1.4rem; height: 1.4rem; }
.st-ico.k-bonus { color: #ffd27a; background: rgba(255, 210, 122, .12); }
.st-ico.k-dosagem { color: #d9a35f; background: rgba(217, 163, 95, .12); }
.st-ico.k-pedido { color: var(--text); background: var(--graphite-2); }
.st-ico.k-estorno { color: var(--danger); background: rgba(240, 138, 115, .12); }
.st-big { font: 700 1.9rem/1.1 var(--sans); font-variant-numeric: tabular-nums; margin: .2rem 0 .5rem; }
.st-big.in { color: var(--amber); }
.st-big.off { color: var(--faint); text-decoration: line-through; }
.st-status { margin-bottom: .9rem; }
.st-status .st-badge { font-size: .8rem; line-height: 1.7rem; padding: 0 .65rem; }
.st-status .st-badge.wait { line-height: 1.6rem; }
.pour-row b { overflow-wrap: anywhere; text-align: right; }
.st-items h3 { font: 600 1.15rem var(--display); margin-bottom: .4rem; }
.st-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.st-item-l { display: grid; gap: .15rem; min-width: 0; }
.st-item-l small { color: var(--amber); font-size: .84rem; }
.st-item > span { flex: none; font-variant-numeric: tabular-nums; }
.st-item.total { border-bottom: 0; padding-top: .9rem; }
.st-item.total span { font-weight: 700; color: var(--amber); }

/* ---------- Estados ---------- */
.status { text-align: center; padding: 2rem 1.25rem; }
.status h3 { font: 600 1.6rem/1.2 var(--display); margin: 1.1rem 0 .4rem; }
.status p { color: var(--muted); }
.status p + p { margin-top: .25rem; }
.status .ico { width: 4.1rem; height: 4.1rem; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--accent-ink); font-size: 1.8rem; font-weight: 700; box-shadow: var(--glow); }
.status.fail .ico { background: rgba(240, 138, 115, .12); color: var(--danger); border: 1px solid rgba(240, 138, 115, .4); box-shadow: none; }
.status .btn { text-align: left; margin-top: 1.25rem; }
.spinner { width: 2.6rem; height: 2.6rem; margin: 0 auto; border: 3px solid var(--line-2); border-top-color: var(--amber);
  border-radius: 50%; animation: spin 1s linear infinite; }
.empty { color: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.empty::before { content: ""; display: block; width: 3rem; height: 3rem; margin: 0 auto 1rem;
  background: url(/img/brand/emblema.svg?v=o0PgrwjGyugR) center / contain no-repeat; opacity: .5; }
.empty .chip { margin-top: 1rem; }
.note { color: var(--faint); font-size: .78rem; margin-top: 1.75rem; text-align: center; }
.note.warn { color: var(--danger); }
/* ---------- Pagamento Pagar.me: abas Pix/cartao, cartoes salvos, Pix copia e cola ---------- */
.subtabs button { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 2.4rem; border: 0; border-radius: 11px;
  background: none; color: var(--muted); font: 600 .88rem var(--sans); cursor: pointer; }
.subtabs button svg.i { width: 1rem; height: 1rem; }
.subtabs button[aria-selected="true"] { background: var(--grad); color: var(--accent-ink); }
.subtabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pg-gap { margin-top: 1.1rem; }
.pg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pg-cards { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pg-cards:empty { display: none; }
.pg-card { display: flex; align-items: center; gap: .7rem; min-height: 3.2rem; padding: .55rem .9rem; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--ink); cursor: pointer; }
.pg-card:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(249, 161, 0, .12); }
.pg-card input { width: 1.1rem; height: 1.1rem; accent-color: var(--amber); flex: none; }
.pg-card span { flex: 1; font-size: .95rem; }
.pg-card small { color: var(--muted); }
.pg-card .rm { background: none; border: 0; padding: .4rem; color: var(--muted); font: 400 .8rem var(--sans); text-decoration: underline; cursor: pointer; }
.pg-safe { margin: .2rem 0 1rem; }
.pg-mail-hint { margin: -.6rem 0 1rem; }
.pix { text-align: center; }
.pix-amount { font: 600 2rem var(--display); color: var(--text); }
.pix-clock { color: var(--amber); font-variant-numeric: tabular-nums; }
.pix-steps { text-align: left; margin: 1rem 0 1.1rem 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.pix-code { height: auto; min-height: 5.5rem; margin-top: .8rem; padding: .75rem .9rem; resize: none; overflow-wrap: anywhere;
  font: 400 .76rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.pix-or { margin: 1.4rem 0 0; }
.pix-qr { display: block; width: 13.75rem; height: 13.75rem; margin: .7rem auto 0; padding: .55rem; border-radius: 14px; background: #fff; }
.tm-links { margin: .2rem 0 1rem; font-size: .9rem; }
.tm-links a { color: var(--amber); }
.pg-card > svg.i { color: var(--muted); flex: none; }
.spinner.sm { display: inline-block; width: .9rem; height: .9rem; border-width: 2px; vertical-align: -.1rem; margin: 0 .25rem 0 0; }
.testbox { border: 1px dashed var(--gold-line); border-radius: var(--r); padding: 1rem; margin: 1rem 0; display: grid; gap: .55rem;
  background: #0e0b06; }
.testbox p { color: var(--amber); font-size: .85rem; }
.testbox button { height: 2.9rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text);
  font: 500 .92rem var(--sans); cursor: pointer; }
.testbox button:hover { border-color: var(--gold-line); }
.skel { height: 8rem; border-radius: var(--r); margin-bottom: .9rem; border: 1px solid var(--line);
  background: linear-gradient(90deg, #1a1a1c 0%, #252527 45%, #1a1a1c 90%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.skel.s { height: 4.5rem; }
/* Esqueleto da tela de Chopes, nas medidas do cartao "Na torneira agora", dos filtros e dos cartoes de chope */
.skel.hero-sk { height: 14.6rem; border-radius: 22px; margin-bottom: 1.25rem; }
.skel.chips-sk { height: 2.25rem; width: 72%; border-radius: 99px; margin-bottom: 1rem; }
.skel.beer-sk { height: 12.8rem; }

/* ---------- Janela inferior (entrar / liberar torneira) ---------- */
/* Fecha arrastando para baixo (alca ou corpo no topo do scroll): o app.js move o .sheet com transform e
   ajusta --dim (escurecimento do fundo). A pagina atras fica travada; o scroll de dentro continua. */
html.sheet-open, html.sheet-open body, html.sheet-open .page { overflow: hidden; overscroll-behavior: none; }
/* --vvh/--vvt (tabs.js): altura e topo da area visivel. Com o teclado aberto a area encolhe e o sheet sobe junto,
   ficando logo acima do teclado; --sab zera a folga da borda do iPhone, que fica escondida atras dele. */
:root { --sab: env(safe-area-inset-bottom); }
html.kbd { --sab: 0px; }
.sheet-back { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  transition: top .22s ease-out, height .22s ease-out; } /* acompanha o teclado subindo/descendo */
/* fundo escuro cobre a tela toda (fixo, com sobra): nenhuma faixa clara enquanto o teclado sobe ou desce */
.sheet-dim { position: fixed; inset: -50vh 0; background: rgba(5, 4, 3, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: var(--dim, 1); touch-action: none; transition: opacity .32s ease; animation: fade .18s ease-out; }
.sheet { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 34rem; max-height: 92%;
  background: #1c1c1e; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0; }
.sheet.enter { animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
.sheet.tall { height: 92%; }
.sheet.settling { transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.sheet-grip { flex: none; display: flex; justify-content: center; height: 1.9rem; padding-top: .7rem; cursor: grab; touch-action: none; }
.sheet-grip::before { content: ""; width: 2.6rem; height: 4px; border-radius: 99px; background: var(--line-2); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: .1rem max(1.2rem, env(safe-area-inset-right)) calc(1.3rem + var(--sab)) max(1.2rem, env(safe-area-inset-left)); }
.sheet-back.dragging .sheet { transition: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.sheet-back.dragging .sheet-dim { transition: none; }
.sheet-back.closing .sheet { transition: transform .26s cubic-bezier(.4, 0, 1, 1); }
.sheet-back.closing .sheet-dim { opacity: 0; transition: opacity .26s ease; }
.sheet .link:disabled { opacity: .35; cursor: default; }
/* Rodape fixo opcional (fora do scroll): o botao principal fica sempre a vista */
.sheet-foot { flex: none; padding: .8rem max(1.2rem, env(safe-area-inset-right)) calc(.9rem + var(--sab)) max(1.2rem, env(safe-area-inset-left));
  border-top: 1px solid var(--line-2); background: #1c1c1e; }
.sheet-foot:empty { display: none; }
.sheet:has(.sheet-foot:not(:empty)) .sheet-body { padding-bottom: 1.1rem; }

/* ---------- Detalhe do produto (sheet do cardapio) ---------- */
.al.tappable .al-row { cursor: pointer; }
/* foto do prato ocupando o quadro todo (recorte central) */
.ps-photo { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--ink); overflow: hidden; margin-bottom: 1.1rem; }
.ps-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-price { color: var(--amber); font: 600 1.15rem var(--sans); font-variant-numeric: tabular-nums; margin-bottom: .7rem; }
.ps-price small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.ps-desc { color: var(--text); font-size: .95rem; line-height: 1.6; margin-bottom: 1rem; white-space: pre-line; }
.ps-qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-qty > span { color: var(--muted); font-size: .9rem; }
.ps-extras { margin-top: 1.2rem; }
.ps-extras h3 { font: 600 1.15rem var(--display); }
.ps-extras .hint { margin: .2rem 0 .6rem; }
.ps-list { display: grid; }
.ps-extra { display: flex; align-items: center; gap: .75rem; min-height: 3.1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.ps-x-name { flex: 1; font-size: .95rem; }
.ps-x-price { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty button:disabled { opacity: .35; cursor: default; }
/* Observacao do item (detalhe do produto e pagina do pedido). 16px: o iPhone nao da zoom ao focar */
textarea.input.obs { height: auto; min-height: 4.6rem; padding: .8rem 1rem; resize: vertical; font-size: 1rem; line-height: 1.45; }
.ps-note { padding-top: 1rem; }
.ps-note .field { margin-bottom: .2rem; }
.al-note { display: block; margin-top: .2rem; color: var(--text); font-size: .82rem; }
.al-note.blank { color: var(--amber); font-weight: 500; }
.sheet h2 { font: 600 1.7rem/1.15 var(--display); margin-bottom: .35rem; }
.sheet .lede { margin-bottom: 1.1rem; }
.sheet .status { padding: 1rem .5rem .5rem; }
.sheet .amounts { grid-template-columns: repeat(3, 1fr); }
/* Como funciona a cobranca: serve quanto quiser, paga o que serviu */
.pour { border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink); padding: .35rem 1rem .9rem; margin-bottom: 1rem; }
.pour-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pour-row span { color: var(--muted); font-size: .88rem; }
.pour-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pour-row b small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.pour-row:first-child b { color: var(--amber); }
.pour-note { margin-top: .75rem; font-size: .86rem; color: var(--text); }
.sheet .pill { margin: -.25rem 0 1rem; }

/* ---------- Barra inferior ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--black);
  border-top: 1px solid var(--line);
  touch-action: none; /* arrastar sobre a barra nao rola nem "quica" nada (o tabs.js cuida do arraste entre abas) */ }
/* Teclado aberto no celular (tabs.js poe html.kbd): a barra e a do pedido saem de cena, em vez de flutuarem
   sobre o teclado; voltam quando ele fecha. */
html.kbd .tabs, html.kbd #cartbar { visibility: hidden; }
/* Efeito "borracha": indicador dourado (--l/--w/--sy controlados pelo tabs.js) e copia escura dos itens,
   recortada no formato do indicador, para o icone/texto ficarem escuros so onde ele passa */
.seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 34rem;
  height: var(--tabs-h); padding: 0 .5rem; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --l: 0px; --w: 0px; --sy: 1; --pad-y: .55rem; }
.seg a, .seg-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .28rem;
  font: 500 .7rem var(--sans); letter-spacing: .05em; text-decoration: none; }
.seg a { position: relative; z-index: 1; color: var(--faint); transition: color .15s; -webkit-tap-highlight-color: transparent; }
.seg a:hover { color: var(--muted); }
.seg a:focus-visible { outline: none; }
.seg a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.seg svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seg-thumb { position: absolute; top: var(--pad-y); bottom: var(--pad-y); left: var(--l); width: var(--w); border-radius: 16px;
  background: var(--grad); box-shadow: 0 6px 20px rgba(226, 134, 15, .35); transform: scaleY(var(--sy)); pointer-events: none; }
.seg-ink { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 .5rem;
  pointer-events: none; color: var(--accent-ink);
  clip-path: inset(var(--pad-y) calc(100% - var(--l) - var(--w)) var(--pad-y) var(--l) round 16px); }
.seg-ink .seg-item { font-weight: 600; }
.seg.dragging { cursor: grabbing; }

/* ---------- Paginas legais ---------- */
.legal-page { padding-bottom: 3rem; }
.legal { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem; line-height: 1.65; }
.legal .logo { height: 2.4rem; width: auto; display: block; }
.legal h1 { font: 600 2.1rem/1.15 var(--display); margin: 1.4rem 0 .3rem; }
.legal h2 { font: 600 1.2rem var(--display); margin: 1.9rem 0 .45rem; color: var(--amber); }
.legal p, .legal li { color: #d9cfc1; font-size: .95rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin: .45rem 0; }
.legal a { color: var(--amber); }
.legal .meta { color: var(--muted); font-size: .85rem; }
.legal .draft { background: rgba(249, 161, 0, .06); border: 1px dashed var(--gold-line); border-radius: 14px; padding: .75rem .95rem; margin: 1rem 0; color: var(--amber); }
.legal table { width: 100%; border-collapse: collapse; margin: .6rem 0; font-size: .88rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--line-2); }
.legal th { color: var(--muted); font-weight: 500; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (min-width: 40rem) {
  html { font-size: 17px; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line-2); }
  .sheet.tall { height: auto; } /* no computador nao ha teclado na tela */
  .sheet-back.closing .sheet { opacity: 0; transition: transform .26s cubic-bezier(.4, 0, 1, 1), opacity .26s ease; } /* centralizada: some descendo */
}
@media (prefers-reduced-motion: reduce) {
  html, .page { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
