/* Cardápio online — tema escuro (celular primeiro) */
:root {
  --fundo: #141414; --painel: #1e1e1e; --painel2: #262626; --borda: #2f2f2f;
  --texto: #f2f2f2; --cinza: #a8a8a8; --cinza2: #7d7d7d;
  --vermelho: #e5242b; --vermelho-esc: #b81d22; --verde: #3ccf7a;
  --raio: 14px;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 70px; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-size: 15px; line-height: 1.4; padding-bottom: 100px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; flex: none; }
.invisivel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pagina { max-width: 1400px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px 0; }

/* ---------- topo ---------- */
.topo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pilula {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px dashed #555; border-radius: 99px;
  background: transparent; font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.pilula svg { color: var(--vermelho); }
.pilula b { color: var(--cinza); font-weight: 400; }
.busca { position: relative; display: flex; align-items: center; margin-left: auto; width: min(320px, 100%); }
.busca svg { position: absolute; left: 12px; color: var(--cinza2); width: 16px; }
.busca input {
  width: 100%; height: 40px; padding: 0 36px 0 36px; border: 0; border-radius: 99px; background: var(--painel2);
  color: var(--texto); font: inherit; font-size: 16px;
}
.busca input::placeholder { color: var(--cinza2); }
.busca input:focus { outline: 2px solid var(--vermelho); }
.busca input::-webkit-search-cancel-button { display: none; }
.busca button { position: absolute; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #3a3a3a; font-size: .75rem; }
@media (max-width: 640px) {
  .topo { flex-wrap: wrap; }
  .pilula { order: 2; width: 100%; justify-content: center; }
  .busca { width: 100%; }
}

/* ---------- capa e cartão da loja ---------- */
.capa {
  position: relative; height: clamp(150px, 22vw, 270px); border-radius: var(--raio); overflow: hidden;
  background: linear-gradient(135deg, #2a1414, #1b1b1b 60%) center / cover no-repeat;
}
.btn-redondo { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 20, 20, .75); }
.btn-redondo svg { fill: currentColor; }
.capa-compartilhar { position: absolute; top: 14px; right: 14px; }
.loja-card {
  position: relative; display: flex; align-items: center; gap: 14px; width: min(540px, calc(100% - 24px)); margin: -78px auto 0;
  padding: 14px 18px; text-align: left; background: rgba(28, 28, 28, .97); border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.loja-logo {
  width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--vermelho); color: #fff; font-weight: 700; font-size: 1.6rem; box-shadow: 0 0 0 3px rgba(229, 36, 43, .25);
}
.loja-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.loja-textos { display: grid; gap: 3px; min-width: 0; flex: 1; }
.loja-textos strong { font-size: 1.15rem; }
.loja-status { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.loja-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.loja-status.aberta { color: var(--verde); }
.loja-status.fechada { color: #ff6b6b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { padding: 3px 8px; border-radius: 6px; background: var(--painel2); color: #d8d8d8; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.loja-seta { color: var(--vermelho); font-size: 1.4rem; align-self: flex-start; }
.loja-aviso { max-width: 900px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; background: var(--painel); color: #ddd; font-size: .88rem; text-align: center; }

/* ---------- categorias ---------- */
.cats-barra {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 10px 0 0; background: var(--fundo); border-bottom: 1px solid var(--borda);
}
.cats-menu { width: 30px; height: 32px; flex: none; margin-bottom: 8px; border: 0; border-radius: 6px; background: var(--painel2); font-size: 1.1rem; font-weight: 700; }
.cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 6px 6px 12px; color: #d6d6d6; text-decoration: none; font-weight: 600; font-size: .84rem;
  text-transform: uppercase; border-bottom: 3px solid transparent;
}
.cats a.ativa { color: #fff; border-color: var(--vermelho); }
.cats-lista {
  position: absolute; top: 48px; left: 0; z-index: 20; min-width: 240px; max-height: 60vh; overflow-y: auto; padding: 6px;
  background: var(--painel); border: 1px solid var(--borda); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cats-lista a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--texto); text-decoration: none; font-weight: 600; font-size: .88rem; text-transform: uppercase; }
.cats-lista a:hover { background: var(--painel2); }

/* ---------- lista de produtos ---------- */
.lista { padding-bottom: 20px; }
.secao-cab { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; cursor: pointer; }
.secao-cab h2 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.secao-cab button { width: 32px; height: 32px; border: 0; background: none; color: var(--cinza); font-size: 1.1rem; transition: transform .2s; }
.secao.recolhida .secao-cab button { transform: rotate(180deg); }
.secao.recolhida .grade { display: none; }
.grade { display: grid; gap: 14px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.produto {
  display: flex; gap: 12px; width: 100%; padding: 0; text-align: left; background: none; border: 0; border-radius: 10px;
}
.produto:hover .produto-nome { color: #fff; text-decoration: underline; text-decoration-color: var(--vermelho); }
.produto-foto, .sem-foto { width: 108px; height: 108px; flex: none; border-radius: 10px; object-fit: cover; background: var(--painel2); }
.sem-foto { display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3a1d1d, var(--vermelho-esc)); }
.produto-texto { display: flex; flex-direction: column; min-width: 0; padding: 4px 0; }
.produto-nome { font-weight: 600; font-size: .95rem; }
.produto-desc { margin-top: 6px; color: var(--cinza); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produto-preco { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .85rem; }
.produto-preco small { font-weight: 500; color: #d8d8d8; }
.realce { background: rgba(229, 36, 43, .35); color: #fff; border-radius: 3px; }
.vazio { padding: 40px 0; text-align: center; color: var(--cinza); }

/* ---------- barra da sacola ---------- */
.barra-sacola {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: min(340px, calc(100% - 24px)); padding: 10px 12px 10px 16px; border: 0;
  border-radius: 12px; background: var(--vermelho); color: #fff; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.bs-icone { position: relative; }
.bs-icone svg { width: 24px; height: 24px; }
.bs-icone i { position: absolute; top: -8px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: var(--vermelho); font: 700 .7rem/18px Poppins, sans-serif; text-align: center; }
.bs-textos { display: grid; flex: 1; }
.bs-textos small { font-size: .75rem; opacity: .9; }
.bs-textos strong { font-size: 1.05rem; }
.bs-seta { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .2); font-size: 1.2rem; }

/* ---------- janelas ---------- */
.fundo { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0, 0, 0, .72); }
.fundo-alto { z-index: 45; }
.janela { position: relative; display: flex; flex-direction: column; width: min(490px, 100%); max-height: min(94vh, 900px); background: var(--painel); border-radius: 12px; overflow: hidden; animation: subir .18s ease-out; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 640px) {
  .fundo { place-items: end center; }
  .janela { max-height: 100vh; height: 100%; border-radius: 0; }
}
.voltar-redondo { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--vermelho); color: #fff; font-size: 1.15rem; font-weight: 700; }
.btn-vermelho { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--vermelho); color: #fff; font-weight: 600; letter-spacing: .02em; }
.btn-vermelho:hover { background: #f0373e; }
.btn-vermelho:disabled { background: #6b1d20; color: #e0b5b7; cursor: not-allowed; }
.btn-contorno { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid #555; border-radius: 8px; background: transparent; color: var(--texto); font-weight: 600; text-decoration: none; }
.btn-grande { width: 100%; min-height: 52px; font-size: 1rem; }
.btn-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--painel2); }

/* Produto */
.mp-cab { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--painel); border-bottom: 1px solid var(--borda); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; }
.mp-cab.visivel { opacity: 1; pointer-events: auto; }
.mp-rolagem { overflow-y: auto; flex: 1; }
.mp-foto { position: relative; height: 300px; background: var(--painel2) center / cover no-repeat; }
.mp-foto.sem { height: 70px; }
.mp-foto .voltar-redondo { position: absolute; top: 14px; left: 14px; }
.mp-corpo { padding: 16px; }
.mp-corpo h2 { font-size: 1.2rem; }
.mp-desc { margin: 8px 0 0; color: #e8e8e8; white-space: pre-line; }
.mp-bloco { margin-top: 20px; }
.mp-bloco h3 { font-size: .95rem; margin-bottom: 12px; }
.tamanhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.tamanho { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; text-align: center; }
.tamanho .sigla { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #3a3a3a; font-weight: 700; font-size: 1.05rem; }
.tamanho:hover .sigla { background: #4a4a4a; }
.tamanho small { font-size: .78rem; color: #e0e0e0; }
.tamanho b { font-size: .82rem; }
.tamanho-escolhido { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--painel2); }
.tamanho-escolhido .sigla { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-weight: 700; }
.tamanho-escolhido .sigla::after { content: "✓"; position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--verde); color: #fff; font-size: .6rem; }
.tamanho-escolhido strong { flex: 1; font-size: .85rem; }
.tamanho-escolhido button { border: 0; background: none; color: #ddd; font-size: .8rem; }
.sabores-escolhidos { display: grid; gap: 8px; margin-bottom: 10px; }
.sabor-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--painel2); font-size: .85rem; }
.sabor-item b { flex: 1; }
.sabor-item button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #3a3a3a; }
.add-sabor { width: 100%; height: 110px; display: grid; place-items: center; align-content: center; gap: 8px; border: 0; border-radius: 10px; background: var(--painel2); font-size: .85rem; font-weight: 600; }
.add-sabor span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 1.3rem; }
.grupo-cab { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.grupo-cab h3 { margin-bottom: 2px; }
.grupo-cab small { color: var(--cinza); font-size: .8rem; }
.opcao { display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-top: 1px solid var(--borda); cursor: pointer; font-size: .9rem; }
.opcao:last-child { border-bottom: 1px solid var(--borda); }
.opcao span { flex: 1; }
.opcao em { font-style: normal; color: #ddd; font-size: .82rem; }
.opcao input { width: 20px; height: 20px; accent-color: var(--vermelho); }
textarea, .campo input, .campo select {
  width: 100%; padding: 12px; border: 1px solid #3a3a3a; border-radius: 8px; background: var(--fundo); color: var(--texto); font: inherit; font-size: 16px;
}
textarea { resize: vertical; }
textarea:focus, .campo input:focus, .campo select:focus { outline: none; border-color: var(--vermelho); }
.mp-rodape { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); background: var(--painel); display: grid; gap: 10px; }
.mp-linha { display: flex; align-items: center; justify-content: space-between; }
.mp-linha strong { font-size: 1.15rem; }
.qtd { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 99px; background: #fff; color: #111; }
.qtd button { width: 30px; height: 30px; border: 0; background: none; color: #111; font-size: 1.2rem; }
.qtd span { min-width: 22px; text-align: center; font-weight: 700; }
.mp-aviso { text-align: center; color: var(--cinza); font-size: .78rem; min-height: 1em; }

/* Sabores */
.ms-cab { padding: 14px 16px 10px; border-bottom: 1px solid var(--borda); display: grid; gap: 12px; }
.ms-linha { display: flex; align-items: center; gap: 10px; }
.ms-linha strong { flex: 1; font-size: .95rem; }
.ms-busca { position: relative; display: flex; align-items: center; width: 170px; }
.ms-busca svg { position: absolute; left: 10px; width: 15px; color: var(--cinza2); }
.ms-busca input { width: 100%; height: 34px; padding: 0 10px 0 32px; border: 0; border-radius: 99px; background: var(--painel2); color: var(--texto); font: inherit; font-size: 16px; }
.ms-lista { overflow-y: auto; flex: 1; padding: 0 16px; }
.ms-sabor { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--borda); cursor: pointer; }
.ms-sabor img, .ms-sabor .sem-foto { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; font-size: 1.2rem; }
.ms-sabor div { flex: 1; min-width: 0; }
.ms-sabor b { display: block; font-size: .88rem; }
.ms-sabor small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--cinza); font-size: .76rem; }
.ms-sabor span { display: block; margin-top: 4px; font-weight: 700; font-size: .82rem; }
.ms-sabor input { width: 20px; height: 20px; accent-color: var(--vermelho); }
.ms-sabor.atual { opacity: .55; cursor: default; }
.ms-rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); }

/* Sacola */
.fundo-gaveta { z-index: 30; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; z-index: 35; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--painel); box-shadow: -10px 0 30px rgba(0, 0, 0, .5); animation: entrar .2s ease-out; }
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
.gaveta-cab { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--borda); }
.gaveta-cab h2 { font-size: 1.05rem; }
.gaveta-cab .btn-x { position: absolute; right: 14px; }
.sacola-itens { flex: 1; overflow-y: auto; padding: 4px 16px; }
.si { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--borda); }
.si img, .si .sem-foto { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; font-size: 1rem; grid-row: span 2; }
.si-nome { font-weight: 600; font-size: .86rem; }
.si-extra { display: block; color: var(--cinza); font-size: .76rem; }
.si-lixo { border: 0; background: none; color: #ff6b6b; font-size: 1rem; align-self: start; }
.si-acoes { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.si-acoes .qtd { transform: scale(.88); transform-origin: left; }
.si-acoes b { font-size: .9rem; }
.sacola-vazia { display: grid; place-items: center; gap: 10px; padding: 80px 0; color: var(--cinza); text-align: center; }
.sacola-vazia svg { width: 48px; height: 48px; }
.gaveta-rodape { display: grid; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); }
.sacola-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; }
.sacola-status { text-align: center; color: var(--cinza); font-size: .78rem; }

/* Finalizar / confirmação */
.tela { position: fixed; inset: 0; z-index: 38; overflow-y: auto; background: var(--fundo); }
.tela-cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--painel); border-bottom: 1px solid var(--borda); }
.tela-cab h2 { font-size: 1.05rem; }
.tela-corpo { max-width: 620px; margin: 0 auto; padding: 14px 16px 40px; }
.cartao { margin-top: 14px; padding: 16px; background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); }
.cartao h3 { font-size: .98rem; margin-bottom: 12px; }
.cartao h3:not(:first-child) { margin-top: 16px; }
.opcoes { display: grid; gap: 8px; margin-bottom: 10px; }
.opcoes label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #3a3a3a; border-radius: 10px; cursor: pointer; }
.opcoes input { accent-color: var(--vermelho); width: 18px; height: 18px; }
.campo { display: grid; gap: 4px; margin-bottom: 10px; }
.campo span { font-size: .8rem; font-weight: 600; color: var(--cinza); }
.linha2 { display: grid; grid-template-columns: 1fr 100px; gap: 10px; }
.cadastro-box { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #1d2a22; border: 1px solid #2e5a3e; }
.cadastro-box p { margin: 2px 0; }
.link-alterar { margin-top: 6px; padding: 6px 12px; border: 1px solid #2e5a3e; border-radius: 8px; background: transparent; color: var(--verde); font-weight: 600; }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; }
.resumo .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--borda); font-size: 1.15rem; font-weight: 700; }
.erro { color: #ff6b6b; font-weight: 600; min-height: 1.2em; margin: 12px 0; }
.privacidade { text-align: center; color: var(--cinza2); font-size: .78rem; }
.confirmacao { text-align: center; padding-top: 60px; display: grid; gap: 12px; justify-items: center; }
.conf-icone { font-size: 3rem; }
.conf-numero { margin: 0; }
.conf-situacao { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--painel); border: 1px solid var(--borda); font-weight: 600; }
.pix-caixa { width: 100%; max-width: 420px; padding: 16px; background: var(--painel); border: 2px solid #32bcad; border-radius: var(--raio); display: grid; gap: 10px; justify-items: center; }
.pix-caixa h3 { color: #5fd8cb; }
.pix-caixa img { width: 220px; height: 220px; border-radius: 8px; background: #fff; padding: 6px; }
.pix-valor { margin: 0; font-size: 1.1rem; }
.pix-caixa textarea { font: .76rem/1.3 ui-monospace, Consolas, monospace; word-break: break-all; }
.pix-caixa small { color: var(--cinza); text-align: center; }

/* Informações da loja */
.janela-info { width: min(460px, 100%); }
.mi-corpo { padding: 16px; overflow-y: auto; display: grid; gap: 14px; font-size: .9rem; }
.mi-corpo h3 { font-size: .9rem; color: var(--cinza); margin-bottom: 4px; }
.mi-corpo ul { margin: 0; padding-left: 18px; }
.mi-resultado { padding: 14px; border-radius: 10px; background: var(--painel2); text-align: center; }
.mi-resultado b { font-size: 1.1rem; }

/* =====================================================================
   OTIMIZAÇÃO PARA CELULAR (a maioria dos clientes)
   ===================================================================== */
* { -webkit-tap-highlight-color: transparent; }
html.travado, html.travado body { overflow: hidden; } /* janela aberta: o fundo não rola */
button, a, label { touch-action: manipulation; }       /* sem atraso de toque duplo */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .pagina { padding: calc(8px + env(safe-area-inset-top)) 12px 0; }
  .topo { gap: 8px; margin-bottom: 10px; }
  .busca input { height: 44px; }
  .pilula { padding: 10px 14px; }
  .capa { height: 150px; border-radius: 12px; }
  .loja-card { width: calc(100% - 16px); margin-top: -56px; padding: 12px 14px; gap: 12px; }
  .loja-logo { width: 56px; height: 56px; font-size: 1.4rem; }
  .loja-textos strong { font-size: 1.05rem; }
  .cats-barra { margin-top: 16px; }
  .cats-menu { width: 40px; height: 40px; }
  .cats a { padding: 10px 8px 12px; font-size: .82rem; }
  .secao-cab { margin: 22px 0 12px; }
  .secao-cab h2 { font-size: 1.1rem; }
  .secao-cab button { width: 44px; height: 44px; }
  .grade { gap: 14px; }
  .produto { min-height: 96px; }
  .produto-foto, .sem-foto { width: 96px; height: 96px; }
  .barra-sacola { width: calc(100% - 24px); padding: 12px 14px 12px 18px; }
  .mp-foto { height: 240px; }
  .tamanho .sigla { width: 52px; height: 52px; }
  .opcao { padding: 16px 2px; }
  .qtd button { width: 40px; height: 40px; font-size: 1.3rem; }
  .sabor-item button { width: 36px; height: 36px; }
  .ms-busca { width: 150px; }
  .ms-sabor img, .ms-sabor .sem-foto { width: 58px; height: 58px; }
  .si-lixo { width: 40px; height: 40px; }
  .btn-x { width: 40px; height: 40px; }
  .voltar-redondo { width: 44px; height: 44px; }
  .linha2 { grid-template-columns: 1fr 90px; }
}
@media (max-width: 360px) {
  .pilula span { font-size: .78rem; }
  .produto-foto, .sem-foto { width: 84px; height: 84px; }
  .tamanhos { grid-template-columns: repeat(2, 1fr); }
  .chip { font-size: .68rem; }
}

/* =====================================================================
   PROMOÇÃO
   ===================================================================== */
.selo-promo { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: linear-gradient(90deg, #ff6a00, var(--vermelho)); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.selo-promo small { padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .25); font-weight: 600; letter-spacing: 0; }
.selo-brinde { display: inline-flex; width: max-content; max-width: 100%; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: #1f7a3d; color: #fff; font-size: .7rem; font-weight: 700; }
.combo-itens { color: #2fbf6b; font-weight: 700; }
/* Combo abaixo do tamanho: o cliente escolhe o tamanho já com o combo */
.tam-col { display: grid; align-content: start; gap: 6px; }
.tam-combo { display: grid; gap: 2px; padding: 6px 4px; border: 1.5px dashed #2fbf6b; border-radius: 10px; background: rgba(47, 191, 107, .1); color: #fff; text-align: center; cursor: pointer; }
.tam-combo:hover { background: rgba(47, 191, 107, .22); }
.tam-combo b { font-size: .72rem; color: #2fbf6b; letter-spacing: .03em; }
.tam-combo small { font-size: .66rem; line-height: 1.2; color: #e0e0e0; }
.tamanho-escolhido strong .combo-itens { display: block; margin-top: 2px; font-size: .74rem; }
#mp-promo { margin: 0 0 8px; }
.produto.em-promo .produto-foto, .produto.em-promo .sem-foto { box-shadow: 0 0 0 2px #ff6a00; }
.produto-preco s, .tamanho s { color: var(--cinza2); font-weight: 400; font-size: .78rem; }
.preco-promo { color: #ff8a3d; }
.tamanho.em-promo .sigla { background: linear-gradient(135deg, #ff6a00, var(--vermelho)); }
.secao[data-categoria="🔥 Promoções"] .secao-cab h2 { color: #ff8a3d; }

/* =====================================================================
   FINALIZAR PEDIDO (etapas) E MAPA
   ===================================================================== */
.fp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 18px 20px 60px; align-items: start; }
.fp-etapa h3 { font-size: 1rem; margin: 6px 0 6px; }
.fp-sub { margin: 0 0 18px; color: var(--cinza); font-size: .86rem; max-width: 560px; }
.fp-estreito { max-width: 400px; margin: 0 auto; }
.campo-icone { position: relative; display: flex; align-items: center; }
.campo-icone svg { position: absolute; left: 12px; width: 26px; height: 26px; }
.campo-icone input { padding-left: 48px; }
.fp-acoes { display: flex; justify-content: flex-end; margin-top: 18px; }
.fp-acoes .btn-vermelho { min-width: 200px; }
.fp-opcoes { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.fp-opcao { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 0; border-bottom: 1px solid var(--borda); background: transparent; text-align: left; }
.fp-opcao:last-child { border-bottom: 0; }
.fp-opcoes > .fp-opcao:hover, #op-retirada:hover { background: var(--painel2); }
#op-retirada { border: 1px solid var(--borda); border-radius: 12px; }
.fp-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--painel2); font-size: 1.1rem; overflow: hidden; }
.fp-logo { background: var(--vermelho); color: #fff; font-weight: 700; }
.fp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fp-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fp-txt b { font-size: .9rem; }
.fp-txt small { color: var(--cinza); font-size: .78rem; }
.fp-sel { color: var(--cinza); font-size: .8rem; white-space: nowrap; }
.fp-opcao-cep { flex-wrap: wrap; justify-content: center; }
.fp-opcao-cep .fp-txt { flex: 0 1 auto; }
.cep-caixa { display: flex; gap: 8px; width: min(360px, 100%); margin-top: 6px; padding: 4px; border: 1px dashed #666; border-radius: 6px; }
.cep-caixa input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--texto); font: inherit; font-size: 16px; }
.cep-caixa input:focus { outline: none; }
.cep-caixa .btn-vermelho { min-height: 40px; padding: 0 14px; font-size: .78rem; }
.link-simples { width: 100%; border: 0; background: none; color: var(--cinza); text-decoration: underline; font-size: .8rem; padding: 8px; }
.end-cep { font-size: 1.15rem !important; margin-bottom: 10px !important; }
.end-fixo { display: grid; gap: 1px; margin-bottom: 16px; font-size: .88rem; }
.end-fixo span { color: #d6d6d6; }
.fp-grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-largo { grid-column: 1 / -1; }
.campo-check { display: flex; align-items: center; border: 1px solid #3a3a3a; border-radius: 8px; background: var(--fundo); }
.campo-check input:not([type=checkbox]) { border: 0; flex: 1; min-width: 0; }
.campo-check input:disabled { opacity: .45; }
.campo-check label { display: flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; font-size: .8rem; color: #ddd; cursor: pointer; }
.campo-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--vermelho); }
.fp-entrega { display: grid; gap: 2px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--borda); border-radius: 12px; background: var(--painel); font-size: .88rem; }
.fp-entrega span { color: #d6d6d6; }
.fp-entrega .link-simples { width: auto; justify-self: start; padding: 4px 0 0; color: #ff8a8e; }
.fp-resumo { position: sticky; top: 80px; padding: 22px 24px; border: 2px dashed #555; border-radius: 10px; }
.fp-resumo h3 { font-size: 1.15rem; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #444; }
.fp-resumo div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #444; font-size: .88rem; }
.fp-resumo .total { border-bottom: 0; font-weight: 700; font-size: 1.05rem; }
.aviso-minimo { color: #ff6b6b; border: 0 !important; }
#pg-formas label { justify-content: flex-start; }
@media (max-width: 860px) {
  .fp-layout { grid-template-columns: 1fr; gap: 18px; padding: 14px 14px 40px; }
  .fp-resumo { position: static; order: -1; padding: 14px 16px; }
  .fp-resumo h3 { font-size: 1rem; padding-bottom: 8px; }
  .fp-resumo div { padding: 8px 0; }
  .fp-acoes .btn-vermelho { width: 100%; }
  .fp-grade2 { grid-template-columns: 1fr; }
}

/* Mapa de confirmação */
.janela-mapa { width: min(560px, 100%); height: min(840px, 100vh); }
.mapa { flex: 1; min-height: 300px; background: #e9e5dc; }
.mapa-voltar { position: absolute; top: 60px; left: 22px; z-index: 500; }
.mapa-endereco { position: absolute; top: 104px; left: 14px; right: 14px; z-index: 500; display: grid; gap: 4px; padding: 10px 12px; background: rgba(28, 28, 28, .94); color: #fff; font-size: .9rem; }
.mapa-aviso { margin: 0; padding: 10px 16px 0; color: #ddd; text-align: center; font-size: .8rem; min-height: 1em; }
.mapa-rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.mapa-rodape .btn-contorno[hidden] + .btn-vermelho { grid-column: 1 / -1; }
.leaflet-container { font-family: inherit; }
@media (max-width: 640px) { .mapa-voltar { top: 14px; left: 14px; } .mapa-endereco { top: 62px; } }
/* Perguntas do produto (grupos de opções) */
.obrigatorio { padding: 4px 10px; border-radius: 99px; background: #fde2e4; color: #b4232c; font-size: .72rem; font-weight: 600; white-space: nowrap; }
#mp-grupos .mp-bloco { margin-top: 22px; }
.opcao input[type=radio] { border-radius: 50%; }
.si-extra:first-of-type { font-style: italic; }

/* Fidelidade (carimbos) */
.fid-caixa { margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: #2b2412; border: 1px solid #6b5a1e; color: #f4e3a5; font-size: .88rem; }
.fid-caixa p { margin: 6px 0 0; }
.fid-caixa.pode { background: #12301f; border-color: #2e7d4f; color: #c9f2d8; }

/* Retirada: vou buscar / consumir na loja */
.fp-loja { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 12px; }
.fp-pergunta { margin: 14px 2px 8px; font-weight: 600; font-size: .92rem; }
.fp-dois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-escolha { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border: 1px solid var(--borda); border-radius: 12px; background: var(--painel); text-align: center; }
.fp-escolha span { font-size: 1.6rem; }
.fp-escolha b { font-size: .95rem; }
.fp-escolha small { color: var(--cinza); font-size: .76rem; }
.fp-escolha:hover, .fp-escolha:focus-visible { border-color: var(--vermelho); background: var(--painel2); outline: none; }
.fp-escolha.sel { border-color: var(--vermelho); background: #2b1517; box-shadow: 0 0 0 2px rgba(229, 36, 43, .35); }
#pg-retirada { margin-bottom: 18px; }
.pix-aviso { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #2b2412; border: 1px solid #6b5a1e; color: #f4e3a5; font-size: .84rem; text-align: left; }

/* Taxa de entrega definida pela loja (endereço não localizado nas áreas) */
.taxa-pendente span:last-child { color: #f2b134; font-weight: 700; }
.mi-cep { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: end; }

/* Mapa do endereço: taxa do local escolhido pelo cliente */
.mapa-endereco small { color: #bbb; font-size: .78rem; }
.mapa-taxa { margin: 0; padding: 10px 16px 0; text-align: center; font-size: .95rem; color: #fff; min-height: 1.2em; }
.mapa-taxa.ok b { color: #2fbf6b; }
.mapa-taxa.pendente b { color: #f2b134; }
.mapa-taxa.fora { color: #ff6b6b; font-weight: 700; }
