/* Cardapio web Cotto - layout de teste "Warm Editorial Commerce"
 * (Frontend/Web/CottoCardapio/web-teste, publicado em cardapioteste).
 * Creme de fundo, tinta azul-marinho, brasa laranja; uma coluna de ate
 * 520px (no PC fica centralizada). Fontes locais: Plus Jakarta Sans nos
 * titulos e Inter no resto (a CSP nao deixa buscar fora). */

@font-face { font-family: "Inter"; src: url("/fontes/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fontes/Inter-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fontes/Inter-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fontes/PlusJakartaSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fontes/PlusJakartaSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fontes/PlusJakartaSans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --creme: #faf7f2;
  --creme-2: #f3eee6;
  --branco: #ffffff;
  --tinta: #0d1b3a;
  --tinta-2: #1a2a4f;
  --brasa: #ff5a1f;
  --brasa-escura: #e2470f;
  --brasa-clara: #fff0e9;
  --ouro: #f2b33d;
  --ouro-claro: #fdf3dc;
  --verde: #1f9d6b;
  --verde-claro: rgba(31, 157, 107, .12);
  --vermelho: #d93a3a;
  --cinza: #6b7280;
  --cinza-2: #9ca3af;
  --linha: #efe9e1;
  --sombra-1: 0 4px 20px rgba(13, 27, 58, .06);
  --sombra-2: 0 2px 10px rgba(13, 27, 58, .04);
  --sombra-3: 0 12px 32px rgba(13, 27, 58, .14);
  --raio: 14px;
  --raio-card: 20px;
  --raio-folha: 28px;
  --largura: 520px;
  --abas: 64px;
  --titulo: "Jakarta", "Inter", "Segoe UI", system-ui, sans-serif;
  --texto: "Inter", "Segoe UI", Arial, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--creme-2);
  color: var(--tinta); font: 400 14px/1.45 var(--texto);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.travado { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--titulo); margin: 0; letter-spacing: -.02em; color: var(--tinta); }
.preco, .valor, output, .item-preco, .barra-total, .resumo span:last-child { font-variant-numeric: tabular-nums; }

/* ---------- coluna ---------- */
.app {
  position: relative; max-width: var(--largura); min-height: 100vh; margin: 0 auto;
  background: var(--creme); padding-bottom: calc(var(--abas) + 24px + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 1px var(--linha), var(--sombra-1);
}
.app.com-barra { padding-bottom: calc(var(--abas) + 96px + env(safe-area-inset-bottom)); }
.conteudo { padding: 0 16px; }

/* ---------- botoes ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; width: 100%; padding: 0 20px; border-radius: var(--raio);
  background: var(--brasa); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px rgba(255, 90, 31, .28); transition: transform .12s, filter .12s, background .12s;
}
.botao:hover:not(:disabled) { background: var(--brasa-escura); }
.botao:active:not(:disabled) { transform: scale(.98); }
.botao:disabled { background: #e9ddd3; color: #a8968a; box-shadow: none; }
.botao .valor { margin-left: auto; font-weight: 800; }
.botao > span:first-child:not(:last-child) { flex: 1; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botao.claro { background: var(--branco); color: var(--tinta); border: 1px solid var(--linha); box-shadow: none; }
.botao.claro:hover:not(:disabled) { background: #fbf8f4; }
.botao.escuro { background: var(--tinta); box-shadow: none; }
.botao.pequeno { min-height: 38px; width: auto; padding: 0 14px; font-size: 13px; border-radius: 999px; box-shadow: none; }
.botao.whats { background: #1faa59; }
.botao.whats svg { width: 18px; height: 18px; }
.link { color: var(--brasa); font-weight: 600; font-size: 13px; padding: 6px 0; }
.link.perigo { color: var(--brasa); }
.redondo {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--branco); border: 1px solid var(--linha); color: var(--tinta);
}
.redondo.vidro { background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: transparent; box-shadow: var(--sombra-2); }
.mais-redondo {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--brasa); color: #fff; box-shadow: 0 6px 14px rgba(255, 90, 31, .35);
}
.mais-redondo svg { width: 18px; height: 18px; }
.mais-redondo:disabled { background: #e3d9cf; box-shadow: none; }
.mais-redondo.pequeno { width: 28px; height: 28px; }
.mais-redondo.pequeno svg { width: 15px; height: 15px; }

/* ---------- selos ---------- */
.selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selos:empty { display: none; }
.selo {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 14px; white-space: nowrap;
}
.selo svg { width: 12px; height: 12px; }
.selo.ouro { background: var(--ouro); color: var(--tinta); }
.selo.claro { background: var(--creme-2); color: var(--tinta); border: 1px solid var(--linha); }
.selo.verde { background: var(--verde-claro); color: var(--verde); }
.selo.verde-forte { background: var(--verde); color: #fff; }
.selo.ok { background: var(--verde-claro); color: var(--verde); }
.selo.espera { background: var(--ouro-claro); color: #8a5a00; }
.selo.ruim { background: #fde8e8; color: var(--vermelho); }

/* ---------- inicio: capa ---------- */
.hero { margin: 0 -16px; }
.hero-capa {
  position: relative; height: 188px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 90, 31, .55), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(242, 179, 61, .45), transparent 60%),
    linear-gradient(160deg, #1a2a4f 0%, #0d1b3a 70%);
}
/* Foto de capa (uma por visita), com veu escuro para o endereco e a folha. */
.hero-capa.com-foto { height: 220px; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: aparece .4s ease; }
.hero-capa.com-foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 27, 58, .45) 0%, rgba(13, 27, 58, 0) 38%, rgba(13, 27, 58, .25) 100%);
}
.chip-vidro { z-index: 1; }
.hero-capa.com-foto .hero-marca { display: none; }
.hero-marca { position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px; opacity: .12; display: grid; place-items: center; font: 800 80px var(--titulo); color: #fff; }
.chip-vidro {
  position: absolute; top: 16px; left: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 12px; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .2);
}
.chip-vidro span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-vidro svg { width: 15px; height: 15px; }
.hero-corpo {
  position: relative; margin-top: -28px; padding: 0 16px 6px; background: var(--creme);
  border-radius: var(--raio-folha) var(--raio-folha) 0 0;
}
.hero-logo {
  position: absolute; top: -40px; left: 16px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; background: var(--tinta); color: #fff;
  font: 800 24px var(--titulo); border: 4px solid var(--creme); box-shadow: var(--sombra-3);
}
/* Logo de qualquer formato (largo, com texto) inteiro dentro do circulo. */
.hero-logo:has(img) { background: #fff; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.hero-linha { display: flex; align-items: center; gap: 10px; padding-top: 46px; }
.hero-nome { font-size: 26px; line-height: 32px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-sub { margin: 2px 0 0; color: var(--cinza); font-size: 13px; }
.status-loja { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-loja.aberta { background: var(--verde-claro); color: var(--verde); }
.status-loja.fechada { background: #fde8e8; color: var(--vermelho); }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); animation: pulso 1.8s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 7px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.chips-info { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-info {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--branco); border: 1px solid var(--linha); font-size: 12px; font-weight: 500; color: var(--tinta);
}
.chip-info svg { width: 15px; height: 15px; color: var(--cinza); }
.chip-info.destaque { background: var(--brasa-clara); border-color: #ffd9c7; color: var(--brasa-escura); }
.chip-info.verde { background: var(--verde-claro); border-color: rgba(31, 157, 107, .25); color: var(--verde); }
.chip-info.verde svg { color: var(--verde); }

/* barra da entrega gratis (sacola) */
.frete-gratis {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; padding: 12px 14px;
  border-radius: var(--raio-card); background: var(--branco); border: 1px solid var(--linha); font-size: 13px;
}
.frete-gratis span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.frete-gratis span svg { color: var(--verde); width: 18px; height: 18px; }
.frete-gratis b { font-weight: 500; min-width: 0; }
.frete-gratis strong { color: var(--verde); }
.frete-gratis small { color: var(--cinza); font-weight: 600; }
.frete-gratis i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--creme-2); position: relative; overflow: hidden; }
.frete-gratis i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); border-radius: 3px; background: linear-gradient(90deg, var(--brasa), var(--verde)); transition: width .3s; }
.frete-gratis.ok { border-color: rgba(31, 157, 107, .35); background: rgba(31, 157, 107, .06); }
.chip-info.destaque svg { color: var(--brasa); }

/* ---------- secoes ---------- */
.secao { margin-top: 26px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.secao-topo h2 { font-size: 20px; line-height: 26px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secao-topo.pequena h3 { font-size: 15px; font-weight: 700; }
.secao-topo .contagem { color: var(--cinza); font-size: 12px; white-space: nowrap; }

.carrossel {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.carrossel::-webkit-scrollbar { display: none; }

/* cartao da promocao */
.card-promo {
  flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; overflow: hidden;
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); box-shadow: var(--sombra-1);
}
.cp-foto { position: relative; display: block; width: 100%; }
.cp-foto .foto.larga { height: 160px; border-radius: 0; }
.cp-foto .selo { position: absolute; top: 12px; left: 12px; }
.cp-foto .selo.verde-forte { left: auto; right: 12px; top: auto; bottom: 12px; }
.cp-corpo { padding: 12px 14px 14px; }
.cp-nome { display: block; text-align: left; font: 700 17px/22px var(--titulo); letter-spacing: -.01em; }
.cp-desc { margin: 4px 0 0; color: var(--cinza); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

/* categorias do inicio */
.grade-categorias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-categoria {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px 12px; text-align: left;
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); box-shadow: var(--sombra-1);
}
.card-categoria .foto.categoria { width: 100%; height: 96px; border-radius: var(--raio); margin-bottom: 8px; }
.cc-nome { font: 700 15px/20px var(--titulo); padding: 0 4px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-qtd { color: var(--cinza); font-size: 12px; padding: 0 4px; }

/* foto (com o icone quando falta) */
.foto {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #f4ede4, #ece3d7); color: #c9b9a6;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto svg { width: 40%; height: 40%; }
.foto.larga { width: 100%; }

/* ---------- topo do cardapio ---------- */
.topo-cardapio {
  position: sticky; top: 0; z-index: 30; padding: 12px 16px 10px;
  background: rgba(250, 247, 242, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sombra-2); border-bottom: 1px solid var(--linha);
}
.tc-linha { display: flex; align-items: center; gap: 12px; }
.tc-titulo { font-size: 20px; font-weight: 700; flex: none; }
.tc-loja { margin-left: auto; color: var(--cinza); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.busca { position: relative; display: block; margin-top: 10px; }
.busca-icone { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cinza); display: grid; }
.busca-icone svg { width: 18px; height: 18px; }
.busca input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; outline: none;
  border: 1px solid var(--linha); background: var(--branco); font-size: 14px;
}
.busca input:focus { border-color: var(--brasa); box-shadow: 0 0 0 3px rgba(255, 90, 31, .15); }
.pilulas { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.pilulas::-webkit-scrollbar { display: none; }
.pilula {
  display: inline-flex; align-items: center; gap: 4px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--branco); border: 1px solid var(--linha); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pilula span { color: var(--cinza); font-weight: 500; }
.pilula svg { width: 14px; height: 14px; color: var(--brasa); }
.pilula[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.pilula[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }
.pilula[aria-pressed="true"] svg { color: var(--ouro); }

.barra-ordem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; color: var(--cinza); font-size: 12px; }
.barra-ordem > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordem select {
  height: 32px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid var(--linha); background: var(--branco);
  font-size: 12px; font-weight: 600; color: var(--tinta); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cinza) 50%), linear-gradient(135deg, var(--cinza) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat;
}

.secao-cardapio { margin-top: 22px; scroll-margin-top: 170px; }
.lista { display: grid; gap: 12px; }

/* cartao horizontal do produto */
.card-item {
  position: relative; display: flex; gap: 12px; padding: 14px; overflow: hidden;
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); box-shadow: var(--sombra-1);
}
.card-item.destaque::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brasa); }
.ci-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.ci-nome { font: 600 16px/21px var(--titulo); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-desc { color: var(--cinza); font-size: 12.5px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-preco { margin-top: auto; padding-top: 4px; }
.ci-foto { position: relative; flex: none; width: 96px; height: 96px; }
.ci-foto-botao { display: block; width: 100%; height: 100%; }
.ci-foto .foto { width: 96px; height: 96px; border-radius: var(--raio); }
.ci-foto .mais-redondo { position: absolute; right: -6px; bottom: -6px; border: 3px solid var(--branco); width: 38px; height: 38px; }
.mini-qtd {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: flex; align-items: center;
  background: var(--tinta); color: #fff; border-radius: 999px; padding: 3px; box-shadow: var(--sombra-3); border: 2px solid var(--branco);
}
.mini-qtd button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.mini-qtd button:last-child { background: var(--brasa); }
.mini-qtd svg { width: 14px; height: 14px; }
.mini-qtd output { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; }
.card-item.na-sacola { border-color: #ffd9c7; }

.preco { font-weight: 700; font-size: 15px; color: var(--tinta); }
.preco small { font-weight: 500; font-size: 11px; color: var(--cinza); }
.preco s { color: var(--cinza-2); font-weight: 500; font-size: 12px; margin-right: 2px; }
.preco .promo { color: var(--verde); }

/* ---------- avisos ---------- */
.aviso-loja {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: var(--raio-card);
  background: #fff5f0; border: 1px solid #ffd9c7; color: var(--tinta);
}
.aviso-loja > svg { color: var(--brasa); margin-top: 2px; }
.aviso-loja div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.aviso-loja span { color: var(--cinza); font-size: 13px; }
.aviso-loja .botao { margin-top: 6px; }
.faixa {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 14px; border-radius: var(--raio-card);
  background: var(--tinta); color: #fff; box-shadow: var(--sombra-3);
}
.faixa > svg { color: var(--ouro); }
.faixa > span { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: rgba(255, 255, 255, .75); min-width: 0; }
.faixa strong { color: #fff; font-size: 14px; }
.faixa .botao { background: var(--brasa); }
.vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--cinza); grid-column: 1 / -1; }
.vazio strong { color: var(--tinta); font: 700 17px var(--titulo); }
.vazio svg { width: 40px; height: 40px; color: #d8c8b5; }
.nota-fotos { text-align: center; color: var(--cinza-2); font-size: 11px; margin: 28px 0 0; }
.carregando { display: grid; gap: 12px; padding-top: 16px; }
.esqueleto { height: 110px; border-radius: var(--raio-card); background: linear-gradient(90deg, #f1ebe2 0%, #f8f4ee 50%, #f1ebe2 100%); background-size: 200% 100%; animation: brilho 1.2s infinite; }
.esqueleto.alto { height: 220px; margin: 0 -16px; border-radius: 0; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- barra da sacola e abas ---------- */
.barra-sacola {
  position: fixed; z-index: 35; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--abas) + 12px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), calc(var(--largura) - 32px));
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--tinta); color: #fff; box-shadow: var(--sombra-3); text-align: left;
}
.barra-sacola.pulsa { animation: pulsa .35s ease; }
@keyframes pulsa { 50% { transform: translateX(-50%) scale(1.03); } }
.barra-qtd { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--brasa); font-weight: 800; }
.barra-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.barra-texto small { color: rgba(255, 255, 255, .65); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-total { font-weight: 800; font-size: 16px; }
.barra-seta { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.barra-seta svg { width: 16px; height: 16px; }

.abas {
  position: fixed; z-index: 34; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--largura));
  display: flex; height: calc(var(--abas) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linha); box-shadow: 0 -2px 10px rgba(13, 27, 58, .04);
}
.abas > * {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--cinza-2); font-size: 11px; font-weight: 600; text-decoration: none; position: relative;
}
.abas svg { width: 22px; height: 22px; }
.abas [aria-current="true"] { color: var(--brasa); }
.abas [aria-current="true"]::after { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brasa); }
#aba-pedidos.com-pedido::before { content: ""; position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--brasa); border: 2px solid #fff; }

/* ---------- janela do produto ---------- */
dialog.produto {
  padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--creme); color: var(--tinta);
}
dialog.produto::backdrop { background: rgba(13, 27, 58, .4); }
@media (min-width: 560px) {
  dialog.produto { margin: auto; max-width: var(--largura); height: min(92vh, 860px); border-radius: var(--raio-folha); box-shadow: var(--sombra-3); }
}
.pd { display: flex; flex-direction: column; height: 100%; }
.pd-rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pd-foto { position: relative; height: 300px; display: grid; place-items: center; background: linear-gradient(135deg, #f4ede4, #e8dccd); color: #c9b9a6; }
.pd-foto.sem { height: 200px; }
.pd-foto > svg { width: 64px; height: 64px; }
.pd-foto img { width: 100%; height: 100%; object-fit: cover; }
.pd-foto::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(13, 27, 58, .25)); pointer-events: none; }
.pd-fechar { position: absolute; top: 14px; left: 14px; z-index: 1; }
.pd-folha { position: relative; margin-top: -28px; padding: 22px 16px 24px; background: var(--creme); border-radius: var(--raio-folha) var(--raio-folha) 0 0; display: flex; flex-direction: column; gap: 10px; }
.pd-folha h2 { font-size: 24px; line-height: 30px; font-weight: 700; }
.pd-desc { margin: 0; color: var(--cinza); font-size: 14px; }
.pd-preco { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pd-preco .preco { font-size: 22px; font-weight: 800; }
.pd-preco .preco s { font-size: 14px; }
.nota-fotos-produto { margin: 0; color: var(--cinza-2); font-size: 11px; }
.grupo { margin-top: 6px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); padding: 14px; box-shadow: var(--sombra-1); }
.grupo-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; scroll-margin-top: 12px; }
.grupo-topo > div { display: flex; flex-direction: column; min-width: 0; }
.grupo-topo strong { font: 700 16px var(--titulo); letter-spacing: -.01em; }
.ajuda { color: var(--cinza); font-size: 12px; font-weight: 400; }
.grupo-tags { display: flex; gap: 6px; flex: none; }
.tag { padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; background: var(--creme-2); color: var(--cinza); white-space: nowrap; }
.tag.escura { background: var(--tinta); color: #fff; }
.tag.contador { background: var(--verde-claro); color: var(--verde); }
.tag.contador.completo { background: var(--verde); color: #fff; }
.sabores-busca { width: 100%; height: 40px; padding: 0 14px; margin-bottom: 10px; border-radius: 999px; border: 1px solid var(--linha); background: var(--creme); outline: none; }
.opcoes-lista { display: grid; gap: 8px; }
.sabor {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: var(--raio);
  border: 1px solid var(--linha); background: var(--branco); cursor: pointer; transition: border-color .12s, background .12s;
}
.sabor input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sabor:has(input:checked), .sabor.marcado { border-color: var(--brasa); background: var(--brasa-clara); }
.sabor:has(input:focus-visible) { outline: 2px solid var(--brasa); outline-offset: 2px; }
.sabor.travado { opacity: .45; cursor: not-allowed; }
.sabor.extra { cursor: default; }
.sabor-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sabor-nome { font-weight: 600; font-size: 14px; }
.sabor-ing { color: var(--cinza); font-size: 12px; }
.sabor-preco { color: var(--cinza); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sabor-foto { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--creme-2); display: grid; place-items: center; color: #c9b9a6; }
.sabor-foto img { width: 100%; height: 100%; object-fit: cover; }
.anel { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #e4d8cb; background: #fff; color: #fff; transition: all .12s; }
.anel.quadrado { border-radius: 7px; }
.anel svg { width: 14px; height: 14px; opacity: 0; }
.sabor input:checked + .anel { border-color: var(--brasa); background: var(--brasa); }
.sabor input:checked + .anel:not(.quadrado) { box-shadow: inset 0 0 0 4px #fff; }
.sabor input:checked + .anel svg { opacity: 1; }
.pd-rodape {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--branco); border-top: 1px solid var(--linha); box-shadow: 0 -8px 24px rgba(13, 27, 58, .06);
}
.pd-rodape .botao { flex: 1; width: auto; min-width: 0; padding: 0 16px; gap: 8px; }

/* stepper */
.qtd { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--creme); border: 1px solid var(--linha); flex: none; }
.qtd button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--tinta); }
.qtd button:hover { background: #fff; }
.qtd button:last-child { color: var(--brasa); }
.qtd output { min-width: 26px; text-align: center; font-weight: 700; font-size: 16px; }
.qtd.pequena button { width: 30px; height: 30px; }
.qtd.pequena svg { width: 16px; height: 16px; }
.qtd.pequena output { min-width: 20px; font-size: 14px; }

/* ---------- folha (sacola, checkout, pedido) ---------- */
.veu { position: fixed; inset: 0; z-index: 40; background: rgba(13, 27, 58, .4); animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.sacola {
  position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(100%, var(--largura)); max-height: 94vh; height: 94vh;
  display: flex; flex-direction: column; background: var(--creme); border-radius: var(--raio-folha) var(--raio-folha) 0 0;
  box-shadow: var(--sombra-3); transform: translate(-50%, 105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  visibility: hidden;
}
.sacola.aberta { transform: translate(-50%, 0); visibility: visible; }
.sacola[data-passo="sacola"] { height: auto; min-height: 50vh; }
.folha-alca { width: 40px; height: 5px; border-radius: 3px; background: #ddd2c5; margin: 10px auto 0; flex: none; }
.sacola-topo { display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px; flex: none; }
.st-titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-titulo h2 { font-size: 21px; font-weight: 700; }
.st-titulo small { color: var(--cinza); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sacola-rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
/* Coluna que rola: nada encolhe (o carrossel sumia com o nome dos produtos). */
.sacola-rolagem > *, .card-mini > * { flex: none; }
.sacola-rodape { flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--branco); border-top: 1px solid var(--linha); display: grid; gap: 10px; }
.rodape-nota { margin: 0; text-align: center; color: var(--cinza-2); font-size: 11px; }

.itens { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--raio-card);
  background: var(--branco); border: 1px solid var(--linha); box-shadow: var(--sombra-1);
}
.item .foto { width: 56px; height: 56px; }
.item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-nome { font: 600 14.5px/19px var(--titulo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-obs { color: var(--cinza); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-preco { font-weight: 700; font-size: 14px; margin-top: 3px; }

.carrossel.mini { margin: -4px -16px 0; }
.card-mini {
  flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; box-shadow: var(--sombra-1);
}
.cm-foto { display: block; }
.cm-foto .foto.larga { height: 84px; border-radius: 12px; }
.cm-nome { font-size: 12.5px; font-weight: 600; line-height: 16px; height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-linha { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cm-linha .preco { font-size: 13px; }
.cm-linha .preco s { display: none; }

.cupom { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); padding: 4px 14px; }
.cupom summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 600; cursor: pointer; list-style: none; }
.cupom summary::-webkit-details-marker { display: none; }
.cupom summary svg { color: var(--brasa); width: 18px; height: 18px; }
.cupom-linha { display: flex; gap: 8px; padding-bottom: 12px; }
.cupom-linha input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linha); background: var(--creme); outline: none; text-transform: uppercase; }
.cupom-ok { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; color: var(--verde); font-weight: 600; font-size: 13px; }
.cupom-ok span { flex: 1; }
.cupom-ok button { color: var(--cinza); font-size: 12px; text-decoration: underline; }

.resumo { display: grid; gap: 8px; padding: 14px; border-radius: var(--raio-card); background: var(--branco); border: 1px solid var(--linha); font-size: 13.5px; }
.resumo > div { display: flex; justify-content: space-between; gap: 12px; color: var(--cinza); }
.resumo .desconto { color: var(--verde); }
.resumo .total { padding-top: 8px; border-top: 1px dashed var(--linha); color: var(--tinta); font-weight: 700; font-size: 17px; }
.cartao-form .resumo { padding: 0; border: 0; margin-top: 4px; }

/* checkout */
.etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px 10px; flex: none; }
.etapas span { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 600; color: var(--tinta); }
.etapas span:nth-child(2) { text-align: center; }
.etapas span:nth-child(3) { text-align: right; }
.etapas i { display: block; height: 4px; border-radius: 2px; background: var(--brasa); }
.alternar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--branco); border: 1px solid var(--linha); }
.alternar button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--cinza); }
.alternar button svg { width: 17px; height: 17px; }
.alternar button[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.cartao-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; border-radius: var(--raio-card); background: var(--branco); border: 1px solid var(--linha); box-shadow: var(--sombra-1); }
.cartao-form h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-family: var(--texto); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.seguro { display: inline-flex; align-items: center; gap: 4px; color: var(--verde); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 11px; }
.seguro svg { width: 14px; height: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.campo.ajuda { font-weight: 400; color: var(--cinza); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--raio); border: 1px solid var(--linha);
  background: var(--creme); outline: none; font-weight: 400; font-size: 15px; resize: vertical;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--brasa); background: #fff; box-shadow: 0 0 0 3px rgba(255, 90, 31, .12); }
.duas { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.linha-acao {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--raio); text-align: left;
  border: 1px solid var(--linha); background: var(--creme); font-weight: 600;
}
.linha-acao > svg { color: var(--brasa); }
.linha-acao span { display: flex; flex-direction: column; min-width: 0; }
.linha-acao small { color: var(--cinza); font-weight: 400; font-size: 12px; }
.linha-acao.destaque { border-color: #ffc6ae; background: var(--brasa-clara); }
.linha-acao.ok { border-color: rgba(31, 157, 107, .35); background: var(--verde-claro); }
.linha-acao.ok > svg { color: var(--verde); }
.pagamentos { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.pagamento {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--raio); cursor: pointer;
  border: 1px solid var(--linha); background: var(--branco);
}
.pagamento input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pagamento:has(input:checked) { border-color: var(--verde); background: rgba(31, 157, 107, .06); box-shadow: 0 0 0 1px var(--verde); }
.pagamento input:checked + .anel { border-color: var(--verde); background: var(--verde); box-shadow: inset 0 0 0 4px #fff; }
.pagamento:has(input:focus-visible) { outline: 2px solid var(--brasa); outline-offset: 2px; }
.pg-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-texto strong { font-size: 14px; }
.pg-texto small { color: var(--cinza); font-size: 12px; }
.pg-icone { color: var(--cinza); }
.erro { margin: 0; color: var(--vermelho); font-size: 13px; font-weight: 500; }

/* pedido */
.status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 8px 8px; }
.status-icone { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 6px; }
.status-icone svg { width: 36px; height: 36px; }
.status-icone.espera { background: var(--ouro-claro); color: #b07400; animation: respira 1.6s ease-in-out infinite; }
.status-icone.ok { background: var(--verde); color: #fff; box-shadow: 0 10px 24px rgba(31, 157, 107, .35); }
.status-icone.ruim { background: #fde8e8; color: var(--vermelho); }
@keyframes respira { 50% { transform: scale(1.06); } }
.status h3 { font-size: 22px; }
.status p { margin: 0; color: var(--cinza); }
.status-total { font: 800 22px var(--titulo); color: var(--tinta) !important; margin-top: 4px !important; }
.status-numero { font-size: 13px; }
.tempo { list-style: none; margin: 0; padding: 16px 14px; display: grid; gap: 0; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-card); }
.tempo li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.tempo li:last-child { padding-bottom: 0; }
.tempo li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--linha); }
.tempo li.feito:not(:last-child)::before { background: var(--verde); }
.tempo-ponto { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--linha); background: #fff; color: #fff; }
.tempo-ponto svg { width: 13px; height: 13px; }
.tempo li.feito .tempo-ponto { background: var(--verde); border-color: var(--verde); }
.tempo li.agora .tempo-ponto { border-color: var(--brasa); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--brasa); }
.tempo li.ruim .tempo-ponto { background: var(--vermelho); border-color: var(--vermelho); }
.tempo li span:last-child { display: flex; flex-direction: column; }
.tempo small { color: var(--cinza); font-size: 12px; }
.tempo li:not(.feito):not(.agora):not(.ruim) strong { color: var(--cinza-2); }

/* historico */
.historico { padding: 14px; border-radius: var(--raio-card); background: var(--branco); border: 1px solid var(--linha); box-shadow: var(--sombra-1); }
.historico-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--cinza); font-size: 12px; }
.historico-itens { margin: 8px 0 10px; font-size: 13.5px; }
.historico-rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.historico-rodape strong { font-size: 16px; }
.historico-acoes { display: flex; gap: 8px; }

/* aviso flutuante */
.aviso-flutuante {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top));
  width: max-content; max-width: min(92vw, 440px); padding: 11px 18px; text-align: center; border-radius: 999px; background: var(--tinta); color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--sombra-3); animation: desce .25s ease;
}
@keyframes desce { from { opacity: 0; transform: translate(-50%, -8px); } }

/* telas maiores: a coluna fica centralizada sobre o creme mais escuro */
@media (min-width: 560px) {
  body { padding: 0; }
  .card-promo { flex-basis: 300px; }
  .grade-categorias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
