/* ============================================================
   Achados da Web — CSS não crítico (carregado com preload)
   Componentes: selos, nota, preço, cards, aviso, breadcrumb,
   tabela, ranking, FAQ, índice, barra CTA, rodapé, drawer.
   ============================================================ */

/* Seções */
.secao { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.secao-alt { background: var(--fundo-2); }
.secao-cab { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.secao-cab h2 { margin: 0; }
.sobretitulo { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--laranja-forte); margin-bottom: .4rem; }
.mudo { color: var(--tinta-2); }
.peq { font-size: .875rem; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.75em; }
.prose h3 { margin-top: 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }

/* Breadcrumb */
.bc { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--tinta-2); }
.bc a { color: var(--tinta-2); text-decoration: none; }
.bc a:hover { color: var(--marinho); text-decoration: underline; }
.bc li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.bc [aria-current] { color: var(--marinho); font-weight: 600; }

/* Aviso de afiliado — visível, no topo, sem cinza claro */
.aviso { display: flex; gap: .75rem; align-items: flex-start; background: var(--laranja-suave); border-left: 4px solid var(--laranja); color: var(--tinta); padding: .85rem 1rem; border-radius: var(--raio-p); margin: 1rem 0 1.5rem; font-size: .95rem; }
.aviso .ic { color: var(--laranja-forte); margin-top: .15em; }
.aviso a { color: var(--laranja-forte); font-weight: 600; }

/* Meta do guia */
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--tinta-2); font-size: .9rem; margin-bottom: .75rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* Selos */
.selo { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .01em; color: #0B1F3A; white-space: nowrap; }
.selo-melhor_geral   { background: var(--ambar); }
.selo-custo_beneficio { background: var(--verde); color: #fff; }
.selo-premium        { background: var(--roxo); color: #fff; }
[data-tema="escuro"] .selo-custo_beneficio, [data-tema="escuro"] .selo-premium { color: #0B1220; }
.posicao { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--marinho); color: var(--fundo); font: 800 1rem var(--f-display); flex: none; }
[data-tema="escuro"] .posicao { background: var(--fundo-3); color: var(--tinta); }

/* Nota em barra (não estrelas) */
.nota { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: center; }
.nota b { font: 800 1.35rem/1 var(--f-display); color: var(--marinho); }
.nota b small { font: 600 .8rem var(--f-corpo); color: var(--tinta-2); }
.nota .barra { height: 8px; border-radius: 999px; background: var(--fundo-3); overflow: hidden; }
.nota .barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--ambar), var(--laranja)); border-radius: 999px; }
.nota .avals { grid-column: 2; font-size: .8rem; color: var(--tinta-2); }

/* Preço */
.preco { display: flex; flex-direction: column; gap: .15rem; }
.preco .valor { font: 800 1.5rem/1.1 var(--f-display); color: var(--marinho); }
.preco .valor small { font: 600 .85rem var(--f-corpo); color: var(--tinta-2); margin-right: .2rem; }
.faixa { font: 800 1.25rem/1 var(--f-display); color: var(--verde); letter-spacing: .1em; }
.faixa span { color: var(--borda); }
.preco .nota-preco { font-size: .78rem; color: var(--tinta-2); }
.cupom { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border: 1px dashed var(--verde); color: var(--verde); border-radius: var(--raio-p); font-weight: 700; font-size: .85rem; font-family: ui-monospace, monospace; }

/* Loja */
.loja { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--tinta-2); }
.loja i { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.loja-amazon i { background: #FF9900; }
.loja-mercadolivre i { background: #FFE600; box-shadow: 0 0 0 1px #d4c000 inset; }
.loja-shopee i { background: #EE4D2D; }

/* Cards */
.card { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.card-img { aspect-ratio: 4/3; border-radius: var(--raio-p); background: var(--fundo-2); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
[data-tema="escuro"] .card-img img { mix-blend-mode: normal; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .btn, .card .loja, .card .selo { position: relative; z-index: 1; }
.card-topo { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-pe { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card-destaque { border-top: 5px solid var(--ambar); }
.card-destaque.s-custo_beneficio { border-top-color: var(--verde); }
.card-destaque.s-premium { border-top-color: var(--roxo); }

/* Card de guia e de categoria */
.card-guia .card-img { aspect-ratio: 16/9; }
.card-guia .peq { margin: 0; }
.card-cat { padding: 1.25rem; border-radius: var(--raio); text-decoration: none; color: var(--marinho); background: var(--fundo-2); border: 1px solid transparent; display: flex; flex-direction: column; gap: .35rem; min-height: 120px; position: relative; overflow: hidden; }
.card-cat::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--laranja-suave); transition: transform .2s; }
.card-cat:hover::after { transform: scale(1.4); }
.card-cat:hover { border-color: var(--laranja); }
.card-cat b { font: 700 1.1rem var(--f-display); }
.card-cat span { color: var(--tinta-2); font-size: .875rem; }
.card-cat .ic { color: var(--laranja-forte); width: 1.6em; height: 1.6em; }

/* Carrossel com scroll-snap */
.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 320px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: thin; }
.carrossel > * { scroll-snap-align: start; }
@media (min-width: 900px) { .carrossel-desk-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* Números de confiança */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.numeros div { text-align: center; padding: 1rem; border-radius: var(--raio); background: var(--fundo-2); }
.numeros b { display: block; font: 800 2rem/1 var(--f-display); color: var(--laranja-forte); }
.numeros span { font-size: .875rem; color: var(--tinta-2); }

/* Prós e contras */
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .4rem; }
.pc .ic { margin-top: .2em; }
.pros .ic { color: var(--verde); }
.contras .ic { color: var(--vermelho); }
.pc h4 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.pros h4 { color: var(--verde); }
.contras h4 { color: var(--vermelho); }

/* Specs em <dl> */
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .925rem; }
.specs dt { color: var(--tinta-2); }
.specs dd { margin: 0; font-weight: 600; color: var(--marinho); }

/* Tabela comparativa */
.tabela-wrap { position: relative; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.tabela-scroll { overflow-x: auto; scrollbar-width: thin; }
.tabela-scroll::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, var(--fundo)); pointer-events: none; opacity: 1; transition: opacity .2s; }
.tabela-wrap.fim .tabela-scroll::after { opacity: 0; }
.tabela { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .925rem; }
.tabela caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--marinho); background: var(--fundo-2); border-bottom: 1px solid var(--borda); caption-side: top; }
.tabela th, .tabela td { padding: .8rem 1rem; border-bottom: 1px solid var(--borda); vertical-align: top; text-align: left; min-width: 180px; }
.tabela tr:last-child td, .tabela tr:last-child th { border-bottom: 0; }
.tabela thead th { background: var(--fundo-2); position: sticky; top: 0; }
.tabela tbody th { position: sticky; left: 0; background: var(--fundo); color: var(--tinta-2); font-weight: 600; min-width: 130px; box-shadow: 1px 0 0 var(--borda); z-index: 1; }
.tabela thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--fundo-2); box-shadow: 1px 0 0 var(--borda); }
.tabela .col-prod { display: flex; flex-direction: column; gap: .35rem; }
.tabela .col-prod b { font-family: var(--f-display); color: var(--marinho); }
.indicador-scroll { display: flex; justify-content: center; gap: .4rem; align-items: center; font-size: .8rem; color: var(--tinta-2); padding: .5rem; background: var(--fundo-2); border-top: 1px solid var(--borda); }
@media (min-width: 900px) { .indicador-scroll { display: none; } }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filtros label { font-size: .875rem; font-weight: 600; color: var(--tinta-2); }
.filtros select { min-height: var(--toque); border: 1px solid var(--borda); border-radius: 999px; padding: 0 2rem 0 1rem; background: var(--fundo); color: var(--tinta); font: inherit; }
.chip { min-height: 36px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--borda); background: var(--fundo); color: var(--tinta); font-weight: 600; font-size: .875rem; }
.chip[aria-pressed="true"] { background: var(--marinho); color: var(--fundo); border-color: var(--marinho); }

/* Ranking */
.rank { display: grid; gap: 1.5rem; }
.rank-item { border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; background: var(--fundo); }
@media (min-width: 760px) { .rank-item { grid-template-columns: 300px 1fr; } }
.rank-item .card-img { aspect-ratio: 1; }
.rank-cab { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.rank-cab h3 { margin: 0; font-size: 1.3rem; }
.rank-acoes { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.veredito { font-size: 1.05rem; border-left: 3px solid var(--laranja); padding-left: .9rem; color: var(--tinta); }
.ideal { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; color: var(--tinta-2); }
.ideal .ic { color: var(--azul); }

/* FAQ nativo */
.faq details { border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 0 1rem; margin-bottom: .6rem; background: var(--fundo); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 700; color: var(--marinho); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: var(--toque); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0 0 1rem; }

/* Índice lateral com scroll-spy */
.guia-grid { display: grid; gap: 2rem; }
.guia-grid > * { min-width: 0; }
.indice-desk { display: none; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.indice { border-left: 2px solid var(--borda); padding-left: 0; list-style: none; margin: 0; font-size: .9rem; }
.indice a { display: block; padding: .35rem .9rem; color: var(--tinta-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
.indice a:hover { color: var(--marinho); }
.indice a.ativo { color: var(--laranja-forte); border-left-color: var(--laranja); font-weight: 600; }
.btn-indice { position: fixed; right: 1rem; bottom: 5.25rem; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--marinho); color: var(--fundo); box-shadow: var(--sombra); display: grid; place-items: center; }
[data-tema="escuro"] .btn-indice { background: var(--fundo-3); color: var(--tinta); }
@media (min-width: 1000px) { .guia-grid { grid-template-columns: minmax(0, 1fr) 240px; } .indice-desk { display: block; } .btn-indice { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer[open] { display: block; }
.drawer .fundo { position: absolute; inset: 0; background: rgba(11,31,58,.55); }
.drawer .painel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: var(--fundo); padding: 1.25rem; overflow: auto; box-shadow: var(--sombra); }
.drawer .painel h3 { display: flex; justify-content: space-between; align-items: center; }

/* Barra de CTA fixa (mobile) */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--fundo); border-top: 1px solid var(--borda); padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; transform: translateY(110%); transition: transform .25s; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.cta-bar.on { transform: none; }
.cta-bar .txt { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.25; }
.cta-bar .txt b { display: block; color: var(--marinho); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); }
.cta-bar .btn { padding-inline: 1rem; }
@media (min-width: 900px) { .cta-bar { display: none; } }

/* Rodapé */
.ftr { background: var(--marinho); color: #C9D3E6; padding: 3rem 0 2rem; margin-top: 3rem; font-size: .925rem; }
[data-tema="escuro"] .ftr { background: #060B14; }
.ftr .logo { color: #fff; }
.ftr h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.ftr a { color: #C9D3E6; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 2rem; }
.ftr-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; font-size: .8rem; color: #94A3B8; display: grid; gap: .5rem; }
.ftr-legal p { margin: 0; }

/* Banner LGPD */
.lgpd { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 560px; margin-inline: auto; background: var(--fundo); color: var(--tinta); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.25rem; box-shadow: var(--sombra); display: none; gap: .75rem; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.lgpd.on { display: flex; }
.lgpd p { margin: 0; flex: 1 1 260px; }
.lgpd .btn { min-height: 40px; padding: .4rem 1rem; }

/* Resultados vivos da busca (dropdown) */
.busca-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: .4rem; background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); max-height: 60vh; overflow: auto; }
.busca-res a { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: var(--raio-p); text-decoration: none; color: var(--tinta); }
.busca-res a:hover, .busca-res a:focus { background: var(--fundo-2); }
.busca-res b { color: var(--marinho); font-family: var(--f-display); }
.busca-res span { font-size: .8rem; color: var(--tinta-2); }
.busca-res li.mudo { padding: .6rem .8rem; }

/* Estados de busca / vazio */
.vazio { text-align: center; padding: 3rem 1rem; color: var(--tinta-2); }
.vazio .ic { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--borda); }

/* Utilidades */
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.centro { text-align: center; }
.oculto { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
