/* ==========================================================================
   linKomprou — folha de estilos compartilhada
   Identidade visual: ver /mnt/project/linkomprou-base-conhecimento-projeto.md
   ========================================================================== */

:root {
  --navy: #1B2A4A;
  --navy-dark: #101a30;
  --navy-mid: #2A3F68;
  --ruby: #D93A4B;
  --gold: #F5A623;
  --bg: #EEEAF9;
  --white: #FFFFFF;
  --text-muted: #4C4468;
  --text-faint: #6E6785;
  --text-faintest: #9C97B3;
  --border: #E7E3F5;
  --placeholder-bg: #EDEBF5;
  --placeholder-icon: #ADA6C4;

  --container-max: 1180px;
  --radius-card: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 6px rgba(27, 42, 74, 0.10);
  --shadow-md: 0 10px 24px -6px rgba(27, 42, 74, 0.22), 0 4px 8px -2px rgba(27, 42, 74, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(27, 42, 74, 0.30), 0 8px 16px -4px rgba(27, 42, 74, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  html { scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

/* Rolagem suave ao clicar num botão do sumário (.toc), com espaço pro
   cabeçalho fixo (88px) não tampar o título da seção de destino. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 104px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--navy);
}

h1, h2, h3 {
  font-family: 'Sora', system-ui, sans-serif;
  margin: 0;
}

a { text-decoration: none; color: inherit; }

a:focus-visible, button:focus-visible, .pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Faixa de marca no topo */
.brand-stripe {
  height: 6px;
  background: var(--ruby);
  width: 100%;
}

/* Botão em formato de pílula */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pill-navy { background: var(--navy); color: var(--white); }
.pill-navy:hover { background: var(--navy-dark); box-shadow: var(--shadow-sm); }
.pill-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.pill-outline:hover { background: var(--navy); color: var(--white); }
.pill-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-wordmark {
  /* Manrope, não Sora: o "l" do Sora tem uma bandeirinha no topo e a marca
     lia "1inKomprou". O "l" do Manrope é uma barra reta. */
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.logo-wordmark .k { color: var(--ruby); }
/* O K do nome é o MESMO desenho do ícone (traços de pontas arredondadas, ruby)
   com a faísca dourada acima — não a letra K da fonte. Geometria do lockup
   oficial: altura = altura de caixa alta (.72em); viewBox fixo -204 -276 408 552.
   A faísca fica fora do viewBox (overflow visible), 460 unidades acima do centro. */
.logo-wordmark .k-glyph {
  display: inline-block;
  width: 0.53em;
  height: 0.72em;
  margin: 0 0.05em;
  color: var(--ruby);
  overflow: visible;
  vertical-align: baseline;
}
/* Em validação: lockup único (ícone + palavra) como um SVG só, ver marca/linkomprou-logo-fiel.svg */
.logo-lockup { display: block; height: 40px; width: auto; }
.logo-lockup--footer { height: 30px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a { font-weight: 600; font-size: 15px; transition: color 0.15s var(--ease); }
.main-nav a:hover { color: var(--ruby); }
/* Menu suspenso (Anúncios / Categorias): abre com o mouse ou o foco do teclado.
   O padding-top do .nav-drop liga o link à caixa, pra o menu não fechar no caminho. */
.nav-item { position: relative; }
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 18px;
  z-index: 50;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { display: block; }
.nav-drop__box {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.nav-drop__box a { padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.nav-drop__box a:hover { background: var(--bg, #EEEAF9); }
.breadcrumb {
  padding-top: 28px;
  font-size: 14px;
}
.breadcrumb .back { color: var(--text-faint); font-weight: 600; }
.breadcrumb .sep { color: var(--text-faintest); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  padding: 48px 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .logo-wordmark { color: var(--white); font-size: 18px; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--bg); transition: color 0.15s var(--ease); }
.social-links a:hover { color: var(--gold); }
.footer-copy { font-size: 13px; color: var(--text-faintest); }
.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 243, 251, 0.14);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-legal a { color: var(--text-faintest); transition: color 0.15s var(--ease); }
.footer-legal a:hover { color: var(--white); }

/* ---------- Grid de ofertas (vitrine dinâmica) ---------- */
.ofertas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.ofertas-head h2 { font-size: 30px; letter-spacing: -0.5px; }
.ofertas-updated {
  font-size: 14px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
}
.ofertas-updated::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 rgba(245, 166, 35, 0.5);
  animation: pulso 2s infinite;
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* Filtros de ordenação (Popularidade / Novidades / Super Ofertas) */
.ofertas-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ofertas-filtro {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  padding: 6px 13px 6px 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-faint);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.ofertas-filtro svg { flex-shrink: 0; width: 13px; height: 13px; }
.ofertas-filtro:hover { border-color: var(--navy); color: var(--navy); }
.ofertas-filtro.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ofertas-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ofertas-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.oferta-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.oferta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.oferta-card__thumb {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oferta-card__thumb svg { stroke: rgba(255, 255, 255, 0.55); }
/* contain + fundo branco: mostra o produto inteiro (fotos de Amazon, Mercado Livre, SHEIN e Shopee têm proporções diferentes; com cover cortavam). */
.oferta-card__thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.oferta-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ruby);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(217, 58, 75, 0.45);
}
.oferta-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.oferta-card__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  max-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.oferta-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.oferta-card__price-old { font-size: 13px; color: var(--text-faintest); text-decoration: line-through; }
.oferta-card__price-new { font-size: 20px; font-weight: 800; color: var(--navy); }
.oferta-card__cta { justify-content: center; padding: 11px 18px; font-size: 14px; margin-top: 4px; }

/* Grid de 4 colunas (páginas de categoria) usa card ligeiramente mais compacto */
.cols-4 .oferta-card__thumb { height: 140px; }
.cols-4 .oferta-card__name { font-size: 14px; }
.cols-4 .oferta-card__price-new { font-size: 18px; }
.cols-4 .oferta-card__cta { padding: 10px 16px; font-size: 13px; }

/* Grid de 5 colunas (home) usa card compacto — mais ofertas cabem na tela */
.cols-5 .oferta-card__thumb { height: 110px; }
.cols-5 .oferta-card__body { padding: 12px; gap: 7px; }
.cols-5 .oferta-card__name { font-size: 12.5px; line-height: 1.3; }
.cols-5 .oferta-card__price-old { font-size: 11px; }
.cols-5 .oferta-card__price-new { font-size: 15px; }
.cols-5 .oferta-card__cta { padding: 8px 12px; font-size: 12px; margin-top: 2px; }
.cols-5 .oferta-card__badge { font-size: 11px; padding: 5px 9px; top: 8px; right: 8px; }
.cols-5 .oferta-card__thumb svg { width: 34px; height: 34px; }

.ofertas-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-faint);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 56px;
  background: radial-gradient(ellipse 900px 500px at 78% 15%, rgba(245, 166, 35, 0.14) 0%, rgba(245, 166, 35, 0) 60%),
              radial-gradient(ellipse 700px 500px at 5% 90%, rgba(217, 58, 75, 0.06) 0%, rgba(217, 58, 75, 0) 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ruby);
}
.hero-title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.hero-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
}
.hero-main, .hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.40) 0%, rgba(245, 166, 35, 0) 68%);
  z-index: 0;
}
.hero-art svg { position: relative; z-index: 1; width: 200px; height: auto; }
/* Desktop: sem o K, e o texto em duas colunas (título à esquerda, subtítulo e botões à direita). */
@media (min-width: 901px) {
  .hero { padding: 18px 0 22px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .hero-copy { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .hero-main { flex: 1 1 auto; min-width: 0; max-width: 620px; gap: 8px; }
  .hero-side { flex: 0 0 auto; }
  .hero-ctas { margin-top: 0; }
  .hero-ctas .pill { padding: 11px 20px; font-size: 14px; }
}

/* ---------- Seções genéricas ---------- */
.section { padding: 8px 0 96px; }
.section-title { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 32px; }

/* ---------- Categorias ---------- */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.categoria-card {
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.categoria-card--active { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.categoria-card--active:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.categoria-card--soon {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  cursor: default;
  opacity: 0.7;
}
.categoria-card span { font-weight: 700; font-size: 16px; }
.categorias-note { font-size: 13px; color: var(--text-faintest); margin-top: 16px; }

/* ---------- Quem somos ---------- */
.sobre-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow-sm);
}
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  gap: 48px;
  align-items: center;
}
.sobre-grid .logo-mark { justify-self: center; }
.sobre-copy { display: flex; flex-direction: column; gap: 16px; }
.sobre-copy p { font-size: 16px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Página de categoria: título + Casual x Esportivo ---------- */
.categoria-hero { padding: 20px 0 48px; }
.categoria-hero .container { max-width: 820px; }
.categoria-hero h1 { font-size: 42px; line-height: 1.15; letter-spacing: -1px; }
.categoria-hero p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-top: 18px; }

/* Data de atualização visível (artigos) */
.updated-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-faint);
  margin: 22px 0 0;
}
.updated-line svg { flex-shrink: 0; }

/* Sumário do artigo (botões pra pular direto pra cada seção) */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}
.toc a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.toc a:hover { background: var(--navy); color: var(--white); }

.casual-esportivo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 20px; margin-bottom: 14px; }
.info-card ul { padding-left: 20px; color: var(--text-muted); font-size: 15px; margin: 0; }
.info-card li { margin-bottom: 10px; line-height: 1.6; }

/* ---------- Quadro comparativo (páginas de subcategoria) ---------- */
.compare-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table caption { display: none; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.compare-table thead th:first-child { color: var(--gold); }
.compare-table tbody th {
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  white-space: nowrap;
}
.compare-table tbody td { color: var(--text-muted); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background-color 0.15s var(--ease); }
.compare-table tbody tr:hover td { background: #FBFAFE; }

/* ---------- Cards de subcategoria dentro do hub ---------- */
.subcategoria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Mesmo .categoria-card da home (seção de categorias), mas menor — esses
   cards aqui levam pra um ARTIGO (guia de compra), não pra outra vitrine de
   anúncios, então não precisam do mesmo destaque visual dos 4 cards
   grandes da home. Reduzido em 2026-10-01 (pedido do dono). */
.subcategoria-grid .categoria-card { padding: 16px 14px; gap: 14px; }
.subcategoria-grid .categoria-card svg { width: 20px; height: 20px; }
.subcategoria-grid .categoria-card span { font-size: 14px; }

/* ---------- Páginas institucionais (Política, Termos, Contato) ---------- */
.legal-hero { padding: 48px 0 8px; }
.legal-hero h1 { font-size: 36px; letter-spacing: -0.5px; }
.legal-content { max-width: 720px; padding-bottom: 96px; }
.legal-content .updated { font-size: 13px; color: var(--text-faintest); margin: 8px 0 40px; }
.legal-content h2 { font-size: 21px; letter-spacing: -0.3px; margin: 36px 0 12px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 14px; }
.legal-content ul { padding-left: 20px; margin: 0 0 14px; }
.legal-content li { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin-bottom: 6px; }
.legal-content a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content .pill { text-decoration: none; }
.legal-content .pill-navy { color: var(--white); }
.legal-content .pill-outline { color: var(--navy); }
/* Sem isso, a cor acima (mesma especificidade que .pill-outline:hover, mas
   declarada depois) vencia no hover: texto/ícone ficavam navy sobre fundo
   navy, invisíveis (bug real em em-breve.html, que usa .legal-content). */
.legal-content .pill-outline:hover { color: var(--white); }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0 32px;
}
.contact-card a { font-size: 16px; }

/* ---------- Ilustração do guia (imagem de abertura) ---------- */
.guide-illustration {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.guide-illustration__side {
  flex: 1;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.guide-illustration__side--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%); }
.guide-illustration__side--warm { background: linear-gradient(160deg, #C23346 0%, #E8963A 100%); }
.guide-illustration__side--dark { background: linear-gradient(160deg, #101a30 0%, #6E1F2E 100%); }
.guide-illustration__icons { display: flex; align-items: center; gap: 14px; }
.guide-illustration__side span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }

/* ---------- Vantagens e desvantagens ---------- */
.proscons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.proscons-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proscons-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.proscons-card h3 { font-size: 19px; margin-bottom: 16px; }
.proscons-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  margin: 18px 0 8px;
}
.proscons-card h4:first-of-type { margin-top: 0; }
.proscons-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.proscons-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.proscons-list svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Gráfico de ênfase (resumo visual do comparativo) ---------- */
.emphasis-chart { display: flex; flex-direction: column; gap: 18px; }
.emphasis-row { display: flex; flex-direction: column; gap: 6px; }
.emphasis-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.emphasis-bars { display: flex; flex-direction: column; gap: 4px; }
.emphasis-bar { height: 13px; border-radius: 4px; min-width: 4px; }
.emphasis-bar--casual { background: var(--navy); }
.emphasis-bar--esportivo { background: var(--ruby); }
.emphasis-bar--gamer { background: var(--gold); }
/* Versões genéricas — usar essas em artigos novos (não "casual/esportivo/gamer") */
.emphasis-bar--tipo1 { background: var(--navy); }
.emphasis-bar--tipo2 { background: var(--ruby); }
.emphasis-bar--tipo3 { background: var(--gold); }
.emphasis-legend { display: flex; gap: 24px; margin-top: 20px; font-size: 13px; color: var(--text-faint); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend-dot--casual { background: var(--navy); }
.legend-dot--esportivo { background: var(--ruby); }
.legend-dot--gamer { background: var(--gold); }
.legend-dot--tipo1 { background: var(--navy); }
.legend-dot--tipo2 { background: var(--ruby); }
.legend-dot--tipo3 { background: var(--gold); }
.emphasis-note { font-size: 13px; color: var(--text-faintest); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ruby);
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14px; line-height: 1.7; color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }

  /* Sem menu de categorias no header nesse tamanho de tela — a seção
     "Categorias" sobe pra cima dos anúncios (só na home) e fica compacta,
     virando a navegação rápida que o header não tem mais espaço pra mostrar. */
  body.page-home main { display: flex; flex-direction: column; }
  body.page-home main > .hero { order: 1; }
  body.page-home main > #categorias { order: 2; }
  body.page-home main > #anuncios { order: 3; }
  body.page-home main > #sobre { order: 4; }

  .hero { padding: 20px 0 28px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .hero-grid > div:last-child { order: -1; }
  .hero-copy { gap: 10px; }
  .hero-main, .hero-side { gap: 10px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .hero-glow { width: 120px; height: 120px; }
  .hero-art svg { width: 84px; }
  .hero-ctas .pill { padding: 10px 16px; font-size: 13px; }

  #categorias.section { padding: 24px 0 32px; }
  #categorias .section-title { font-size: 19px; margin-bottom: 14px; }
  .categoria-card { padding: 14px 10px; gap: 8px; }
  .categoria-card svg { width: 20px; height: 20px; }
  .categoria-card span { font-size: 12.5px; }
  .categorias-note { margin-top: 10px; font-size: 12px; }

  .ofertas-grid, .ofertas-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofertas-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .categorias-grid, .subcategoria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sobre-grid { grid-template-columns: 1fr !important; text-align: center; }
  .sobre-card { margin: 0 20px; padding: 40px 28px; }
  .casual-esportivo-grid, .proscons-grid { grid-template-columns: 1fr !important; }
  .guide-illustration { flex-direction: column !important; }
  .compare-wrap { overflow-x: auto; }
  .compare-table { min-width: 620px; }
}
@media (max-width: 560px) {
  /* O header já mostra a marca (K + wordmark) — a ilustração grande do K
     no hero vira só espaço perdido antes dos anúncios nesse tamanho de tela. */
  .hero-art { display: none; }
  .hero { padding: 16px 0 24px; }

  .ofertas-grid, .ofertas-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ofertas-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cols-4 .oferta-card__thumb { height: 90px; }
  .cols-4 .oferta-card__body { padding: 12px; gap: 7px; }
  .cols-4 .oferta-card__name { font-size: 12.5px; line-height: 1.3; }
  .cols-4 .oferta-card__price-old { font-size: 11px; }
  .cols-4 .oferta-card__price-new { font-size: 15px; }
  .cols-4 .oferta-card__cta { padding: 8px 12px; font-size: 12px; margin-top: 2px; }
  .cols-4 .oferta-card__badge { font-size: 11px; padding: 5px 9px; top: 8px; right: 8px; }
  .subcategoria-grid { grid-template-columns: 1fr !important; }
  .site-header .container { height: 72px; }
  .logo-wordmark { font-size: 19px; }
  .logo-lockup { height: 32px; }
  .site-header .pill-navy { padding: 9px 14px; font-size: 12px; }
  .sobre-card { margin: 0 12px; padding: 32px 20px; }
  .sobre-card .logo-mark { width: 100px; height: 130px; }
}
@media (max-width: 340px) {
  /* Só telas bem pequenas (ex: iPhone SE 1ª geração, 320px) caem pra 1
     coluna — celulares comuns (375px+) ficam com 2, como no resto do site. */
  .ofertas-grid.cols-5 { grid-template-columns: 1fr; }
}

/* Aviso de link de afiliado (acima das vitrines) */
.afiliado-aviso { font-size: 11px; line-height: 1.4; color: var(--text-faintest); margin: 0 0 8px; }
.afiliado-aviso a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Busca (ícone de lupa no cabeçalho) ----------
   Injetada via JS (assets/js/busca.js) em todo cabeçalho — .header-actions
   agrupa o botão de lupa com o pill "Entrar no canal", pra não quebrar o
   space-between de 3 itens (logo / nav / ações) que o .site-header já usa. */
.header-actions { display: flex; align-items: center; gap: 14px; }
.busca-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.busca-toggle:hover, .busca-toggle:focus-visible { background: var(--bg); color: var(--ruby); }

.busca-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 42, 74, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 24px;
  overflow-y: auto;
}
.busca-overlay[hidden] { display: none; }
body.busca-aberta { overflow: hidden; }
.busca-painel {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 76vh;
}
.busca-campo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
  flex-shrink: 0;
}
.busca-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 16px; /* 16px+ evita zoom automático no foco em iOS */
  color: var(--navy);
}
.busca-input::placeholder { color: var(--text-faintest); }
.busca-fechar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
}
.busca-fechar:hover { background: var(--bg); color: var(--ruby); }
.busca-resultados { overflow-y: auto; padding: 8px; }
.busca-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background-color 0.15s var(--ease);
}
.busca-item:hover { background: var(--bg); }
.busca-item__thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--placeholder-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.busca-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.busca-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.busca-item__nome {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.busca-item__preco { font-size: 14px; font-weight: 700; color: var(--ruby); }
.busca-vazio, .busca-mais {
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}
.busca-vazio.busca-vazio--junto { padding: 6px 12px 14px; }

/* Guias (páginas de subcategoria) no topo do resultado da busca: faixa navy,
   só com o nome da subcategoria — diferente dos anúncios logo abaixo. */
.busca-guias { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.busca-guia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  transition: background-color 0.15s var(--ease);
}
.busca-guia svg { flex-shrink: 0; color: var(--gold); }
.busca-guia:hover, .busca-guia:focus-visible { background: var(--navy-mid); }

@media (max-width: 560px) {
  .header-actions { gap: 8px; }
  .busca-toggle { width: 36px; height: 36px; }
  .busca-overlay { padding: 0; align-items: stretch; }
  .busca-painel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .busca-campo { padding: 16px; }
}

/* ---------- Guias: blocos novos (2026-10-03) ----------
   Resumo, passos, siglas, erros, fontes e a tabela em cartões no celular.
   Usado primeiro em tech/caixa-de-som.html; os outros guias adotam ao serem reescritos. */
.guide-byline { margin-top: 14px; font-size: 14px; color: var(--text-faint); }
.categoria-hero .guide-byline { font-size: 14px; color: var(--text-faint); margin-top: 14px; line-height: 1.5; }
.categoria-hero .guide-byline a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.categoria-hero .guide-metodo { font-size: 13.5px; line-height: 1.6; color: var(--text-faint); margin-top: 14px; max-width: 66ch; }
.categoria-hero .guide-metodo a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.guide-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-resumo__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.guide-resumo__item h3 { font-size: 17px; margin-bottom: 8px; }
.guide-resumo__item p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.guide-regra { margin: 16px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--navy); color: var(--white); font-size: 15px; line-height: 1.6; }
.guide-regra strong { color: var(--gold); }
.guide-regra a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.guide-passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide-passos li { counter-increment: passo; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.guide-passos li::before { content: counter(passo); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 15px 'Sora', sans-serif; display: flex; align-items: center; justify-content: center; }
.guide-passos b { color: var(--navy); }
.guide-dica { margin: 18px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.guide-dica b { color: var(--navy); }

.guide-glos { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.guide-glos > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.guide-glos > div:last-child { border-bottom: none; }
.guide-glos dt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy); }
.guide-glos dd { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.guide-ref { font-size: 11px; line-height: 0; margin-left: 2px; }
.guide-ref a { color: var(--text-faint); font-weight: 600; text-decoration: none; }

.guide-lista { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.guide-lista b { color: var(--navy); }

.guide-fontes { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; }
.guide-fontes summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; color: var(--navy); }
.guide-fontes ol { margin: 0; padding: 0 0 16px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.guide-fontes a { color: var(--navy); font-weight: 600; word-break: break-word; }

.guide-veja { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-nota-final { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-faintest); }

@media (max-width: 900px) {
  .guide-resumo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .guide-glos > div { grid-template-columns: 1fr; gap: 4px; }
  /* O título de guia/categoria ocupava 5 linhas a 42px em tela de 375px. */
  .categoria-hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .categoria-hero p { font-size: 16px; }
}
/* Tabela em cartões no celular: cada linha vira um cartão (sem rolagem lateral). Só para .compare-table--cards. */
@media (max-width: 640px) {
  .compare-wrap.compare-wrap--cards { background: none; border: none; box-shadow: none; overflow: visible; }
  .compare-table.compare-table--cards, .compare-table.compare-table--cards tbody { display: block; min-width: 0; }
  .compare-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare-table.compare-table--cards tbody tr { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
  .compare-table.compare-table--cards tbody tr:last-child { margin-bottom: 0; }
  .compare-table.compare-table--cards tbody tr th { display: block; white-space: normal; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: 'Sora', sans-serif; font-size: 15px; }
  .compare-table.compare-table--cards tbody tr td { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
  .compare-table.compare-table--cards tbody tr td:last-child { border-bottom: none; }
  .compare-table--cards tbody td::before { content: attr(data-label); font-size: 12.5px; font-weight: 700; color: var(--text-faint); }
}
