/* ============================================================
   Loja de bebidas — tema escuro + amarelo
   ============================================================ */

:root {
  --black: #191919;
  --black-2: #232323;
  --black-3: #2e2e2e;
  --yellow: #ffc21a;
  --yellow-dk: #f5a900;
  --yellow-lt: #fff6e0;
  --orange: #e97800;
  --orange-dk: #cc6800;
  --on-yellow: #191919;
  --ok: #16a34a;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e8ebf0;
  --line-2: #d8dee8;
  --text: #111827;
  --muted: #98a1b2;
  --muted-2: #aeb6c4;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .10);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .28);
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --vermelho: #e8342c;
  --largura: 643px;
  /* Altura da topbar fixa. O JS remede e sobrescreve em tempo real
     (ajustarAlturasFixas); este valor é só o ponto de partida. */
  --topbar-h: 152px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/**
 * Reserva a canaleta da barra de rolagem o tempo todo.
 * Sem isto, o body{overflow:hidden} que trava o fundo quando o carrinho abre
 * eliminava a barra e alargava a página — tudo, inclusive o topo e a barra do
 * carrinho (que são fixos e centrados em 50%), pulava uns 15px para o lado.
 */
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll; /* fallback para navegador sem scrollbar-gutter */
}

body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app {
  max-width: var(--largura);
  margin: 0 auto;
  background: var(--card);
  min-height: 100svh;
  padding-top: var(--topbar-h);
  /**
   * Sem padding-bottom aqui. Ele existia para a barra fixa do carrinho não
   * cobrir o conteúdo, mas o fundo de .app é branco — então sobravam 100px de
   * bloco branco DEPOIS do rodapé escuro. A folga passou para dentro do
   * próprio rodapé (que é escuro) e, no checkout, para .checkout.
   */
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(15, 23, 42, .08);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Topbar ---------------- */

.topbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--largura), 100%); z-index: 200;
  background: var(--black); color: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

.topbar-row {
  display: flex; align-items: center; gap: 12px;
  justify-content: space-between; margin-bottom: 14px;
}

/* Tempo de entrega no canto superior direito */
.entrega-topo {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
}
.entrega-topo svg { width: 16px; height: 16px; stroke: var(--yellow); stroke-width: 2.2; fill: none; flex: 0 0 16px; }
.entrega-topo b { color: var(--yellow); font-weight: 800; }

.local {
  display: flex; align-items: center; gap: 14px;
  min-width: 0; text-align: left; position: relative; color: inherit;
}

.local-pin {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
}
.local-pin svg { width: 27px; height: 27px; stroke: var(--black); stroke-width: 2.1; fill: none; }

.local-txt { min-width: 0; }
.local-label { font-size: 15px; color: #9ca3af; line-height: 1.15; }
.local-city {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 700; line-height: 1.25; max-width: 250px;
}
.local-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-city svg { width: 17px; height: 17px; flex: 0 0 17px; stroke: #d1d5db; stroke-width: 2.6; fill: none; transition: transform .18s ease; }
.local.aberto .local-city svg { transform: rotate(180deg); }

.acoes { display: flex; align-items: center; gap: 8px; }

.btn-icone {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--black-3);
  display: grid; place-items: center; position: relative;
  transition: background .16s ease;
}
.btn-icone:hover { background: #3d3d3d; }
.btn-icone svg { width: 23px; height: 23px; stroke: #fff; stroke-width: 2; fill: none; }

.badge-carrinho {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px;
  padding: 0 5px; border-radius: 11px; background: var(--yellow); color: var(--black);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--black);
}

.busca { position: relative; }
.busca svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; stroke: var(--muted); stroke-width: 2.2; fill: none;
}
.busca input {
  width: 100%; height: 52px; border-radius: 26px; border: 0;
  background: #fff; padding: 0 18px 0 46px; outline: 0; font-size: 15px;
}
.busca input::placeholder { color: var(--muted); }
.busca .lupa { left: 17px; }
.busca input:focus { box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }

.busca-limpar {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg);
  transition: background .16s ease;
}
.busca-limpar:hover { background: var(--line); }
.busca-limpar svg { width: 15px; height: 15px; stroke: #4b5563; stroke-width: 2.6; fill: none; }

/* some o "x" nativo do Chrome, já temos o nosso */
.busca input::-webkit-search-cancel-button { display: none; }

/* --------- Popover de endereço --------- */

.pop-endereco {
  position: absolute; left: 0; top: calc(100% + 12px); width: min(320px, 78vw);
  background: #fff; color: var(--text); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 18px; z-index: 90; cursor: default;
}
.pop-titulo { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; margin-bottom: 13px; }
.pop-titulo svg { width: 17px; height: 17px; stroke: var(--yellow-dk); stroke-width: 2.2; fill: none; }
.campo { margin-bottom: 10px; }
.campo label { display: block; font-size: 12px; font-weight: 800; color: #6b7280; margin-bottom: 4px; }
.campo input, .campo select {
  width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 11px; outline: 0; background: #fff; font-size: 14px;
}
.campo input:focus, .campo select:focus { border-color: var(--yellow-dk); box-shadow: 0 0 0 3px rgba(255, 194, 26, .22); }
.campo-erro input { border-color: #dc2626; }
.msg-erro { font-size: 11.5px; color: #dc2626; margin-top: 3px; font-weight: 600; }

/* Endereço resolvido pelo CEP — leitura, não edição: é o que impede uma
   cidade digitada à mão de virar o endereço de entrega. */
.pop-resultado {
  margin-top: 9px; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.4;
}
.pop-resultado.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.pop-resultado.erro { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.pop-acoes { display: flex; gap: 8px; margin-top: 12px; }
.pop-acoes button { flex: 1; height: 42px; border-radius: var(--r-sm); font-weight: 900; font-size: 13px; }

.btn-primario { background: var(--yellow); color: var(--on-yellow); transition: background .16s ease; }
.btn-primario:hover { background: var(--yellow-dk); }
.btn-primario:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn-neutro { background: var(--bg); color: var(--text); border: 1px solid var(--line) !important; }
.btn-neutro:hover { background: var(--line); }

/* ---------------- Hero ---------------- */

/**
 * A arte é 16:9 e aparece inteira. O aspect-ratio deixa a altura acompanhar a
 * largura do container (643px no desktop, a viewport no celular), então não há
 * altura fixa para brigar com o recorte em nenhum tamanho de tela.
 *
 * Nada de padding embaixo: a .folha sobe 24px por cima da base do banner e os
 * cantos arredondados dela deixam ver o que está atrás. Qualquer faixa de cor
 * ali vira dois entalhes escuros nos cantos inferiores — com a arte descendo
 * até a borda, a emenda com a folha fica limpa. O preço é o rodapé da arte
 * (o selo "18+ beba com moderação") ficar sob a folha; o aviso legal do rodapé
 * da página cobre isso.
 *
 * Continua background e não <img> porque o preto preenche a folga caso a arte
 * trocada um dia não seja 16:9.
 */
.hero {
  aspect-ratio: 16 / 9;
  background: var(--black) url('../assets/banner-hero.jpg') center / cover no-repeat;
}

/**
 * O catálogo chega por fetch, então #conteudo nasce vazio. Sem reservar altura,
 * o rodapé começava logo abaixo das categorias e despencava quando os produtos
 * entravam — 0,22 de CLS só nisso.
 */
#conteudo { min-height: 100svh; }

/* Folha branca que sobe por cima do banner */
.folha {
  position: relative; z-index: 5; margin-top: -24px;
  background: #fff; border-radius: 24px 24px 0 0; padding-top: 20px;
}

/* ---------------- Grade de categorias ---------------- */

.categorias {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px 4px; padding: 4px 10px 22px;
}

.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 2px; transition: transform .16s ease;
}
.cat-item:hover { transform: translateY(-2px); }
.cat-item .aro {
  width: 66px; height: 58px; border-radius: 50%; overflow: hidden;
  background: #f7f7f7; transition: box-shadow .16s ease;
}
/* Os ícones agora são fotos de produto: `contain` para não cortar a garrafa. */
.cat-item img { width: 100%; height: 100%; object-fit: contain; }
.cat-item span {
  font-size: 12px; font-weight: 600; line-height: 1.22; text-align: center;
  color: var(--text); word-break: break-word;
}
.cat-item.ativo .aro { box-shadow: 0 0 0 3px var(--yellow); }
.cat-item.ativo span { color: var(--orange); font-weight: 800; }

/* Cabeçalho quando uma categoria está aberta */
.filtro-topo {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 16px 16px;
}
.filtro-voltar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center;
}
.filtro-voltar:hover { background: var(--line); }
.filtro-voltar svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2.4; fill: none; }
.filtro-topo h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.filtro-topo small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------------- Seções / carrossel ---------------- */

.secao { margin-bottom: 26px; }
.secao-topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 18px; margin-bottom: 18px;
}
.secao-topo h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.secao-topo small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.link-ver { font-size: 14px; font-weight: 700; color: var(--orange); white-space: nowrap; }

.trilho {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; }

.grade {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px; padding: 4px 16px 8px;
}
@media (min-width: 520px) { .grade { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Card de produto ---------------- */

.card {
  flex: 0 0 204px; width: 204px; min-height: 430px; padding: 12px;
  border-radius: 16px;
  background: var(--card); display: flex; flex-direction: column; position: relative;
}
.grade .card { flex: initial; width: auto; min-height: 0; }

.card-figura {
  background: #fff; border-radius: 13px; height: 150px;
  display: grid; place-items: center; overflow: hidden;
  transition: box-shadow .16s ease;
}
/* Na grade de categoria o card estica, então a figura volta a ser quadrada. */
.grade .card-figura { height: auto; aspect-ratio: 1 / 1; }
.card:hover .card-figura { box-shadow: var(--shadow-md); }
.card-figura img { width: 86%; height: 86%; object-fit: contain; }

.selo-desconto {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  background: var(--vermelho); color: #fff; font-size: 13px; font-weight: 900;
  padding: 7px 10px; border-radius: 16px; letter-spacing: -.01em;
  box-shadow: 0 7px 16px rgba(226, 38, 38, .22);
}
.selo-tag {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  background: var(--yellow); color: var(--on-yellow); font-size: 11px; font-weight: 900;
  padding: 6px 9px; border-radius: 16px;
}

.card-nome {
  font-size: 16px; font-weight: 900; line-height: 1.15; color: var(--text);
  margin: 12px 0 4px; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-medida {
  font-size: 13px; line-height: 1.25; color: #6b7280; font-weight: 500;
  margin-bottom: 8px; min-height: 17px;
}

.card-de {
  display: inline-block; padding: 5px 8px; border-radius: 7px; margin-bottom: 9px;
  background: #f0f0f0; color: #6b7280; font-size: 12px; font-weight: 500;
  text-decoration: line-through;
}
.card-precos { margin-top: auto; }
.card-por { font-size: 14px; font-weight: 800; color: var(--orange); line-height: 1.2; margin-bottom: 2px; }
.preco { font-size: 26px; font-weight: 900; color: var(--orange); letter-spacing: 0; line-height: 1; margin-bottom: 12px; }

.card-add {
  min-height: 62px; width: 100%; border-radius: 999px; padding: 0 14px;
  background: linear-gradient(180deg, #ffd400 0%, #f5b800 100%); color: #050505;
  font-size: 18px; font-weight: 900; line-height: 1; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 18px rgba(245, 184, 0, .26);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.card-add:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 24px rgba(245, 184, 0, .34); }
.card-add:active { transform: scale(.98); box-shadow: 0 7px 14px rgba(245, 184, 0, .25); }
.card-add svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.6; fill: none; }

/* Mesma altura/raio do .card-add para o card não pular ao adicionar o 1º item. */
.contador {
  min-height: 62px; border-radius: 999px; padding: 0 8px;
  background: linear-gradient(180deg, #ffd400 0%, #f5b800 100%); color: #050505;
  box-shadow: 0 10px 18px rgba(245, 184, 0, .26);
  display: flex; align-items: center; justify-content: space-between;
}
.contador button {
  width: 42px; height: 42px; border-radius: 50%; color: #050505;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; line-height: 1;
}
.contador button:hover { background: rgba(0, 0, 0, .10); }
.contador span { font-size: 17px; font-weight: 900; }

.card-ver-todos {
  flex: 0 0 170px; width: 170px; min-height: 265px; align-self: center;
  border: 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--yellow), #f2a208); color: #fff;
  box-shadow: 0 8px 20px rgba(244, 165, 0, .24);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; transition: all .16s ease;
}
.card-ver-todos:hover { filter: brightness(1.04); transform: translateY(-2px); }
.card-ver-todos b { font-size: 16px; font-weight: 800; }
.card-ver-todos small { font-size: 14px; font-weight: 500; }
.card-ver-todos .mais {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .28);
  display: grid; place-items: center; font-size: 24px; font-weight: 400; color: #fff;
}

/* Card compacto no celular — mesmas medidas do layout de referência. */
@media (max-width: 520px) {
  /**
   * Header compacto. Nas telas estreitas ele ocupava quase metade da altura
   * útil: o pino tinha 54px e a cidade competia com o texto de entrega, saindo
   * cortada ("São Paul…").
   */
  .topbar { padding: 12px; }
  .topbar-row { gap: 8px; margin-bottom: 10px; }

  .local { gap: 10px; }
  .local-pin { width: 40px; height: 40px; flex-basis: 40px; }
  .local-pin svg { width: 20px; height: 20px; }
  .local-label { font-size: 11.5px; }
  .local-city { font-size: 16px; max-width: none; gap: 6px; }
  .local-city svg { width: 14px; height: 14px; flex-basis: 14px; }

  .entrega-topo { font-size: 12px; gap: 4px; }
  .entrega-topo svg { width: 14px; height: 14px; flex-basis: 14px; }

  .busca input { height: 44px; border-radius: 22px; padding-left: 40px; font-size: 16px; }
  .busca .lupa { left: 14px; width: 17px; height: 17px; }
  .busca-limpar { width: 30px; height: 30px; right: 7px; }

  /* o hero não entra aqui: o aspect-ratio já acompanha a largura da tela */
  .secao-topo { padding: 0 14px; margin-bottom: 16px; }
  .trilho { gap: 10px; padding: 0 14px 12px; }

  .card { flex-basis: 166px; width: 166px; min-height: 360px; padding: 10px; border-radius: 14px; }
  .grade .card { width: auto; min-width: 0; flex: initial; }
  .card-figura { height: 118px; border-radius: 11px; }
  .card-figura img { width: 82%; height: 82%; }

  .card-nome { font-size: 14px; min-height: 34px; margin-top: 10px; }
  .card-medida { font-size: 12px; margin-bottom: 7px; }
  .card-de { font-size: 11px; padding: 4px 7px; margin-bottom: 7px; }
  .card-por { font-size: 12px; }
  .preco { font-size: 22px; margin-bottom: 10px; }

  .card-add { min-height: 54px; padding: 0 9px; gap: 6px; font-size: 16px; }
  .contador { min-height: 54px; }
  .contador button { width: 38px; height: 38px; }

  .cat-item .aro { width: 50px; height: 45px; }
  .cat-item span { font-size: 13px; }

  /* Alvos de toque: no dedo, 27px erra. O mínimo recomendado é 44px. */
  .contador-mini { padding: 3px; gap: 4px; }
  .contador-mini button { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
  .contador-mini span { min-width: 28px; font-size: 15px; }
  .fechar { width: 44px; height: 44px; }
  .fechar svg { width: 19px; height: 19px; }
  .filtro-voltar { width: 44px; height: 44px; flex-basis: 44px; }
  .filtro-voltar svg { width: 20px; height: 20px; }

  /* iOS dá zoom no campo se a fonte for menor que 16px. */
  input, select, textarea { font-size: 16px; }
}

/* Celular estreito: o texto "Entrega em até" some e fica só o relógio + tempo,
   devolvendo a largura para o nome da cidade, que era o que ficava cortado. */
@media (max-width: 400px) {
  .rotulo-entrega { display: none; }
  .local-city { font-size: 15.5px; }
  .local-pin { width: 36px; height: 36px; flex-basis: 36px; }
  .local-pin svg { width: 18px; height: 18px; }
}

.vazio { padding: 46px 20px; text-align: center; color: var(--muted); }
.vazio b { display: block; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.vazio p { font-size: 13px; }

/* ---------------- Página de checkout ---------------- */

.checkout { background: var(--bg); padding: 14px 0 110px; min-height: 100svh; }

.checkout-voltar {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 6px 6px 12px;
  display: grid; place-items: center; background: transparent;
  transition: background .16s ease;
}
.checkout-voltar:hover { background: rgba(0, 0, 0, .06); }
.checkout-voltar svg { width: 22px; height: 22px; stroke: var(--text); stroke-width: 2.2; fill: none; }

.bloco {
  background: #fff; border-radius: 16px; margin: 12px;
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.bloco > h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.bloco.centrado { text-align: center; }
.bloco.centrado > h3 { margin-bottom: 4px; }
.bloco-sub { font-size: 14px; color: #6b7280; margin-bottom: 18px; }

/* --------- Resumo do pedido --------- */

.resumo-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: 12px; padding: 10px; margin-bottom: 10px;
}
.resumo-item:last-child { margin-bottom: 0; }
.resumo-item .fig {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: 9px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.resumo-item .fig img { width: 88%; height: 88%; object-fit: contain; }
.resumo-item .txt { flex: 1 1 auto; min-width: 0; }
.resumo-item .nome { font-size: 14.5px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.resumo-item .linha { font-size: 13px; color: var(--muted); font-weight: 500; }
.resumo-item .linha b { color: var(--orange); font-weight: 800; margin-left: 6px; }

.qtd-pill { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qtd-pill button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; line-height: 1; transition: filter .16s ease;
}
.qtd-pill button:hover { filter: brightness(.93); }
.qtd-pill .menos { background: #e9edf3; color: #4b5563; }
.qtd-pill .mais { background: var(--yellow); color: var(--on-yellow); }
.qtd-pill .n {
  min-width: 44px; height: 34px; padding: 0 8px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}

/* --------- Indicador de passos --------- */

.passos-circ { display: flex; align-items: center; justify-content: center; margin: 22px 12px; }
.passos-circ .bola {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  background: #e3e7ee; color: #98a1b2; transition: background .2s ease, color .2s ease;
}
.passos-circ .bola.atual { background: var(--yellow); color: var(--on-yellow); }
.passos-circ .bola.feito { background: var(--yellow-dk); color: var(--on-yellow); }
.passos-circ .traco { height: 3px; width: 76px; background: #e3e7ee; }
.passos-circ .traco.feito { background: var(--yellow-dk); }

/* --------- Peça também --------- */

.cross { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cross::-webkit-scrollbar { display: none; }
.cross-card { flex: 0 0 132px; width: 132px; }
.cross-fig {
  position: relative; background: #fff; border-radius: 12px;
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: visible;
}
.cross-fig img { width: 84%; height: 84%; object-fit: contain; }
.cross-add {
  position: absolute; right: -6px; bottom: -6px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: var(--on-yellow);
  display: grid; place-items: center; font-size: 24px; font-weight: 800; line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: background .16s ease, transform .16s ease;
}
.cross-add:hover { background: var(--yellow-dk); transform: scale(1.06); }
.cross-preco { font-size: 16px; font-weight: 800; color: var(--orange); margin-top: 14px; }
.cross-nome {
  font-size: 12.5px; font-weight: 600; color: #374151; line-height: 1.3; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------- Ações do checkout --------- */

.checkout-acoes { margin: 12px; display: flex; gap: 10px; }
.checkout-acoes .btn-grande { flex: 1 1 auto; }
.checkout-acoes .btn-grande.escuro { flex: 0 0 34%; }

.checkout .campo label { font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.checkout .campo input { height: 48px; border-radius: 10px; }

/* Zoom travado no checkout (classe posta por travarZoom() no app.js).
   touch-action: manipulation derruba o toque duplo, que é o único caminho de
   zoom que o meta viewport e o bloqueio de gesture* não pegam. */
body.sem-zoom { touch-action: manipulation; }

/* O iOS dá zoom sozinho ao focar campo com fonte menor que 16px, e não
   desfaz ao sair. A regra de 16px existia só até 520px; no checkout ela vale
   em qualquer largura, senão o tablet cai no mesmo problema. */
.checkout .campo input,
.checkout .campo select,
.checkout .campo textarea { font-size: 16px; }
.checkout .form-grid { text-align: left; }

/* ---------------- Rodapé ---------------- */

/* O padding de baixo absorve a barra fixa do carrinho (antes vinha de .app,
   que é branco e deixava um bloco claro sob o rodapé). */
.rodape {
  background: var(--black); color: #9ca3af;
  padding: 26px 20px calc(110px + env(safe-area-inset-bottom));
  text-align: center; font-size: 11.5px; line-height: 1.65;
}
.rodape strong { display: block; color: #e5e7eb; font-size: 12.5px; margin-bottom: 8px; }
.rodape .aviso-idade {
  margin: 14px auto 0; max-width: 340px; padding: 10px 12px;
  border: 1px solid rgba(255, 194, 26, .30); border-radius: var(--r-sm);
  color: var(--yellow); font-weight: 700;
}

/* ---------------- Barra do carrinho ---------------- */

.barra-carrinho {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--largura), 100%); z-index: 150;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.barra-carrinho button {
  width: 100%; height: 54px; border-radius: var(--r-md);
  background: var(--yellow); color: var(--on-yellow);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  font-weight: 900; font-size: 14.5px;
  transition: background .16s ease;
}
.barra-carrinho button:hover { background: var(--yellow-dk); }
.barra-carrinho .esq { display: flex; align-items: center; gap: 10px; }
.barra-carrinho .qtd {
  min-width: 25px; height: 25px; padding: 0 6px; border-radius: 7px;
  background: var(--black); color: var(--yellow); display: grid; place-items: center; font-size: 12.5px;
}

/* ---------------- Modais ---------------- */

.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, .58); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .26s ease;
}
@keyframes fade { from { opacity: 0; } }

.painel {
  width: min(var(--largura), 100%); max-height: 92svh;
  background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: subir .34s cubic-bezier(.19, 1, .3, 1);
  will-change: transform;
}
@keyframes subir { from { transform: translateY(100%); } }

/* Saída: desliza para baixo e só então sai do DOM (ver fecharModal). */
.overlay.saindo { animation: apagar .26s ease forwards; }
.overlay.saindo .painel { animation: descer .26s cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes apagar { to { opacity: 0; } }
@keyframes descer { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .overlay, .painel, .overlay.saindo, .overlay.saindo .painel { animation-duration: .01ms; }
}

.aviso-minimo.teto {
  background: #eff6ff; border-color: #bfdbfe; color: #1e40af;
}

/* Estourou o teto: trava o checkout, então pede vermelho e não o azul do aviso. */
.aviso-minimo.estouro {
  background: #fef2f2; border-color: #fecaca; color: #991b1b;
}

.campo.buscando input {
  background-image: linear-gradient(90deg, transparent 0%, rgba(255, 194, 26, .28) 50%, transparent 100%);
  background-size: 220% 100%; animation: varrendo 1s linear infinite;
}
@keyframes varrendo { to { background-position: -220% 0; } }

/* ---------------- Zoom da foto ---------------- */

.overlay-zoom { align-items: center; padding: 16px; }

.zoom {
  width: min(430px, 100%); background: #fff; border-radius: 20px;
  overflow: hidden; position: relative;
  animation: zoom-entra .26s cubic-bezier(.19, 1, .3, 1);
  transition: transform .15s ease;
}
@keyframes zoom-entra { from { transform: scale(.9); opacity: 0; } }
.overlay.saindo .zoom { animation: zoom-sai .2s ease forwards; }
@keyframes zoom-sai { to { transform: scale(.94); opacity: 0; } }

.zoom-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.zoom-fechar:hover { background: #fff; }
.zoom-fechar svg { width: 17px; height: 17px; stroke: var(--text); stroke-width: 2.6; fill: none; }

.zoom-fig {
  background: linear-gradient(170deg, #fcfcfd 0%, #eef0f4 100%);
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 22px;
}
.zoom-fig img { max-width: 100%; max-height: 100%; object-fit: contain; }

.zoom-info { padding: 18px; }
.zoom-info h3 { font-size: 18px; font-weight: 800; line-height: 1.28; letter-spacing: -.02em; }
.zoom-precos { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.zoom-de { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.zoom-preco { font-size: 26px; font-weight: 800; color: var(--orange); letter-spacing: -.03em; }
.zoom-off {
  background: var(--vermelho); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 12px;
}

.card-figura img, .item-fig img, .resumo-item .fig img, .cross-fig img { cursor: zoom-in; }

.btn-continuar {
  width: 100%; height: 46px; margin-top: 9px; border-radius: var(--r-md);
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line-2);
  font-size: 14px; font-weight: 800;
  transition: background .16s ease, border-color .16s ease;
}
.btn-continuar:hover { background: var(--bg); border-color: var(--muted); }

.painel-topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.painel-topo h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.painel-topo .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.fechar {
  width: 36px; height: 36px; border-radius: 9px; background: var(--bg);
  display: grid; place-items: center; flex: 0 0 36px;
}
.fechar:hover { background: var(--line); }
.fechar svg { width: 16px; height: 16px; stroke: #374151; stroke-width: 2.4; fill: none; }

.painel-corpo { overflow-y: auto; padding: 16px 18px; flex: 1 1 auto; }
.painel-base { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); flex: 0 0 auto; background: #fff; }

/* --------- Itens do carrinho --------- */

.item {
  display: flex; gap: 11px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-fig {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: var(--r-sm);
  background: var(--bg); display: grid; place-items: center; overflow: hidden;
}
.item-fig img { width: 88%; height: 88%; object-fit: contain; }
.item-txt { flex: 1 1 auto; min-width: 0; }
.item-nome { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.item-preco { font-size: 14px; font-weight: 800; }
.item-unit { font-size: 11px; color: var(--muted); font-weight: 500; }

.contador-mini {
  display: flex; align-items: center; gap: 3px; flex: 0 0 auto;
  border: 1px solid var(--line-2); border-radius: 9px; padding: 2px;
}
.contador-mini button {
  width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: #374151;
}
.contador-mini button:hover { background: var(--bg); }
.contador-mini span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 800; }

.resumo { margin-top: 4px; }
.resumo-linha {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); padding: 5px 0;
}
.resumo-linha b { color: var(--text); font-weight: 700; }
.resumo-linha.gratis b { color: var(--ok); }
.resumo-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 11px; margin-top: 7px; border-top: 1px solid var(--line);
}
.resumo-total span { font-size: 14px; font-weight: 700; }
.resumo-total b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

.aviso-minimo {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 12px; font-weight: 600; padding: 9px 11px;
  border-radius: var(--r-sm); margin-bottom: 11px;
}

.btn-grande {
  width: 100%; height: 54px; border-radius: var(--r-md);
  background: var(--yellow); color: var(--on-yellow); font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .16s ease;
}
.btn-grande:hover { background: var(--yellow-dk); }
.btn-grande:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn-grande.escuro { background: var(--black); color: #fff; }
.btn-grande.escuro:hover { background: var(--black-2); }

/* ---------------- Checkout ---------------- */

.passos { display: flex; align-items: center; gap: 6px; padding: 0 18px 14px; }
.passo { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.passo-barra { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s ease; }
.passo.feito .passo-barra, .passo.atual .passo-barra { background: var(--yellow); }
.passo-nome { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.passo.atual .passo-nome, .passo.feito .passo-nome { color: #8a5c00; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .col-2 { grid-column: 1 / -1; }
.form-grid .col-cep { grid-column: span 1; }

.opcao-pgto {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px; margin-bottom: 10px; width: 100%; text-align: left;
  transition: all .16s ease;
}
.opcao-pgto:hover { border-color: var(--yellow-dk); }
.opcao-pgto.ativa { border-color: var(--yellow-dk); background: var(--yellow-lt); }
.opcao-pgto .marca {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px;
  background: var(--bg); display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #374151;
}
.opcao-pgto.ativa .marca { background: #fff; }

.icone-qr { width: 24px; height: 24px; stroke: var(--text); stroke-width: 1.9; fill: none; }
.opcao-pgto .txt { flex: 1 1 auto; min-width: 0; }
.opcao-pgto .txt b { display: block; font-size: 14px; font-weight: 800; }
.opcao-pgto .txt small { font-size: 12px; color: var(--muted); }
.opcao-pgto .radio {
  width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%;
  border: 2px solid var(--line-2); display: grid; place-items: center;
}
.opcao-pgto.ativa .radio { border-color: var(--yellow-dk); }
.opcao-pgto.ativa .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow-dk); }

.bloco-revisao {
  background: var(--bg); border-radius: var(--r-md); padding: 13px; margin-bottom: 14px;
}
.bloco-revisao h4 { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.bloco-revisao p { font-size: 13px; line-height: 1.5; }

/* --------- Tela de "pagamento" (simulada) --------- */

.demo-aviso {
  background: #fffbeb; border: 1px solid var(--yellow); border-radius: var(--r-md);
  padding: 13px 14px; margin-bottom: 16px;
}
.demo-aviso b { display: block; font-size: 13px; font-weight: 900; color: #7c4a03; margin-bottom: 4px; }
.demo-aviso p { font-size: 12.5px; color: #92600a; line-height: 1.5; }
.demo-aviso code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 11.5px;
  background: rgba(124, 74, 3, .11); padding: 1px 5px; border-radius: 4px;
}

.painel-sucesso { text-align: center; padding: 28px 20px 10px; }
.icone-ok {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
  background: #dcfce7; display: grid; place-items: center;
}
.icone-ok svg { width: 33px; height: 33px; stroke: var(--ok); stroke-width: 3; fill: none; }
.painel-sucesso h3 { font-size: 21px; font-weight: 800; margin-bottom: 7px; letter-spacing: -.02em; }
.painel-sucesso p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.painel-sucesso .pedido-id {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--bg); font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}

/* ---------------- Toast ---------------- */

.toast-area {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%);
  width: min(var(--largura), 100%); padding: 0 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--black); color: #fff; border-radius: var(--r-md);
  padding: 12px 14px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: toast-in .22s cubic-bezier(.22, 1, .36, 1);
}
.toast svg { width: 17px; height: 17px; flex: 0 0 17px; stroke: var(--yellow); stroke-width: 2.6; fill: none; }
/* Recusa: o ✓ amarelo de sucesso mentia sobre o que tinha acontecido. */
.toast.aviso svg { stroke: #fca5a5; stroke-width: 2.2; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }
.toast.saindo { animation: toast-out .18s ease forwards; }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ---------------- Pagamento Pix e pedido ---------------- */

.pagina-vazia { padding: 60px 20px; text-align: center; color: var(--muted); font-weight: 600; }

.pag { padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 14px; }

.pag-topo { text-align: center; }
.pag-topo h2 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.pag-topo p { font-size: 13px; color: var(--muted); margin-top: 5px; }

.selo-sandbox {
  display: inline-block; margin-top: 9px; padding: 4px 10px;
  background: var(--yellow-lt); border: 1px solid #fde68a; color: #92400e;
  border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em;
}

.pag-valor {
  text-align: center; font-size: 32px; font-weight: 900; letter-spacing: -.03em;
}

/* Fundo branco fixo: o QR precisa de contraste real para a câmera ler. */
.pag-qr {
  display: flex; justify-content: center; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.pag-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.pag-qr-vazio { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.pag-espera {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}

.girando {
  width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--yellow-dk);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.pag-prazo { text-align: center; font-size: 12.5px; color: var(--muted); }
.pag-prazo b { color: var(--text); font-variant-numeric: tabular-nums; }

.pag-emv-rotulo {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin-bottom: -6px;
}
.pag-emv {
  width: 100%; resize: none; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; word-break: break-all;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
}

.pag-falha {
  display: flex; align-items: center; gap: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 12px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
}
.pag-falha svg { width: 19px; height: 19px; flex: 0 0 19px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.pag-resumo {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px;
}

/* --------- Pedido confirmado --------- */

.pedido-ok { text-align: center; padding: 8px 0 2px; }
.pedido-ok h2 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin-top: 10px; }
.pedido-ok p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.preparo {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px;
}
.preparo-etapa {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--muted-2); padding: 7px 0;
}
.preparo-etapa svg { width: 17px; height: 17px; flex: 0 0 17px; stroke: var(--ok); stroke-width: 3; fill: none; }
.preparo-etapa .bolinha {
  width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%;
  border: 2px solid var(--line-2);
}
.preparo-etapa.feita { color: var(--text); }
.preparo-etapa.atual { color: var(--text); font-weight: 800; }

.pedido-prazo {
  text-align: center; background: var(--yellow-lt); border: 1px solid #fde68a;
  border-radius: var(--r-sm); padding: 11px; font-size: 13.5px; font-weight: 700;
}

/* Sem hover-lift nem cursor de clique: o Pix é a única forma, não é escolha. */
.opcao-pgto.unica { cursor: default; }
.opcao-pgto.unica:hover { transform: none; }

.campo-ajuda { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* --------- Acompanhamento da entrega --------- */

.acomp-topo { text-align: center; padding: 6px 0 2px; }
.acomp-rotulo {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.acomp-tempo {
  font-size: 38px; font-weight: 900; letter-spacing: -.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.acomp-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.mapa {
  position: relative; width: 100%; height: 220px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #e8e0d8; /* bege do OSM: evita flash branco enquanto carrega */
  cursor: grab;
  /* Sem isto o navegador rola a página em vez de entregar o toque ao mapa,
     e o arrasto não funciona no celular. */
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.mapa.arrastando { cursor: grabbing; }

.mapa-tiles img { position: absolute; display: block; max-width: none; }

/* O JS posiciona left/top em px; o transform ancora a ponta do pino no ponto. */
.mapa-pino { position: absolute; transform: translate(-50%, -100%); pointer-events: none; }
.mapa-pino svg {
  width: 34px; height: 34px;
  stroke: #fff; stroke-width: 1.8; fill: var(--vermelho);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}

.mapa-botoes {
  position: absolute; right: 9px; top: 9px;
  display: flex; flex-direction: column; gap: 5px;
}
.mapa-botoes button {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, .95); color: var(--text);
  box-shadow: var(--shadow-md); font-size: 18px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s ease;
}
.mapa-botoes button:hover { background: #fff; }
.mapa-botoes button svg {
  width: 16px; height: 16px; stroke: var(--text); stroke-width: 2; fill: none;
}

/* Crédito exigido pela licença ODbL do OpenStreetMap. Pode ser discreto,
   mas não pode sumir. */
.mapa-credito {
  position: absolute; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .8); color: #3c4043;
  font-size: 10px; padding: 2px 6px; border-radius: 5px 0 0 0;
  text-decoration: none;
}
.mapa-credito:hover { text-decoration: underline; }
.mapa-vazio {
  padding: 34px 16px; text-align: center; font-size: 13px; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}

.acomp-endereco, .acomp-origem {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 13px; font-size: 13px; line-height: 1.45;
}
.acomp-endereco svg, .acomp-origem svg {
  width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px;
  stroke: var(--yellow-dk); stroke-width: 2; fill: none;
}
.acomp-origem small { display: block; font-size: 11.5px; color: var(--muted); }
.acomp-origem b { display: block; font-size: 14px; }

/* Marcador da loja de origem: quadrado amarelo, para não competir com o pino
   vermelho do endereço de entrega. */
.mapa-loja {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--yellow); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35); pointer-events: none;
}
.mapa-loja svg { width: 15px; height: 15px; stroke: var(--on-yellow); stroke-width: 1.9; fill: none; }

.linha-tempo {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 15px 15px 6px;
}

.etapa { display: flex; gap: 12px; }
.etapa-marca {
  display: flex; flex-direction: column; align-items: center;
  flex: 0 0 18px; padding-top: 2px;
}
.etapa-marca svg { width: 17px; height: 17px; stroke: var(--ok); stroke-width: 3; fill: none; }
.etapa-marca .bolinha {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2);
}
/* O traço liga um marcador ao próximo; some no último por não ter destino. */
.etapa-traco { flex: 1; width: 2px; background: var(--line); margin: 5px 0 1px; }
.etapa.feita .etapa-traco { background: var(--ok); }

.etapa-txt { padding-bottom: 15px; }
.etapa-txt b { display: block; font-size: 13.5px; color: var(--muted-2); }
.etapa-txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.etapa.feita .etapa-txt b, .etapa.atual .etapa-txt b { color: var(--text); }
.etapa.atual .etapa-txt b { font-weight: 800; }

.resumo-titulo {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: 9px;
}
.tag-ok { color: var(--ok); }

@media (max-width: 520px) {
  .pag { padding: 14px 12px 34px; }
  .pag-qr img { width: 200px; height: 200px; }
  .pag-valor { font-size: 28px; }
  .acomp-tempo { font-size: 33px; }
  .mapa { height: 190px; }
}
