/* Compra Coletiva PepZone — protótipo (celular, tablet e computador) */
:root {
  --navy: #0B2E6B; --azul: #0D4FB8; --ciano: #5BC4FF; --fundo: #F2F5FA; --card: #FFFFFF;
  --texto: #0F1B33; --suave: #5A6782; --linha: #E3E9F3; --borda: #C7D2E3;
  --verde: #12805C; --verde-f: #E7F6EE; --laranja: #8A4A06; --laranja-f: #FFF3DC; --vermelho: #A12B2B;
  --roxo: #6B3FA0; --roxo-f: #F1EAFA; --raio: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fundo); color: var(--texto); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--azul); }
h1, h2, .titulo { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; letter-spacing: -0.3px; margin: 0; text-wrap: balance; }
.aviso-prototipo { background: #FFE9A8; color: #5A4300; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top)); letter-spacing: 0.3px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.topo-in { max-width: 1120px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.marca { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.marca b { color: var(--ciano); font-weight: 700; }
.topo .ola { margin-left: auto; font-size: 14px; color: #C9DBF5; white-space: nowrap; }
.topo .ola b { color: #fff; }
.nav-pc { display: none; gap: 4px; margin-left: 24px; }
.nav-pc button { background: transparent; border: 0; color: #C9DBF5; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 8px; position: relative; }
.nav-pc button.ativo { background: rgba(255,255,255,0.12); color: #fff; }
.nav-pc .badge { position: static; }

/* ---------- conteúdo ---------- */
.pagina { max-width: 1120px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.estreita { max-width: 640px; }
.card { background: var(--card); border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sub { color: var(--suave); font-size: 14px; margin: -6px 0 0; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.chip.verde { color: var(--verde); background: var(--verde-f); }
.chip.laranja { color: var(--laranja); background: var(--laranja-f); }
.chip.azul { color: var(--azul); background: #E6EEFB; }
.chip.cinza { color: var(--suave); background: #E9EDF4; }
.chip.roxo { color: var(--roxo); background: var(--roxo-f); }
.etiquetas { display: flex; gap: 8px; flex-wrap: wrap; }
.etiqueta { font-size: 12px; background: #EEF3FB; padding: 6px 10px; border-radius: 8px; }
.barra { height: 8px; background: var(--linha); border-radius: 99px; overflow: hidden; }
.barra > div { height: 100%; background: var(--azul); border-radius: 99px; transition: width .25s; }
.mini { font-size: 12px; color: var(--suave); }

.btn { min-height: 52px; border: 0; border-radius: 14px; background: var(--azul); color: #fff; font-size: 16px; font-weight: 700; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn:hover { background: #0A43A0; }
.btn.claro { background: #fff; color: var(--texto); border: 1.5px solid var(--borda); font-weight: 600; }
.btn.claro:hover { background: #F7F9FC; }
.btn.verde { background: var(--verde); }
.btn.perigo { background: #fff; color: var(--vermelho); border: 1.5px solid #E7C2C2; font-weight: 600; }
.btn.link { background: transparent; color: var(--azul); min-height: 40px; padding: 0; font-size: 14px; justify-content: flex-start; }
.btn.bloco { width: 100%; }
.voltar { width: 44px; height: 44px; border: 0; background: #fff; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.linha-titulo { display: flex; align-items: center; gap: 10px; }

/* ---------- entrar ---------- */
.entrar { min-height: calc(100vh - 30px); min-height: calc(100dvh - 30px); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; padding: 32px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left)); }
.entrar-caixa { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.entrar h1 { font-size: 34px; line-height: 1.1; }
.entrar p { color: #C9DBF5; margin: 0; font-size: 16px; }
.entrar .btn.claro { border: 0; color: var(--navy); }
.entrar .btn.contorno { background: transparent; color: #fff; border: 1.5px solid #5B7FBF; font-weight: 600; }
.entrar .dica { font-size: 13px; color: #A9C2E8; text-align: center; }
.entrar .dica b { color: #fff; }
.form-caixa { max-width: 440px; margin: 0 auto; width: 100%; }
label.rotulo { font-size: 13px; font-weight: 600; color: var(--suave); }
.campo { height: 56px; border: 1.5px solid var(--borda); border-radius: 14px; padding: 0 16px; font-size: 20px; font-weight: 600; color: var(--texto); width: 100%; background: #fff; }
.campo:focus, .busca input:focus { outline: 3px solid #9CC7FF; outline-offset: 1px; border-color: var(--azul); }
.campo.codigo { text-align: center; letter-spacing: 6px; font-size: 26px; }
.bolha-wpp { background: var(--verde-f); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.bolha-wpp .mini { color: var(--verde); font-weight: 600; }

/* ---------- produtos ---------- */
.busca { position: relative; display: flex; align-items: center; }
.busca svg { position: absolute; left: 14px; pointer-events: none; }
.busca input { flex: 1; height: 48px; border: 1.5px solid var(--borda); border-radius: 12px; padding: 0 44px 0 42px; font-size: 15px; background: #fff; color: var(--texto); }
.busca .limpar { position: absolute; right: 4px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 22px; color: var(--suave); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filtros button { flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--borda); background: #fff; color: var(--texto); font-size: 13px; font-weight: 600; }
.filtros button.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }
.rapida { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); background: #fff; border: 1.5px solid var(--borda); border-radius: 12px; overflow: hidden; }
.rapida button { min-height: 46px; border: 0; border-bottom: 1px solid #EEF1F6; background: #fff; color: var(--texto); font-size: 14px; font-weight: 600; text-align: left; padding: 8px 14px; }
.rapida button:hover { background: #F5F8FC; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.produto .cab { display: flex; align-items: flex-start; gap: 10px; }
.produto .nome { font-size: 16px; font-weight: 700; }
.produto .preco { font-size: 17px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.qtd { display: flex; align-items: center; gap: 10px; }
.qtd .falta { flex: 1; font-size: 13px; font-weight: 600; }
.qtd button { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.qtd .menos { border: 1.5px solid var(--borda); background: #fff; color: var(--texto); }
.qtd .mais { border: 0; background: var(--azul); color: #fff; }
.qtd .num { min-width: 26px; text-align: center; font-size: 18px; font-weight: 800; }
.fila { background: #F5F8FC; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
.fila .pessoa { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.fila .pos { width: 28px; color: var(--suave); }
.fila .quem { flex: 1; }
.fila .voce { color: var(--azul); font-weight: 700; }
.vazio { background: #fff; border-radius: var(--raio); padding: 24px; text-align: center; color: var(--suave); }

/* ---------- carrinho / pix / etc ---------- */
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF1F6; }
.item .q { width: 36px; height: 36px; border-radius: 10px; background: #EEF3FB; color: var(--azul); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item .n { flex: 1; min-width: 0; }
.soma { display: flex; padding: 12px 0 6px; font-size: 16px; }
.soma > :first-child { flex: 1; font-weight: 600; }
.soma > :last-child { font-weight: 800; }
.aviso-amarelo { background: #FFF7E8; border-radius: var(--raio); padding: 14px 16px; color: #3D2A10; font-size: 14px; }
.aviso-amarelo b.t { display: block; color: var(--laranja); margin-bottom: 4px; }
.qr { width: 210px; height: 210px; border-radius: 12px; background: #F2F5FA; border: 2px dashed var(--borda); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--suave); padding: 16px; margin: 0 auto; }
.centro { text-align: center; align-items: center; }
.valor-grande { font-size: 32px; font-weight: 800; color: var(--navy); }
.ok-icone { width: 68px; height: 68px; border-radius: 99px; background: var(--verde-f); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.wpp { background: #E9F1E6; border-radius: var(--raio); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wpp .de { font-size: 12px; font-weight: 700; color: #3B5E35; }
.wpp .msg { background: #fff; border-radius: 4px 12px 12px 12px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.passo { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.passo .n { width: 28px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: #E9EDF4; color: var(--suave); flex-shrink: 0; }
.passo.feito .n { background: var(--verde); color: #fff; }
.passo.feito { color: var(--verde); }
.linha-valor { display: flex; font-size: 14px; gap: 10px; }
.linha-valor > :first-child { flex: 1; color: var(--suave); }
.linha-valor > :last-child { font-weight: 600; }
.ponto { width: 10px; height: 10px; border-radius: 99px; background: var(--borda); flex-shrink: 0; }
.ponto.ok { background: var(--verde); }
.duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }

/* ---------- barra do carrinho e abas (celular) ---------- */
.barra-carrinho { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25; max-width: 560px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(11, 46, 107, 0.35); }
.barra-carrinho .t { flex: 1; }
.barra-carrinho .t div:first-child { font-size: 13px; color: #C9DBF5; }
.barra-carrinho .t div:last-child { font-size: 18px; font-weight: 800; }
.barra-carrinho button { height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ciano); color: var(--navy); font-size: 15px; font-weight: 800; }
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; background: #fff; border-top: 1px solid var(--linha); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); }
.abas button { height: 66px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--suave); position: relative; }
.abas button.ativo { color: var(--azul); }
.badge { position: absolute; top: 8px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #D9480F; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- computador e tablet deitado ---------- */
@media (min-width: 900px) {
  .nav-pc { display: flex; }
  .abas { display: none; }
  .pagina { padding-bottom: 120px; }
  .barra-carrinho { bottom: 24px; }
  h1.titulo { font-size: 30px; }
}
@media (max-width: 899px) {
  h1.titulo { font-size: 24px; }
}

/* ---------- entrar e "o que é seu" ---------- */
.topo .ola { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.btn-topo { flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #5B7FBF; background: transparent; color: #fff; font-size: 14px; font-weight: 600; }
.btn-topo.cheio { background: var(--ciano); border-color: var(--ciano); color: var(--navy); font-weight: 800; }
.btn-topo:hover { background: rgba(255, 255, 255, 0.12); }
.btn-topo.cheio:hover { background: #7DD1FF; }
@media (max-width: 599px) { .topo .so-pc { visibility: hidden; } }
.recado { position: sticky; top: 60px; z-index: 19; background: var(--verde); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 10px 16px; }
.aviso-azul { background: #E6EEFB; border-radius: var(--raio); padding: 14px 16px; color: #14294F; font-size: 14px; }
.aviso-azul b.t { display: block; color: var(--azul); margin-bottom: 4px; }
.aviso-azul.linha { display: flex; align-items: center; gap: 12px; }
.aviso-azul.linha > div { flex: 1; min-width: 0; }
.card.meu { border: 1.5px solid var(--azul); }
.meu-t { font-weight: 800; font-size: 16px; color: var(--navy); }
.card.meu .item:last-of-type { border-bottom: 0; }
.pacote { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid #EEF1F6; }
.pacote:first-of-type { border-top: 0; padding-top: 0; }
.form { display: flex; flex-direction: column; gap: 10px; }
.rotulo { font-size: 13px; font-weight: 600; color: var(--suave); }
.campo { height: 52px; border: 1.5px solid var(--borda); border-radius: 14px; padding: 0 16px; font-size: 17px; font-family: inherit; color: var(--texto); background: #fff; width: 100%; }
.campo:focus { outline: 3px solid #BBD3F7; border-color: var(--azul); }
.campo.codigo { font-size: 26px; font-weight: 800; letter-spacing: 6px; text-align: center; }
.erro { color: var(--vermelho); font-size: 14px; font-weight: 600; }
.btn[disabled] { opacity: .6; }

/* ---------- reservar pelo site ---------- */
.barra-carrinho.baixa { bottom: calc(16px + env(safe-area-inset-bottom)); }
.qtd button[disabled] { opacity: .35; }
.editor { background: #F5F8FD; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.dois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dois .btn { min-height: 46px; padding: 0 10px; font-size: 15px; }
.aviso-erro { background: #FBECEC; border-radius: var(--raio); padding: 14px 16px; color: #4A1414; font-size: 14px; }
.aviso-erro b.t { display: block; color: var(--vermelho); margin-bottom: 4px; }

/* ---------- pagar (conversa do bot) ---------- */
.conversa { display: flex; flex-direction: column; gap: 10px; }
.bolha { border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; }
.bolha.bot { background: #fff; border: 1px solid var(--borda); align-self: stretch; }
.bolha.eu { background: var(--azul); color: #fff; align-self: flex-end; font-weight: 600; max-width: 80%; }
.bolha .qr { display: block; width: 220px; max-width: 100%; margin: 0 auto 10px; image-rendering: pixelated; border-radius: 8px; background: #fff; }
.bolha.codigo { display: flex; flex-direction: column; gap: 8px; background: #F5F8FD; }
.bolha .cod { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; background: #fff; border: 1px dashed var(--borda); border-radius: 10px; padding: 10px; }
.opcoes { display: flex; flex-direction: column; gap: 8px; }
.opcoes .btn { justify-content: flex-start; gap: 10px; text-align: left; min-height: 50px; }
.opcoes .btn .n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.2); font-weight: 800; }
.opcoes .btn.claro .n { background: #EEF1F6; }
.linha-resp { display: flex; gap: 8px; }
.linha-resp .campo { flex: 1; min-width: 0; }
.linha-resp .btn { min-height: 52px; padding: 0 16px; }

/* ---------- entrar no grupo ---------- */
.destaque { background: #FFF4D6; border: 1.5px solid #F2C14E; border-radius: 12px; padding: 12px 14px; color: #4A3500; font-size: 14px; line-height: 1.45; }
.destaque.linha { display: flex; align-items: center; gap: 12px; }
.destaque.linha > div { flex: 1; min-width: 0; }
.grupo-novo { display: flex; flex-direction: column; gap: 10px; background: #EAF7F0; border-radius: 12px; padding: 12px; margin-top: 4px; }

/* ---------- painel da equipe ---------- */
.btn-topo.painel { background: #F2C14E; border-color: #F2C14E; color: #3A2A00; font-weight: 800; }

/* ---- menu entre as páginas do site (coletiva, loja, leilão, rifa, sorteio): no celular quebra linha, tudo à vista ---- */
.nav { background: var(--navy); }
.nav-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.nav a { color: #CFE0FF; text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 99px; white-space: nowrap; background: rgba(255,255,255,.08); }
.nav a:hover { background: rgba(255,255,255,.16); }
.nav a.on { background: #fff; color: var(--navy); }
@media (min-width: 760px) { .nav-in { justify-content: flex-start; } }
/* celular: 3 em cima e 2 embaixo (centralizados), todos do mesmo tamanho */
@media (max-width: 759px) { .nav-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .nav a { text-align: center; padding: 7px 2px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; } } /* 26.11.6: 8 itens = 2 linhas de 4 */

/* 26.11.5: botão Compartilhar no WhatsApp */
.comp-bt { min-height: 44px; font-size: 15px; margin-top: 2px; }
.passo.andando .n { background: var(--laranja-f, #FFF3DC); font-size: 14px; }
.passo.andando { color: var(--laranja, #8A4A06); }
/* 26.11.5: janela de confirmação ("Recebi o pacote") e o link "Detalhes logo abaixo" */
.janela-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(11, 26, 51, .55); display: grid; place-items: center; padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
.janela { background: #fff; border-radius: 20px; padding: 22px 18px 18px; width: 100%; max-width: 380px; display: grid; gap: 10px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.janela h2 { font-size: 20px; margin: 0; }
.janela p { margin: 0; color: var(--texto); font-size: 15px; line-height: 1.45; }
.janela .dois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.janela .erro { color: var(--vermelho); font-size: 14px; }
.link-txt { background: none; border: 0; padding: 0; color: var(--azul); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
