/*
Theme Name: DecodeGear
Theme URI: https://decodegear.com
Author: DecodeGear Team
Author URI: https://decodegear.com
Description: A modern tech review and product ranking portal with affiliate and AdSense monetization. Built for English-speaking audiences.
Version: 4.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decodegear
Tags: technology, reviews, blog, e-commerce, modern, responsive
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-cta: #F97316;
  --color-cta-dark: #EA6B0A;
  --color-cta-light: #FB923C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #F1F5F9;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-star: #FBBF24;

  --gradient-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 40%, #7C3AED 100%);
  --gradient-card: linear-gradient(180deg, rgba(37,99,235,0) 0%, rgba(37,99,235,0.85) 100%);
  --gradient-cta: linear-gradient(135deg, #F97316 0%, #EF4444 100%);

  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-primary: 0 8px 24px rgba(37,99,235,.28);
  --shadow-cta: 0 8px 24px rgba(249,115,22,.36);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section { padding: 4rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-text); color: #fff; }

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  margin-bottom: .5rem;
}

.section__title span { color: var(--color-primary); }

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 1.5rem;
}

.section__link:hover { color: var(--color-primary-dark); }
.section__link::after { content: '→'; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,.38);
}

/* CTA laranja: EXCLUSIVO para botões de compra/afiliado */
.btn--cta,
.btn-affiliate,
.btn-buy {
  background: var(--gradient-cta);
  color: #fff !important;
  box-shadow: var(--shadow-cta);
  font-size: 1rem;
  padding: .85rem 2rem;
}

.btn--cta:hover,
.btn-affiliate:hover,
.btn-buy:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(249,115,22,.48);
  filter: brightness(1.05);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* =============================================
   BADGES & LABELS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge--primary { background: rgba(37,99,235,.1); color: var(--color-primary); }
.badge--cta { background: rgba(249,115,22,.1); color: var(--color-cta); }
.badge--success { background: rgba(16,185,129,.1); color: var(--color-success); }
.badge--new { background: var(--color-primary); color: #fff; }
.badge--hot { background: var(--gradient-cta); color: #fff; }
.badge--ranking { background: var(--color-star); color: #fff; }

/* =============================================
   STAR RATING
   ============================================= */
.stars {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  color: var(--color-star);
  font-size: 1rem;
}

.stars__score {
  font-weight: 700;
  color: var(--color-text);
  margin-left: .35rem;
  font-size: .9rem;
}

.stars__count {
  color: var(--color-text-muted);
  font-size: .8rem;
  margin-left: .2rem;
}

/* =============================================
   HEADER — Dark TechTudo style
   Estrutura:
     .site-header                 (wrapper sticky)
       .header-brand              (row 1 — fundo escuro)
         .header-brand__inner     (flex: logo | tagline | search | toggle)
       .header-catnav             (row 2 — categorias)
       .header-accent             (linha laranja 3 px)
   ============================================= */

/* Cores internas do header (sobrepõem o tema claro) */
:root {
  --header-bg:        #0D1117;   /* quase preto */
  --header-bg-nav:    #161B22;   /* row 2 levemente mais clara */
  --header-border:    rgba(255,255,255,.06);
  --header-text:      #F0F6FC;
  --header-muted:     rgba(240,246,252,.55);
  --header-hover-bg:  rgba(249,115,22,.12);
  --header-active:    var(--color-cta);   /* laranja para item ativo */
}

/* ── Wrapper ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,.45);
}

/* ── Row 1: Brand ── */
.header-brand {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-brand__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 0;
}

/* Logo — branco com destaque laranja */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.site-logo__icon {
  width: 38px;
  height: 38px;
  background: var(--color-cta);            /* laranja sólido */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(249,115,22,.25);
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;                             /* branco */
  letter-spacing: -.03em;
}

.site-logo__text span {
  color: var(--color-cta);                 /* laranja */
}

/* Tagline entre logo e busca */
.header-tagline {
  flex: 1;
  font-size: .78rem;
  color: var(--header-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search */
.header-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all var(--transition);
}

.search-form:focus-within {
  border-color: var(--color-cta);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}

.search-form input {
  background: transparent;
  border: none;
  outline: none;
  padding: .52rem 1rem;
  font-size: .87rem;
  width: 220px;
  color: var(--header-text);
}

.search-form input::placeholder { color: var(--header-muted); }

.search-form button {
  background: var(--color-cta);            /* laranja */
  border: none;
  color: #fff;
  padding: .52rem .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.search-form button:hover { background: var(--color-cta-dark); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Row 2: Category nav ── */
.header-catnav {
  background: var(--header-bg-nav);
}

/* Shared list reset for both WP menu and fallback */
.catnav-menu,
.catNav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.catnav-menu > li,
.catNav-menu > li {
  position: relative;
}

.catnav-menu > li > a,
.catNav-menu > li > a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--header-text);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;               /* alinha com .header-accent */
}

.catnav-menu > li > a:hover,
.catNav-menu > li > a:hover {
  color: #fff;
  background: var(--header-hover-bg);
  border-bottom-color: var(--color-cta);
}

/* Ativo / página atual */
.catnav-menu > .current-menu-item > a,
.catnav-menu > .current_page_item > a,
.catNav-menu > li.current > a {
  color: var(--color-cta);
  border-bottom-color: var(--color-cta);
}

/* Ícones de categoria */
.catNav-icon {
  font-size: .95rem;
  line-height: 1;
}

/* Dropdown submenu (WP menu nível 2) */
.catnav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 3px);   /* abaixo da linha accent */
  left: 0;
  min-width: 200px;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-top: 2px solid var(--color-cta);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 200;
  padding: .4rem 0;
}

.catnav-menu > li:hover > .sub-menu { display: block; }

.catnav-menu .sub-menu li a {
  display: block;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  color: var(--header-muted);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.catnav-menu .sub-menu li a:hover {
  color: #fff;
  padding-left: 1.4rem;
}

/* ── Linha laranja de separação ── */
.header-accent {
  height: 3px;
  background: var(--color-cta);
}

/* Drawer chrome — hidden on desktop, shown inside the mobile drawer */
.header-catnav__drawer-head { display: none; }

.nav-close {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .25rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}

body.nav-open { overflow: hidden; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #FDE68A, #FB923C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
}

.hero__search input::placeholder { color: var(--color-text-muted); }

.hero__search button {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.hero__search button:hover { background: var(--color-primary-dark); }

.hero__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

.hero__tags strong { color: rgba(255,255,255,.95); }

.hero__tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
  font-size: .8rem;
}

.hero__tag:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* =============================================
   REVIEW CARDS
   ============================================= */
.review-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.2);
}

.review-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.review-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.review-card:hover .review-card__image img { transform: scale(1.04); }

.review-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1;
}

.review-card__score {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--color-primary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: var(--shadow-md);
}

.review-card__score--high { background: var(--color-success); }
.review-card__score--mid { background: var(--color-warning); }

.review-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.review-card__category {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.review-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.review-card__title a {
  color: inherit;
}

.review-card__title a:hover { color: var(--color-primary); }

.review-card__excerpt {
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--color-text-light);
  padding-top: .5rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.review-card__meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* =============================================
   RANKING CARDS
   ============================================= */
.ranking-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.ranking-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.2);
  transform: translateX(4px);
}

.ranking-card__position {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ranking-card__position--1 { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #fff; }
.ranking-card__position--2 { background: linear-gradient(135deg, #94A3B8, #CBD5E1); color: #fff; }
.ranking-card__position--3 { background: linear-gradient(135deg, #D97706, #F59E0B); color: #fff; }
.ranking-card__position--other { background: var(--color-bg-alt); color: var(--color-text-muted); }

.ranking-card__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
}

.ranking-card__image img { width: 100%; height: 100%; object-fit: cover; }

.ranking-card__info { flex: 1; min-width: 0; }

.ranking-card__category {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.ranking-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-text);
  margin-bottom: .35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-card__name a { color: inherit; }
.ranking-card__name a:hover { color: var(--color-primary); }

.ranking-card__price {
  font-size: .9rem;
  font-weight: 800;
  color: var(--color-primary);
}

.ranking-card__actions { flex-shrink: 0; }

/* =============================================
   COMPARATIVO CARDS
   ============================================= */
.compare-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.compare-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.compare-card__header {
  background: var(--gradient-hero);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.compare-card__vs {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
}

.compare-card__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}

.compare-card__separator {
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: .25rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
}

.compare-card__body { padding: 1.25rem; }

.compare-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--color-text);
}

.compare-card__title a { color: inherit; }
.compare-card__title a:hover { color: var(--color-primary); }

.compare-card__meta {
  font-size: .82rem;
  color: var(--color-text-muted);
}

/* =============================================
   SINGLE POST / REVIEW
   ============================================= */
.post-header {
  background: var(--gradient-hero);
  padding: 3.5rem 0 6rem;
  position: relative;
}

.post-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
}

.post-header__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.post-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
}

.post-header__breadcrumb a { color: rgba(255,255,255,.85); }
.post-header__breadcrumb a:hover { color: #fff; }
.post-header__breadcrumb span { color: rgba(255,255,255,.5); }

.post-header__category {
  display: inline-flex;
  margin-bottom: 1rem;
}

.post-header__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  flex-wrap: wrap;
}

.post-header__meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

/* Afiliado Box — CTA laranja em destaque */
.affiliate-box {
  background: linear-gradient(135deg, #FFF7ED, #FFF);
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.affiliate-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(249,115,22,.06);
  border-radius: 50%;
}

.affiliate-box__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
}

.affiliate-box__product {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .35rem;
}

.affiliate-box__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-cta);
  margin-bottom: .25rem;
}

.affiliate-box__installments {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.affiliate-box .btn--cta {
  width: 100%;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
}

.affiliate-box__disclaimer {
  font-size: .72rem;
  color: var(--color-text-light);
  margin-top: .75rem;
}

/* Score box */
.score-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.score-box__overall {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.score-box__number {
  width: 72px;
  height: 72px;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.score-box__label { font-size: .8rem; color: var(--color-text-muted); margin-bottom: .2rem; }
.score-box__verdict { font-size: 1.1rem; font-weight: 700; color: var(--color-text); }

.score-bar { margin-bottom: .75rem; }
.score-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--color-text);
}

.score-bar__value { color: var(--color-primary); }

.score-bar__track {
  height: 8px;
  background: var(--color-bg-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.pros-cons__col {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.pros-cons__col--pros { border-top: 3px solid var(--color-success); }
.pros-cons__col--cons { border-top: 3px solid var(--color-error); }

.pros-cons__title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.pros-cons__col--pros .pros-cons__title { color: var(--color-success); }
.pros-cons__col--cons .pros-cons__title { color: var(--color-error); }

.pros-cons__list li {
  font-size: .88rem;
  color: var(--color-text);
  padding: .3rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.pros-cons__col--pros .pros-cons__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pros-cons__col--cons .pros-cons__list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-error);
  font-weight: 700;
}

/* Post content */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.entry-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-border);
}

.entry-content h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }

.entry-content p { margin-bottom: 1.25rem; }

.entry-content ul, .entry-content ol {
  list-style: initial;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li { margin-bottom: .4rem; }

.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}

.entry-content table th {
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.entry-content table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.entry-content table tr:nth-child(even) { background: var(--color-bg-alt); }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.sidebar-widget__title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--color-border);
}

.sidebar-widget--cta {
  background: linear-gradient(135deg, #FFF7ED, #FFF);
  border: 2px solid var(--color-cta);
}

.sidebar-widget--cta .sidebar-widget__title { color: var(--color-cta); border-color: rgba(249,115,22,.2); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.footer-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.footer-logo__text span { color: var(--color-primary-light); }

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-col__title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

/* Newsletter */
.footer-newsletter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.footer-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* Links do rodapé: quebram títulos longos em vez de estourar a largura */
.footer-links a { overflow-wrap: anywhere; }

.footer-newsletter__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

.footer-newsletter__subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: .5rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: .7rem 1.25rem;
  font-size: .9rem;
  color: #fff;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--color-primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.footer-disclaimer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

/* =============================================
   ADSENSE PLACEHOLDERS
   ============================================= */
.ad-unit {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 1.5rem 0;
}

.ad-unit--banner { height: 90px; }
.ad-unit--rectangle { height: 250px; }
.ad-unit--leaderboard { height: 90px; max-width: 728px; margin: 0 auto 1.5rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --container-padding: 1rem; }

  .section { padding: 2.5rem 0; }

  /* ── Header mobile ── */
  .nav-toggle { display: flex; }

  .header-tagline { display: none; }

  .search-form input { width: 130px; }

  /* Category nav vira drawer lateral (off-canvas) no mobile */
  .header-catnav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    z-index: 150;
    background: var(--header-bg);
    box-shadow: 0 0 40px rgba(0,0,0,.5);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-catnav.open { transform: translateX(0); }

  /* Cabeçalho do drawer (MENU + fechar) */
  .header-catnav__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    background: var(--header-bg);
    z-index: 1;
  }

  .header-catnav__drawer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--header-muted);
  }

  /* O container interno não limita largura dentro do drawer */
  .header-catnav > .container { padding: 0; max-width: none; }

  /* Menu vertical no mobile */
  .catnav-menu,
  .catNav-menu {
    flex-direction: column;
    padding: .25rem 0;
  }

  .catnav-menu > li > a,
  .catNav-menu > li > a {
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--header-border);
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }

  .catnav-menu > li > a:hover,
  .catNav-menu > li > a:hover,
  .catnav-menu > .current-menu-item > a,
  .catNav-menu > li.current > a {
    border-left-color: var(--color-cta);
    border-bottom-color: var(--header-border);
    background: rgba(249,115,22,.08);
  }

  /* Submenus abertos inline no mobile */
  .catnav-menu .sub-menu {
    position: static;
    display: block;
    border: none;
    border-top: none;
    background: rgba(0,0,0,.2);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .catnav-menu .sub-menu li a {
    padding-left: 2.25rem;
    border-bottom: 1px solid var(--header-border);
  }

  /* Site header position relative para o dropdown sair certo */
  .site-header { position: sticky; }

  /* ── Layout ── */
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .pros-cons { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  /* Newsletter colapsa em 1 coluna; form e input ocupam a largura toda */
  .footer-newsletter__inner { grid-template-columns: 1fr; gap: 1rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; min-width: 0; }

  .hero { padding: 3rem 0 3rem; }
  .hero::after { display: none; }
  .post-header { padding: 2rem 0 3rem; }
  .post-header::after { display: none; }
}

@media (max-width: 480px) {
  .ranking-card { flex-wrap: wrap; }
  .ranking-card__actions { width: 100%; }
  .ranking-card__actions .btn--cta { width: 100%; justify-content: center; }
  .affiliate-box .btn--cta { padding: .85rem 1rem; }
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37,99,235,.05);
}

.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Hamburger is-active animation ── */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* =============================================
   WORDPRESS REQUIRED CLASSES
   ============================================= */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--color-text-muted); text-align: center; margin-top: .4rem; }
.sticky { border-left: 4px solid var(--color-primary); padding-left: 1rem; }
.bypostauthor { background: rgba(37,99,235,.02); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1rem auto; display: block; }
.screen-reader-text { @extend .sr-only; }

/* =============================================
   DARK MODE
   data-theme="dark" on <html>
   ============================================= */
[data-theme="dark"] {
  --color-bg:          #0D1117;
  --color-bg-alt:      #161B22;
  --color-bg-dark:     #21262D;
  --color-text:        #F0F6FC;
  --color-text-muted:  #8B949E;
  --color-text-light:  #6E7681;
  --color-border:      #30363D;
  --color-primary:     #58A6FF;
  --color-primary-dark:#1F6FEB;
  --color-primary-light:#79C0FF;
  --color-cta:         #F97316;
  --color-cta-dark:    #EA6B0A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
}

/* Dark mode overrides for specific components */
[data-theme="dark"] .review-card,
[data-theme="dark"] .ranking-card,
[data-theme="dark"] .compare-card,
[data-theme="dark"] .sidebar-widget {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .score-box,
[data-theme="dark"] .pros-cons__col {
  background: var(--color-bg-dark);
  border-color: var(--color-border);
}

[data-theme="dark"] .entry-content blockquote {
  background: var(--color-bg-alt);
  border-left-color: var(--color-primary);
}

[data-theme="dark"] .entry-content table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .affiliate-box {
  background: linear-gradient(135deg, #1A1200, #0D1117);
  border-color: var(--color-cta);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0D1117 0%, #1E40AF 60%, #4C1D95 100%);
}

[data-theme="dark"] .post-header {
  background: linear-gradient(135deg, #0D1117 0%, #1E3A8A 100%);
}

[data-theme="dark"] .ad-unit {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

/* Smooth transition on theme switch */
body, .review-card, .ranking-card, .sidebar-widget,
.score-box, .affiliate-box, .site-footer,
.header-brand, .header-catnav {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* Dark mode toggle button — destaque laranja p/ ficar bem visível */
.theme-toggle {
  flex-shrink: 0;
  background: rgba(249,115,22,.16);
  border: 1.5px solid rgba(249,115,22,.6);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: all var(--transition);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.theme-toggle:hover {
  background: var(--color-cta);
  border-color: var(--color-cta);
  transform: translateY(-1px) rotate(-12deg);
  box-shadow: 0 4px 16px rgba(249,115,22,.5);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249,115,22,.4);
}

/* =============================================
   ARCHIVE PAGE
   ============================================= */

/* Archive header */
.archive-header {
  background: var(--gradient-hero);
  padding: 3rem 0 5rem;
  position: relative;
}

.archive-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
}

.archive-header__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.archive-header__icon {
  display: inline-block;
  margin-right: .5rem;
}

.archive-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin: .75rem 0 .5rem;
}

.archive-header__desc {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: .75rem;
}

.archive-header__meta {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Filter bar */
.archive-filters {
  background: var(--color-bg);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 116px; /* below sticky header */
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

[data-theme="dark"] .archive-filters {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.archive-filters__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.filter-group--count { margin-left: auto; }

.filter-group__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.filter-results-count {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.filter-results-count #visible-count {
  color: var(--color-primary);
  font-size: 1rem;
}

/* Archive card buy button */
.archive-card__buy {
  margin-top: .75rem;
  width: 100%;
  justify-content: center;
}

/* =============================================
   COMPARISON TABLE  [dg_compare]
   ============================================= */
.dg-compare {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .dg-compare {
  border-color: var(--color-border);
}

.dg-compare__header,
.dg-compare__row {
  display: grid;
  grid-template-columns: 180px repeat(var(--compare-cols, 3), 1fr);
  border-bottom: 1px solid var(--color-border);
}

.dg-compare__row:last-child { border-bottom: none; }

.dg-compare__header {
  background: var(--gradient-hero);
}

.dg-compare__label-col,
.dg-compare__product-col {
  padding: 1.25rem 1rem;
}

.dg-compare__product-col {
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.12);
}

.dg-compare__thumb {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto .75rem;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
}

.dg-compare__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dg-compare__product-name {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.dg-compare__product-name a { color: #fff; }
.dg-compare__product-name a:hover { color: rgba(255,255,255,.8); }

.dg-compare__overall-score {
  display: inline-flex;
  align-items: baseline;
  gap: .2rem;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: var(--radius-md);
  padding: .25rem .75rem;
  font-size: 1.4rem;
  font-weight: 900;
}

.dg-compare__overall-score small {
  font-size: .75rem;
  opacity: .75;
}

/* Section title rows */
.dg-compare__section-title {
  background: var(--color-bg-alt);
  padding: .6rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .dg-compare__section-title {
  background: var(--color-bg-dark);
}

/* Data rows */
.dg-compare__label,
.dg-compare__cell {
  padding: .85rem 1rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
}

.dg-compare__label {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: .85rem;
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
}

[data-theme="dark"] .dg-compare__label {
  background: var(--color-bg-dark);
}

.dg-compare__cell {
  border-left: 1px solid var(--color-border);
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: .35rem;
}

.dg-compare__row:nth-child(even) .dg-compare__cell {
  background: rgba(37,99,235,.02);
}

[data-theme="dark"] .dg-compare__row:nth-child(even) .dg-compare__cell {
  background: rgba(255,255,255,.02);
}

/* Score pills */
.dg-compare__score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.dg-compare__score-pill--high { background: var(--color-success); }
.dg-compare__score-pill--mid  { background: var(--color-warning); }
.dg-compare__score-pill--low  { background: var(--color-error); }

/* Mini bars */
.dg-compare__bar-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dg-compare__bar-wrap span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.dg-compare__bar {
  flex: 1;
  height: 8px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  min-width: 4px;
}

/* Price */
.dg-compare__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Pros list */
.dg-compare__pros {
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0;
}

.dg-compare__pros li {
  font-size: .83rem;
  color: var(--color-text);
  padding: .2rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.dg-compare__pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* CTA row */
.dg-compare__row--cta .dg-compare__cell {
  gap: .5rem;
  padding: 1.25rem 1rem;
  background: var(--color-bg-alt);
}

[data-theme="dark"] .dg-compare__row--cta .dg-compare__cell {
  background: var(--color-bg-dark);
}

.dg-compare__read-more {
  font-size: .8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* N/A placeholder */
.dg-compare__na {
  color: var(--color-text-light);
  font-size: .85rem;
}

/* Error message */
.dg-compare-error {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  font-size: .9rem;
}

/* Responsive compare table */
@media (max-width: 768px) {
  .dg-compare__header,
  .dg-compare__row {
    grid-template-columns: 120px repeat(var(--compare-cols, 3), 1fr);
  }

  .dg-compare__label,
  .dg-compare__cell,
  .dg-compare__label-col,
  .dg-compare__product-col { padding: .65rem .5rem; font-size: .8rem; }

  .dg-compare__thumb { width: 60px; height: 60px; }
  .dg-compare__overall-score { font-size: 1.1rem; }
  .dg-compare__score-pill { width: 38px; height: 38px; font-size: .95rem; }
}

/* =============================================
   PRODUCT INDEX (auto "In This Ranking" box)
   ============================================= */
.dg-index {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem 1.25rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.dg-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--color-border);
}

.dg-index__head-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.dg-index__count {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-cta);
  background: rgba(249,115,22,.1);
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
}

.dg-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.dg-index__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem .5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.dg-index__item:hover { background: rgba(37,99,235,.05); }

.dg-index__jump {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}

.dg-index__jump:hover .dg-index__name { color: var(--color-primary); }

.dg-index__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-index__thumb img { width: 100%; height: 100%; object-fit: contain; }
.dg-index__thumb--empty { background: var(--color-bg-dark); }

.dg-index__name {
  min-width: 0;
  line-height: 1.35;
  transition: color var(--transition);
}

.dg-index__cta {
  flex-shrink: 0;
  background: var(--gradient-cta);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(249,115,22,.25);
  transition: filter var(--transition), transform var(--transition);
}

.dg-index__cta:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }

/* Offset jump targets so the sticky header doesn't cover the heading */
.entry-content h2[id^="dg-product-"] {
  scroll-margin-top: 130px;
}

[data-theme="dark"] .dg-index { background: var(--color-bg-alt); border-color: var(--color-border); }

@media (max-width: 480px) {
  .dg-index { padding: .85rem 1rem 1rem; }
  .dg-index__thumb { width: 40px; height: 40px; }
  .dg-index__jump { font-size: .88rem; gap: .6rem; }
  .dg-index__cta { padding: .35rem .7rem; font-size: .74rem; }
  .entry-content h2[id^="dg-product-"] { scroll-margin-top: 70px; }
}

/* =============================================
   MOBILE OVERFLOW FIXES
   ============================================= */

/* Tables scroll horizontally on small screens instead of breaking layout */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Post navigation goes single column on small phones */
@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr !important;
  }
  .post-nav > div:last-child {
    text-align: left !important;
  }
}

/* On small phones, hide header search to prevent overflow
   (logo + search + dark-mode toggle + hamburger overflows < 480px) */
@media (max-width: 480px) {
  .header-search {
    display: none;
  }
}

/* Archive filters sticky offset — on mobile the catnav is hidden, header is shorter */
@media (max-width: 768px) {
  .archive-filters {
    top: 64px;
  }
}

/* =============================================
   MULTI-STORE PRICE COMPARISON WIDGET
   ============================================= */
.price-compare {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .price-compare {
  background: var(--color-bg-alt);
}

.price-compare__title {
  background: var(--color-bg-alt);
  padding: .85rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .price-compare__title {
  background: var(--color-bg-dark);
}

.price-compare__stores {
  display: flex;
  flex-direction: column;
}

.price-compare__store {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.price-compare__store:last-child { border-bottom: none; }

.price-compare__store:hover { background: var(--color-bg-alt); }

[data-theme="dark"] .price-compare__store:hover { background: var(--color-bg-dark); }

.price-compare__store--best {
  background: linear-gradient(90deg, rgba(16,185,129,.06) 0%, transparent 100%);
  border-left: 3px solid var(--color-success);
}

.price-compare__store-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
}

.price-compare__best-badge {
  background: var(--color-success);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.price-compare__store-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.price-compare__disclaimer {
  padding: .6rem 1.25rem;
  font-size: .72rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin: 0;
}

[data-theme="dark"] .price-compare__disclaimer {
  background: var(--color-bg-dark);
}

@media (max-width: 480px) {
  .price-compare__store { flex-wrap: wrap; gap: .6rem; }
  .price-compare__store .btn--cta { width: 100%; justify-content: center; }
}
