
[hidden] { display: none !important; }
/* Layout: coluna única de busca, como uma etiqueta de preço de vitrine; ficha do produto abre por cima, via #hash. */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --fg: #141821;
  --muted: #5A6273;
  --line: #DEE2EA;
  /* Cores do Paraguai: azul e vermelho da bandeira, sobre branco */
  --py-azul: #0038A8;
  --py-vermelho: #D52B1E;
  --accent: #0038A8;
  --accent-soft: #E5ECF8;
  --tag: #D52B1E;
  --tag-ink: #FFFFFF;
  /* Preços: verde = melhor, laranja-claro = intermediário, vermelho = mais alto */
  --pr-bom: #15803D; --pr-bom-soft: #DCFCE7;
  --pr-medio: #C2410C; --pr-medio-cor: #FDBA74; --pr-medio-soft: #FFEDD5;
  --pr-alto: #B91C1C; --pr-alto-soft: #FEE2E2;
  --good: #137A4B;
  --good-soft: #E3F4EB;
  --warn: #9A5B00;
  --warn-soft: #FDF1DC;
  --off: #8A92A3;
  --hot: #C2410C;
  --hot-soft: #FFEDE3;
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F131A; --surface: #171C25; --fg: #E8EBF1; --muted: #9AA3B5; --line: #2A3140;
    --accent: #7FA8FF; --accent-soft: #16244A; --tag: #F0544A; --tag-ink: #FFFFFF; --py-azul: #3D6FE0; --py-vermelho: #F0544A;
    --pr-bom: #4ADE80; --pr-bom-soft: #12301F; --pr-medio: #FDBA74; --pr-medio-cor: #FDBA74; --pr-medio-soft: #3A2512; --pr-alto: #F87171; --pr-alto-soft: #3B1414;
    --good: #5ED39B; --good-soft: #16302A; --warn: #F2B860; --warn-soft: #33270F; --off: #6B7385; --hot: #FB923C; --hot-soft: #3A1F12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F131A; --surface: #171C25; --fg: #E8EBF1; --muted: #9AA3B5; --line: #2A3140;
  --accent: #7FA8FF; --accent-soft: #16244A; --tag: #F0544A; --tag-ink: #FFFFFF; --py-azul: #3D6FE0; --py-vermelho: #F0544A;
    --pr-bom: #4ADE80; --pr-bom-soft: #12301F; --pr-medio: #FDBA74; --pr-medio-cor: #FDBA74; --pr-medio-soft: #3A2512; --pr-alto: #F87171; --pr-alto-soft: #3B1414;
  --good: #5ED39B; --good-soft: #16302A; --warn: #F2B860; --warn-soft: #33270F; --off: #6B7385; --hot: #FB923C; --hot-soft: #3A1F12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font: 15px/1.5 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
.wrap { max-width: 880px; margin: 0 auto; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Topo */
.demo-note.teste { background: var(--warn); color: var(--surface); line-height: 1.45; }
.demo-note {
  margin: 12px 0 0; font-size: 12.5px; color: var(--warn);
  background: var(--warn-soft); border-radius: 8px; padding: 6px 10px;
}
header.top { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding-block: 18px 14px; }
header.top .brand-txt { justify-items: center; }
header.top .fx { justify-content: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
/* Marca: mascote (carrinho) + logo. Computador: logo em uma linha; celular: logo em duas linhas, mais compacto. */
.brand-mascote { width: 77px; height: 64px; flex: none; object-fit: contain; }
.brand-txt { display: grid; gap: 4px; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand-logo.l2 { display: none; }
.brand h1 { margin: 0; line-height: 0; }
@media (max-width: 640px) {
  /* Celular: mascote e logo lado a lado no centro, frase embaixo ocupando a largura toda. */
  .brand { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; column-gap: 8px; row-gap: 6px; }
  .brand-txt { display: contents; }
  .brand-mascote { grid-column: 2; }
  .brand h1 { grid-column: 3; }
  .brand small { grid-column: 1 / -1; justify-self: center; }
  .brand-mascote { width: 62px; height: 52px; }
  .brand-logo.l1 { display: none; }
  .brand-logo.l2 { display: block; height: 56px; }
  .brand small { font-size: 11px; max-width: 34ch; }
}
/* Faixa com as cores da bandeira no topo da página */
.faixa-py { height: 6px; margin: 0 -16px; background: linear-gradient(to bottom, var(--py-vermelho) 0 2px, #FFFFFF 2px 4px, var(--py-azul) 4px 6px); }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.fx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--muted); }
.fx b { color: var(--fg); font-weight: 600; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Seletor de cidade: a primeira escolha do visitante */
.city-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 6px 2px; }
.city-bar { margin-bottom: 14px; }
.city-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.city {
  position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: var(--r); padding: 10px 34px 10px 14px; cursor: pointer; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.city b { font: 600 16px/1.2 var(--font-display); text-wrap: balance; }
.city small { font-size: 12px; color: var(--muted); }
.city .cnt { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.city .chk {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
}
.city .chk svg { opacity: 0; }
.city[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.city[aria-pressed="true"] small, .city[aria-pressed="true"] .cnt { color: var(--bg); opacity: 0.8; }
.city[aria-pressed="true"] .chk { background: var(--tag); border-color: var(--tag); color: var(--tag-ink); }
.city[aria-pressed="true"] .chk svg { opacity: 1; }
.city:not([aria-pressed="true"]):hover { border-color: var(--muted); }
.other-city { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.other-city-box { font-size: 13.5px; color: var(--muted); margin: -6px 0 16px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 420px) {
  .city { padding: 10px 30px 10px 12px; }
  .city b { font-size: 15px; }
  .city small { font-size: 11px; }
}

/* Filtro de lojas (checklist) abaixo das cidades */
.store-filter { margin: -4px 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 12px; }
.sf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sf-head .city-label { margin: 0; }
.sf-head .sf-acoes { display: flex; gap: 12px; font-size: 12.5px; }
/* Checklist de lojas: uma loja por linha (caixa de marcar, logo, nome, ofertas e link para a página da loja) */
.ck-lista { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ck-linha { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ck-linha:last-child { border-bottom: 0; }
.ck-linha:has(input:checked) { background: var(--accent-soft); }
.ck-linha:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.ck-linha input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ck-linha label { display: contents; cursor: pointer; }
.ck-nome { min-width: 0; display: grid; cursor: pointer; }
.ck-nome b { font-weight: 600; font-size: 14.5px; }
.ck-nome small { color: var(--muted); font-size: 12px; }
.ck-n { color: var(--muted); font-size: 12.5px; white-space: nowrap; text-align: right; }
.ck-ver { font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.ck-ver:hover { text-decoration: underline; }
.ck-grande .ck-nome b { font: 600 16px/1.25 var(--font-display); }
.ck-grande .ck-linha { padding: 12px 14px; gap: 12px; }
@media (max-width: 480px) { .ck-linha { grid-template-columns: auto auto minmax(0, 1fr) auto; } .ck-ver { grid-column: 3 / -1; justify-self: start; margin-top: -4px; } }
.sf-info { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
/* Filtro fechado por padrão: um resumo clicável; aberto, mostra todas as lojas para marcar */
.store-filter { padding: 0; }
.sf-det > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r); }
.sf-det > summary::-webkit-details-marker { display: none; }
.sf-det > summary:hover { background: var(--bg); }
.sf-det > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf-det > summary .city-label { margin: 0; }
.sf-resumo { grid-column: 1; font-size: 14px; font-weight: 600; min-width: 0; }
.sf-resumo small { font-weight: 400; color: var(--muted); }
.sf-abrir { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sf-abrir svg { transition: transform .15s ease; }
.sf-det[open] .sf-abrir svg { transform: rotate(180deg); }
.sf-corpo { padding: 0 12px 12px; }
.sf-corpo .sf-head { margin: 2px 0 8px; justify-content: flex-end; }
.filtro-nota { font-size: 13px; color: var(--muted); background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; }

/* Lojas: índice e página de apresentação */
.loja-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.loja-head .logo.logo-xl { width: 64px; height: 64px; border-radius: 12px; }
.logo-ini.logo-xl { font-size: 20px; }
.loja-head h2 { margin: 0; font: 600 24px/1.2 var(--font-display); }
.loja-head .hint { margin: 2px 0 0; }
.dados-loja { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 16px; padding: 4px 14px; display: grid; grid-template-columns: minmax(110px, max-content) 1fr; column-gap: 16px; }
.dados-loja dt, .dados-loja dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.dados-loja dt { color: var(--muted); }
.dados-loja dt:nth-last-of-type(1), .dados-loja dd:last-of-type { border-bottom: 0; }
.dados-loja .ni { color: var(--muted); font-style: italic; }
.loja-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.prod-loja { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prod-loja a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 14px; }
.prod-loja a:last-child { border-bottom: 0; }
.prod-loja a:hover { background: var(--accent-soft); }
.prod-loja .num { white-space: nowrap; font-weight: 600; }
.loja-link { color: inherit; text-decoration: none; }
.loja-link:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { .dados-loja { grid-template-columns: 1fr; } .dados-loja dt { border-bottom: 0; padding-bottom: 0; } }

nav.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
nav.tabs a { text-decoration: none; color: var(--muted); padding: 8px 12px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a[aria-current="page"] { color: var(--fg); border-color: var(--fg); }

/* Busca */
/* Erros e sugestões */
.fale { display: grid; gap: 6px; max-width: 640px; }
.fale fieldset { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.fale legend, .fale label[for] { font-weight: 600; font-size: 14px; margin-top: 8px; }
.fale-tipo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.fale-tipo:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fale-tipo small { display: block; color: var(--muted); font-size: 13px; }
.fale textarea, .fale input[type=email] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; }
.fale .btn { justify-self: start; margin-top: 6px; }
.fale-erro { color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: 8px; margin: 4px 0; }
.av-selo { display: inline-flex; align-items: baseline; gap: 2px; font-size: 12.5px; color: #B45309; white-space: nowrap; }
.av-selo small { color: var(--muted); font-size: 11px; }
.av-selo.av-sem { color: var(--muted); font-style: italic; }
.av-estr { color: #F59E0B; letter-spacing: 1px; }
.av-apagada { color: var(--line); }
.av-resumo { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; }
.av-media { display: grid; justify-items: center; gap: 2px; min-width: 110px; }
.av-media > b { font-size: 34px; line-height: 1; }
.av-media small { color: var(--muted); }
.av-dist { flex: 1 1 220px; display: grid; gap: 3px; font-size: 12.5px; }
.av-dist div { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; }
.av-dist i { display: block; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.av-dist i b { display: block; height: 100%; background: #F59E0B; }
.av-lista { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.av-lista li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.av-lista p { margin: 6px 0 0; white-space: pre-line; }
.av-resp { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.av-det > summary { display: inline-block; cursor: pointer; list-style: none; }
.av-det > summary::-webkit-details-marker { display: none; }
.alerta-preco { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.alerta-preco > summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; text-align: center; }
div.pn { color: var(--accent); font-size: 12.5px; } div.pn b { color: var(--accent); font-weight: 700; } div.pn .sep { opacity: .5; margin: 0 4px; } div.pn span.ni { font-weight: 400; opacity: .8; }
.chip-n { font-size: 11px; font-weight: 600; opacity: .6; margin-left: 2px; }
.alerta-preco > summary::-webkit-details-marker { display: none; }
.av-form input.al-valor[type=text] { width: 180px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; }
.av-form { margin-top: 10px; }
.av-form input.av-conta[type=text] { width: 110px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; }
.av-form input[type=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; }
.av-escolha { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.av-escolha input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-form .av-escolha label { font-size: 32px !important; line-height: 1; color: var(--line); cursor: pointer; margin: 0 !important; font-weight: 400 !important; padding: 0 2px; }
.av-form .av-escolha input:checked ~ label, .av-form .av-escolha label:hover, .av-form .av-escolha label:hover ~ label { color: #F59E0B; }
.av-escolha input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ordem-ofertas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.ordem-ofertas button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ordem-ofertas button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.fale-ok { padding: 16px; border-radius: var(--r); background: var(--good-soft); color: var(--fg); max-width: 640px; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Conteúdo entregue pelo servidor para buscadores (o aplicativo substitui ao abrir) */
.ssr h1 { font: 700 clamp(22px, 5vw, 28px)/1.2 var(--font-display); margin: 4px 0 10px; }
.ssr img { max-width: 160px; height: auto; display: block; margin: 8px 0; }
.ssr-lista, .ssr ul { padding-left: 18px; line-height: 1.7; }
.ssr-migalhas { font-size: 13px; color: var(--muted); }
/* Cidade: lista suspensa de escolha única */
.cid-sel { position: relative; }
.cid-btn, .cid-op { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 12px; width: 100%; text-align: left; box-sizing: border-box; }
.cid-btn { padding: 11px 14px; border: 1.5px solid var(--py-azul); border-radius: var(--r); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.cid-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.cid-txt { display: grid; min-width: 0; }
.cid-txt b { font: 700 16px/1.2 var(--font-display); }
.cid-txt small { font-size: 12.5px; color: var(--muted); }
.cid-cnt { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cid-seta { color: var(--py-azul); transition: transform .15s ease; }
.cid-btn[aria-expanded="true"] .cid-seta { transform: rotate(180deg); }
.cid-lista { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(10, 20, 50, .18); }
.cid-op { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.cid-op:hover, .cid-op:focus { background: var(--accent-soft); outline: none; }
.cid-op .cid-ok { color: var(--py-azul); visibility: hidden; }
.cid-op[aria-selected="true"] .cid-ok { visibility: visible; }
.cid-op[aria-selected="true"] b { color: var(--py-azul); }
@media (max-width: 420px) { .cid-btn, .cid-op { grid-template-columns: 1fr auto; } .cid-cnt { grid-column: 1; grid-row: 2; } .cid-seta, .cid-ok { grid-column: 2; grid-row: 1 / span 2; } }
/* Paginação */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 8px; }
.pager .pg-info { font-size: 13px; color: var(--muted); margin-right: auto; }
.pager .pg { min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: 600 14px var(--font-body); cursor: pointer; }
.pager .pg[aria-current="page"] { background: var(--py-azul); border-color: var(--py-azul); color: #fff; }
.pager .pg:disabled { opacity: .4; cursor: default; }
.pager .pg-gap { color: var(--muted); padding: 0 2px; }
/* Botão flutuante: volta ao início da lista */
.voltar-topo { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--py-azul); color: #fff; font: 600 14px var(--font-body); box-shadow: 0 6px 20px rgba(0, 20, 70, .28); }
body.com-barra .voltar-topo { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.voltar-topo:focus-visible { outline: 3px solid var(--py-vermelho); outline-offset: 2px; }
/* Impressão da lista de produtos */
#impressao { display: none; }
@media print {
  body > *:not(.wrap), .wrap > *:not(#impressao) { display: none !important; }
  html, body { background: #fff !important; }
  #impressao { display: block !important; color: #000; font: 11pt/1.35 Arial, sans-serif; }
  #impressao .imp-logo { display: block; height: 34px; width: auto; margin: 0 0 8px; }
  #impressao h1 { font-size: 16pt; margin: 0 0 4px; }
  #impressao table { width: 100%; border-collapse: collapse; margin-top: 10px; }
  #impressao th, #impressao td { border-bottom: 1px solid #bbb; padding: 4px 6px; text-align: left; vertical-align: top; }
  #impressao th { border-bottom: 2px solid #000; }
  #impressao td.n { text-align: right; white-space: nowrap; }
  #impressao tr { break-inside: avoid; }
  #impressao small { color: #444; }
  .rodape-imp { margin-top: 10px; font-size: 9pt; color: #444; }
  #impressao .imp-loja { break-inside: avoid-page; margin-top: 14px; }
  #impressao h2 { font-size: 13pt; margin: 0 0 2px; }
  #impressao h2 small { font-weight: normal; color: #555; font-size: 9pt; }
  #impressao .imp-contato { margin: 0; font-size: 9.5pt; color: #333; }
  #impressao td.ck, #impressao th.ck { width: 18px; font-size: 13pt; text-align: center; }
  #impressao tfoot td { border-top: 2px solid #000; border-bottom: 0; }
  #impressao .imp-total { font-size: 13pt; margin-top: 14px; }
}
/* Busca sempre visível: fixa no topo ao rolar, em todas as telas */
.busca-fixa { position: sticky; top: 0; z-index: 40; margin: 0 -16px; padding: 10px 16px; background: var(--bg);
  box-shadow: 0 1px 0 var(--line); }
.chips.sub { padding-top: 6px; }
.chips.sub .chip { font-size: 13px; padding-top: 5px; padding-bottom: 5px; }
.variacoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 2px; }
.var-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; text-decoration: none; color: var(--fg); background: var(--surface); }
.var-chip[aria-current="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.var-chip .num { color: var(--muted); font-size: 12.5px; }
.id-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--py-azul);
  color: var(--py-azul); background: var(--accent-soft); font: 600 12px var(--font-body); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.id-chip b { font-family: var(--font-num); font-weight: 600; }
.cod-loja { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.search { position: relative; }
.search input {
  width: 100%; padding: 14px 84px 14px 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
/* sinal de ajuda à direita da busca: explica o refinamento com termos entre aspas (passar o mouse, focar ou tocar) */
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* dentro do campo, à direita: (?) e, quando há texto, o (x) que limpa */
.busca-limpar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.busca-limpar:hover { color: var(--fg); background: var(--accent-soft); }
.busca-limpar.vazio { opacity: .45; }
.busca-limpar:focus-visible { outline: 3px solid var(--accent-soft); }
.busca-limpar svg { position: static; transform: none; color: inherit; }
.busca-ajuda { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); }
.busca-ajuda-bt { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-weight: 700; font-size: 14px; line-height: 1; font-family: inherit; cursor: help; display: grid; place-items: center; padding: 0; }
.busca-ajuda-bt:hover, .busca-ajuda.aberta .busca-ajuda-bt { border-color: var(--accent); color: var(--accent); }
.busca-ajuda-bt:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }
.busca-ajuda-txt { position: absolute; right: -34px; top: calc(100% + 16px); width: min(320px, calc(100vw - 32px)); z-index: 60;
  background: var(--fg); color: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.busca-ajuda-txt::before { content: ""; position: absolute; right: 41px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--fg); }
.busca-ajuda-txt .ex { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; white-space: nowrap; background: rgba(127,127,127,.25); padding: 0 4px; border-radius: 4px; }
.busca-ajuda:hover .busca-ajuda-txt, .busca-ajuda:focus-within .busca-ajuda-txt, .busca-ajuda.aberta .busca-ajuda-txt { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .busca-ajuda-txt { transition: none; } }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 8px; font-size: 13px; color: var(--muted); }
.toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.toolbar select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 8px; font-size: 13px; }
/* em negrito só o valor da cota (US$ 500) e o que está escrito dentro das caixas de seleção */
.toolbar select { font-weight: 700; }
.toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Fotos (tratadas pelo sistema: WebP quadrado, fundo branco) */
.foto { display: block; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; }
.sem-foto { display: grid; place-items: center; color: var(--off); background: var(--surface); }
.item .foto { width: 64px; height: 64px; }
.prod-loja .foto { width: 40px; height: 40px; border-radius: 6px; }
.ficha-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.ficha-top .ficha-head { margin: 0; min-width: 0; flex: 1; }
/* Galeria do produto: foto principal grande e as demais (até 9) em linhas de 3; a miniatura clicada troca de lugar com a principal */
.galeria { flex: none; width: 288px; display: grid; gap: 8px; align-content: start; }
.galeria .foto { width: 288px; height: 288px; border-radius: 12px; }
.gal-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gal-mini { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.gal-mini img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gal-mini:hover { border-color: var(--accent); }
.gal-mini:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gal-cont { font-size: 12px; color: var(--muted); text-align: center; margin: -2px 0 0; }
@media (prefers-reduced-motion: no-preference) { .galeria .foto.trocou { animation: gal-entra .25s ease-out; } @keyframes gal-entra { from { opacity: .35; } to { opacity: 1; } } }
@media (max-width: 560px) { .ficha-top { flex-direction: column; } .galeria { width: 100%; max-width: 360px; align-self: center; } .galeria .foto { width: 100%; height: auto; aspect-ratio: 1; } }

/* Vitrine de destaques (anúncio premium): carrossel de até 9 ofertas, 3 por vez, com selo de outlet, queima de estoque ou destaque */
.vitrine { margin: 4px 0 14px; }
.vitrine-tit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin: 10px 2px 8px; }
.vitrine-tit h2 { margin: 0; font: 600 15px/1.2 var(--font-display); }
.vitrine-tit .hint { margin: 0; }
.vt-ctrl { display: flex; align-items: center; gap: 6px; }
.vt-ctrl button { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: 600 14px/1 var(--font-body); cursor: pointer; }
.vt-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vt-ctrl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vt-pontos { display: flex; gap: 2px; }
.vt-pontos button { min-width: 24px; width: 24px; height: 24px; padding: 0; border: 0; background: none; }
.vt-pontos button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.vt-pontos button[aria-current="true"]::before { background: var(--accent); width: 22px; border-radius: 5px; }
.vt-trilho { overflow: hidden; border-radius: var(--r); }
.vt-faixa { display: flex; }
.vt-pag { flex: 0 0 100%; min-width: 0; padding: 1px; }
@media (prefers-reduced-motion: no-preference) { .vt-faixa { transition: transform .5s cubic-bezier(.4, 0, .2, 1); } }
.dq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.dq { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; align-items: start; background: var(--surface); border: 1.5px solid var(--hot); border-radius: var(--r); padding: 12px; }
.dq .foto { width: 72px; height: 72px; grid-row: span 3; }
.dq .selo { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--hot); color: #fff; }
.dq .dq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.dq .anuncio { font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .02em; opacity: .8; }
.dq .dq-nome { font-weight: 600; font-size: 14px; line-height: 1.3; color: inherit; text-decoration: none; }
.dq .dq-nome:hover { text-decoration: underline; text-underline-offset: 2px; }
.dq .dq-loja { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dq .dq-preco { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 6px; }
.dq .dq-preco b { font-size: 18px; }
.dq .de { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.dq .pct { font-size: 12px; font-weight: 700; color: var(--hot); }
/* Selo Black Friday: destaque em preto (borda, selo e desconto); no tema escuro, contorno claro para não sumir no fundo */
.dq.dq-bf { border-color: #000; box-shadow: inset 4px 0 0 #000; }
.dq.dq-bf .selo { background: #000; color: #fff; }
.dq.dq-bf .pct { color: #000; }
.offer .selo-of.selo-bf { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dq.dq-bf { border-color: #fff; box-shadow: inset 4px 0 0 #fff; } :root:not([data-theme="light"]) .dq.dq-bf .selo, :root:not([data-theme="light"]) .offer .selo-of.selo-bf { box-shadow: 0 0 0 1px #fff; } :root:not([data-theme="light"]) .dq.dq-bf .pct { color: #fff; } }
:root[data-theme="dark"] .dq.dq-bf { border-color: #fff; box-shadow: inset 4px 0 0 #fff; } :root[data-theme="dark"] .dq.dq-bf .selo, :root[data-theme="dark"] .offer .selo-of.selo-bf { box-shadow: 0 0 0 1px #fff; } :root[data-theme="dark"] .dq.dq-bf .pct { color: #fff; }
@media (max-width: 720px) {
  /* Celular: os 3 destaques lado a lado em cartões verticais compactos (a troca de 3 em 3 fica visível) */
  .dq-grid { gap: 6px; }
  .dq { grid-template-columns: 1fr; gap: 3px; padding: 8px 6px; text-align: center; justify-items: center; }
  .dq .foto { width: 64px; height: 64px; grid-row: auto; }
  .dq .dq-top { flex-direction: column; justify-content: center; gap: 2px; }
  .dq .selo { justify-self: center; font-size: 9px; letter-spacing: .03em; padding: 2px 5px; }
  .dq .anuncio { font-size: 9.5px; }
  .dq .dq-nome { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .dq .dq-loja { font-size: 10.5px; gap: 4px; max-width: 100%; }
  .dq .dq-loja .logo { display: none; }
  .dq .dq-loja a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dq .dq-preco { flex-direction: column; align-items: center; gap: 4px; margin-top: 2px; width: 100%; }
  .dq .dq-preco b { font-size: 14px; }
  .dq .de, .dq .pct { font-size: 10.5px; }
  .dq .add { width: 100%; font-size: 11px; padding: 6px 4px; }
  .dq .add .lg { display: none; }
}
@media (min-width: 721px) { .dq .add .sm { display: none; } }
.vt-trilho { touch-action: pan-y; }
/* Hospedagem (anúncio): cartões com foto; 3 por vez no computador, 1 por vez no celular */
.hospedagem { margin-top: 22px; }
.hosp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hosp { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 100%; }
.hosp-foto { position: relative; aspect-ratio: 16 / 10; background: var(--line); }
.hosp-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hosp-tipo { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--py-azul); color: #fff; }
.hosp-anuncio { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 400; letter-spacing: .02em; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .9); }
.hosp-corpo { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.hosp-corpo h3 { margin: 0; font: 600 15px/1.25 var(--font-display); }
.hosp-cid { margin: 0; font-size: 12.5px; color: var(--muted); }
.hosp-desc { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hosp-preco { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.hosp-preco b { color: var(--fg); font-size: 15px; }
.hosp-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.hosp-btn { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.hosp-btn:hover { background: var(--accent-soft); }
.hosp-btn.wa { border-color: var(--pr-bom); color: var(--pr-bom); }
.hosp-btn.wa:hover { background: var(--pr-bom-soft); }
@media (max-width: 720px) { .hosp-grid { grid-template-columns: 1fr; } .hosp-corpo h3 { font-size: 16px; } }
.offer .selo-of { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--hot-soft); color: var(--hot); }

/* Natureza do serviço */
.servico { font-size: 12.5px; color: var(--muted); margin: -6px 2px 14px; }

/* Lista de produtos */
.list { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; text-decoration: none; color: inherit;
}
.item:hover { border-color: var(--accent); }
/* banner de loja (ad) entre os produtos: mesma largura e altura da caixa de produto (880 x 138 no computador) */
.banner-ad { position: relative; display: block; height: 138px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.banner-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-ad:hover { border-color: var(--accent); }
.banner-ad:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.banner-ad-tag { position: absolute; right: 8px; top: 6px; font-size: 10px; letter-spacing: .02em; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .9); }
@media (max-width: 480px) { .banner-ad { height: auto; aspect-ratio: 760 / 390; } }
/* botão "adicionar à lista" sem abrir a ficha: fica no canto do cartão, fora do link */
.item-wrap { position: relative; }
.item-wrap .item { grid-template-columns: 84px 1fr auto; }
.item-wrap .item .foto { align-self: start; justify-self: center; margin-bottom: 44px; }
.item-wrap:has(.cmp-bt) .item .foto { margin-bottom: 64px; }
.add-rapido { position: absolute; left: 58px; top: 82px; transform: translateX(-50%); padding: 3px 6px; border: 0; border-radius: 6px;
  background: transparent; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 12.5px; line-height: 1.2; font-family: inherit; white-space: nowrap; }
.add-rapido:hover { background: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.add-rapido:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.add-rapido.on { color: var(--good); }
.compartilhar { position: absolute; left: 58px; top: 102px; transform: translateX(-50%); padding: 3px 4px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 11.5px; line-height: 1.2; font-family: inherit; white-space: nowrap; }
.compartilhar:hover { color: var(--accent); background: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.compartilhar:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; color: var(--accent); }
.compartilhar.ok { color: var(--good); }
/* Comparar produtos (até 4 da mesma categoria): botão no cartão e na ficha, barra fixa e tabela lado a lado */
.cmp-bt { position: absolute; left: 58px; top: 122px; transform: translateX(-50%); padding: 3px 4px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 11.5px; line-height: 1.2; font-family: inherit; white-space: nowrap; }
.cmp-bt:hover { color: var(--accent); background: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.cmp-bt:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; color: var(--accent); }
.cmp-bt.on { color: var(--good); font-weight: 600; }
.cmp-bt.ficha { position: static; transform: none; margin-top: 8px; border: 1.5px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg); }
.cmp-bt.ficha.on { border-color: var(--good); color: var(--good); background: var(--good-soft); }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 2px solid var(--accent); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); font-size: 13.5px; }
body.com-barra .cmp-bar { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
body.com-cmp { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
body.com-cmp.com-barra { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
.cmp-bar .cmp-fotos { display: flex; gap: 6px; align-items: center; min-width: 0; }
.cmp-bar .cmp-fotos img, .cmp-bar .cmp-fotos .vazio { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.cmp-bar .cmp-fotos .vazio { background: transparent; border-style: dashed; }
.cmp-bar .cmp-acoes { display: flex; gap: 8px; align-items: center; }
.cmp-bar .cmp-msg { flex-basis: 100%; color: var(--hot); font-size: 12.5px; }
.cmp-go { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cmp-go[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.cmp-tabela-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp-tabela { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.cmp-tabela th, .cmp-tabela td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-tabela tbody th { width: 150px; color: var(--muted); font-weight: 600; font-size: 12.5px; position: sticky; left: 0; background: var(--surface); }
.cmp-tabela thead td { text-align: center; }
.cmp-tabela tr.cmp-sec th { position: static; width: auto; background: var(--line); color: var(--text, inherit); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; }
.cmp-tabela tr.cmp-ft.dif td { font-weight: 600; }
.cmp-tabela.so-dif tr.igual, .cmp-tabela.so-dif tr.cmp-sec.sem-dif { display: none; }
.of-outras { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; }
.of-outras summary { cursor: pointer; color: var(--muted); }
.of-outras a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); text-decoration: none; color: inherit; }
.cmp-dif { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; margin: 4px 0; }
.cmp-tabela thead img, .cmp-tabela thead .foto { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto 6px; }
.cmp-tabela thead a.nome { font-weight: 700; color: var(--fg); text-decoration: none; display: block; }
.cmp-tabela .melhor { color: var(--good); font-weight: 700; }
.cmp-tabela .melhor::after { content: " · menor"; font-weight: 500; font-size: 11.5px; }
.cmp-tabela .rem { margin-top: 6px; }
.item-main { min-width: 0; }
.item .cat { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.item h2 { margin: 2px 0 4px; font: 600 16.5px/1.3 var(--font-display); text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); align-items: center; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); white-space: nowrap; }
.price { text-align: right; }
.price .from { font-size: 11.5px; color: var(--muted); }
.price .main { font-size: 19px; font-weight: 600; white-space: nowrap; }
.price .alt { font-size: 12px; color: var(--muted); white-space: nowrap; }
.range { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.range-bar { position: relative; flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.range-bar span { position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transform: translateX(-50%); border: 2px solid var(--surface); }
.range-bar span.best, .range-bar span.bom { background: var(--pr-bom); }
.range-bar span.medio { background: var(--pr-medio-cor); }
.range-bar span.alto { background: var(--pr-alto); }
.item .price .main { color: var(--pr-bom); }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty::before { content: ""; display: block; width: 104px; height: 71px; margin: 0 auto 12px; background: url("img/marca/mascote-movimento.webp?v=1793869409") center / contain no-repeat; }

/* Ficha do produto */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.ficha-head { display: grid; gap: 4px; margin-bottom: 16px; }
.ficha-head h2 { margin: 0; font: 700 clamp(22px, 5vw, 30px)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.best-tag {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 18px;
  background: var(--pr-bom-soft); color: var(--fg); border-radius: var(--r); padding: 14px 18px;
  position: relative; box-shadow: inset 5px 0 0 var(--pr-bom);
}
.best-tag .big { color: var(--pr-bom); }
.best-tag .lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; width: 100%; }
.best-tag .big { font-size: 28px; font-weight: 600; }
.best-tag .conv { font-size: 13.5px; font-weight: 500; }
.best-tag .where { width: 100%; font-size: 13.5px; }
.offers { display: grid; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
}
.offer.is-best, .offer.nivel-bom { border-color: var(--pr-bom); box-shadow: inset 5px 0 0 var(--pr-bom); background: linear-gradient(90deg, var(--pr-bom-soft), var(--surface) 40%); }
.offer.nivel-bom .p .main { color: var(--pr-bom); }
.offer.nivel-medio { box-shadow: inset 5px 0 0 var(--pr-medio-cor); background: linear-gradient(90deg, var(--pr-medio-soft), var(--surface) 40%); }
.offer.nivel-medio .p .main { color: var(--pr-medio); }
.offer.nivel-alto { box-shadow: inset 5px 0 0 var(--pr-alto); background: linear-gradient(90deg, var(--pr-alto-soft), var(--surface) 40%); }
.offer.nivel-alto .p .main { color: var(--pr-alto); }
.legenda-precos { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.legenda-precos i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.offer.is-off { opacity: 0.62; }
/* Part number e gráfico de histórico */
.pn { font-size: 13px; color: var(--muted); }
.pn b { color: var(--fg); font-weight: 600; }
.hist { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 10px; }
.hist h3 { margin: 0; font: 600 16px/1.25 var(--font-display); }
.hist .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.hist-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fg); margin: 0 0 6px; padding: 0; list-style: none; }
.hist-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hist-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.hist-plot { position: relative; }
.hist svg { display: block; width: 100%; height: auto; overflow: visible; }
.hist .grid line { stroke: var(--line); stroke-width: 1; }
.hist .eixo { font: 11px var(--font-num); fill: var(--muted); }
.hist .cruz { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.hist-tip {
  position: absolute; top: 0; pointer-events: none; background: var(--fg); color: var(--bg); border-radius: 8px;
  padding: 7px 9px; font-size: 12px; line-height: 1.45; white-space: nowrap; z-index: 5;
}
.hist-tip b { font-weight: 600; }
.hist-tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 0; }
.hist details { margin-top: 6px; font-size: 12.5px; }
.hist summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.hist table { min-width: 0; font-size: 12.5px; margin-top: 6px; }
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #8A92A3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #6B7385; } }
:root[data-theme="dark"] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #6B7385; }

/* Logo da loja: 25x25 nas linhas; ocupando a altura da célula (logo-g) no cabeçalho da loja; se a imagem não carregar, vira um selo com as iniciais */
.loja-id { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.loja-id > .loja-txt { min-width: 0; flex: 1; }
.logo.logo-g { width: 44px; height: 44px; border-radius: 8px; }
.logo-ini.logo-g { font-size: 14px; }
.logo { width: 25px; height: 25px; flex: none; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.logo-ini { display: inline-grid; place-items: center; font: 700 10.5px/1 var(--font-body); color: var(--surface); background: var(--muted); border: 0; letter-spacing: .02em; }
.offer .store { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.std-wrap { margin-top: 2px; min-width: 0; }
.std-link { font-size: 14px; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.std-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.orig-toggle {
  display: none; vertical-align: 1px; margin-left: 4px; width: 18px; height: 18px; padding: 0;
  border-radius: 50%; border: 1px solid var(--muted); background: none; color: var(--muted);
  font: italic 600 11px/16px Georgia, "Times New Roman", serif; cursor: pointer;
}
.orig-toggle[aria-expanded="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (hover: none) { .orig-toggle { display: inline-block; } }
.std-wrap:focus-within .orig-toggle { display: inline-block; }
.std-wrap .orig-toggle { display: inline-block; } /* "?" sempre visível: nome do produto na lista da loja */
.orig-pop {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 8px 10px;
  background: var(--warn-soft); color: var(--fg); border-radius: 8px; font-size: 12.5px; line-height: 1.4;
  overflow-wrap: anywhere;
}
.orig-pop b { font-weight: 600; }
.orig-ico { flex: none; margin-top: 1px; color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .orig-pop:not([hidden]) { animation: descer .22s ease-out; }
  @keyframes descer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
.offer .orig { font-size: 12px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.names { max-height: 340px; overflow: auto; }
.names td:first-child { color: var(--muted); }
.grau { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--good-soft); color: var(--good); white-space: nowrap; }
.grau.parcial { background: var(--warn-soft); color: var(--warn); }
.offer .p { text-align: right; }
.offer .p .main { font-size: 17px; font-weight: 600; white-space: nowrap; }
.offer .p .diff { font-size: 12px; color: var(--muted); white-space: nowrap; }
.offer .row2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.stock-ok { color: var(--good); font-weight: 600; }
.stock-no { color: var(--off); font-weight: 600; }
.go { font-weight: 600; text-decoration: none; white-space: nowrap; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* Bastidores */
.section-title { font: 600 17px var(--font-display); margin: 22px 0 8px; }
.section-title:first-child { margin-top: 4px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 13px; color: var(--muted); }
.step b { display: block; color: var(--fg); font-size: 14px; margin-bottom: 2px; }
.step .k { font-family: var(--font-num); font-size: 11px; color: var(--accent); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
.status { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status.ok { background: var(--good-soft); color: var(--good); }
.status.parcial, .status.falha { background: var(--warn-soft); color: var(--warn); }
.queue { display: grid; gap: 8px; }
.queue-item { background: var(--surface); border: 1px dashed var(--warn); border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; }
.queue-item small { color: var(--muted); display: block; }

/* Lista de compras */
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--tag); color: var(--tag-ink); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.row2-actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.add {
  border: 1.5px solid var(--fg); background: none; color: var(--fg); border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.add.on { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.list-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--fg); color: var(--bg); text-decoration: none; font-size: 14px;
}
.list-bar .lb-left { display: inline-flex; align-items: center; gap: 8px; }
.list-bar .lb-go { font-weight: 600; color: var(--bg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.com-barra { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.list-title { margin: 0; font: 700 22px/1.2 var(--font-display); }
.list-actions { display: flex; gap: 8px; }
.btn { border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
a.btn { display: inline-block; text-decoration: none; }
.btn.ghost { background: none; color: var(--fg); border-color: var(--line); }
.btn.danger { background: var(--warn); border-color: var(--warn); color: var(--surface); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--warn-soft); border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; }
.confirm span { flex: 1 1 180px; }
.copy-box { width: 100%; min-height: 160px; margin: 0 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 12.5px/1.5 var(--font-num); }
.warn-line { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.stores { display: grid; gap: 12px; }
.store-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.store-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.store-head h3 { margin: 0 0 2px; font: 600 16px/1.25 var(--font-display); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.store-head .sub { text-align: right; display: grid; }
.store-head .sub b { font-size: 16px; white-space: nowrap; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px 12px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--line);
}
.line:first-child { border-top: 0; }
.line.is-off .line-name { color: var(--muted); }
.line-main { min-width: 0; display: grid; gap: 1px; }
.line-name { color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.line-name:hover { color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--fg); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.line-total { font-weight: 600; white-space: nowrap; min-width: 92px; text-align: right; }
.rm { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px; }
.rm:hover { color: var(--warn); background: var(--warn-soft); }
.rota { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--surface); }
.rota h3 { margin: 0 0 4px; font-size: 17px; }
.rota-passos { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.rota-passos > li.feito > b::after { content: " ✓"; color: var(--good); }
.rota-acao { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rota-chk { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.rota-chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.rota-modo { border: 0; padding: 0; margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rota-modo legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.rota-modo label { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; cursor: pointer; }
.rota-modo label .hint { flex-basis: 100%; padding-left: 26px; }
@media (min-width: 640px) { .rota-modo label .hint { flex-basis: auto; padding-left: 0; } }
.rota-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.rota-lista li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rota-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.rota-txt { display: grid; min-width: 0; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
@media (max-width: 520px) { .rota { padding: 12px; } .rota-lista li { grid-template-columns: 28px 1fr; } .rota-lista .rota-uma { grid-column: 2; justify-self: start; } }
.grand {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--tag); color: var(--tag-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
.grand > div { display: grid; }
.grand .hint { color: var(--tag-ink); opacity: 0.8; }
.grand b { font-size: 24px; font-weight: 600; }
.cota { margin: 0; font-size: 13px; flex: 1 1 260px; }
.cota.over { font-weight: 600; }
@media (max-width: 520px) {
  .line { grid-template-columns: 1fr auto; grid-template-areas: "main rm" "qty total"; }
  .line-main { grid-area: main; }
  .rm { grid-area: rm; align-self: start; }
  .qty { grid-area: qty; justify-self: start; }
  .line-total { grid-area: total; }
  nav.tabs a { padding: 8px 9px; font-size: 13.5px; }
}

.overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--fg) 45%, transparent);
}
.dialog { width: min(440px, 100%); background: var(--surface); color: var(--fg); border-radius: 14px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.dialog h2 { margin: 0 0 6px; font: 700 18px/1.25 var(--font-display); }
.dialog p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.dialog p b { color: var(--fg); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dialog-actions .btn { padding: 9px 14px; }
.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.changelog > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.changelog > li.atual { border-color: var(--fg); }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cl-head b { color: var(--fg); font-size: 14px; }
.changelog ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 2px; }
/* Black Friday de CDE: faixa no topo com contagem regressiva */
    /* Para lojistas */
.pl-hero { margin: 8px 0 22px; padding: 22px 20px; border-radius: var(--r); background: linear-gradient(135deg, #eef3fc, #fff7e6); border: 1px solid var(--line); text-align: center; }
.pl-hero h2 { font-size: clamp(22px, 4.2vw, 32px); line-height: 1.2; margin: 10px auto 8px; max-width: 22ch; }
.pl-hero p { max-width: 62ch; margin: 0 auto; }
.pl-selo { display: inline-block; background: #16a34a; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.pl-selo-p { display: table; margin: 12px auto 0; font-size: clamp(15px, 3.6vw, 18px); padding: 9px 22px; letter-spacing: .04em; background: linear-gradient(135deg, #16a34a, #0f8a3c); box-shadow: 0 6px 18px rgba(22, 163, 74, .35); border: 2px solid #fff; outline: 2px solid #16a34a; }
.pl-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 6px; }
.pl-nums { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pl-nums div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; min-width: 120px; }
.pl-nums b { display: block; font-size: 22px; }
.pl-nums span { color: var(--muted); font-size: 13px; }
.pl-tit { margin: 30px 0 14px; text-align: center; }
.pl-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-align: center; }
.pl-card h3 { margin: 6px 0 4px; font-size: 16px; }
.pl-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pl-ic { display: block; text-align: center; font-size: 28px; line-height: 1.2; }
.pl-preco { margin-top: 8px !important; color: var(--fg) !important; }
.pl-preco s { color: var(--muted); font-size: 12px; margin-right: 6px; }
.pl-preco b { color: #16a34a; font-size: 18px; }
.pl-passos { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pl-passos li { counter-increment: p; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.pl-passos li::before { content: counter(p); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.pl-passos span { color: var(--muted); font-size: 14px; }
.pl-form, .pl-ok { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; scroll-margin-top: 90px; }
.pl-form h2, .pl-ok h2 { margin-top: 0; }
.pl-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; }
.pl-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.pl-form input:not([type=radio]):not([type=checkbox]), .pl-form select, .pl-form textarea { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pl-largo { grid-column: 1 / -1; margin-top: 10px; }
.pl-radio { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pl-radio legend { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; padding: 0; }
.pl-radio label { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; }
.pl-form .btn { margin-top: 14px; }
.pl-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.pl-faq summary { cursor: pointer; font-weight: 600; }
.pl-faq p { margin: 8px 0 2px; color: var(--muted); }
.bf-bar { background: #111; color: #fff; font-size: 13.5px; }
.bf-bar.bf-saindo { transition: opacity .4s ease, transform .4s ease; opacity: 0; transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .bf-bar.bf-saindo { transition: none; } }
    .bf-in { max-width: 1100px; margin: 0 auto; padding: 7px 40px 7px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; position: relative; text-align: center; }
    .bf-tag { background: #F5B700; color: #111; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; }
    .bf-st { color: #F5B700; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
    .bf-cd b { background: #F5B700; color: #111; border-radius: 4px; padding: 1px 5px; margin-left: 2px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
    .bf-cta { color: #F5B700; font-weight: 700; text-decoration: underline; }
    .bf-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #bbb; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
    .bf-x:hover { color: #fff; }
    @media (max-width: 640px) { .bf-hide { display: none; } .bf-in { font-size: 12.5px; } }
    /* Ponte agora: linha discreta sob o cabeçalho */
    .ponte-agora { font-size: 13px; color: var(--muted, #5a6273); margin: -4px 0 8px; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; justify-content: center; text-align: center; }
    .ponte-agora b { color: var(--fg, #141821); }
    .pa-cam { background: none; border: 0; padding: 0; color: var(--accent, #0038a8); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
    .dlg-cams { width: min(760px, 96vw); border: 0; border-radius: 14px; padding: 12px 14px 14px; }
    .dlg-cams::backdrop { background: rgba(0,0,0,.6); }
    .dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .dc-x { background: none; border: 0; font-size: 24px; cursor: pointer; line-height: 1; }
    .cmp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
    .cmp-share .cmp-sh { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line, #dee2ea); background: var(--surface, #fff); color: var(--fg, #141821); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
    .cmp-share .cmp-sh.wa { background: #128C4A; border-color: transparent; color: #fff; }
    .cmp-share .cmp-sh:focus-visible { outline: 3px solid var(--accent, #0038a8); outline-offset: 2px; }
    .dc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
    .dc-tabs button { border: 1px solid var(--line, #dee2ea); background: var(--surface, #fff); color: var(--fg, #141821); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
    .dc-tabs button[aria-pressed="true"] { background: var(--py-azul, #0038a8); color: #fff; border-color: transparent; }
    .dc-v { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; display: block; }
    .dc-msg, .dc-cred { margin: 6px 0 0; }
    footer { display: grid; gap: 10px; text-align: center; }
    /* Sobre o Buscaguai */
    .sobre-txt { max-width: 760px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.6; }
    .sobre-txt p { margin: 0; }
    .equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px auto 0; max-width: 760px; }
    .membro { display: flex; flex-direction: column; text-align: center; gap: 12px; align-items: center; background: var(--s, #fff); border: 1px solid var(--li, #dee2ea); border-radius: 14px; padding: 20px 16px; }
    .membro img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; background: #555; }
    .membro h3 { margin: 0; font-size: 16.5px; }
    .membro .cargo { margin: 2px 0 0; color: var(--az, #0038a8); font-weight: 600; font-size: 14px; }
    .tu { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
    .tu-grupo { background: var(--surface, #fff); border: 1px solid var(--line, #dee2ea); border-radius: 12px; padding: 10px 14px; }
    .tu-grupo h3 { margin: 0 0 6px; font-size: 15px; }
    .tu-grupo ul { list-style: none; margin: 0; padding: 0; }
    .tu-grupo li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line, #eef1f5); font-size: 14px; }
    .tu-grupo li:first-child { border-top: 0; }
    .tu-grupo li a { font-weight: 700; white-space: nowrap; color: var(--accent, #0038a8); }
    .faq { display: grid; gap: 6px; max-width: 820px; }
    .faq details { background: var(--surface, #fff); border: 1px solid var(--line, #dee2ea); border-radius: 10px; padding: 8px 12px; }
    .faq summary { cursor: pointer; font-weight: 600; }
    .faq p { margin: 6px 0 2px; }
    .cp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
    .bf-info { background: #111; color: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
    .bf-info p { margin: 4px 0; } .bf-info b { color: #F5B700; }
    .bf-bts .btn { margin: 4px 6px 0 0; }
    .bf-filtros { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin: 8px 0; }
    .bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .bf-chips button { border: 1px solid var(--line, #dee2ea); background: var(--surface, #fff); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; }
    .bf-chips button[aria-pressed="true"] { background: #111; color: #F5B700; border-color: #111; }
    .ct-calc { display: grid; gap: 10px; max-width: 520px; background: var(--surface, #fff); border: 1px solid var(--line, #dee2ea); border-radius: 12px; padding: 14px; margin-top: 10px; }
    .ct-calc label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
    .ct-calc input { font: inherit; padding: 8px 10px; border: 1px solid var(--line, #dee2ea); border-radius: 8px; }
    .ct-res p { margin: 4px 0; } .ct-ok b { color: var(--ok, #15803d); } .ct-x b { color: var(--py-vermelho, #d52b1e); }
    .ct-regras { padding-left: 18px; display: grid; gap: 4px; max-width: 760px; }
    .ficha-tec { margin-top: 12px; border: 1px solid var(--li, #dee2ea); border-radius: 12px; padding: 10px 14px; background: var(--s, #fff); max-width: 640px; }
    .ficha-tec summary { cursor: pointer; font-weight: 700; }
    .ft-mais { margin-top: 10px; } .ft-mais > summary { font-weight: 600; color: var(--accent, #0038a8); }
    .ft-c h4 { margin: 12px 0 4px; font-size: 14px; } .ft-c table { margin-top: 0; }
    .ficha-tec table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
    .ficha-tec th { text-align: left; font-weight: 600; color: var(--mu, #5a6273); padding: 4px 12px 4px 0; width: 38%; vertical-align: top; }
    .ficha-tec td { padding: 4px 0; border-top: 1px solid var(--li, #eef1f5); }
    .ficha-tec tr:first-child td { border-top: 0; }
    .membro .desc { margin: 4px 0 0; font-size: 13.5px; color: var(--mu, #5a6273); }
/* Redes sociais do Buscaguai */
.redes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; }
.redes > span { font-weight: 600; color: var(--fg); margin-right: 2px; }
.redes a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 13px; }
.redes a:hover { border-color: var(--accent); color: var(--accent); }
.redes a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.redes svg { flex: none; }
footer .ver { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
footer .ver a { color: var(--muted); font-weight: 600; }
footer .ver a:hover { color: var(--fg); }
/* Novidades (histórico de versões em linguagem simples) */
.versoes { display: grid; gap: 10px; }
.versao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.versao h3 { margin: 0; font: 600 15px/1.3 var(--font-display); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.versao h3 .hint { margin: 0; font-weight: 400; }
.versao ol, .changelog ol { margin: 6px 0 0; padding-left: 22px; font-size: 14px; }
.versao h4, .changelog h4 { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.versao li + li { margin-top: 3px; }
footer { margin-top: 32px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 480px) {
  .item { grid-template-columns: 75px 1fr; gap: 6px 12px; }
  .item .foto { width: 75px; height: 75px; }   /* foto maior no celular */
  .item .price, .item .range { grid-column: 2; }
  .item-wrap .item { grid-template-columns: 87px 1fr; }
  .add-rapido { left: 60px; top: 95px; }
  .compartilhar { left: 60px; top: 115px; }
  .cmp-bt { left: 60px; top: 135px; }
  .price { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .price .from { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .item, .chip { transition: border-color .15s ease, background-color .15s ease; }
}

/* 0.38 (Impeccable): preço e cota com significado, loja paginada, cabeçalho compacto no celular */
.price .main.unica { color: var(--fg); }
.pill.fora-cota { background: var(--warn-soft); color: var(--warn); }
.pill.acess { background: var(--line); color: var(--muted); }
/* 0.51: vídeo do produto (YouTube, formato retrato): miniatura e player vêm do YouTube, só depois do clique, numa janela por cima da página */
.pill.video { background: #FDECEA; color: #B3261E; }
@media (prefers-color-scheme: dark) { .pill.video { background: #3A1F1F; color: #FFB4AB; } }
.video-prod { margin: 0; }
.yt-abrir { width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s; }
.yt-abrir:hover { border-color: var(--accent); }
.yt-abrir:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.yt-abrir .yt-ico { flex: none; }
.yt-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 64px 16px 16px; background: rgba(0, 0, 0, .85); }
.yt-modal-caixa { position: relative; width: min(calc(100vw - 32px), calc((100vh - 96px) * 9 / 16), 440px); aspect-ratio: 9 / 16; }
.yt-modal iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; display: block; }
.yt-fechar { position: absolute; top: -50px; right: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: #111; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.yt-fechar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
html.yt-aberto, html.yt-aberto body { overflow: hidden; }
.cota.over { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.grand { background: var(--fg); color: var(--surface); }
.grand .hint { color: var(--surface); }
.grand .cota b { font-size: inherit; font-weight: 700; }
.cota.over b { font-weight: 700; }
.best-tag .cota-aviso { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; line-height: 1.4; }
.loja-busca { display: flex; gap: 8px; align-items: center; margin: 0 2px 10px; }
.loja-busca input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; }
.loja-cats { display: flex; gap: 6px; overflow-x: auto; margin: 0 2px 10px; padding-bottom: 2px; }
.loja-cats button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13.5px; cursor: pointer; }
.loja-cats button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.loja-pag { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 2px; font-size: 13.5px; color: var(--muted); }
.loja-pag button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.loja-pag button[disabled] { opacity: .45; cursor: default; }
@media (max-width: 640px) {
  header.top { gap: 6px; padding-block: 10px 6px; }
  .brand-mascote { width: 44px; height: 37px; }
  .brand-logo.l2 { height: 34px; }
  .ponte-agora { font-size: 12.5px; margin-block: 0 4px; }
}
/* Celular: mesmo logo do computador (mascote + "BuscaGuai.com" numa linha + frase embaixo) */
@media (max-width: 640px) {
  header.top .brand { display: flex; align-items: center; gap: 8px; }
  header.top .brand-txt { display: grid; gap: 3px; justify-items: center; }
  header.top .brand h1, header.top .brand small { grid-column: auto; }
  header.top .brand-mascote { width: clamp(46px, 14vw, 64px); height: auto; }
  header.top .brand-logo.l1 { display: block; height: auto; width: min(64vw, 300px); }
  header.top .brand-logo.l2 { display: none; }
  header.top .brand small { font-size: clamp(9.5px, 2.65vw, 12px); max-width: none; white-space: nowrap; }
}
