/* こだわりPC — visual híbrido: claro por padrão, escuro automático. Sem fontes externas.
   Para mudar a identidade, altere as variáveis abaixo. */
:root {
  --ac: #1a6bff;          /* azul elétrico (destaque) */
  --ac-forte: #0b4fd1;
  --ac-suave: #e8f0ff;
  --no-ac: #ffffff;       /* texto sobre o azul */
  --fundo: #ffffff;
  --fundo-2: #f5f7fb;
  --card: #ffffff;
  --texto: #18202b;
  --texto-2: #5d6878;
  --borda: #e2e7ef;
  --ok: #0f8a4a;
  --ruim: #d13438;
  --estrela: #f5a300;
  --raio: 12px;
  --largura: 1100px;
  --fonte: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ac: #5b93ff; --ac-forte: #8db4ff; --ac-suave: #17233a; --no-ac: #0b1220;
    --fundo: #0f141c; --fundo-2: #151c27; --card: #151d2a;
    --texto: #e6ebf2; --texto-2: #9aa6b8; --borda: #243044;
    --ok: #4ade80; --ruim: #f87171;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.85 var(--fonte); color: var(--texto); background: var(--fundo); font-feature-settings: "palt" 0; overflow-wrap: anywhere; line-break: strict; }
img { max-width: 100%; height: auto; }
a { color: var(--ac); text-underline-offset: 3px; }
a:hover { color: var(--ac-forte); }
.container { max-width: var(--largura); margin: 0 auto; padding: 0 16px; }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 16px; top: 8px; background: var(--fundo); padding: 8px; z-index: 9; }

/* topo */
.topo { background: var(--fundo); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 5; }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.logo, .rodape-logo, .hero-marca { font-weight: 900; font-size: 1.3rem; color: var(--texto); text-decoration: none; letter-spacing: .02em; }
.logo b, .rodape-logo b, .hero-marca b { color: var(--ac); }
.topo nav { display: flex; gap: 4px; }
.topo nav a { color: var(--texto-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
.topo nav a:hover { background: var(--fundo-2); color: var(--ac); }

main.container { padding-top: 20px; padding-bottom: 64px; min-height: 60vh; }

/* migalhas */
.migalhas ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .78rem; color: var(--texto-2); }
.migalhas li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.migalhas a { color: var(--texto-2); text-decoration: none; }
.migalhas a:hover { color: var(--ac); }
.migalhas li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* hero */
.hero { padding: 28px 0 24px; }
.hero-marca { margin: 0 0 4px; font-size: 1rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.4; margin: 0 0 10px; }
.hero p { color: var(--texto-2); margin: 0; max-width: 720px; }
.hero.mini { padding: 4px 0 16px; }
.hero.mini h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.btn { display: inline-block; margin-top: 16px; background: var(--ac); color: var(--no-ac); padding: 10px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn:hover { color: var(--no-ac); filter: brightness(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borda); background: var(--card); padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--texto); font-size: .88rem; font-weight: 600; }
.chips a:hover { border-color: var(--ac); color: var(--ac); }
.chips span { background: var(--ac-suave); color: var(--ac); font-size: .72rem; padding: 0 7px; border-radius: 999px; }
.sec-tit { font-size: 1.2rem; margin: 8px 0 16px; padding-left: 12px; border-left: 4px solid var(--ac); line-height: 1.4; }
.vazio { color: var(--texto-2); }

/* cards de artigo */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: var(--card); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ac); transform: translateY(-2px); }
.card img { display: block; aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.card-in { padding: 14px 16px 16px; }
.card h2 { font-size: 1.02rem; line-height: 1.55; margin: 4px 0 6px; }
.card h2 a { color: var(--texto); text-decoration: none; }
.card h2 a:hover { color: var(--ac); }
.card p { color: var(--texto-2); margin: 0 0 8px; font-size: .86rem; line-height: 1.7; }
.card time { font-size: .76rem; color: var(--texto-2); }
.cat { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--ac); background: var(--ac-suave); padding: 1px 9px; border-radius: 5px; text-decoration: none; }

/* artigo */
.artigo { max-width: 780px; margin: 0 auto; }
.artigo h1 { font-size: clamp(1.5rem, 4vw, 2.05rem); line-height: 1.5; margin: 10px 0 10px; }
.meta { color: var(--texto-2); font-size: .8rem; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ad { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.7; color: var(--texto-2); background: var(--fundo-2); border: 1px solid var(--borda); padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; }
.ad-tag { flex: none; font-weight: 700; font-size: .72rem; border: 1px solid var(--texto-2); padding: 0 7px; border-radius: 4px; }
.capa { border-radius: var(--raio); margin: 4px 0 20px; width: 100%; }

.texto h2 { font-size: 1.35rem; line-height: 1.5; margin: 2.4em 0 .9em; padding: 10px 14px; background: var(--ac-suave); border-left: 5px solid var(--ac); border-radius: 0 8px 8px 0; }
.texto h3 { font-size: 1.12rem; margin: 1.8em 0 .6em; padding-bottom: 6px; border-bottom: 2px solid var(--borda); }
.texto p { margin: 0 0 1.2em; }
.texto ul, .texto ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.texto li { margin: .2em 0; }
.texto blockquote { margin: 1.5em 0; padding: 10px 16px; border-left: 4px solid var(--borda); color: var(--texto-2); font-size: .9rem; }
.texto blockquote p { margin: 0; }
.texto pre { background: var(--fundo-2); padding: 14px; border-radius: 10px; overflow-x: auto; }
code { font-size: .88em; background: var(--fundo-2); padding: 2px 5px; border-radius: 5px; }
strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--ac) 22%, transparent) 62%); }

.indice { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 20px; margin: 0 0 28px; }
.indice-tit { font-weight: 700; margin: 0 0 4px; }
.indice ol { margin: 0; padding-left: 1.4em; font-size: .92rem; }
.indice a { color: var(--texto); text-decoration: none; }
.indice a:hover { color: var(--ac); text-decoration: underline; }

.caixa { background: var(--fundo-2); border: 1px solid var(--borda); padding: 12px 16px; border-radius: 10px; margin: 1.5em 0; }
.caixa.ponto { background: var(--ac-suave); border-color: transparent; border-left: 5px solid var(--ac); border-radius: 0 10px 10px 0; font-weight: 600; }
.caixa-tit { display: block; font-size: .75rem; color: var(--ac); font-weight: 800; letter-spacing: .1em; }

/* produto */
.produto { position: relative; border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; margin: 1.8em 0; background: var(--card); }
.produto.rank { padding-top: 30px; }
.produto.rank-1 { border: 2px solid var(--ac); }
.posicao { position: absolute; top: -1px; left: -1px; background: var(--ac); color: var(--no-ac); font-weight: 900; font-size: .95rem; padding: 4px 14px; border-radius: var(--raio) 0 var(--raio) 0; }
.rank-2 .posicao, .rank-3 .posicao { background: var(--texto-2); color: var(--fundo); }
.rank:not(.rank-1):not(.rank-2):not(.rank-3) .posicao { background: var(--borda); color: var(--texto); }
.produto-in { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.produto-in img { border-radius: 8px; background: var(--fundo-2); }
.selo { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--ac); border: 1px solid var(--ac); padding: 0 8px; border-radius: 5px; }
.produto h3 { margin: 6px 0 2px; font-size: 1.15rem; line-height: 1.45; border: 0; padding: 0; }
.nota { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.estrelas { color: var(--estrela); letter-spacing: 1px; }
.resumo { margin: 8px 0 0 !important; font-size: .92rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--borda); border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; margin: 16px 0 0; }
.specs div { background: var(--fundo-2); padding: 6px 10px; }
.specs dt { font-size: .7rem; color: var(--texto-2); }
.specs dd { margin: 0; font-weight: 700; font-size: .9rem; }
.pros-contras { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pros-contras > div { border-radius: 8px; padding: 8px 12px; }
.pros { background: color-mix(in srgb, var(--ok) 9%, transparent); }
.contras { background: color-mix(in srgb, var(--ruim) 9%, transparent); }
.pc-tit { margin: 0 !important; font-weight: 800; font-size: .8rem; }
.pros .pc-tit { color: var(--ok); }
.contras .pc-tit { color: var(--ruim); }
.pros-contras ul { margin: 2px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.pros li::before { content: "◯ "; color: var(--ok); font-weight: 700; }
.contras li::before { content: "✕ "; color: var(--ruim); font-weight: 700; }

/* botões de loja (cores de cada loja, iguais nos modos claro e escuro) */
.lojas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.loja { display: block; text-align: center; font-weight: 700; font-size: .9rem; text-decoration: none; padding: 11px 8px; border-radius: 8px; color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: filter .12s, transform .12s; }
.loja:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.loja-amazon { background: #ff9900; color: #111; }
.loja-amazon:hover { color: #111; }
.loja-rakuten { background: #bf0000; }
.loja-yahoo { background: #ff0033; }
.loja-oficial { background: var(--ac); color: var(--no-ac); }
.lojas.mini { grid-template-columns: 1fr; gap: 4px; margin: 0; min-width: 104px; }
.lojas.mini .loja { font-size: .72rem; padding: 5px 6px; box-shadow: none; }

/* tabelas */
.tabela { overflow-x: auto; margin: 1.5em 0 .4em; border: 1px solid var(--borda); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; line-height: 1.6; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: middle; }
th { background: var(--fundo-2); font-weight: 700; white-space: nowrap; font-size: .8rem; }
tr:last-child td { border-bottom: 0; }
td.num { font-weight: 900; color: var(--ac); white-space: nowrap; }
.comparar td:first-child a, .comparar td:nth-child(2) a { color: var(--texto); text-decoration: none; }
.comparar td, .comparar th { white-space: nowrap; }
.comparar td:nth-child(2) { white-space: normal; min-width: 170px; }
.comparar table:not(:has(td.num)) td:first-child { white-space: normal; min-width: 170px; }
.nota-preco { font-size: .74rem; color: var(--texto-2); margin: 0 0 1.5em !important; }

.relacionados { margin: 56px 0 0; }

/* rodapé */
.rodape { border-top: 1px solid var(--borda); background: var(--fundo-2); color: var(--texto-2); font-size: .8rem; padding: 32px 0 24px; }
.rodape-logo { margin: 0 0 12px; font-size: 1.1rem; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.rodape a { color: var(--texto-2); text-decoration: none; }
.rodape a:hover { color: var(--ac); }
.rodape-aviso { max-width: 720px; line-height: 1.7; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topo-in { min-height: 52px; }
  .logo { font-size: 1.15rem; }
  .topo nav a { padding: 6px 7px; font-size: .84rem; }
  .produto { padding: 16px; }
  .produto.rank { padding-top: 28px; }
  .produto-in { grid-template-columns: 88px 1fr; gap: 12px; }
  .pros-contras { grid-template-columns: 1fr; }
  .texto h2 { font-size: 1.2rem; }
  .lojas { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
  .loja { font-size: .8rem; padding: 10px 4px; }
  .specs { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
}
