:root {
  --fundo: #0d0d12;
  --card: #17171f;
  --card-2: #1f1f2a;
  --borda: #2a2a37;
  --texto: #f3f3f7;
  --suave: #9a9aae;
  --acento: #b6ff3b;
  --acento-texto: #0d0d12;
  --zap: #25d366;
  --raio: 18px;
  --sombra: 0 10px 30px rgba(0,0,0,.45);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
body.travado { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ===== Topo ===== */
.topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 10px; max-width: 720px; margin: 0 auto;
}
.marca { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--acento); color: var(--acento-texto);
  font-weight: 900; font-size: 18px; letter-spacing: -.5px;
  box-shadow: 0 0 24px rgba(182,255,59,.25);
}
.topo h1 { font-size: 19px; font-weight: 800; }
.slogan { margin: 2px 0 0; color: var(--suave); font-size: 13px; }
.topo-acoes { display: flex; gap: 8px; }
.icone-zap { color: var(--zap); }
.icone-link {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--card); border: 1px solid var(--borda);
  color: var(--texto); text-decoration: none;
}

/* ===== Destaque ===== */
.destaque { max-width: 720px; margin: 0 auto; padding: 4px 16px 6px; }
.destaque p {
  margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--suave);
  background: linear-gradient(135deg, rgba(182,255,59,.10), rgba(182,255,59,.02));
  border: 1px solid rgba(182,255,59,.18);
}
.destaque b { color: var(--texto); }

/* ===== Busca ===== */
.busca-wrap {
  position: relative; max-width: 688px; margin: 0 auto 10px; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 0 12px;
  color: var(--suave);
}
.busca-wrap:focus-within { border-color: var(--acento); }
.busca-wrap input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--texto);
  font: inherit; font-size: 16px; padding: 12px 0;
}
.busca-wrap input::-webkit-search-cancel-button { display: none; }
.limpar-busca { background: var(--card-2); border: 0; border-radius: 8px; width: 28px; height: 28px; font-size: 18px; line-height: 1; }

/* ===== Abas ===== */
.abas-wrap {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--fundo) 80%, transparent);
  padding: 8px 0 12px;
}
.abas {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px; max-width: 720px; margin: 0 auto;
  scroll-snap-type: x proximity;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  flex: 0 0 auto; scroll-snap-align: start;
  padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--borda);
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--suave);
  transition: background .15s, color .15s;
}
.aba[aria-selected="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }

/* ===== Lista de modelos ===== */
.lista { max-width: 720px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
.carregando, .vazio { text-align: center; color: var(--suave); padding: 48px 0; }

.modelo {
  background: var(--card); border: 1px solid var(--borda);
  border-radius: var(--raio); overflow: hidden;
  scroll-margin-top: 130px;
}
.modelo-cab { display: flex; gap: 14px; padding: 14px; align-items: center; }
.foto {
  flex: 0 0 92px; height: 112px; border-radius: 14px; overflow: hidden;
  background: var(--card-2); display: grid; place-items: center;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto svg { width: 70%; height: 85%; }
.modelo-info { flex: 1; min-width: 0; }
.modelo:hover { border-color: #34344a; }
.modelo-info h2 { font-size: 20px; font-weight: 800; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.n-sabores { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--suave); font-size: 12px; font-weight: 600; }
.puffs {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(182,255,59,.12); color: var(--acento); font-size: 12px; font-weight: 700;
}
.preco { margin-top: 8px; font-size: 22px; font-weight: 800; }
.preco small { font-size: 13px; color: var(--suave); font-weight: 500; }

.sabores { list-style: none; margin: 0; padding: 0 8px 8px; }
.sabor {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 10px 12px; border-top: 1px solid var(--borda);
}
.sabor-nome { flex: 1; font-size: 15px; }
.sabor-nome .preco-sabor { display: block; color: var(--suave); font-size: 13px; }
.ultimas { color: #ffb648; font-size: 12px; font-weight: 600; display: block; }

.qtd { display: flex; align-items: center; gap: 4px; }
.qtd-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; line-height: 1;
}
.qtd-mais { background: var(--acento); color: var(--acento-texto); }
.qtd-mais:disabled { opacity: .35; cursor: not-allowed; }
.qtd-menos { background: var(--card-2); border: 1px solid var(--borda); }
.qtd-num { min-width: 22px; text-align: center; font-weight: 700; }

/* ===== Rodapé ===== */
.rodape { text-align: center; color: var(--suave); font-size: 12px; padding: 28px 16px 8px; }
.rodape p { margin: 4px 0; }

/* ===== Botões ===== */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 16px;
}
.btn-primario { background: var(--acento); color: var(--acento-texto); }
.btn-zap { background: var(--zap); color: #062b14; }
.btn-zap:disabled { opacity: .5; }
.btn-fantasma { background: transparent; color: var(--suave); border: 1px solid var(--borda); }
.btn-pequeno { padding: 10px; font-size: 14px; font-weight: 600; margin-top: 8px; border: 0; }

/* ===== Barra do carrinho ===== */
.barra-carrinho {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: calc(100% - 32px); max-width: 688px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; border: 0;
  background: var(--acento); color: var(--acento-texto);
  font-weight: 700; box-shadow: var(--sombra);
  animation: sobe .25s ease-out;
}
.barra-carrinho strong { margin-left: auto; }
.barra-qtd {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--acento-texto); color: var(--acento);
  display: grid; place-items: center; font-size: 14px;
}
.barra-carrinho.pulsa { animation: pulsa .35s ease; }
@keyframes pulsa { 50% { transform: translateX(-50%) scale(1.03); } }
@keyframes sobe { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ===== Gaveta ===== */
.gaveta-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; }
.gaveta {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: 0;
  max-width: 720px; margin: 0 auto; max-height: 90vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--borda); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .28s ease;
}
.gaveta.aberta { transform: translateY(0); }
.gaveta-alca { width: 44px; height: 5px; border-radius: 9px; background: var(--borda); margin: 4px auto 10px; }
.gaveta-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gaveta-cab h2 { font-size: 20px; }
.itens { list-style: none; padding: 0; margin: 0 0 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.item-info { flex: 1; min-width: 0; }
.item-info b { display: block; font-size: 15px; }
.item-info span { color: var(--suave); font-size: 13px; }
.form { display: grid; gap: 12px; margin: 14px 0; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--suave); }
.form input[type="text"] {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--borda); color: var(--texto);
  font: inherit; font-size: 16px; outline: none;
}
.form input[type="text"]:focus { border-color: var(--acento); }
.opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: block !important; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; padding: 9px 16px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--borda);
  color: var(--texto); font-size: 14px; font-weight: 600;
}
.chip input:checked + span { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.chip input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 12px; }
.total strong { font-size: 24px; }

/* ===== Aviso 18+ ===== */
.idade {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(8,8,12,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.idade[hidden] { display: none; }
.idade-caixa {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--card); border: 1px solid var(--borda); border-radius: 22px;
  padding: 28px 20px 20px; display: grid; gap: 12px;
}
.idade-selo {
  width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 24px;
  border: 3px solid var(--acento); color: var(--acento);
}
.idade h2 { font-size: 21px; }
.idade p { margin: 0 0 6px; color: var(--suave); font-size: 14px; }
.idade-bloqueio { color: #ff6b6b !important; font-weight: 600; }

/* ===== Aviso rápido ===== */
.aviso {
  position: fixed; z-index: 60; left: 50%; top: 14px; transform: translate(-50%, -80px);
  background: var(--texto); color: var(--fundo); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; transition: transform .25s ease; pointer-events: none;
  max-width: calc(100% - 32px);
}
.aviso.mostrar { transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .foto { flex-basis: 120px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
