/* Cardápio do cliente final. Visual do NA PRESSA (dark premium, quente e apetitoso), mobile-first.
 * Títulos e preços em Bricolage Grotesque (hospedada aqui, licença OFL em /static/fonts). A cor de cada loja
 * vira o degradê (--ini → --fim), calculado em loja.js com contraste de texto garantido. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #0f0c09; --bg-2: #16110c; --card: #1a1410; --card-hi: #241c15; --line: #2c231b; --line-hi: #3d3126;
  --ink: #f7f1e8; --muted: #a5978a;
  --brand: #ff5a2e; --ini: #ff5a2e; --fim: #ffb03a; --tinta: #1d0d03; --preco: #ffb03a;
  --grad: linear-gradient(100deg, var(--ini) 10%, var(--fim) 90%);
  --verde: #2fd670; --verde-whats: #25d366; --erro: #ff6b5e;
  --radius: 18px; --sombra: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(60% 30% at 80% -5%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 60%),
    radial-gradient(50% 25% at 10% 0%, color-mix(in srgb, var(--fim) 8%, transparent), transparent 60%),
    var(--bg);
  color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.4;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--preco); }
::selection { background: color-mix(in srgb, var(--fim) 40%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--fim); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.page { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.carregando, .vazio { text-align: center; color: var(--muted); padding: 4rem 1rem; }

/* ===== capa ===== */
.hero {
  position: relative; overflow: hidden; padding: 30px 18px 22px; border-radius: 0 0 26px 26px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 14%, #120a05) 0%, #140d07 55%, color-mix(in srgb, var(--fim) 10%, #140b05) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 85% 10%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 65%),
              radial-gradient(35% 45% at 15% 90%, color-mix(in srgb, var(--fim) 11%, transparent), transparent 60%); }
.hero-art { position: absolute; right: -34px; top: -30px; width: 210px; height: 210px; opacity: .09; transform: rotate(12deg);
  pointer-events: none; background: no-repeat center / contain; }
.hero-body { position: relative; }
.logo-row { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 74px; height: 74px; flex: none; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 15%, color-mix(in srgb, var(--brand) 22%, #1a0d05), #150c05);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brand) 60%, transparent), 0 0 22px color-mix(in srgb, var(--brand) 42%, transparent), 0 10px 26px rgba(0, 0, 0, .5);
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--fim);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.store-name {
  /* nome comprido diminui a letra em vez de quebrar a palavra no meio (--letras = a maior palavra do nome) */
  font-family: var(--font-display); font-size: min(30px, calc((100vw - 132px) / (var(--letras, 8) * .6))); font-weight: 800; letter-spacing: .2px; line-height: 1.02;
  color: #fff; overflow-wrap: break-word;
}
.store-tag { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.hero-desc { color: var(--muted); font-size: 13.5px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px var(--verde); animation: pulsa 1.6s infinite; }
.chip.fechado .dot { background: var(--erro); box-shadow: none; animation: none; }
@keyframes pulsa { 50% { opacity: .35; } }

/* ===== avisos logo abaixo da capa ===== */
.banner { margin: 12px 14px 0; padding: 11px 14px; border-radius: 13px; font-size: 13.5px; line-height: 1.45; }
.banner-fechado { background: rgba(255, 176, 58, .08); border: 1px solid rgba(255, 176, 58, .25); color: #ffd9a8; }
.banner-pausado { background: rgba(255, 107, 94, .1); border: 1px solid rgba(255, 107, 94, .38); color: #ffcac4; }
.banner-pausado b { color: #fff0ee; }
.banner-demo { background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-hi); color: var(--muted); }
.banner-demo b { color: var(--ink); }
.repetir {
  display: flex; align-items: center; gap: 12px; text-align: left; width: calc(100% - 28px); margin: 12px 14px 0;
  background: var(--card); color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--fim) 45%, transparent); border-radius: 15px;
  padding: 12px 14px; font-size: 13.5px; transition: background .15s;
}
.repetir:active { background: var(--card-hi); }
.repetir small { color: var(--muted); font-size: 12px; }
.repetir-ico { font-size: 22px; }
.repetir-seta { margin-left: auto; color: var(--preco); font-size: 22px; font-weight: 800; }

/* ===== busca + categorias (fixas no topo) ===== */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(15, 12, 9, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 35, 27, .6); padding: 10px 14px 0; margin-top: 8px; }
.busca input {
  width: 100%; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 11px 14px 11px 38px; font-size: 16px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a5978a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center;
}
.busca input:focus { border-color: var(--fim); }
.busca input::placeholder { color: var(--muted); }
.catnav { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav button { flex: none; color: var(--muted); background: var(--card); border: 1.5px solid var(--line); padding: 8px 15px; border-radius: 99px;
  font-size: 13.5px; font-weight: 700; transition: color .15s, border-color .15s; }
.catnav button.ativo { background: var(--grad); color: var(--tinta); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }

/* ===== cardápio ===== */
main { padding: 6px 14px 40px; }
.secao h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin: 26px 2px 12px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 120px; }
.secao h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }
.card {
  display: flex; gap: 13px; align-items: stretch; position: relative; cursor: pointer;
  background: linear-gradient(180deg, var(--card), #171209); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 11px; box-shadow: var(--sombra); transition: transform .14s ease, border-color .14s ease; -webkit-tap-highlight-color: transparent;
}
.card:hover { border-color: var(--line-hi); }
.card:active { transform: scale(.982); }
.card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-nome { font-weight: 800; font-size: 15.5px; letter-spacing: .1px; }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-preco { margin-top: auto; padding-top: 8px; font-family: var(--font-display); color: var(--preco); font-weight: 800; font-size: 16.5px; }
.card-preco small { font-family: -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: 12px; color: var(--muted); margin-right: 3px; }
.card-foto { width: 88px; height: 88px; flex: none; border-radius: 14px; align-self: center; overflow: hidden; display: grid; place-items: center; font-size: 40px;
  background: radial-gradient(120% 120% at 30% 20%, #2e2117, #1c1510); border: 1px solid var(--line); }
.card-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rodape { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px 14px 140px; line-height: 1.6; }
.rodape-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; margin: 0 auto 10px; display: block; opacity: .9; }
.rodape b { color: var(--ink); }
.rodape-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.rodape-links button, .rodape-links a { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 9px 14px; font-size: 13px; font-weight: 700; text-decoration: none; }
.rodape .marca a { color: var(--muted); }

/* ===== barra do carrinho ===== */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; width: min(92%, 530px);
  display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--grad); color: var(--tinta); border: none;
  padding: 16px 18px; border-radius: 17px; font-size: 15px; font-weight: 800;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand) 45%, transparent), 0 4px 12px rgba(0, 0, 0, .4); animation: sobe .25s ease;
}
@keyframes sobe { from { transform: translate(-50%, 80px); opacity: 0; } }
.cartbar.bump { animation: bump .32s ease; }
@keyframes bump { 35% { transform: translateX(-50%) scale(1.045); } }
.cartbar-qtd { background: rgba(0, 0, 0, .22); border-radius: 99px; min-width: 27px; height: 27px; display: grid; place-items: center; font-size: 13px; font-weight: 900; padding: 0 7px; }
.cartbar span:nth-child(2) { margin-right: auto; }

/* ===== quadros que sobem de baixo (dialog nativo) ===== */
dialog {
  border: 1px solid var(--line); border-bottom: 0; padding: 0; margin: auto auto 0; width: min(100%, 560px); max-width: 100%; max-height: 92dvh;
  border-radius: 24px 24px 0 0; background: var(--bg-2); color: var(--ink); overflow: hidden;
}
dialog::backdrop { background: rgba(6, 4, 2, .72); backdrop-filter: blur(4px); }
dialog[open] .dlg-in { animation: sheet-sobe .3s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheet-sobe { from { transform: translateY(70px); opacity: .4; } }
.dlg-in { position: relative; padding: 10px 18px 24px; overflow-y: auto; max-height: 92dvh; overscroll-behavior: contain; }
.alca { width: 44px; height: 5px; border-radius: 99px; background: var(--line-hi); margin: 6px auto 14px; }
.sheet-fechar { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card-hi); color: var(--muted); font-size: 15px; font-weight: 700; }
.dlg-in h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 4px; padding-right: 48px; line-height: 1.15; }
.sheet-foto { width: 94px; height: 94px; border-radius: 18px; margin-bottom: 12px; overflow: hidden; display: grid; place-items: center; font-size: 48px;
  background: radial-gradient(120% 120% at 30% 20%, #2e2117, #1c1510); border: 1px solid var(--line); }
.sheet-foto.com-foto { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 46vh; }   /* 4:3 mostra o lanche inteiro (as fotos costumam ser quadradas) */
.sheet-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 4px 0 14px; }

/* escolhas (1 opção) */
.escolha { border: 1.5px solid var(--line); border-radius: 15px; background: var(--bg); padding: 13px; margin: 4px 0 14px; transition: border-color .15s; }
.escolha.falta { border-color: var(--fim); }
.escolha-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.escolha-titulo { font-weight: 800; font-size: 14.5px; }
.escolha-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.escolha-tag { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; background: var(--card-hi); color: var(--muted); }
.escolha.falta .escolha-tag, .escolha.obrig:not(:has(input:checked)) .escolha-tag { background: var(--grad); color: var(--tinta); }
.escolha-item { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.escolha-item:last-child { margin-bottom: 0; }
.escolha-item:has(input:checked) { border-color: var(--fim); background: var(--card-hi); }
.escolha-item:has(input:focus-visible) { outline: 2px solid var(--fim); outline-offset: 2px; }
.escolha-nome { font-weight: 700; font-size: 14px; flex: 1; }
.escolha-preco { color: var(--preco); font-weight: 700; font-size: 13px; }
.marca-radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-hi); display: grid; place-items: center; }
.escolha-item:has(input:checked) .marca-radio { border-color: var(--fim); }
.escolha-item:has(input:checked) .marca-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fim); }

/* adicionais (várias opções): o botão vira "adicionado" no toque */
.adicionais-titulo { font-weight: 800; font-size: 14.5px; margin: 14px 0 10px; display: flex; align-items: center; gap: 8px; }
.adicionais-titulo::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--grad); }
.adicionais-titulo small { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: auto; }
.adicional { position: relative; display: flex; align-items: center; gap: 11px; cursor: pointer;
  background: linear-gradient(165deg, var(--card-hi), var(--card) 70%); border: 1.5px solid var(--line-hi); border-radius: 15px;
  padding: 11px 12px; margin-bottom: 9px; font-size: 14px; box-shadow: 0 3px 12px rgba(0, 0, 0, .22); transition: border-color .18s, box-shadow .18s; }
.adicional:has(input:checked) { border-color: var(--fim); box-shadow: 0 4px 16px color-mix(in srgb, var(--fim) 16%, transparent); }
.adicional:has(input:focus-visible) { outline: 2px solid var(--fim); outline-offset: 2px; }
.adicional-info { min-width: 0; flex: 1; }
.adicional-nome { font-weight: 700; font-size: 14px; line-height: 1.25; display: block; }
.adicional-preco { color: var(--preco); font-weight: 700; font-size: 13px; display: block; margin-top: 3px; }
.adicional-add { flex: none; background: var(--grad); color: var(--tinta); font-weight: 800; font-size: 13.5px; padding: 10px 14px; border-radius: 11px; white-space: nowrap;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.adicional .ok { display: none; }
.adicional:has(input:checked) .adicional-add { background: var(--card); color: var(--verde); box-shadow: none; border: 1.5px solid color-mix(in srgb, var(--verde) 50%, transparent); }
.adicional:has(input:checked) .add { display: none; }
.adicional:has(input:checked) .ok { display: inline; }

/* campos */
.campo { display: block; margin-bottom: 12px; }
.campo > span, .campo-titulo { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.campo em { color: var(--muted); font-style: normal; font-weight: 500; }
.campo small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.campo input, .campo textarea, .campo select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card); color: var(--ink);
  padding: 13px; font-size: 16px; outline: none; transition: border-color .15s;
}
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a5978a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--fim); }
.campo input::placeholder, .campo textarea::placeholder { color: #8d7f72; }
.linha-campo { display: flex; gap: 8px; }
.linha-campo input { flex: 1; min-width: 0; }
/* serviços: dia e horário lado a lado, os dois do mesmo tamanho */
.quando { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.quando input, .quando select { width: 100%; min-width: 0; color-scheme: dark; }
details.mais { border: 1.5px dashed var(--line-hi); border-radius: 13px; padding: 0 13px; margin-bottom: 12px; }
details.mais summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 13.5px; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
details.mais summary::-webkit-details-marker { display: none; }
details.mais summary::after { content: "+"; color: var(--preco); font-size: 18px; line-height: 1; }
details.mais[open] summary::after { content: "−"; }
details.mais[open] { padding-bottom: 12px; }

/* stepper e botões */
.stepper { display: flex; align-items: center; gap: 2px; flex: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 13px; padding: 2px; }
.stepper button { width: 44px; height: 44px; border: none; border-radius: 10px; background: transparent; color: var(--preco); font-size: 22px; font-weight: 800; touch-action: manipulation; }
.stepper button:active { background: var(--card-hi); }
.stepper b { min-width: 24px; text-align: center; font-size: 16px; }
.btn { display: block; border: none; border-radius: 14px; font-size: 15.5px; font-weight: 800; padding: 15px 18px; text-align: center; text-decoration: none;
  transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.85); opacity: .6; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-brand { background: var(--grad); color: var(--tinta); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-verde { background: var(--verde-whats); color: #04421d; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }
.btn-fantasma { background: transparent; color: var(--muted); }
.btn-sec { background: var(--card-hi); color: var(--ink); border: 1px solid var(--line-hi); }
.btn-larga { width: 100%; margin-top: 10px; }
.btn-peq { padding: 9px 13px; font-size: 13px; border-radius: 10px; display: inline-block; }

/* rodapé fixo dos quadros: ação principal (e total) sempre à vista do polegar */
.rodape-acao { position: sticky; bottom: -24px; /* -24px = o padding de baixo do .dlg-in: assim ele encosta na borda */ margin: 16px -18px -24px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg-2); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -14px #000; display: flex; gap: 12px; align-items: center; z-index: 2; }
.rodape-acao .btn { flex: 1; min-width: 0; white-space: nowrap; padding: 14px 12px; }
.rodape-acao .total-fixo { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.rodape-acao .total-fixo small { color: var(--muted); font-size: 12px; }
.rodape-acao .total-fixo b { font-family: var(--font-display); font-size: 19px; color: var(--preco); white-space: nowrap; }

/* carrinho */
.item-carrinho { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px 10px 10px 13px; margin-bottom: 8px; }
.item-carrinho .info { flex: 1; min-width: 0; }
.item-carrinho .nome { font-weight: 700; font-size: 14px; }
.item-carrinho .extra { color: var(--muted); font-size: 12px; margin-top: 2px; }
.item-carrinho .preco { font-weight: 800; font-size: 13.5px; color: var(--preco); margin-top: 2px; }
/* peça junto: sugestões com foto que entram no carrinho com um toque */
.junto { margin: 14px 0 4px; }
.junto-tit { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.junto-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.junto-it { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.junto-it:active { background: var(--card-hi); }
.junto-ft { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--card-hi); }
.junto-ft img { width: 100%; height: 100%; object-fit: cover; display: block; }
.junto-txt { display: grid; gap: 1px; padding: 0 2px; min-width: 0; }
.junto-txt b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.junto-txt small { font-weight: 800; font-size: 12.5px; color: var(--preco); }
.junto-mais { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand, var(--preco)); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.linha-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; margin-top: 14px; }
.voltar { background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 700; margin: 0 0 8px; padding: 6px 0; }

/* finalizar: entrega/retirada e pagamento */
.toggle { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 12px 0 16px; }
.toggle label { flex: 1; position: relative; text-align: center; border-radius: 11px; padding: 11px; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; }
.toggle label:has(input:checked) { background: var(--grad); color: var(--tinta); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.toggle label:has(input:focus-visible), .pagamentos label:has(input:focus-visible) { outline: 2px solid var(--fim); outline-offset: 2px; }
.pagamentos { display: flex; gap: 8px; }
.pagamentos label { flex: 1; position: relative; text-align: center; border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 13px; padding: 13px 4px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s; }
.pagamentos label:has(input:checked) { border-color: var(--fim); background: var(--card-hi); color: var(--preco); }
.resumo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 16px 0 4px; }
.resumo .linha { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; color: var(--muted); }
.resumo .linha.desconto { color: var(--verde); }
.resumo .linha-total { color: var(--ink); font-size: 17px; margin-top: 6px; border-top: 1px dashed var(--line-hi); padding-top: 9px; }
.erro { background: rgba(255, 107, 94, .08); border: 1px solid rgba(255, 107, 94, .3); color: var(--erro); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin-top: 10px; }
.nota-seguranca, .nota { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* confirmação */
.fim-check { font-size: 64px; text-align: center; margin-top: 6px; animation: pula .5s ease; }
@keyframes pula { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } }
.fim-titulo { text-align: center; padding-right: 0 !important; margin-top: 6px; }
.fim-sub { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 8px 0 16px; }
.pix { background: linear-gradient(150deg, rgba(47, 214, 112, .1), rgba(47, 214, 112, .02) 70%); border: 1.5px solid rgba(47, 214, 112, .4); border-radius: 15px; padding: 14px; margin-top: 4px; }
.pix > b { font-family: var(--font-display); font-size: 17px; }
.pix p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.pix textarea { width: 100%; height: 76px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; word-break: break-all; resize: none; }
.qr img { width: 210px; height: 210px; display: block; margin: 12px auto 0; border-radius: 14px; background: #fff; padding: 8px; }
.qr p { text-align: center; }
.aviso-demo { background: rgba(255, 176, 58, .1); border: 1px solid rgba(255, 176, 58, .35); color: #ffd9a8 !important; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin: 0 0 10px !important; }
.status-linha { display: flex; gap: 6px; margin: 16px 0 8px; }
.status-linha i { height: 6px; flex: 1; background: var(--line-hi); border-radius: 99px; }
.status-linha i.on { background: var(--verde); box-shadow: 0 0 10px color-mix(in srgb, var(--verde) 50%, transparent); }
.status-txt { text-align: center; font-weight: 800; }
.hist { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; margin-bottom: 8px; }
.hist .info { flex: 1; min-width: 0; font-size: 13.5px; }
.hist small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mut { color: var(--muted); } .peq { font-size: 13px; }
ul.horarios { list-style: none; margin: 8px 0 4px; }
ul.horarios li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }

/* aviso rápido (toast) */
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 60; max-width: 90vw;
  background: var(--card-hi); color: var(--ink); border: 1px solid var(--line-hi); padding: 11px 18px; border-radius: 13px; font-size: 14px; font-weight: 700;
  box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.mostra { opacity: 1; transform: translate(-50%, 0); }
#toast.erro { border-color: rgba(255, 107, 94, .5); color: #ffcac4; }

@media (min-width: 600px) {
  body { background-color: #0a0806; }
  .page { box-shadow: 0 0 0 1px var(--line), 0 0 80px color-mix(in srgb, var(--brand) 6%, transparent); background: var(--bg); }
  dialog { margin: auto; border-radius: 24px; border-bottom: 1px solid var(--line); max-height: 88vh; }
  .dlg-in { max-height: 88vh; }
  .card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ícones desenhados (no lugar dos emojis) */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .i { color: var(--fim); }
.card-foto .i, .sheet-foto .i { width: 42%; height: 42%; color: var(--fim); stroke-width: 1.5; }
.repetir-ico .i { width: 24px; height: 24px; color: var(--fim); }
.sheet-fechar .i { width: 18px; height: 18px; }
.fim-check { display: grid; place-items: center; }
.fim-check .i { width: 64px; height: 64px; padding: 14px; border-radius: 50%; color: #fff; background: var(--verde); stroke-width: 2.6; }
.banner-fechado .i { color: #ffd9a8; }

/* promoções no estilo NA PRESSA: selo, preço "separado" riscado e quanto economiza; aviso da loja logo abaixo da capa */
.selo { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 99px; background: var(--grad); color: var(--tinta);
  font: 800 10.5px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.card-antes { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-antes s { text-decoration-thickness: 1.5px; }
.economize { display: inline-block; margin-top: 7px; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--verde) 16%, transparent);
  color: var(--verde); border: 1px solid color-mix(in srgb, var(--verde) 40%, transparent); font: 800 11.5px/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.banner-aviso { background: color-mix(in srgb, var(--brand) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); color: var(--ink); font-weight: 600; }

/* demo de lead sem logo: o espaço da logo dele, pontilhado na cor da loja (ele se imagina ali) */
.logo-vaga { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 1px; border: 2px dashed currentColor; border-radius: inherit;
  font: 800 .5rem/1.05 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-align: center; opacity: .95; }
.logo-vaga svg { width: 38%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.logo-vaga b { font-weight: 900; } .logo-vaga small { font-size: inherit; opacity: .8; }

/* entrega grátis: quanto falta (aumenta o ticket médio) */
.frete-meta { margin: 14px 0 4px; padding: 12px 14px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.frete-meta p { margin: 0 0 8px; font-size: .95rem; }
.frete-meta.ok { border-color: var(--verde); }
.frete-barra { height: 8px; border-radius: 99px; background: var(--card-hi); overflow: hidden; }
.frete-barra i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .35s ease; }
.frete-meta.ok .frete-barra i { background: var(--verde); }
/* troco: as notas que a pessoa provavelmente tem */
.troco-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.troco-op { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-hi); background: var(--card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.troco-op.ativo { border-color: var(--brand); background: var(--brand); color: #fff; }
.nota-pix, .abrindo-zap { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }
.abrindo-zap { display: flex; gap: 8px; align-items: center; border-color: var(--verde); }
.abrindo-zap svg { width: 20px; height: 20px; color: var(--verde); flex: none; }

/* Destaques: vitrine em carrossel no topo (itens que o dono marcou) */
.destaques { margin: 16px 0 4px; }
.destaques h2 { display: flex; align-items: center; gap: 6px; margin: 0 14px 10px; font-size: 16px; }
.destaques h2 .i { width: 18px; height: 18px; color: var(--fim); fill: currentColor; }
.dest-trilho { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dest-trilho::-webkit-scrollbar { display: none; }
.dest { flex: none; width: 138px; scroll-snap-align: start; text-align: left; background: var(--card); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 16px; padding: 0 0 10px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; font: inherit; cursor: pointer; }
.dest:active { transform: scale(.98); }
.dest-foto { position: relative; display: grid; place-items: center; height: 104px; background: var(--card-hi); font-size: 36px; margin-bottom: 5px; }
.dest-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-foto .i { width: 40%; height: 40%; color: var(--fim); stroke-width: 1.5; }
.dest-foto .selo { position: absolute; left: 7px; top: 7px; margin: 0; font-size: 10px; padding: 3px 7px; }
.dest-nome { padding: 0 10px; font-weight: 700; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-preco { padding: 0 10px; font-weight: 800; color: var(--preco); font-size: 13.5px; margin-top: auto; }
.dest-preco small { font-weight: 500; color: var(--muted); font-size: 11px; }
.share-item { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 10px; padding: 7px 12px; border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 600;
  background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); cursor: pointer; }
.share-item .i { width: 15px; height: 15px; }

/* ===== vitrine: vídeo atrás do logo, nota real do Google, pontos fortes ===== */
.hero.com-video { min-height: 300px; display: flex; align-items: flex-end; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.86) 100%); }
.hero.com-video .hero-body { width: 100%; }
.hero.com-video .store-name, .hero.com-video .store-tag, .hero.com-video .hero-desc { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.nota { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 13px; }
.nota .est { width: 15px; height: 15px; background: color-mix(in srgb, currentColor 22%, transparent);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.nota .est.on { background: #ffc531; }
.nota .est.meia { background: linear-gradient(90deg, #ffc531 50%, color-mix(in srgb, currentColor 22%, transparent) 50%); }
.nota b { margin-left: 5px; font-weight: 800; }
.nota span { margin-left: 6px; opacity: .78; }
.pontos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.pontos li { display: inline-flex; align-items: center; gap: 5px; }
.pontos .i { width: 15px; height: 15px; color: var(--verde); }

/* ===== temas por ramo (psicologia das cores) ===== */
html[data-visual="claro"] {
  --bg: #ffffff; --bg-2: #f7f5fa; --card: #ffffff; --card-hi: #f4f1f8; --line: #ece7f2; --line-hi: #dcd4e6;
  --ink: #1d1428; --muted: #6c6479; --sombra: 0 10px 30px rgba(40, 20, 60, .08);
}
html[data-visual="creme"] {
  --bg: #fff9f1; --bg-2: #fbf1e3; --card: #ffffff; --card-hi: #fbf3e8; --line: #f0e3d0; --line-hi: #e4d2b8;
  --ink: #3a2414; --muted: #7d6553; --sombra: 0 10px 30px rgba(80, 45, 15, .08);
}
html[data-visual="claro"] body, html[data-visual="creme"] body {
  background: radial-gradient(60% 30% at 80% -5%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), var(--bg);
}
html[data-visual="claro"] .hero:not(.com-video), html[data-visual="creme"] .hero:not(.com-video) {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, var(--bg)) 0%, var(--bg) 70%);
}
html[data-visual="claro"] .logo, html[data-visual="creme"] .logo {
  background: #fff; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent), 0 10px 26px rgba(40, 20, 60, .12);
}
html[data-visual="claro"] .card, html[data-visual="creme"] .card { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(40, 20, 60, .05); }
html[data-visual="claro"] ::selection, html[data-visual="creme"] ::selection { color: var(--ink); }
html[data-visual="claro"] .topbar, html[data-visual="creme"] .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
html[data-visual="claro"] .card, html[data-visual="creme"] .card { background: var(--card); }
html[data-visual="claro"] .card-foto, html[data-visual="creme"] .card-foto { background: var(--card-hi); }
html[data-visual="claro"] .dest, html[data-visual="creme"] .dest { background: var(--card); box-shadow: 0 6px 18px rgba(40, 20, 60, .06); }
html[data-visual="claro"] .hero:not(.com-video) .store-name, html[data-visual="creme"] .hero:not(.com-video) .store-name { color: var(--ink); -webkit-text-fill-color: var(--ink); text-shadow: none; }

/* cashback no carrinho */
.cashback { margin: 6px 0 12px; padding: 14px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--verde) 60%, transparent);
  background: color-mix(in srgb, var(--verde) 9%, var(--card)); }
.cashback .cb-topo { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.cashback .cb-topo input { width: 20px; height: 20px; accent-color: var(--verde); }
.cashback .cb-cod { margin: 10px 0 0; }
.cashback .cb-cod input { letter-spacing: .3em; font-weight: 800; max-width: 140px; }

/* avaliação de 1 toque */
.aval-est { display: flex; justify-content: center; gap: 10px; margin: 18px 0 16px; }
.aval-est button { width: 46px; height: 46px; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--ink) 18%, transparent);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: transform .15s, background .15s; }
.aval-est button.on { background: #ffc531; transform: scale(1.08); }
.aval-est button:active { transform: scale(.9); }
