/* Preço Certo — visual azul e amarelo (modelo aprovado em 02/11/2026). Fonte Nunito servida pelo próprio app (licença OFL). */
@font-face { font-family: "Nunito"; src: url("fontes/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url("fontes/nunito-latin-ext.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* marca */
  --topo-1: #062d63; --topo-2: #0b4f9c; --azul: #1565c0; --azul-forte: #0b5fa5; --azul-claro: #e7f0fc; --azul-texto: #0b4f9c;
  --amarelo: #f5c400; --amarelo-hover: #ffd21f; --amarelo-tinta: #231a00; --amarelo-fundo: #fff6cc; --amarelo-texto: #7a5c00;
  /* superfícies */
  --fundo: #eef2f8; --cartao: #ffffff; --cartao-2: #f6f8fc; --texto: #0e1b2e; --suave: #52627a; --linha: #dbe3ee;
  /* estados */
  --verde: #08782f; --verde-fundo: #e5f6eb; --verde-linha: #9fd9b2; --vermelho: #d92d20; --vermelho-fundo: #fdecea;
  --erro: #b42318; --erro-fundo: #fdecea; --atencao: #7a4f00; --atencao-fundo: #fff4d6; --ok: #08782f; --ok-fundo: #e5f6eb;
  --raio: 16px; --raio-p: 12px;
  --sombra: 0 1px 2px rgb(10 40 90 / .06), 0 6px 18px -6px rgb(10 40 90 / .14);
  --sombra-alta: 0 10px 30px -10px rgb(0 0 0 / .3);
  --barra: 66px; --largura: 680px;
  --fonte: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --topo-1: #041a3d; --topo-2: #0a3a78; --azul: #5b9dff; --azul-forte: #3d86f5; --azul-claro: #13284a; --azul-texto: #8dbbff;
    --amarelo-fundo: #33290a; --amarelo-texto: #ffd84d;
    --fundo: #08111f; --cartao: #111c2f; --cartao-2: #16243b; --texto: #e8eef8; --suave: #9aabc4; --linha: #23344f;
    --verde: #4ade80; --verde-fundo: #0e2a1b; --verde-linha: #1f6b3d; --vermelho: #e5484d; --vermelho-fundo: #3a1517;
    --erro: #ffb4a9; --erro-fundo: #3a1a17; --atencao: #fcd34d; --atencao-fundo: #33290a; --ok: #4ade80; --ok-fundo: #0e2a1b;
    --sombra: 0 1px 0 rgb(255 255 255 / .03) inset, 0 8px 20px -10px rgb(0 0 0 / .6);
    --sombra-alta: 0 12px 30px -10px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font: 500 16px/1.4 var(--fonte); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul-texto); text-underline-offset: 3px; }
::selection { background: var(--amarelo); color: var(--amarelo-tinta); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
svg { flex: none; }
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca-icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #2f8cff, #1565c0); color: #fff; box-shadow: 0 4px 12px -4px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .25); }
.marca-icone svg { width: 24px; height: 24px; stroke-width: 2.4; }
.marca-icone.grande { width: 60px; height: 60px; border-radius: 18px; }
.marca-icone.grande svg { width: 34px; height: 34px; }
.marca-nome { margin: 0; font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.amarelo { color: var(--amarelo); }

/* ---------- entrar ---------- */
.auth { min-height: 100dvh; display: grid; align-content: start; justify-items: center; padding: calc(40px + env(safe-area-inset-top)) 16px 32px;
  background: radial-gradient(120% 60% at 50% 0%, var(--topo-2), var(--topo-1) 70%) top / 100% 360px no-repeat, var(--fundo); }
.auth-marca { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: 24px; color: #fff; }
.auth-linha { display: flex; align-items: center; gap: 12px; }
.auth-marca .marca-nome { font-size: 2.1rem; line-height: 1; }
.auth-sub { margin: 0; max-width: 30ch; color: #d6e4fa; font-size: 1.02rem; }
.auth-sub b { color: var(--amarelo); font-weight: 800; }
.auth-caixa { width: min(420px, 100%); display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--cartao); box-shadow: var(--sombra-alta); }
.abas-auth { display: grid; grid-template-columns: 1fr 1fr; background: var(--cartao-2); border: 1px solid var(--linha); border-radius: 14px; padding: 4px; }
.abas-auth button { border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 800; color: var(--suave); }
.abas-auth button[aria-selected="true"] { background: var(--azul-forte); color: #fff; }
#form-auth { display: grid; gap: 12px; }
.campo { display: grid; gap: 5px; }
.campo > span { font-size: .85rem; font-weight: 700; color: var(--suave); }
.campo input, .busca input, .nova-lista input, #colar-texto { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--raio-p); border: 1.5px solid var(--linha); background: var(--cartao); }
.campo input::placeholder, .busca input::placeholder, .nova-lista input::placeholder, #colar-texto::placeholder { color: var(--suave); }
.campo input:focus, .busca input:focus, .nova-lista input:focus, #colar-texto:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 22%, transparent); }
.auth-apk { text-align: center; margin: 0; font-size: .9rem; }
.termos { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--suave); }
.termos input { margin-top: 2px; width: 20px; height: 20px; flex: none; accent-color: var(--azul-forte); }
.bonus { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--amarelo-fundo); color: var(--amarelo-texto); font-weight: 800; text-align: center; }
.erro { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--erro-fundo); color: var(--erro); }

/* ---------- botões ---------- */
.primario, .secundario { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; text-align: center; text-decoration: none; padding: 12px 16px; border-radius: 14px; font-weight: 800; font-size: 1.02rem; transition: background-color .15s, transform .1s; }
.primario { border: 0; background: var(--amarelo); color: var(--amarelo-tinta); box-shadow: 0 4px 12px -6px rgb(160 120 0 / .7); }
.primario:hover { background: var(--amarelo-hover); }
.primario:active, .secundario:active { transform: translateY(1px); }
.primario:disabled { opacity: .55; cursor: default; }
.primario svg, .secundario svg { width: 20px; height: 20px; stroke-width: 2.4; }
.secundario { background: var(--cartao); color: var(--azul-texto); border: 1.5px solid color-mix(in srgb, var(--azul) 45%, transparent); }
.secundario:hover { background: var(--azul-claro); }
.link { background: transparent; border: 0; color: var(--azul-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 10px; }

/* ---------- app: topo azul ---------- */
#app { padding-bottom: calc(var(--barra) + 28px + env(safe-area-inset-bottom)); }
.topo { position: sticky; top: 0; z-index: 5; color: #fff; background: linear-gradient(180deg, var(--topo-1), var(--topo-2)); padding: calc(10px + env(safe-area-inset-top)) 16px 14px; border-radius: 0 0 22px 22px; box-shadow: 0 6px 18px -10px rgb(4 26 61 / .6); }
.topo-dentro { max-width: var(--largura); margin: 0 auto; display: grid; gap: 8px; }
.topo-linha { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.topo-linha .marca { flex: 1; }
.topo h1 { margin: 0; flex: 1; font-size: 1.3rem; font-weight: 900; }
body:not([data-aba="precos"]) .topo-linha .marca .marca-nome { display: none; }
body[data-aba="precos"] .topo h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:not([data-aba="precos"]) .topo-linha .marca { flex: none; }
.chip-pontos { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--amarelo); color: var(--amarelo-tinta); font-weight: 900; padding: 8px 13px 8px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; box-shadow: 0 3px 10px -4px rgb(0 0 0 / .5); }
.chip-pontos svg { width: 18px; height: 18px; stroke-width: 2.4; }
.chip-pontos:focus-visible, .busca-topo button:focus-visible { outline-color: #fff; }
.topo-local { display: flex; align-items: center; gap: 5px; margin: -4px 0 0 2px; font-size: .88rem; font-weight: 700; color: #cfe0fa; }
.topo-local svg { width: 16px; height: 16px; color: var(--amarelo); }
body:not([data-aba="precos"]) .topo-local, body:not([data-aba="precos"]) .busca-topo { display: none; }
.busca-topo { position: relative; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 44px; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .45); }
.busca-topo > svg { position: absolute; left: 15px; width: 20px; height: 20px; color: #52627a; }
.busca-topo input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: #0e1b2e; font-size: 1rem; outline: none; padding: 0 4px; }
.busca-topo input::placeholder { color: #66758b; }
.busca-topo input::-webkit-search-cancel-button { cursor: pointer; }
.busca-topo button { border: 0; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--amarelo); color: var(--amarelo-tinta); font-weight: 900; }
.busca-topo:focus-within { box-shadow: 0 0 0 3px var(--amarelo), 0 4px 14px -6px rgb(0 0 0 / .45); }

.vista { max-width: var(--largura); margin: 0 auto; padding: 16px 16px 16px; }
.pequeno { color: var(--suave); font-size: .88rem; margin: 0; }
.sub { color: var(--suave); font-size: .86rem; font-weight: 600; }
.titulo-secao { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; font-size: 1.15rem; font-weight: 900; }
.titulo-secao:first-child { margin-top: 4px; }
.titulo-secao small { font-size: .85rem; font-weight: 700; color: var(--suave); }
.dica-busca { margin: 0 2px 8px; color: var(--suave); font-size: .86rem; font-weight: 600; }
.dica-busca:empty { display: none; }

/* ---------- início (aba Preços) ---------- */
.chamada { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 18px 18px 20px; border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1565c0 0%, #0b4f9c 55%, #083a78 100%); box-shadow: var(--sombra); }
.chamada::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgb(255 255 255 / .07); pointer-events: none; }
.chamada h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 900; line-height: 1.15; }
.chamada h2 .amarelo { display: inline; }
.chamada p { margin: 0 0 12px; color: #d6e4fa; font-size: .92rem; max-width: 30ch; }
.chamada .primario { width: auto; min-height: 42px; padding: 8px 16px; font-size: .95rem; justify-self: start; position: relative; z-index: 1; }
.chamada-icone { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--amarelo); color: var(--amarelo-tinta); box-shadow: 0 8px 20px -8px rgb(0 0 0 / .5); }
.chamada-icone svg { width: 40px; height: 40px; stroke-width: 2; }

.fileira { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.fileira::-webkit-scrollbar { display: none; }
.atalho-mercado { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: var(--raio); background: var(--cartao); box-shadow: var(--sombra); scroll-snap-align: start; font-size: .78rem; font-weight: 800; line-height: 1.15; text-align: center; }
.atalho-mercado .logo-caixa { width: 64px; height: 44px; padding: 4px; border-radius: 10px; }
.atalho-mercado .logo-caixa.ph { font-size: 1.2rem; }

/* categorias: cartõezinhos com ícone, como no modelo (cor de cada categoria em --cat) */
.categorias { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.categoria { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 4px 9px; border: 1.5px solid transparent; border-radius: var(--raio); background: var(--cartao); color: var(--texto); box-shadow: var(--sombra); scroll-snap-align: start; font-size: .74rem; font-weight: 800; line-height: 1.15; text-align: center; }
.categoria-icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, var(--cartao)); }
.categoria-icone svg { width: 26px; height: 26px; stroke-width: 2.1; }
.categoria[aria-pressed="true"] { border-color: var(--cat); }
.categoria[aria-pressed="true"] .categoria-icone { background: var(--cat); color: #fff; }
@media (prefers-color-scheme: dark) {
  .categoria-icone { color: color-mix(in srgb, var(--cat) 70%, #fff); background: color-mix(in srgb, var(--cat) 22%, var(--cartao)); }
}

.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; }
.sugestao { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--linha); border-radius: 999px; background: var(--cartao); color: var(--texto); font-weight: 800; }
.sugestao svg { width: 16px; height: 16px; color: var(--azul); }
.sugestao:hover { border-color: var(--azul); }
.como-funciona { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.como-funciona li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--raio); background: var(--cartao); box-shadow: var(--sombra); font-size: .92rem; }
.como-funciona b { display: block; font-size: 1rem; }
.como-funciona .bola { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul-claro); color: var(--azul-texto); }
.como-funciona .bola svg { width: 20px; height: 20px; }

/* ---------- resultado da busca ---------- */
.produto { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--cartao); border: 0; border-radius: var(--raio); padding: 12px 12px 12px 12px; margin: 0 0 10px; box-shadow: var(--sombra); color: var(--texto); }
.produto:hover { box-shadow: var(--sombra), 0 0 0 1.5px color-mix(in srgb, var(--azul) 40%, transparent); }
.produto .foto { width: 76px; height: 76px; }
.produto .corpo { min-width: 0; display: grid; gap: 2px; }
.produto .nome { font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-partir { font-size: .78rem; font-weight: 700; color: var(--suave); margin-top: 2px; }
.produto .preco { font-size: 1.35rem; }
.produto .seta { width: 20px; height: 20px; color: var(--suave); }
.preco { font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--verde); white-space: nowrap; }
.por-base { font-size: .8rem; font-weight: 700; color: var(--suave); margin-left: 6px; font-variant-numeric: tabular-nums; }
.vazio { text-align: center; color: var(--suave); padding: 32px 16px; }
.vazio b { display: block; color: var(--texto); font-size: 1.08rem; font-weight: 900; margin-bottom: 6px; }
.vazio .vazio-icone { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--azul-claro); color: var(--azul-texto); }
.vazio .vazio-icone svg { width: 30px; height: 30px; }

/* ---------- selos ---------- */
.selo { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: var(--amarelo-fundo); color: var(--amarelo-texto); margin-left: 6px; vertical-align: 1px; }
.selo.azul { background: var(--azul-claro); color: var(--azul-texto); }
.selo.verde { background: var(--verde); color: #fff; }
@media (prefers-color-scheme: dark) { .selo.verde { color: #04230f; } }
.desc { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--vermelho); color: #fff; font-size: .8rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- detalhe do produto (folha) ---------- */
.detalhe-foto { display: grid; place-items: center; margin: -4px -16px 4px; padding: 14px 16px 18px; background: #fff; border-bottom: 1px solid var(--linha); }
@media (prefers-color-scheme: dark) { .detalhe-foto { background: #f4f6fa; border-color: transparent; border-radius: 0; } }
.detalhe-foto .foto.grande { width: 200px; height: 200px; border: 0; background: transparent; }
.detalhe-foto .foto.grande.ph { width: 110px; height: 110px; border-radius: 50%; background: #eef2f8; color: #52627a; }
.detalhe-nome { margin: 4px 0 0; font-size: 1.35rem; font-weight: 900; }
.menor-preco { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: var(--raio); background: var(--verde-fundo); border: 1.5px solid var(--verde-linha); }
.menor-preco small { grid-column: 1 / -1; font-weight: 800; color: var(--texto); font-size: .88rem; }
.menor-preco .preco { font-size: 2rem; line-height: 1.05; }
.menor-preco .onde { grid-column: 1 / -1; font-size: .86rem; font-weight: 700; color: var(--suave); }
.menor-preco .desc { background: var(--verde); }
@media (prefers-color-scheme: dark) { .menor-preco .desc { color: #04230f; } }
.folha h3 { margin: 10px 0 0; font-size: 1.05rem; font-weight: 900; }

.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranking li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--raio); background: var(--cartao); border: 1.5px solid var(--linha); }
.ranking li:first-child { background: var(--verde-fundo); border-color: var(--verde-linha); }
.ranking li b { font-weight: 800; }
.ranking .preco { font-size: 1.15rem; text-align: right; }
.ranking li:not(:first-child) .preco { color: var(--texto); }
.logo-redondo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--linha); overflow: hidden; flex: none; }
.logo-redondo img { width: 82%; height: 82%; object-fit: contain; }
.logo-redondo.ph { border: 0; color: #fff; background: var(--cor, var(--azul-forte)); }
.logo-redondo.ph svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* ---------- abas de baixo ---------- */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--cartao); border-top: 1px solid var(--linha); box-shadow: 0 -6px 20px -12px rgb(10 40 90 / .25); padding-bottom: env(safe-area-inset-bottom); }
.abas-dentro { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--largura); height: var(--barra); margin: 0 auto; }
.abas button { position: relative; border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--suave); font-size: .74rem; font-weight: 800; }
.abas svg { width: 24px; height: 24px; }
.abas button.ativa { color: var(--azul-texto); }
.abas button.ativa:not(.destaque)::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--azul); }
.abas button.ativa:not(.destaque) svg { stroke-width: 2.4; }
.destaque-bola { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: linear-gradient(160deg, #2f8cff, #1565c0); color: #fff; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .45); border: 4px solid var(--cartao); }
.destaque-bola svg { width: 24px; height: 24px; stroke-width: 2.4; }
.abas button.destaque.ativa .destaque-bola { background: var(--amarelo); color: var(--amarelo-tinta); }

/* ---------- listas ---------- */
.cartao { background: var(--cartao); border-radius: var(--raio); padding: 14px 16px; margin: 0 0 12px; box-shadow: var(--sombra); }
.cartao h2, .cartao h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 900; }
.linha-lista { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; background: var(--cartao); color: var(--texto); border: 0; border-radius: var(--raio); padding: 12px 14px; margin: 0 0 10px; text-align: left; box-shadow: var(--sombra); }
.linha-lista b { font-weight: 800; }
.linha-lista .bola { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--azul-claro); color: var(--azul-texto); }
.linha-lista .bola svg { width: 22px; height: 22px; }
.linha-lista > svg { width: 20px; height: 20px; color: var(--suave); }
.item-lista { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--linha); }
.item-lista:first-of-type { border-top: 0; }
.item-lista b { font-weight: 800; }
.qtd { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--cartao-2); border: 1px solid var(--linha); }
.qtd button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cartao); color: var(--azul-texto); font-size: 1.15rem; font-weight: 900; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.qtd span { min-width: 22px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.remover { border: 0; background: transparent; color: var(--erro); font-weight: 700; font-size: .84rem; padding: 4px 0; }
.nova-lista { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 14px; }
.nova-lista .primario { width: auto; padding: 0 20px; }
.voltar { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--azul-texto); font-weight: 800; padding: 6px 4px 6px 0; margin-bottom: 6px; }
.voltar svg { width: 20px; height: 20px; stroke-width: 2.4; }
.pilha { display: grid; gap: 10px; }

.comparacao { display: grid; gap: 10px; }
.comparacao h3 { margin: 8px 0 0; }
.mercado-total { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--raio); background: var(--cartao); border: 1.5px solid var(--linha); }
.mercado-total b { font-weight: 800; }
.mercado-total.melhor { background: var(--verde-fundo); border-color: var(--verde-linha); }
.mercado-total:not(.melhor) .preco { color: var(--texto); font-size: 1.1rem; }
.dividido { display: grid; gap: 8px; background: var(--verde-fundo); border: 1.5px solid var(--verde-linha); border-radius: var(--raio); padding: 14px; }
.dividido-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dividido .preco { font-size: 1.5rem; }
.economia { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 800; }
.economia svg { width: 18px; height: 18px; }
.loja-grupo { padding-top: 10px; border-top: 1px dashed var(--verde-linha); }
.loja-grupo-topo { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.loja-grupo-topo .logo-redondo { width: 32px; height: 32px; }
.loja-grupo-topo .logo-redondo.ph svg { width: 16px; height: 16px; }
.loja-grupo ul { margin: 6px 0 0; padding-left: 60px; font-size: .9rem; color: var(--suave); font-weight: 600; }
.falta { font-size: .84rem; color: var(--suave); font-weight: 600; }

/* ---------- escanear ---------- */
.escura { background: #061226; color: #eaf1fb; padding: 14px 12px 4px; border-radius: 22px; box-shadow: var(--sombra); }
.camera { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 52dvh; width: 100%; }
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mira { position: absolute; inset: 14% 14%; border: 3px solid var(--amarelo); border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 999px rgb(0 0 0 / .32); }
.camera-aviso { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: #0b1d3a; color: #cfdcf2; font-weight: 600; }
.chip { margin: 12px auto 4px; padding: 10px 14px; border-radius: 12px; background: #10284d; color: #d4e2f7; text-align: center; font-size: .95rem; font-weight: 700; }
.chip.ok { background: #0f5132; color: #dcfce7; }
.chip.erro { background: #7c2d12; color: #ffedd5; }
.chip.repetida { background: #7c2d12; color: #ffedd5; }
.dica-scan { text-align: center; color: #a9bcda; font-size: .9rem; margin: 4px 0 10px; }
.dica-scan b { color: #fff; }
.botoes { display: grid; gap: 10px; padding-bottom: 14px; }
.escura .secundario { background: #10284d; color: #e1ecfb; border-color: transparent; }
.passos { margin: 2px 0 12px; padding: 12px 14px; border-radius: 14px; background: #0d2142; color: #d4e2f7; font-size: .92rem; font-weight: 600; }
.passos b { color: var(--amarelo); }

/* ---------- pontos ---------- */
.saldo { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #1565c0, #083a78); box-shadow: var(--sombra); margin-bottom: 12px; }
.saldo small { display: block; color: #d6e4fa; font-weight: 700; }
.saldo b { display: block; font-size: 2.8rem; line-height: 1.05; font-weight: 900; color: var(--amarelo); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.saldo .chamada-icone { width: 64px; height: 64px; }
.saldo .chamada-icone svg { width: 32px; height: 32px; }
.regras { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.regras li { display: flex; justify-content: space-between; gap: 10px; font-size: .94rem; }
.regras b { white-space: nowrap; font-weight: 900; font-variant-numeric: tabular-nums; }
.mais { color: var(--ok); } .menos { color: var(--erro); }
.extrato { list-style: none; margin: 0; padding: 0; }
.extrato li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linha); font-size: .94rem; }
.extrato li:first-child { border-top: 0; }
.extrato b { font-weight: 900; font-variant-numeric: tabular-nums; }
.conta { text-align: center; margin: 18px 0 4px; }

/* ---------- folha, aviso, ocupado ---------- */
.folha { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.folha-fundo { position: absolute; inset: 0; background: rgb(3 14 32 / .55); }
.folha-caixa { position: relative; width: 100%; max-width: var(--largura); max-height: 90dvh; overflow: auto; overscroll-behavior: contain; background: var(--cartao); border-radius: 24px 24px 0 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; align-content: start; animation: subir .26s cubic-bezier(.16, 1, .3, 1); }
#folha-conteudo { display: grid; gap: 12px; }
.folha-alca { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--linha); }
.folha-caixa h2 { margin: 0; padding-right: 40px; font-size: 1.25rem; font-weight: 900; }
.folha-x { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cartao-2); color: var(--suave); }
.folha-x svg { width: 20px; height: 20px; stroke-width: 2.4; }
@keyframes subir { from { transform: translateY(32px); } }
.ocupado { position: fixed; inset: 0; z-index: 30; background: rgb(3 14 32 / .6); display: grid; place-items: center; padding: 24px; }
.ocupado-caixa { background: var(--cartao); border-radius: 20px; padding: 26px 22px; width: min(320px, 100%); text-align: center; display: grid; gap: 14px; justify-items: center; font-weight: 700; box-shadow: var(--sombra-alta); }
.ocupado-caixa p { margin: 0; }
.giro { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--azul-claro); border-top-color: var(--azul); animation: giro .9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--barra) + 20px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 480px; z-index: 40; background: #0e1b2e; color: #fff; padding: 12px 16px; border-radius: 14px; text-align: center; font-weight: 700; box-shadow: 0 10px 30px rgb(0 0 0 / .35); animation: subir .22s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-color-scheme: dark) { .toast { background: #e8eef8; color: #0e1b2e; } }
.aviso-linha { padding: 11px 13px; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.aviso-linha.ok { background: var(--ok-fundo); color: var(--ok); }
.aviso-linha.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.aviso-linha.info { background: var(--azul-claro); color: var(--azul-texto); }
.previa-itens { list-style: none; margin: 0; padding: 0; max-height: 34dvh; overflow: auto; border-radius: 14px; border: 1px solid var(--linha); }
.previa-itens li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--linha); font-size: .9rem; }
.previa-itens li:first-child { border-top: 0; }
.previa-itens b { font-variant-numeric: tabular-nums; }
.ganho { text-align: center; padding: 16px; border-radius: 16px; background: var(--amarelo-fundo); color: var(--amarelo-texto); font-weight: 700; }
.ganho b { display: block; font-size: 2.1rem; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .giro { animation-duration: 3s; } .folha-caixa, .toast { animation: none; } }

/* ---------- mercados ---------- */
.mercados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mercado-card { display: grid; gap: 10px; text-align: left; padding: 10px 10px 12px; border-radius: var(--raio); border: 0; background: var(--cartao); color: var(--texto); box-shadow: var(--sombra); }
.mercado-card:hover { box-shadow: var(--sombra), 0 0 0 1.5px color-mix(in srgb, var(--azul) 40%, transparent); }
.mercado-card b { font-size: 1rem; font-weight: 900; }
.mercado-card .contagem { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.logo-caixa { display: flex; align-items: center; justify-content: center; gap: 8px; height: 72px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e3e9f2; overflow: hidden; }
@media (prefers-color-scheme: dark) { .logo-caixa { border-color: transparent; } }
.logo-caixa img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-caixa.dupla img { max-width: 48%; }
.logo-caixa.ph { color: #fff; font-weight: 900; font-size: 1.8rem; background: var(--cor, #1565c0); border-color: transparent; }
.logo-caixa.grande { height: 96px; }
.perfil-topo { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 2px 0 6px; padding: 12px; border-radius: var(--raio); background: var(--cartao); box-shadow: var(--sombra); }
.perfil-topo h2 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.perfil-topo .logo-caixa.grande { height: 84px; }
.perfil-topo a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; }
.perfil-topo a svg { width: 16px; height: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cartao); box-shadow: var(--sombra); margin: 12px 0; }
.seg button { border: 0; padding: 10px; border-radius: 10px; background: transparent; font-weight: 800; color: var(--suave); }
.seg button[aria-selected="true"] { background: var(--azul-forte); color: #fff; }
.busca { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.busca .primario { width: auto; padding: 0 20px; }

/* ofertas: cartões no jeito de "Ofertas do dia" */
.ofertas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.oferta { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 8px; width: 100%; text-align: left; padding: 10px; border-radius: var(--raio); border: 0; background: var(--cartao); color: var(--texto); box-shadow: var(--sombra); }
.oferta:hover { box-shadow: var(--sombra), 0 0 0 1.5px color-mix(in srgb, var(--azul) 40%, transparent); }
.oferta-foto { position: relative; display: grid; place-items: center; height: 120px; border-radius: 12px; background: #fff; overflow: hidden; }
.oferta-foto .foto { width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; }
.oferta-foto .foto.ph { background: var(--cartao-2); }
.oferta-foto .desc { position: absolute; right: 6px; bottom: 6px; }
.oferta-corpo { display: grid; gap: 2px; align-content: start; min-width: 0; }
.oferta .nome { font-weight: 800; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oferta .antes { text-decoration: line-through; color: var(--suave); font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.oferta .preco { font-size: 1.3rem; }
.oferta .selos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.oferta .selos .selo { margin-left: 0; }
.unidade { padding: 12px 0; border-top: 1px solid var(--linha); display: grid; gap: 2px; }
.unidade:first-of-type { border-top: 0; }
.unidade b { font-size: 1rem; font-weight: 800; }
.unidade a { font-size: .9rem; font-weight: 700; }

/* ---------- fotos de produto ---------- */
.foto { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid #e3e9f2; overflow: hidden; flex: none; }
@media (prefers-color-scheme: dark) { .foto { border-color: transparent; } }
.foto img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.foto.ph { background: var(--cartao-2); border-color: var(--linha); color: var(--suave); }
.foto.ph svg { width: 26px; height: 26px; opacity: .6; }
.foto.grande { width: 160px; height: 160px; border-radius: 18px; }
.foto.grande.ph svg { width: 56px; height: 56px; }
.item-lista > .foto { width: 56px; height: 56px; }
.item-lista .remover { grid-column: 2 / -1; justify-self: start; }

@media (max-width: 400px) {
  .chamada { padding: 16px 14px 16px 16px; gap: 8px; }
  .chamada h2 { font-size: 1.22rem; }
  .chamada-icone { width: 60px; height: 60px; }
  .chamada-icone svg { width: 32px; height: 32px; }
}

/* ---------- telas largas (computador) ---------- */
@media (min-width: 720px) {
  .topo { border-radius: 0 0 28px 28px; }
  .chamada { padding: 24px 28px; }
  .chamada h2 { font-size: 1.6rem; }
  .categorias { margin: 0 0 4px; padding: 2px 2px 8px; grid-auto-flow: row; grid-template-columns: repeat(9, 1fr); gap: 6px; overflow: visible; }
  .fileira { margin: 0; padding: 2px 2px 8px; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; }
  .ofertas-grid { grid-template-columns: repeat(3, 1fr); }
  .folha { align-items: center; }
  .folha-caixa { border-radius: 24px; max-height: 86dvh; margin-bottom: 0; }
  .folha-alca { display: none; }
}

/* ---- sem conta: menor preço sem o mercado, e o convite para entrar ---- */
.auth-motivo { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--amarelo-fundo); color: var(--amarelo-texto); font-weight: 700; font-size: .92rem; }
.cadeado { display: inline-flex; align-items: center; gap: 4px; color: var(--azul-texto); font-weight: 700; }
.cadeado svg { width: 13px; height: 13px; stroke-width: 2.4; }
.link-inline { background: none; border: 0; padding: 0; color: var(--azul-texto); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.convite { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 16px; margin: 12px 0; border-radius: var(--raio); background: var(--azul-claro); border: 1.5px dashed color-mix(in srgb, var(--azul) 45%, transparent); }
.convite-icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cartao); color: var(--azul-texto); }
.convite-icone svg { width: 24px; height: 24px; }
.convite b { font-size: 1.08rem; font-weight: 900; }
.convite p { margin: 0 0 6px; color: var(--suave); font-size: .92rem; }
.convite .primario { width: auto; min-width: 220px; }

/* ---------- sino de alertas (topo) ---------- */
.btn-sino { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; }
.btn-sino svg { width: 22px; height: 22px; stroke-width: 2.2; }
.btn-sino:hover { background: rgb(255 255 255 / .22); }
.btn-sino:focus-visible { outline-color: #fff; }
.sino-n { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--vermelho); color: #fff; font-size: .72rem; font-weight: 900; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--topo-2); font-variant-numeric: tabular-nums; }

/* ---------- histórico de preço ---------- */
.historico { display: grid; gap: 10px; padding: 14px; border-radius: var(--raio); background: var(--cartao); border: 1.5px solid var(--linha); }
.historico-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.historico-topo h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 1.05rem; font-weight: 900; }
.historico-topo h3 svg { width: 18px; height: 18px; color: var(--azul); }
.historico-topo small { color: var(--suave); font-weight: 700; font-size: .8rem; }
.grafico { position: relative; width: 100%; touch-action: pan-y; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico svg:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; border-radius: 8px; }
.g-grade { stroke: var(--linha); stroke-width: 1; }
.g-eixo { fill: var(--suave); font: 700 11px var(--fonte); font-variant-numeric: tabular-nums; }
.g-linha { fill: none; stroke: var(--azul); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-area { fill: var(--azul); opacity: .1; }
.g-fim, .g-ponto { fill: var(--azul); stroke: var(--cartao); stroke-width: 2; }
.g-mira { stroke: var(--suave); stroke-width: 1; }
.g-alvo { stroke: var(--amarelo-texto); stroke-width: 1.5; }
.g-alvo-txt { fill: var(--amarelo-texto); font: 800 11px var(--fonte); }
.g-toque { fill: transparent; cursor: crosshair; }
.g-dica { position: absolute; top: -6px; display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--texto); color: var(--cartao); font-size: .8rem; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .4); }
.g-dica b { font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.historico-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.historico-resumo > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--cartao-2); }
.historico-resumo small { color: var(--suave); font-weight: 800; font-size: .76rem; }
.historico-resumo b { font-weight: 900; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.historico-resumo > div:first-child b { color: var(--verde); }
.historico-resumo span { color: var(--suave); font-size: .76rem; font-weight: 600; }
.historico-frase { margin: 0; font-size: .92rem; font-weight: 600; }
.historico-tabela summary { cursor: pointer; color: var(--azul-texto); font-weight: 800; font-size: .9rem; }
.historico-tabela table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.historico-tabela th, .historico-tabela td { padding: 6px 4px; border-top: 1px solid var(--linha); text-align: left; }
.historico-tabela th { color: var(--suave); font-weight: 800; border-top: 0; }
.historico-tabela td:nth-child(n+2), .historico-tabela th:nth-child(n+2) { text-align: right; }

/* ---------- alerta de preço ---------- */
.alerta-caixa { display: grid; gap: 10px; }
.alerta-ativo { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--raio); background: var(--amarelo-fundo); color: var(--texto); font-size: .92rem; }
.alerta-ativo b:first-child { display: block; font-size: 1rem; font-weight: 900; }
.alerta-ativo .preco { font-size: 1rem; }
.alerta-ativo .bola { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amarelo); color: var(--amarelo-tinta); }
.alerta-ativo .bola svg { width: 22px; height: 22px; }
.alerta-botoes { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.alerta-form { display: grid; gap: 10px; padding: 14px; border-radius: var(--raio); background: var(--cartao-2); border: 1.5px solid var(--linha); }
.alerta-form .link { justify-self: center; padding: 4px 10px; }
.campo-preco { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 58px; border-radius: 14px; border: 1.5px solid var(--linha); background: var(--cartao); }
.campo-preco span { font-weight: 900; font-size: 1.3rem; color: var(--suave); }
.campo-preco input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 900; font-size: 1.5rem; font-variant-numeric: tabular-nums; outline: none; }
.campo-preco:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 22%, transparent); }
.alerta-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; margin: 0 0 8px; border-radius: var(--raio); border: 1.5px solid var(--linha); background: var(--cartao); color: var(--texto); }
.alerta-item b { font-weight: 800; }
.alerta-item > svg { width: 20px; height: 20px; color: var(--suave); }
.alerta-item.chegou { background: var(--verde-fundo); border-color: var(--verde-linha); }
/* a coluna da folha nunca passa da largura da tela (campo de preço com letra grande empurrava) */
.folha-caixa, #folha-conteudo { grid-template-columns: minmax(0, 1fr); }
.campo-preco input { width: 100%; }

/* ---- resultado do scan (app Android: sem prévia, sem Fazenda) ---- */
.resultado-scan { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 0 10px; }
.resultado-scan h2 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.resultado-scan p { margin: 0; color: var(--suave); max-width: 34ch; }
.resultado-scan .primario { width: auto; min-width: 200px; margin-top: 10px; }
.resultado-icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px; }
.resultado-icone svg { width: 32px; height: 32px; }
.resultado-scan.bom .resultado-icone { background: var(--verde-fundo); color: var(--verde); }
.resultado-scan.atencao .resultado-icone { background: var(--amarelo-fundo); color: var(--amarelo-texto); }
.resultado-scan.ruim .resultado-icone { background: var(--erro-fundo); color: var(--erro); }

/* Perto de mim (aba Mercados): lojas mais próximas pela localização do celular */
.perto { display: grid; gap: 12px; }
.perto-topo { display: flex; gap: 12px; align-items: flex-start; }
.perto-topo b { display: block; font-size: 1.05rem; font-weight: 900; }
.perto-icone { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--azul-claro); color: var(--azul-texto); }
.perto-icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.perto-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.perto-lista li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--linha); }
.perto-lista li:first-child { border-top: 0; padding-top: 0; }
.perto-lista b { display: block; font-size: .95rem; }
.perto-lista .sub { display: block; overflow-wrap: anywhere; }
.perto-acoes { display: block; margin-top: 4px; font-size: .88rem; }
.perto-acoes .link { padding: 0; font-size: inherit; }
.perto > .link { justify-self: start; padding-left: 0; }
.dist { white-space: nowrap; font-weight: 900; color: var(--azul-texto); font-size: .9rem; }
.mercado-card .dist { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .82rem; }
.mercado-card .dist svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---- código de barras pela câmera (botão na busca + folha com a câmera) ---- */
.busca-cam { flex: 0 0 auto; border: 0; background: transparent; width: 40px; min-height: 42px; display: grid; place-items: center; color: #52627a; border-radius: 50%; padding: 0; margin-right: 2px; }
.busca-cam svg { width: 22px; height: 22px; stroke-width: 2.2; }
.busca-cam:hover, .busca-cam:focus-visible { background: #eef2f8; color: var(--azul-texto); }
.leitor-codigo { aspect-ratio: 4 / 3; max-height: 42dvh; }
.leitor-codigo .mira { inset: 32% 8%; border-radius: 10px; }
.leitor-codigo .camera-aviso { font-size: .95rem; }
