/* App do cliente Bolt Baú. Usa tokens e componentes de /comum/marca.css */
/* Puxar a tela para baixo não estica nem arrasta o app: o cabeçalho é fixo e o corpo começa logo abaixo dele (56px + 3px da borda). */
html, body { overflow-x: clip; overscroll-behavior-y: none; }
body { background: var(--cinza-1); min-height: 100vh; padding-top: calc(59px + env(safe-area-inset-top)); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
main { width: min(100%, 40rem); margin-inline: auto; padding: 1rem 1rem 1.5rem; outline: none; }
main > section { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

/* topo */
.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--preto); border-bottom: 3px solid var(--vermelho); padding-top: env(safe-area-inset-top); }
.topo__in { width: min(100%, 40rem); margin-inline: auto; padding: 0 1rem; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--branco); }
.logo img { border-radius: 50%; border: 2px solid var(--branco); background: var(--branco); width: 38px; height: 38px; }
.logo__nome { font-size: 1.45rem; letter-spacing: .03em; }
.topo__ola { color: var(--branco); font-weight: 700; font-size: .9rem; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sem-rede { background: var(--amarelo); color: var(--preto); font-weight: 700; font-size: .9rem; padding: .5rem 1rem; text-align: center; border-top: 2px solid var(--preto); }

/* abas */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--preto); border-top: 3px solid var(--vermelho); padding-bottom: env(safe-area-inset-bottom); }
.abas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: #d4d4d8; text-decoration: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; -webkit-tap-highlight-color: transparent; }
.abas svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.abas a[aria-current="page"] { color: var(--branco); background: var(--vermelho); }
@media (min-width: 700px) { .abas { left: 50%; right: auto; width: 40rem; transform: translateX(-50%); border-inline: 3px solid var(--vermelho); border-radius: 14px 14px 0 0; } }

/* títulos e textos */
.t-pagina { font-size: 2rem; line-height: 1; }
.t-sec { font-size: 1.45rem; }
.lead { color: var(--cinza-4); }
.linha { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pilha { display: flex; flex-direction: column; gap: .75rem; }
.preco { font-family: var(--fonte-titulo); font-size: 1.5rem; letter-spacing: .02em; line-height: 1; }
.riscado { text-decoration: line-through; color: var(--cinza-4); font-weight: 700; }
.mini { font-size: .875rem; color: var(--cinza-4); }

/* carregando e vazio */
.esqueleto { height: 92px; border-radius: var(--raio); border: 2px solid var(--cinza-2); background: linear-gradient(100deg, var(--cinza-2) 30%, var(--cinza-1) 50%, var(--cinza-2) 70%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }
.vazio { text-align: center; padding: 1.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.vazio p { font-weight: 600; }
.adesivo { border: 3px solid var(--preto); border-radius: 18px; background: var(--branco); overflow: hidden; transform: rotate(-3deg); }
.vazio .adesivo { width: 110px; }

/* herói de início */
.heroi { background: var(--preto); color: var(--branco); border: var(--contorno); border-radius: var(--raio); box-shadow: 4px 4px 0 var(--vermelho); padding: 1.1rem; display: grid; grid-template-columns: 1fr 108px; gap: .9rem; align-items: center; overflow: hidden; }
.heroi h1 { font-size: 2.2rem; text-shadow: 3px 3px 0 var(--vermelho); }
.heroi p { margin: .4rem 0 .9rem; font-size: .95rem; }
.heroi .adesivo { border-color: var(--branco); transform: rotate(4deg); }
.heroi .botao { border-color: var(--branco); box-shadow: 3px 3px 0 var(--branco); }

/* itens de lista */
.item { display: flex; gap: .85rem; align-items: stretch; text-align: left; width: 100%; font: inherit; }
.item--botao { cursor: pointer; background: var(--branco); }
.item__miolo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.item__nome { font-size: 1.2rem; }
.item__desc { color: var(--cinza-4); font-size: .92rem; }
.item__lado { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; flex: none; }
.item__img, .prod__img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 2px solid var(--preto); background: var(--cinza-1); flex: none; }
.cartao { min-width: 0; }
.cartao--sel { border-color: var(--vermelho); box-shadow: 4px 4px 0 var(--preto), 0 0 0 3px var(--vermelho); }
.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.prod { padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.prod__img { width: 100%; height: auto; aspect-ratio: 4/3; }
.prod__sem { display: grid; place-items: center; aspect-ratio: 4/3; width: 100%; border: 2px dashed var(--cinza-3); border-radius: 10px; background: var(--cinza-1); }
.prod__sem img { width: 44px; border-radius: 50%; opacity: .8; }
.prod h3 { font-size: 1.1rem; }
.prod p { font-size: .85rem; color: var(--cinza-4); }

/* passos do agendamento */
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.passos li { text-align: center; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: .3rem .1rem; border-bottom: 5px solid var(--cinza-2); color: var(--cinza-4); }
.passos li.feito { border-color: var(--preto); color: var(--preto); }
.passos li.atual { border-color: var(--vermelho); color: var(--vermelho-escuro); }
.dias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.dia, .hora { border: 2px solid var(--preto); border-radius: 12px; background: var(--branco); padding: .5rem .2rem; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-weight: 800; cursor: pointer; }
.dia small { font-weight: 700; font-size: .7rem; text-transform: uppercase; color: var(--cinza-4); }
.dia b { font-family: var(--fonte-titulo); font-weight: 400; font-size: 1.35rem; }
.dia em { font-style: normal; font-size: .65rem; color: var(--cinza-4); }
.dia[disabled] { background: var(--cinza-2); border-color: var(--cinza-3); color: var(--cinza-3); cursor: not-allowed; }
.dia[disabled] b, .dia[disabled] small, .dia[disabled] em { color: var(--cinza-3); }
.horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.hora { min-height: 48px; font-size: 1.05rem; }
.dia[aria-pressed="true"], .hora[aria-pressed="true"] { background: var(--vermelho); border-color: var(--preto); color: var(--branco); box-shadow: 3px 3px 0 var(--preto); }
.dia[aria-pressed="true"] small, .dia[aria-pressed="true"] em, .dia[aria-pressed="true"] b { color: var(--branco); }
.resumo { display: flex; flex-direction: column; gap: .5rem; }
.resumo__linha { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; border-bottom: 1px dashed var(--cinza-3); padding-bottom: .4rem; }
.resumo__linha span:first-child { color: var(--cinza-4); font-size: .9rem; }
.resumo__linha span:last-child { font-weight: 700; text-align: right; }
.resumo__total { display: flex; justify-content: space-between; align-items: center; margin-top: .25rem; }
.marcar { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem; border: 2px solid var(--preto); border-radius: var(--raio); background: var(--branco); cursor: pointer; }
.marcar input { width: 26px; height: 26px; flex: none; accent-color: var(--vermelho); margin-top: 2px; }
.acoes { display: flex; flex-direction: column; gap: .75rem; }
.voltar { align-self: flex-start; background: none; border: 0; font-weight: 800; text-decoration: underline; padding: .5rem 0; min-height: 44px; }

/* pix */
.pix { display: flex; flex-direction: column; gap: .85rem; align-items: stretch; }
.pix__valor { text-align: center; }
.pix__valor .preco { font-size: 2.4rem; }
.pix__qr { align-self: center; width: 220px; max-width: 100%; background: var(--branco); border: 3px solid var(--preto); border-radius: 12px; padding: 8px; }
.pix__qr img { width: 100%; image-rendering: pixelated; }
.pix__cod { width: 100%; min-height: 64px; font: .75rem/1.3 ui-monospace, Consolas, monospace; border: 2px solid var(--cinza-3); border-radius: 10px; padding: .5rem; resize: none; background: var(--cinza-1); color: var(--preto); }
.botao--ok { --b-fundo: #15803D; }

/* meus agendamentos */
.ag { display: flex; flex-direction: column; gap: .7rem; }
.ag__topo { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.ag__quando { font-family: var(--fonte-titulo); font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
.ag__end { background: var(--amarelo); border: 2px solid var(--preto); border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; }
.ag__acoes { display: flex; gap: .6rem; flex-wrap: wrap; }
.ag__acoes .botao { flex: 1 1 130px; }

/* pontos */
.barra { height: 26px; border: 3px solid var(--preto); border-radius: 999px; background: var(--branco); overflow: hidden; }
.barra > i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--vermelho) 0 12px, var(--vermelho-escuro) 12px 24px); transition: width .5s ease; }
.pts { font-family: var(--fonte-titulo); font-size: 4rem; line-height: 1; }
.codigo { font-family: var(--fonte-titulo); font-size: 2rem; letter-spacing: .08em; background: var(--branco); color: var(--preto); border: 3px dashed var(--preto); border-radius: 12px; text-align: center; padding: .4rem .5rem; overflow-wrap: anywhere; }
.cartao--vermelho .botao, .cartao--escuro .botao { border-color: var(--branco); box-shadow: 3px 3px 0 var(--branco); }
.cartao--vermelho .botao--preto { border-color: var(--preto); box-shadow: 3px 3px 0 var(--preto); }

/* entrar */
.entrar { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.entrar .adesivo { width: 92px; align-self: center; }

/* diálogo e aviso rápido */
.dlg { border: var(--contorno); border-radius: var(--raio); padding: 0; width: min(92vw, 24rem); box-shadow: 6px 6px 0 var(--vermelho); }
.dlg::backdrop { background: rgba(11,11,13,.7); }
.dlg__in { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.dlg__acoes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--preto); color: var(--branco); border: 3px solid var(--branco); border-radius: 999px; padding: .6rem 1.2rem; font-weight: 800; max-width: 92vw; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.botao { max-width: 100%; }

/* Ícones próprios nas abas: traço da marca e destaque branco na aba ativa (fundo vermelho) */
.abas svg.icone { stroke-width: 2.25; }
.abas a[aria-current="page"], .abas a.ativa { --icone-acento: #fff; }

/* Entrar com Google (botão segue as diretrizes de marca do Google: fundo branco, contorno cinza, texto escuro, logo G colorido) */
.botao-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 52px; padding: .6rem 1rem; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 12px; font: 500 1rem/1.2 Roboto, Arial, system-ui, sans-serif; letter-spacing: .01em; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); -webkit-tap-highlight-color: transparent; }
.botao-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.botao-google:active { background: #eceff1; }
.botao-google:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; }
.botao-google[disabled] { opacity: .65; cursor: progress; }
.google-g { flex: none; }
.ou { display: flex; align-items: center; gap: .75rem; color: var(--cinza-4); font-size: .9rem; font-weight: 700; }
.ou::before, .ou::after { content: ""; flex: 1; border-top: 2px dashed var(--cinza-3); }

/* conta no perfil */
.conta { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; }
.conta__txt { display: flex; flex-direction: column; min-width: 0; gap: .15rem; }
.conta__nome { font-size: 1.3rem; overflow-wrap: anywhere; }
.conta__email { overflow-wrap: anywhere; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--preto); background: var(--branco); object-fit: cover; }
.avatar--vazio { display: grid; place-items: center; background: var(--cinza-1); }

/* comprovante do Pix */
.comp { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
.comp .aviso { display: block; }
.comp .aviso svg { vertical-align: -5px; }
.comp .botao svg { vertical-align: -5px; }
.comp__previa { display: flex; gap: .75rem; align-items: center; background: var(--cinza-1); border: 2px solid var(--cinza-3); border-radius: 12px; padding: .5rem; overflow-wrap: anywhere; }
.comp__thumb { flex: none; width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--preto); border-radius: 10px; background: var(--branco); }
.comp__thumb--pdf { display: grid; place-items: center; }

/* ---------- topo: conversa com a equipe e bolinhas de não lidas ---------- */
.topo__lado { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.topo__lado .topo__ola { max-width: 9rem; }
.topo__falar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--branco); border: 2px solid var(--vermelho); border-radius: 12px; }
.topo__falar svg { width: 24px; height: 24px; }
.bolinha { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--vermelho); color: #fff; border: 2px solid var(--preto); font-size: .68rem; font-weight: 800; line-height: 16px; text-align: center; }
.abas a { position: relative; }
.abas a .bolinha { top: 6px; right: calc(50% - 22px); }
.abas a[aria-current="page"] .bolinha { background: var(--preto); border-color: #fff; }

/* aviso do "puxar para atualizar" pela barra de cima (mapa no navegador) */
.puxar-atualizar { position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; background: #E11D2A; color: #fff; font: 700 14px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; pointer-events: none; transition: opacity .12s ease-out; }

/* ---------- O que dá para fazer no app (visitante) e texto fixo para quem lê sem JavaScript ---------- */
.sobre-app ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.recursos { display: flex; flex-direction: column; gap: .6rem; }
.recursos__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.recursos__item { display: flex; gap: .75rem; align-items: flex-start; min-height: 48px; padding: .55rem .2rem; color: inherit; text-decoration: none; border-radius: 10px; }
.recursos__item svg { flex: none; color: var(--vermelho); margin-top: .1rem; }
.recursos__item b { display: block; }
.recursos__txt { display: block; font-size: .88rem; color: #4a4a4f; line-height: 1.35; }
.recursos__item:active { transform: scale(.98); }
@media (hover: hover) { .recursos__item:hover { background: #f3f3f4; } }
@media (min-width: 560px) { .recursos__lista { grid-template-columns: 1fr 1fr; column-gap: .8rem; } }
@media (prefers-reduced-motion: reduce) { .recursos__item:active { transform: none; } }

/* ---------- carrinho ---------- */
.topo__car { border-color: var(--branco); }
.car-ctl { display: inline-flex; }
.car-ctl .botao svg, .barra-car svg { vertical-align: -4px; }
.car-ctl--prod { display: flex; margin-top: auto; }
.car-ctl--prod .botao { min-height: 44px; }
.prod .linha { margin-top: auto; }
.qtd { display: inline-flex; align-items: center; border: 2px solid var(--preto); border-radius: 12px; background: var(--branco); overflow: hidden; }
.car-ctl--prod .qtd { width: 100%; justify-content: space-between; }
.qtd__b { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--branco); color: var(--preto); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.qtd__b:active { transform: scale(.88); }
.qtd__b[disabled] { color: var(--cinza-3); cursor: not-allowed; }
.qtd__n { min-width: 2ch; text-align: center; font-family: var(--fonte-titulo); font-size: 1.3rem; }
.barra-car { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 39; width: min(calc(100% - 1.5rem), 38rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 54px; padding: .45rem .5rem .45rem 1rem; background: var(--vermelho); color: var(--branco); border: 3px solid var(--preto); border-radius: 14px; box-shadow: 4px 4px 0 var(--preto); text-decoration: none; font-weight: 800; }
.barra-car[hidden] { display: none; }
.barra-car__info { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-car__ir { flex: none; background: var(--preto); color: var(--branco); border-radius: 10px; padding: .55rem .8rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
body.com-barra-car { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
body.com-barra-car .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
.pulsa { animation: pulsa .32s cubic-bezier(.2,.8,.2,1); }
.barra-car.pulsa { animation-name: pulsa-barra; }
@keyframes pulsa { 50% { transform: scale(1.12); } }
@keyframes pulsa-barra { 50% { transform: translateX(-50%) scale(1.04); } }
.passos--3 { grid-template-columns: repeat(3, 1fr); }
.car-linha { display: flex; gap: .75rem; align-items: center; padding: .75rem; }
.car-linha__img { width: 56px; height: 56px; }
.car-linha__nome { font-size: 1rem; overflow-wrap: anywhere; }
.car-linha__lado { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex: none; }
.car-linha__preco { font-family: var(--fonte-titulo); font-size: 1.2rem; line-height: 1; }
.car-tirar { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--cinza-3); border-radius: 12px; background: var(--branco); color: var(--preto); cursor: pointer; }
.car-tirar:active { transform: scale(.92); }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opcao { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-height: 64px; padding: .6rem .75rem; border: 2px solid var(--preto); border-radius: 12px; background: var(--branco); text-align: left; font: inherit; cursor: pointer; }
.opcao[aria-pressed="true"] { background: var(--vermelho); color: var(--branco); box-shadow: 3px 3px 0 var(--preto); }
.opcao[aria-pressed="true"] .mini { color: var(--branco); }
.resumo__linha--sem { border-bottom: 0; padding-bottom: 0; }
.resumo__sub { margin: -.35rem 0 0; padding-bottom: .4rem; border-bottom: 1px dashed var(--cinza-3); font-size: .82rem; color: var(--cinza-4); }
.resumo__linha--desc span:last-child { color: #15803D; }
.resumo__linha--fora span { text-decoration: line-through; color: var(--cinza-4); }
.ped .resumo__linha span:first-child { overflow-wrap: anywhere; }
@media (max-width: 420px) { .topo__lado .topo__ola { max-width: 5.5rem; } .logo__nome { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .pulsa, .barra-car.pulsa { animation: none; } .qtd__b, .car-tirar { transition: none; } .qtd__b:active, .car-tirar:active { transform: none; } }

/* Faixa da data comemorativa (public/comum/temas.css): mesma largura do cabeçalho do app. */
#faixa-tema { --faixa-largura: 40rem; }
