:root {
  --fundo: #0b0b0b;
  --fundo-2: #151412;
  --cartao: #1b1a17;
  --borda: #2e2b25;
  --texto: #f6f1e7;
  --texto-2: #b9b1a1;
  --ouro: #f2c230;
  --ouro-claro: #ffe27a;
  --ouro-escuro: #d99a12;
  --grad-ouro: linear-gradient(180deg, #ffe27a 0%, #f2c230 45%, #d99a12 100%);
  --verde: #3fbf7f;
  --vermelho: #ff6b5b;
  --raio: 16px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 88px;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(11, 11, 11, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 44px; height: auto; }
.marca-nome {
  font-family: Lobster, cursive; font-size: 1.55rem; line-height: 1;
  background: var(--grad-ouro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-carrinho-topo {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--borda); background: var(--cartao); color: var(--ouro);
}
.contador {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--ouro); color: #111; font-size: .75rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- hero ---------- */
.hero {
  text-align: center; padding: 48px 16px 36px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(242, 194, 48, .22), transparent 60%),
    var(--fundo);
}
.hero-sol { margin: 0 auto 6px; width: 110px; height: auto; }
.hero h1 {
  margin: 0; font-family: Lobster, cursive; font-weight: 400;
  font-size: clamp(3rem, 13vw, 5.2rem); line-height: 1.05;
  background: var(--grad-ouro); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6));
}
.hero-sub {
  margin: 6px 0 18px; color: var(--ouro); font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-sub::before, .hero-sub::after { content: ""; height: 2px; width: 36px; background: var(--grad-ouro); }
.hero-texto { max-width: 520px; margin: 0 auto 18px; color: var(--texto-2); font-size: 1.05rem; }
.hero-texto strong { color: var(--texto); }
.bairros-lista {
  list-style: none; padding: 0; margin: 0 auto 26px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.bairros-lista li {
  padding: 6px 14px; border: 1px solid rgba(242, 194, 48, .45); border-radius: 999px;
  color: var(--ouro-claro); font-size: .85rem; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .02em;
}
.btn-ouro { background: var(--grad-ouro); color: #1a1405; box-shadow: 0 6px 20px rgba(242, 194, 48, .25); }
.btn-ouro:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- passos ---------- */
.passos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 900px; margin: 0 auto; padding: 0 16px 28px;
}
.passo {
  background: var(--fundo-2); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 14px 12px; text-align: center;
}
.passo span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-ouro); color: #1a1405; font-weight: 800; margin-bottom: 6px;
}
.passo p { margin: 0; font-size: .82rem; color: var(--texto-2); font-weight: 500; }

.aviso-fechado {
  max-width: 900px; margin: 0 auto 18px; padding: 14px 16px; border-radius: var(--raio);
  background: rgba(255, 107, 91, .12); border: 1px solid rgba(255, 107, 91, .4); color: #ffd0ca;
  text-align: center; font-weight: 600; width: calc(100% - 32px);
}

/* ---------- cardápio ---------- */
.cardapio { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.titulo-secao {
  display: flex; align-items: center; gap: 14px;
  font-family: Lobster, cursive; font-weight: 400; font-size: 2rem; color: var(--ouro);
  margin: 26px 0 16px;
}
.titulo-secao::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--ouro), transparent); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.produto {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.produto-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.produto-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.produto:hover .produto-foto img { transform: scale(1.04); }
.preco-selo {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--grad-ouro); color: #1a1405; font-weight: 800;
  padding: 6px 12px; border-radius: 10px; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.preco-selo small { font-size: .7em; margin-right: 2px; }
.produto-info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.produto-info h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.produto-info p { margin: 0 0 14px; color: var(--texto-2); font-size: .9rem; flex: 1; }
.produto-acoes { display: flex; justify-content: flex-end; }
.btn-add {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ouro);
  background: transparent; color: var(--ouro); font-weight: 800;
}
.btn-add:hover { background: rgba(242, 194, 48, .1); }

.qtd {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--fundo); border: 1px solid var(--borda); border-radius: 999px; padding: 3px;
}
.qtd button {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--grad-ouro); color: #1a1405; font-size: 1.3rem; font-weight: 800; line-height: 1;
}
.qtd button.menos { background: #2a2722; color: var(--texto); }
.qtd output { min-width: 28px; text-align: center; font-weight: 800; }

/* ---------- rodapé ---------- */
.rodape { text-align: center; padding: 30px 16px 40px; border-top: 1px solid var(--borda); color: var(--texto-2); font-size: .9rem; }
.rodape img { margin: 0 auto 8px; }
.rodape p { margin: 4px 0; }
.rodape strong { color: var(--ouro); }
.pagamentos { font-size: .8rem; margin-top: 12px !important; }

/* ---------- barra do carrinho ---------- */
.barra-carrinho {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--grad-ouro); color: #1a1405; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-width: 560px; margin: 0 auto;
}

/* ---------- carrinho (gaveta) ---------- */
.fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
.carrinho {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100%); background: var(--fundo-2); border-left: 1px solid var(--borda);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
}
.carrinho.aberto { transform: none; }
.carrinho-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--borda);
}
.carrinho-topo h2 { margin: 0; font-family: Lobster, cursive; font-weight: 400; color: var(--ouro); font-size: 1.7rem; }
.fechar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borda); background: var(--cartao); color: var(--texto); font-size: 1.6rem; line-height: 1; }
.carrinho-corpo { flex: 1; overflow-y: auto; padding: 12px 16px 28px; }
.vazio { color: var(--texto-2); text-align: center; padding: 30px 10px; }

.itens-carrinho { list-style: none; margin: 0; padding: 0; }
.item-carrinho {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--borda);
}
.item-carrinho img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.item-carrinho .nome { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.item-carrinho .preco { color: var(--ouro); font-weight: 700; font-size: .9rem; }
.item-carrinho .qtd button { width: 32px; height: 32px; font-size: 1.1rem; }

.checkout h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.checkout label { display: block; margin: 0 0 12px; font-weight: 600; font-size: .9rem; }
.checkout input, .checkout textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  background: var(--fundo); color: var(--texto); border: 1px solid var(--borda); border-radius: 12px;
  font: inherit; font-size: 16px;
}
.checkout input:focus, .checkout textarea:focus, .opcao-bairro:focus-within { outline: 2px solid var(--ouro); outline-offset: 1px; }
.checkout .invalido { border-color: var(--vermelho); }
.opcional { color: var(--texto-2); font-weight: 400; }
.bairros { border: 0; padding: 0; margin: 0 0 12px; }
.bairros legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.opcoes-bairro { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcao-bairro { position: relative; border-radius: 12px; }
.opcao-bairro input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao-bairro span {
  display: block; text-align: center; padding: 12px 8px; border-radius: 12px;
  border: 1px solid var(--borda); background: var(--fundo); font-weight: 700;
}
.opcao-bairro input:checked + span { background: var(--grad-ouro); color: #1a1405; border-color: transparent; }
.bairros.invalido .opcao-bairro span { border-color: var(--vermelho); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.resumo { margin: 18px 0 14px; padding: 14px; border-radius: 12px; background: var(--cartao); border: 1px solid var(--borda); }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--texto-2); }
.resumo .gratis { color: var(--verde); font-weight: 700; }
.resumo .total { color: var(--texto); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 10px; }
.erro { background: rgba(255, 107, 91, .12); border: 1px solid rgba(255, 107, 91, .45); color: #ffd0ca; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.btn-pagar { width: 100%; }
.seguro { text-align: center; color: var(--texto-2); font-size: .8rem; margin: 10px 0 0; }

/* ---------- página do pedido / painel ---------- */
.pagina { max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; }
.cartao-status {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 24px 20px; text-align: center; box-shadow: var(--sombra);
}
.icone-status { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.cartao-status h1 { font-size: 1.5rem; margin: 0 0 6px; }
.cartao-status .sub { color: var(--texto-2); margin: 0 0 18px; }
.detalhes { text-align: left; margin-top: 18px; border-top: 1px solid var(--borda); padding-top: 14px; }
.detalhes div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.detalhes span:first-child { color: var(--texto-2); }
.detalhes .total { font-weight: 800; font-size: 1.1rem; }
.demo-box { margin-top: 18px; padding: 14px; border: 1px dashed var(--ouro); border-radius: 12px; font-size: .9rem; color: var(--texto-2); }
.demo-box .btn { margin-top: 10px; min-height: 44px; }

@media (max-width: 640px) {
  .passos { grid-template-columns: 1fr; }
  .passo { display: flex; align-items: center; gap: 12px; text-align: left; }
  .passo span { margin: 0; flex: none; }
  .grade { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .barra-carrinho { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
