/*
Theme Name: Videogameria
Theme URI: https://videogameria.com.br
Author: Videogameria
Author URI: https://videogameria.com.br
Description: Tema editorial de tecnologia (notícias, reviews, fichas técnicas e ofertas) totalmente personalizável via Customizer, com áreas de widgets em toda a home, suporte a Block Editor (FSE-friendly) e integração com o plugin Videogameria Toolkit (fichas técnicas + melhores ofertas).
Version: 3.15.2
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videogameria
Tags: news, magazine, blog, two-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style
*/

/* Reset minimal */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--eg-font-body,'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif);background:hsl(var(--eg-bg));color:hsl(var(--eg-fg));line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:hsl(var(--eg-primary-text));text-decoration:none}
a:hover{opacity:.85}
h1,h2,h3,h4{font-family:var(--eg-font-display,'Plus Jakarta Sans',Inter,sans-serif);font-weight:800;line-height:1.15;margin:0 0 .5em}

/* Tokens (HSL — sobrescritos pelo Customizer) */
:root{
  --eg-bg:0 0% 100%;
  --eg-fg:222 47% 11%;
  --eg-muted:215 16% 47%;
  --eg-card:0 0% 100%;
  --eg-border:214 32% 91%;
  --eg-primary:82 88% 49%;
  --eg-primary-text:82 88% 25%;
  --eg-primary-fg:240 1% 30%;
  --eg-accent:210 40% 96%;
  --eg-radius:14px;
  --eg-container:1280px;
  --eg-shadow:0 1px 2px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.06);
}
[data-theme="dark"]{
  --eg-bg:222 47% 8%;
  --eg-fg:210 40% 98%;
  --eg-muted:215 20% 65%;
  --eg-card:222 47% 11%;
  --eg-border:217 33% 20%;
  --eg-accent:217 33% 17%;
  --eg-primary-text:82 88% 49%;
}

/* Layout */
.eg-container{max-width:var(--eg-container);margin:0 auto;padding:0 1rem}
.eg-grid{display:grid;gap:1.25rem}
@media(min-width:768px){.eg-grid-2{grid-template-columns:repeat(2,1fr)}.eg-grid-3{grid-template-columns:repeat(3,1fr)}.eg-grid-4{grid-template-columns:repeat(4,1fr)}}

/* Header */
.eg-header{position:sticky;top:0;z-index:50;background:hsl(var(--eg-bg)/.85);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid hsl(var(--eg-border))}
.eg-header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:1rem}
.eg-nav{display:none;gap:.25rem;align-items:center}
@media(min-width:900px){.eg-nav{display:flex}}
.eg-nav a{color:hsl(var(--eg-fg));padding:.5rem .75rem;border-radius:8px;font-size:.9rem;font-weight:600}
.eg-nav a:hover{background:hsl(var(--eg-accent))}
.eg-actions{display:flex;align-items:center;gap:.25rem}
.eg-iconbtn{background:transparent;border:0;color:hsl(var(--eg-fg));padding:.5rem;border-radius:10px;cursor:pointer}
.eg-iconbtn:hover{background:hsl(var(--eg-accent))}

/* Mobile menu */
.eg-mobile{display:none;border-top:1px solid hsl(var(--eg-border));padding:.75rem 0}
.eg-mobile.open{display:block}
.eg-mobile a{display:block;padding:.6rem .25rem;color:hsl(var(--eg-fg));font-weight:600}

/* Cards */
.eg-card{background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);overflow:hidden;transition:transform .25s,box-shadow .25s}
.eg-card > a{display:block;aspect-ratio:5/3;overflow:hidden;background:hsl(var(--eg-accent))}
.eg-card img,.eg-card .wp-post-image{display:block;width:100%;height:100%;object-fit:cover}
.eg-card:hover{transform:translateY(-2px);box-shadow:var(--eg-shadow)}
/* Cards de vídeo do YouTube (seção home, modo API) */
.eg-card--video .eg-video-thumb{position:relative;display:block;aspect-ratio:5/3;overflow:hidden;background:hsl(var(--eg-accent))}
.eg-card--video .eg-video-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eg-card--video .eg-video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:54px;height:54px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.7);color:#fff;border-radius:50%;font-size:1.2rem;padding-left:4px;transition:background .2s ease,transform .2s ease;pointer-events:none}
.eg-card--video:hover .eg-video-play{background:hsl(var(--eg-primary));transform:translate(-50%,-50%) scale(1.08)}

/* Bloco "Veja em vídeo" (cross-promo: fim do artigo + sidebar) */
.eg-video-promo{margin:2rem 0;padding:1.1rem;background:hsl(var(--eg-accent));border:1px solid hsl(var(--eg-border));border-radius:12px}
.eg-video-promo__heading{font-family:var(--eg-font-display);font-size:1.1rem;font-weight:800;margin:0 0 .85rem;color:hsl(var(--eg-fg))}
.eg-video-promo__main{display:block;text-decoration:none;color:inherit}
.eg-video-promo__thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:hsl(var(--eg-border))}
.eg-video-promo__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eg-video-promo__play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.7);color:#fff;border-radius:50%;font-size:1.15rem;padding-left:4px;transition:background .2s ease,transform .2s ease;pointer-events:none}
.eg-video-promo__main:hover .eg-video-promo__play{background:hsl(var(--eg-primary));transform:translate(-50%,-50%) scale(1.08)}
.eg-video-promo__title{display:block;margin:.7rem 0 .25rem;font-weight:700;font-size:.98rem;line-height:1.35;color:hsl(var(--eg-fg))}
.eg-video-promo__cta{display:inline-block;margin-top:.35rem;font-weight:700;font-size:.9rem;color:hsl(var(--eg-primary-text))}
.eg-video-promo__others{margin-top:.9rem;padding-top:.9rem;border-top:1px solid hsl(var(--eg-border))}
.eg-video-promo__others-label{display:block;font-size:.82rem;font-weight:600;color:hsl(var(--eg-muted));margin-bottom:.5rem}
.eg-video-promo__others ul{display:flex;gap:.5rem;list-style:none;margin:0;padding:0}
.eg-video-promo__others li{flex:0 0 auto}
.eg-video-promo__others a{position:relative;display:block;width:88px;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:hsl(var(--eg-border))}
.eg-video-promo__others img{width:100%;height:100%;object-fit:cover;display:block}
.eg-video-promo__others-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:26px;height:26px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);color:#fff;border-radius:50%;font-size:.7rem;padding-left:2px;pointer-events:none}
/* Variante sidebar: mais compacta */
.eg-video-promo--sidebar{margin:0 0 1.25rem}
.eg-video-promo--sidebar .eg-video-promo__heading{font-size:1rem}
/* "Atualizado em" na meta do post/ficha */
.eg-updated{color:hsl(var(--eg-primary-text));font-weight:600}
.eg-updated__reason{color:hsl(var(--eg-muted));font-weight:400}

/* Histórico de atualizações (changelog no topo do artigo) */
.eg-updates{margin:0 0 1.75rem;border-left:3px solid hsl(var(--eg-primary));background:hsl(var(--eg-accent));border-radius:0 8px 8px 0;overflow:hidden}
.eg-update{padding:.9rem 1.1rem}
.eg-update + .eg-update{border-top:1px solid hsl(var(--eg-border))}
.eg-update__head{font-size:.88rem;color:hsl(var(--eg-muted));margin-bottom:.35rem}
.eg-update__label{color:hsl(var(--eg-primary-text));text-transform:uppercase;letter-spacing:.03em;font-size:.82rem}
.eg-update__author{font-weight:600;color:hsl(var(--eg-fg))}
.eg-update__time{font-variant-numeric:tabular-nums}
.eg-update__text{font-size:.96rem;line-height:1.6;color:hsl(var(--eg-fg))}
.eg-update__text p{margin:0 0 .5rem}
.eg-update__text p:last-child{margin-bottom:0}
.eg-card-body{padding:1rem}
.eg-badge{display:inline-block;font-size:.7rem;font-weight:700;padding:.2rem .5rem;border-radius:999px;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg));text-transform:uppercase;letter-spacing:.04em}
.eg-cat{font-size:.75rem;font-weight:700;color:hsl(var(--eg-primary-text));text-transform:uppercase;letter-spacing:.04em}
.eg-title{font-size:1.05rem;margin:.35rem 0 .35rem;color:hsl(var(--eg-fg))}
.eg-title a{color:hsl(var(--eg-primary-text));text-decoration:none}
.eg-title a:hover{opacity:.85}
.eg-excerpt{color:hsl(var(--eg-muted));font-size:.9rem}
.eg-meta{display:flex;gap:.75rem;color:hsl(var(--eg-muted));font-size:.78rem;margin-top:.5rem}

/* Hero slider */
.eg-hero{position:relative;border-radius:var(--eg-radius);overflow:hidden;height:clamp(280px,42vw,460px)}
.eg-hero img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
.eg-hero-caption{position:absolute;inset:0;z-index:2;background:linear-gradient(to top,rgba(0,0,0,.75),transparent 60%);display:flex;flex-direction:column;justify-content:flex-end;padding:1.5rem 2rem;color:#fff;pointer-events:none}
.eg-hero-caption a{pointer-events:auto}
.eg-hero-caption h2{color:#fff;font-size:clamp(1.2rem,2.5vw,2rem);max-width:60ch}
.eg-hero-link{display:inline-flex;align-items:center;gap:.4rem;background:hsl(var(--eg-primary-text));color:hsl(var(--eg-primary-fg));padding:.7rem 1.1rem;min-height:44px;border-radius:10px;font-weight:700;margin-top:.75rem;align-self:flex-start}
.eg-dots{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem;z-index:2}
.eg-dots button{width:24px;height:24px;border-radius:999px;border:0;background:rgba(255,255,255,.5);background-clip:content-box;padding:8px;cursor:pointer;box-sizing:border-box}
.eg-dots button.active{background:#fff;background-clip:content-box;padding:8px 4px;width:30px}

/* Sections */
.eg-section{padding:2.5rem 0}
.eg-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:1.25rem;gap:1rem}
.eg-section-head h2{font-size:1.5rem;margin:0;color:hsl(var(--eg-fg))}
.eg-section-head a{font-size:.85rem;font-weight:600}

/* Score pill */
.eg-score{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .55rem;border-radius:10px;background:hsl(var(--eg-primary)/.12);color:hsl(var(--eg-primary));font-weight:800}

/* Partners */
.eg-partners{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2rem}
.eg-partners a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,.09);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  opacity: .82;
}
[data-theme="dark"] .eg-partners a {
  background: #252836;
  border-color: rgba(255,255,255,.08);
}
.eg-partners a:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.eg-partners img {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Offers */
.eg-offer{display:flex;flex-direction:column}
.eg-offer-img{aspect-ratio:1/1;background:hsl(var(--eg-accent));display:flex;align-items:center;justify-content:center}
.eg-offer-img img{max-height:80%;object-fit:contain}
.eg-offer-price{font-size:1.25rem;font-weight:800;color:hsl(var(--eg-primary))}
.eg-offer-old{text-decoration:line-through;color:hsl(var(--eg-muted));font-size:.85rem;margin-left:.4rem}
.eg-offer-store{font-size:.78rem;color:hsl(var(--eg-muted))}
.eg-offer-link{margin-top:.75rem;display:inline-block;text-align:center;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg));padding:.55rem 1rem;border-radius:10px;font-weight:700}

/* Footer */
.eg-footer{margin-top:3rem;border-top:1px solid hsl(var(--eg-border));background:hsl(var(--eg-accent));padding:2.5rem 0 1.5rem;color:hsl(var(--eg-fg))}
.eg-footer-grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:768px){.eg-footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
/* Coluna vazia em produção: oculta sem deixar buraco no grid */
.eg-footer-col.is-empty{display:none}
/* Bloco de contato: e-mail e links extras na coluna 4 */
.eg-footer-contact{font-size:.9rem;line-height:1.6;color:hsl(var(--eg-fg))}
.eg-footer-contact p{margin:0 0 .5rem;opacity:.85}
.eg-footer-contact a{color:hsl(var(--eg-fg));opacity:.85;text-decoration:underline;text-underline-offset:2px}
.eg-footer-contact a:hover{color:hsl(var(--eg-primary));opacity:1}
.eg-footer h4{font-size:.95rem;margin-bottom:.75rem}
.eg-footer ul{list-style:none;padding:0;margin:0}
.eg-footer ul li{margin:.35rem 0}
.eg-footer a{color:hsl(var(--eg-fg));opacity:.8}
.eg-copy{margin-top:1.5rem;padding-top:1rem;border-top:1px solid hsl(var(--eg-border));font-size:.8rem;color:hsl(215 16% 38%);text-align:center}

/* Single article */
.eg-article{max-width:760px;margin:2rem auto;padding:0 1rem}
.eg-article h1{font-size:clamp(1.6rem,3vw,2.4rem);margin-bottom:.5rem}
.eg-article .eg-meta{margin-bottom:1.5rem}
.eg-article-content{font-size:1.05rem;line-height:1.75}
.eg-article-content p{margin:0 0 1em}

/* Specs / Review pages */
.eg-prose{line-height:1.7}
.eg-pros-cons{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:640px){.eg-pros-cons{grid-template-columns:1fr 1fr}}
.eg-box{padding:1rem;border-radius:var(--eg-radius);border:1px solid hsl(var(--eg-border))}
.eg-box-pros{background:hsl(142 71% 45% / .08)}
.eg-box-cons{background:hsl(0 84% 60% / .08)}

/* Spec sheet table */
.eg-spec-group{margin-bottom:1.5rem}
.eg-spec-group h3{font-size:1rem;margin-bottom:.5rem;color:hsl(var(--eg-primary))}
.eg-spec-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px dashed hsl(var(--eg-border));font-size:.9rem}
.eg-spec-row span:first-child{color:hsl(var(--eg-muted))}
.eg-spec-row span:last-child{font-weight:600;text-align:right}

/* Stores list */
.eg-stores{display:grid;gap:.75rem}
.eg-store{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;border:1px solid hsl(var(--eg-border));border-radius:12px;background:hsl(var(--eg-card))}
.eg-store-price{font-weight:800;color:hsl(var(--eg-primary))}

/* Disclosure */
.eg-disclosure{font-size:.78rem;color:hsl(var(--eg-muted));padding:.75rem 1rem;background:hsl(var(--eg-accent));border-radius:10px;margin:1rem 0}

/* Buttons */
.eg-btn{display:inline-flex;align-items:center;gap:.4rem;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg));padding:.6rem 1.1rem;border-radius:10px;font-weight:700;border:0;cursor:pointer}
.eg-btn-outline{background:transparent;color:hsl(var(--eg-primary-text));border:1px solid hsl(var(--eg-primary-text))}

/* Utilities */
.eg-muted{color:hsl(var(--eg-muted))}
.eg-center{text-align:center}
.eg-mt-2{margin-top:1rem}


/* Força qualquer logo (PNG/SVG/JPG, mesmo gigante) a caber no espaço reservado */

/* Áreas de widgets na home (Fichas / Ofertas) */
.eg-widget-area{align-items:stretch}
.eg-widget-area .widget{margin:0}
.eg-section-sub{color:hsl(var(--eg-muted));font-size:.9rem;margin:.25rem 0 0}
.eg-custom-html{width:100%}
.eg-custom-html img{border-radius:var(--eg-radius)}

/* ===== v2.2.0 additions ===== */

/* Hero — descrição (substitui badge) */
.eg-hero-text{color:#fff;opacity:.92;font-size:clamp(.9rem,1.3vw,1.05rem);max-width:70ch;margin:.4rem 0 .25rem;line-height:1.45}

/* Áreas de widget como espaço único (Fichas / Ofertas em modo widget) */
.eg-widget-area.eg-widget-single{display:block}
.eg-widget-area.eg-widget-single .eg-widget-block{display:block;width:100%;margin:0 0 1rem}
.eg-widget-area.eg-widget-single .eg-widget-block:last-child{margin-bottom:0}
.eg-widget-area.eg-widget-single img{width:100%;height:auto;border-radius:var(--eg-radius)}
.eg-custom-html{width:100%}

/* Friends — Nossos Parceiros (amigos) */
.eg-section-sub{color:hsl(var(--eg-muted));font-size:.9rem;margin:.25rem 0 0}
.eg-friend{overflow:hidden}
.eg-friend-link{display:block;color:inherit}
.eg-friend-link:hover{opacity:1}
.eg-friend-img{aspect-ratio:16/9;background:hsl(var(--eg-accent));overflow:hidden}
.eg-friend-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.eg-friend:hover .eg-friend-img img{transform:scale(1.04)}
.eg-friend-placeholder{display:flex;align-items:center;justify-content:center}
.eg-friend-placeholder span{font-family:var(--eg-font-display);font-size:3rem;font-weight:900;color:hsl(var(--eg-primary))}
.eg-friend-link{display:inline-block;margin-top:.5rem;font-weight:700;color:hsl(var(--eg-primary))}

/* ===== v2.4.0 — Acessibilidade, performance & SEO ===== */

/* Focus visible — navegação por teclado */
:focus-visible{outline:2px solid hsl(var(--eg-primary));outline-offset:3px;border-radius:4px}
button:focus-visible,a:focus-visible{outline:2px solid hsl(var(--eg-primary));outline-offset:3px}

/* Skip link (navegação por teclado) */
.eg-skip-link{position:absolute;top:-100%;left:1rem;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg));padding:.55rem 1rem;border-radius:0 0 10px 10px;font-weight:700;z-index:999;transition:top .15s}
.eg-skip-link:focus{top:0}

/* Article: container correto no single */
.eg-article{max-width:760px;margin:2rem auto;padding:0 1rem}

/* Paginação */
.eg-pagination{margin:2rem 0;text-align:center}
.eg-pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.eg-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.2rem;height:2.2rem;padding:0 .6rem;border-radius:8px;border:1px solid hsl(var(--eg-border));color:hsl(var(--eg-fg));font-weight:600;font-size:.9rem}
.eg-pagination .page-numbers.current{background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg));border-color:transparent}
.eg-pagination .page-numbers:hover:not(.current){background:hsl(var(--eg-accent))}

/* Archive header */
.eg-archive-header{margin-bottom:1.5rem}
.eg-archive-header h1{font-size:clamp(1.4rem,3vw,2rem);margin-bottom:.25rem;color:hsl(var(--eg-primary))}
.eg-archive-header h1 span{color:inherit}

/* Searchform acessível */
.eg-searchform label{display:block;margin-bottom:.35rem;font-weight:600}

/* Hero slider — transição suave */
.eg-slide{animation:eg-hero-fade .35s ease}
@keyframes eg-hero-fade{from{opacity:0}to{opacity:1}}

/* Logo responsivo no footer */

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  .eg-card,.eg-friend-img img,.eg-slide{transition:none;animation:none}
  .eg-hero-link,.eg-btn{transition:none}
}

/* Alto contraste do SO (Windows High Contrast / forced-colors).
   Garante que bordas, foco e botões continuem visíveis quando o usuário
   força um esquema de cores do sistema — sem isso, elementos que dependem
   só de background/cor custom podem desaparecer. */
@media (forced-colors: active){
  /* Mantém o contorno de foco visível com a cor do sistema. */
  a:focus-visible,button:focus-visible,input:focus-visible,
  select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
    outline:2px solid CanvasText;
    outline-offset:2px;
  }
  /* Botões e cards: borda explícita para não sumirem. */
  .eg-btn,.eg-card,.eg-ficha-card,.eg-ficha__store,
  .eg-compare-tray,.eg-nav-list .eg-dropdown,
  .eg-ficha-card__cta--buy,.eg-store-btn{
    border:1px solid CanvasText;
  }
  /* Garante que ícones SVG decorativos herdem a cor do texto do sistema. */
  svg{forced-color-adjust:auto}
  /* Imagens de produto/logo não devem ser invertidas pelo modo. */
  .eg-ficha-card__thumb img,.eg-brand-card__logo img,
  .eg-brandtop__logo img,.eg-tax-card__thumb img{
    forced-color-adjust:none;
  }
}

/* Prose links e listas */
.eg-prose a{text-decoration:underline;text-underline-offset:2px}
.eg-prose ul,.eg-prose ol{padding-left:1.5rem;margin:0 0 1em}
.eg-prose li{margin:.3rem 0}
.eg-prose h2,.eg-prose h3,.eg-prose h4{margin-top:1.75em}
.eg-prose blockquote{border-left:3px solid hsl(var(--eg-primary));padding-left:1rem;margin:1.5em 0;color:hsl(var(--eg-muted));font-style:italic}
.eg-prose img{border-radius:var(--eg-radius)}

/* ================================================================
   v2.4.0 — Dropdown nav, sidebar layout, logo, social SVG icons
   ================================================================ */

/* ── Nav: altura da barra ────────────────────────────────────────── */
.eg-header-inner { height: 72px; }   /* ligeiramente mais alto */

/* ── Nav: lista raiz ─────────────────────────────────────────────── */
.eg-nav { position: relative; }
.eg-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
}
.eg-nav-list > li { position: relative; }

/* links de primeiro nível */
.eg-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: hsl(var(--eg-fg));
  padding: .5rem .8rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.eg-nav-list > li > a:hover,
.eg-nav-list > li:focus-within > a {
  background: hsl(var(--eg-accent));
  opacity: 1;
}

/* seta do dropdown */
.eg-dropdown-arrow { display: inline-flex; align-items: center; opacity: .6; transition: transform .2s; }
.eg-nav-list > li:hover .eg-dropdown-arrow,
.eg-nav-list > li:focus-within .eg-dropdown-arrow { transform: rotate(180deg); }

/* ── Dropdown ────────────────────────────────────────────────────── */
.eg-dropdown {
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 200px;
  background: hsl(var(--eg-card));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 200;
  /* oculto por padrão: opacity + pointer-events para melhor UX */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
}

/* abre ao hover no li pai ou ao receber foco dentro */
.eg-nav-list > li:hover > .eg-dropdown,
.eg-nav-list > li:focus-within > .eg-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.eg-dropdown li a {
  display: block;
  padding: .55rem 1.1rem;
  color: hsl(var(--eg-fg));
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .12s;
}
.eg-dropdown li a:hover {
  background: hsl(var(--eg-accent));
  opacity: 1;
}

/* ── Layout com sidebar ──────────────────────────────────────────── */
.eg-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .eg-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

/* O sidebar fica "colado" no topo ao rolar */
.eg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .eg-sidebar {
    position: sticky;
    top: calc(72px + 1rem); /* altura do header + folga */
  }
}

/* Widget cards dentro do sidebar */
.eg-sidebar .widget {
  background: hsl(var(--eg-card));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  padding: 1rem;
}
.eg-sidebar .widget-title {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid hsl(var(--eg-primary) / .25);
  color: hsl(var(--eg-fg));
}
.eg-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eg-sidebar .widget ul li {
  padding: .35rem 0;
  border-bottom: 1px solid hsl(var(--eg-border));
  font-size: .875rem;
}
.eg-sidebar .widget ul li:last-child { border-bottom: none; }
.eg-sidebar .widget a { color: hsl(var(--eg-fg)); }
.eg-sidebar .widget a:hover { color: hsl(var(--eg-primary)); opacity: 1; }

/* ───────────────────────────────────────────────────────────────────
 * Widgets custom da sidebar (EG_Widget_*)
 * Adicionados na v3.4.13. Padrão visual coerente com o card-sidebar.
 * ─────────────────────────────────────────────────────────────────── */

/* 1) Redes Sociais — botões redondos lado a lado */
.eg-widget-social{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:.55rem;
    margin-top:.25rem;
}
.eg-widget-social__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:hsl(var(--eg-bg));
    border:1px solid hsl(var(--eg-border));
    color:hsl(var(--eg-fg));
    transition:background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.eg-widget-social__btn:hover{
    background:hsl(var(--eg-primary));
    border-color:hsl(var(--eg-primary));
    color:#fff;
    transform:translateY(-2px);
}
.eg-widget-social__btn svg{ width:18px; height:18px; }
.eg-widget-social__btn--instagram:hover{ background:#E4405F; border-color:#E4405F; }
.eg-widget-social__btn--youtube:hover  { background:#FF0000; border-color:#FF0000; }
.eg-widget-social__btn--telegram:hover { background:#229ED9; border-color:#229ED9; }
.eg-widget-social__btn--twitter:hover  { background:#000;    border-color:#000;    }
.eg-widget-social__btn--bluesky:hover  { background:#0085FF; border-color:#0085FF; }
.eg-widget-social__btn--facebook:hover { background:#1877F2; border-color:#1877F2; }
.eg-widget-social__btn--tiktok:hover   { background:#000;    border-color:#000;    }

/* 2) Mais lidas — lista com thumb à esquerda */
.eg-widget-recent{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:.65rem;
}
.eg-widget-recent__item{
    padding:0 !important;
    border-bottom:1px solid hsl(var(--eg-border)) !important;
    padding-bottom:.65rem !important;
}
.eg-widget-recent__item:last-child{ border-bottom:none !important; padding-bottom:0 !important; }
.eg-widget-recent__link{
    display:flex;
    align-items:flex-start;
    gap:.6rem;
    text-decoration:none;
    color:inherit !important;
}
.eg-widget-recent__thumb{
    flex:0 0 56px;
    width:56px;
    height:56px;
    border-radius:6px;
    overflow:hidden;
    background:hsl(var(--eg-bg));
}
.eg-widget-recent__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.eg-widget-recent__body{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.eg-widget-recent__title{
    font-size:.82rem;
    font-weight:700;
    line-height:1.3;
    color:hsl(var(--eg-fg));
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.eg-widget-recent__link:hover .eg-widget-recent__title{ color:hsl(var(--eg-primary)); }
.eg-widget-recent__date{
    font-size:10px;
    color:hsl(var(--eg-muted));
    margin-top:3px;
    font-weight:500;
}

/* 3) Categorias em destaque — badges flex-wrap */
.eg-widget-cats{
    display:flex;
    flex-wrap:wrap;
    gap:.4rem;
}
.eg-widget-cats__badge{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.4rem .7rem;
    background:hsl(var(--eg-bg));
    border:1px solid hsl(var(--eg-border));
    border-radius:6px;
    font-size:.82rem;
    font-weight:600;
    color:hsl(var(--eg-fg));
    text-decoration:none;
    transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.eg-widget-cats__badge:hover{
    background:hsl(var(--eg-primary) / .12);
    border-color:hsl(var(--eg-primary));
    color:hsl(var(--eg-primary));
}
.eg-widget-cats__count{
    font-size:10px;
    font-weight:500;
    opacity:.7;
    background:hsl(var(--eg-border));
    padding:1px 6px;
    border-radius:10px;
}

/* 4) Newsletter — form com input + botão */
.eg-widget-newsletter__headline{
    margin:0 0 .75rem;
    font-size:.85rem;
    line-height:1.4;
    color:hsl(var(--eg-fg));
}
.eg-widget-newsletter__form{
    display:flex;
    flex-direction:column;
    gap:.5rem;
}
.eg-widget-newsletter__input{
    width:100%;
    padding:.55rem .75rem;
    border:1px solid hsl(var(--eg-border));
    border-radius:6px;
    background:hsl(var(--eg-bg));
    color:hsl(var(--eg-fg));
    font-size:.85rem;
    box-sizing:border-box;
}
.eg-widget-newsletter__input:focus{
    outline:2px solid hsl(var(--eg-primary));
    outline-offset:1px;
    border-color:hsl(var(--eg-primary));
}
.eg-widget-newsletter__btn{
    padding:.55rem 1rem;
    background:hsl(var(--eg-primary));
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:.85rem;
    font-weight:700;
    cursor:pointer;
    transition:opacity .15s ease, transform .15s ease;
}
.eg-widget-newsletter__btn:hover{
    opacity:.92;
    transform:translateY(-1px);
}
.eg-widget-newsletter__pending{
    margin:0;
    font-size:.85rem;
    font-style:italic;
    color:hsl(var(--eg-muted));
    padding:.65rem .75rem;
    background:hsl(var(--eg-bg));
    border:1px dashed hsl(var(--eg-border));
    border-radius:6px;
    text-align:center;
}

/* 5) Fichas técnicas em alta — lista APS-like compacta */
.eg-widget-fichas{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:.65rem;
}
.eg-widget-fichas__item{
    padding:0 !important;
    border-bottom:1px solid hsl(var(--eg-border)) !important;
    padding-bottom:.65rem !important;
}
.eg-widget-fichas__item:last-child{ border-bottom:none !important; padding-bottom:0 !important; }
.eg-widget-fichas__link{
    display:flex;
    align-items:center;
    gap:.65rem;
    text-decoration:none;
    color:inherit !important;
}
.eg-widget-fichas__thumb{
    flex:0 0 60px;
    width:60px;
    height:60px;
    border-radius:6px;
    overflow:hidden;
    background:hsl(var(--eg-bg));
    border:1px solid hsl(var(--eg-border));
    display:flex;
    align-items:center;
    justify-content:center;
}
.eg-widget-fichas__thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px;
    box-sizing:border-box;
}
.eg-widget-fichas__body{
    flex:1 1 auto;
    min-width:0;
}
.eg-widget-fichas__label{
    display:block;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:hsl(var(--eg-primary));
    margin-bottom:2px;
}
.eg-widget-fichas__title{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:.85rem;
    font-weight:700;
    line-height:1.3;
    color:hsl(var(--eg-fg));
}
.eg-widget-fichas__link:hover .eg-widget-fichas__title{ color:hsl(var(--eg-primary)); }

/* ───────────────────────────────────────────────────────────────────
 * Bloco "Fonte preferida no Google" (inc/google-source-block.php)
 * Renderizado via filtro the_content em singles editoriais.
 * ─────────────────────────────────────────────────────────────────── */
.eg-google-source{
    margin:2rem 0 1.5rem;
}
.eg-google-source__link{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:1.1rem 1.25rem;
    background:hsl(var(--eg-card));
    border:1px solid hsl(var(--eg-border));
    border-radius:14px;
    text-decoration:none !important;
    color:inherit !important;
    transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow:0 1px 3px hsl(0 0% 0% / .05);
}
.eg-google-source__link:hover{
    border-color:hsl(var(--eg-primary));
    transform:translateY(-1px);
    box-shadow:0 4px 12px hsl(var(--eg-primary) / .15);
}
.eg-google-source__logo{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    background:#fff;
    border-radius:50%;
    padding:5px;
    box-sizing:border-box;
}
.eg-google-source__logo svg{
    width:32px;
    height:32px;
}
.eg-google-source__text{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-width:0;
}
.eg-google-source__headline{
    font-size:.85rem;
    color:hsl(var(--eg-muted));
    line-height:1.3;
    margin-bottom:1px;
}
.eg-google-source__cta{
    font-size:1.05rem;
    font-weight:700;
    color:hsl(var(--eg-fg));
    line-height:1.3;
}
.eg-google-source__arrow{
    flex:0 0 auto;
    font-size:1.4rem;
    color:hsl(var(--eg-primary));
    font-weight:300;
    transition:transform .15s ease;
}
.eg-google-source__link:hover .eg-google-source__arrow{
    transform:translateX(3px);
}
@media(max-width:600px){
    .eg-google-source__link{
        padding:.9rem 1rem;
        gap:.75rem;
    }
    .eg-google-source__logo{ width:36px; height:36px; }
    .eg-google-source__logo svg{ width:26px; height:26px; }
    .eg-google-source__cta{ font-size:.95rem; }
    .eg-google-source__headline{ font-size:.78rem; }
}

/* ── Social SVG icons ────────────────────────────────────────────── */
.eg-social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}
.eg-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: hsl(var(--eg-accent));
  color: hsl(var(--eg-fg));
  transition: background .18s, color .18s, transform .18s;
  text-decoration: none;
}
.eg-social-btn svg { width: 17px; height: 17px; display: block; }
.eg-social-btn:hover { transform: translateY(-2px); opacity: 1; }

/* cores de marca no hover */
.eg-social-btn.eg-social-instagram:hover { background: #E1306C; color: #fff; }
.eg-social-btn.eg-social-youtube:hover   { background: #FF0000; color: #fff; }
.eg-social-btn.eg-social-telegram:hover  { background: #2CA5E0; color: #fff; }
.eg-social-btn.eg-social-twitter:hover   { background: #000;    color: #fff; }
.eg-social-btn.eg-social-bluesky:hover   { background: #0085FF; color: #fff; }
.eg-social-btn.eg-social-facebook:hover  { background: #1877F2; color: #fff; }
.eg-social-btn.eg-social-tiktok:hover    { background: #010101; color: #fff; }
.eg-social-btn.eg-social-linkedin:hover  { background: #0A66C2; color: #fff; }

/* Footer nav menu */
.eg-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eg-footer-menu li { margin: .35rem 0; }
.eg-footer-menu a  { color: hsl(var(--eg-fg)); opacity: .8; font-size: .9rem; }
.eg-footer-menu a:hover { opacity: 1; color: hsl(var(--eg-primary)); }

/* ================================================================
   v2.5.0 — Logo: header e footer (regra única, sem conflitos)
   ================================================================

   Estrutura gerada pelo tema:
   HEADER: <div class="eg-logo-wrap">
             <a class="custom-logo-link"><img class="custom-logo"></a>  ← com logo
             <a class="eg-logo-text-link"><span class="eg-logo-text">  ← sem logo
           </div>
   FOOTER: <a class="eg-footer-logo">
             <a class="custom-logo-link"><img class="custom-logo"></a>  ← com logo
             <span class="eg-logo-text">                                ← sem logo
           </a>
================================================================ */

/* ── Wrapper do logo no header ──────────────────────────────────── */
.eg-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;          /* não comprime quando o menu está cheio */
  max-height: var(--eg-logo-max-h, 40px);
  max-width:  var(--eg-logo-max-w, 180px);
  overflow: hidden;
}

/* O <a> gerado pelo WP (custom-logo-link) */
.eg-logo-wrap .custom-logo-link,
.eg-logo-wrap .eg-logo-text-link {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  max-height: inherit;
  max-width:  inherit;
  overflow: hidden;
}

/* A imagem do logo — contida pelo wrapper, nunca excede */
.eg-logo-wrap img,
.eg-logo-wrap .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--eg-logo-max-h, 40px);
  max-width:  var(--eg-logo-max-w, 180px);
  object-fit: contain;
}

/* Fallback textual */
.eg-logo-text {
  font-family: var(--eg-font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: hsl(var(--eg-fg));
  white-space: nowrap;
}
.eg-logo-text span { color: hsl(var(--eg-primary)); }

/* Mobile: reduz ainda mais */
@media (max-width: 640px) {
  .eg-logo-wrap {
    max-height: var(--eg-logo-max-h-mobile, 32px);
    max-width:  var(--eg-logo-max-w-mobile, 140px);
  }
  .eg-logo-wrap img,
  .eg-logo-wrap .custom-logo {
    max-height: var(--eg-logo-max-h-mobile, 32px);
    max-width:  var(--eg-logo-max-w-mobile, 140px);
  }
}

/* ── Logo no footer ─────────────────────────────────────────────── */
.eg-footer-logo-wrap {
  display: block;
  margin-bottom: .75rem;
  max-height: 40px;
  max-width: 180px;
  overflow: hidden;
  line-height: 0;          /* remove espaço extra abaixo da img */
}
/* O <a> emitido pelo WP (custom-logo-link) */
.eg-footer-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-height: 40px;
  max-width: 180px;
  overflow: hidden;
}
/* A imagem em si */
.eg-footer-logo-wrap img,
.eg-footer-logo-wrap .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 180px;
  object-fit: contain;
  opacity: .80;
  transition: opacity .2s;
}
.eg-footer-logo-wrap .custom-logo-link:hover img,
.eg-footer-logo-wrap .custom-logo-link:hover .custom-logo {
  opacity: 1;
}
/* Fallback textual */
.eg-footer-logo-wrap a {
  text-decoration: none;
}
/* Modo escuro: inverte logo para ficar legível */
[data-theme="dark"] .eg-footer-logo-wrap img,
[data-theme="dark"] .eg-footer-logo-wrap .custom-logo {
  filter: brightness(0) invert(1);
  opacity: .85;
}
[data-theme="dark"] .eg-footer-logo-wrap .custom-logo-link:hover img,
[data-theme="dark"] .eg-footer-logo-wrap .custom-logo-link:hover .custom-logo {
  opacity: 1;
}

.eg-footer-about {
  font-size: .875rem;
  margin: .5rem 0;
  max-width: 28ch;
}

/* ================================================================
   v3.1.3 — Breadcrumb, Reading Time, Author Box, Related Posts,
            TOC, Comments, 404, Dark mode system, Progress bar,
            Print styles
   ================================================================ */

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.eg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  color: hsl(var(--eg-muted));
  margin-bottom: .75rem;
}
.eg-breadcrumb a { color: hsl(var(--eg-muted)); text-decoration: none; }
.eg-breadcrumb a:hover { color: hsl(var(--eg-primary)); opacity: 1; }
/* Item atual: aria-current quando disponível, último span como fallback
   (Rank Math nem sempre marca com aria-current). */
.eg-breadcrumb span[aria-current],
.eg-breadcrumb > span:last-child:not(.eg-breadcrumb-sep) { color: hsl(var(--eg-fg)); font-weight: 600; opacity: 1; }
.eg-breadcrumb-sep { opacity: .4; font-size: .7rem; }

/* ── Tempo de leitura ───────────────────────────────────────────── */
.eg-reading-time {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  color: hsl(var(--eg-muted));
}
.eg-reading-time::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Barra de progresso de leitura ─────────────────────────────── */
.eg-read-progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9999;
  background: hsl(var(--eg-border));
}
.eg-read-progress {
  height: 100%;
  width: 0%;
  background: hsl(var(--eg-primary));
  transition: width .1s linear;
}

/* ── TOC ────────────────────────────────────────────────────────── */
.eg-toc {
  background: hsl(var(--eg-accent));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 100%;
}
.eg-toc-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--eg-font-display);
  font-weight: 800;
  font-size: 1rem;
  color: hsl(var(--eg-fg));
  padding: 0;
  width: 100%;
  justify-content: space-between;
}
.eg-toc-toggle svg { transition: transform .2s; flex-shrink: 0; }
.eg-toc-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.eg-toc-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.eg-toc-list a {
  color: hsl(var(--eg-fg));
  font-size: .875rem;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.eg-toc-list a:hover { color: hsl(var(--eg-primary)); opacity: 1; }
.eg-toc-h3 { padding-left: 1.1rem; }
.eg-toc-h3 a { font-size: .83rem; opacity: .8; }

/* ── Author box ─────────────────────────────────────────────────── */
.eg-author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: hsl(var(--eg-accent));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  margin-top: 2.5rem;
}
.eg-author-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.eg-author-info { flex: 1; min-width: 0; }
.eg-author-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--eg-muted)); margin: 0 0 .2rem; }
.eg-author-name { font-family: var(--eg-font-display); font-weight: 800; font-size: 1rem; color: hsl(var(--eg-fg)); text-decoration: none; display: block; margin-bottom: .35rem; }
.eg-author-name:hover { color: hsl(var(--eg-primary)); opacity: 1; }
.eg-author-bio { font-size: .875rem; color: hsl(var(--eg-muted)); margin: 0; line-height: 1.6; }

/* ── Posts relacionados ─────────────────────────────────────────── */
.eg-related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid hsl(var(--eg-border)); }
.eg-related-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: hsl(var(--eg-fg));
}
.eg-related-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.15em;
  background: hsl(var(--eg-primary));
  border-radius: 2px;
}
.eg-section-inner { padding: 0; }

/* ── Comentários ────────────────────────────────────────────────── */
.eg-comments-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--eg-border));
}
.eg-comments-wrap .comments-title,
.eg-comments-wrap #reply-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.eg-comments-wrap .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.eg-comments-wrap .comment {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--eg-border));
}
.eg-comments-wrap .comment:last-child { border-bottom: none; }
.eg-comments-wrap .comment-author { font-weight: 700; font-size: .9rem; }
.eg-comments-wrap .comment-metadata { font-size: .78rem; color: hsl(var(--eg-muted)); margin-bottom: .5rem; }
.eg-comments-wrap .comment-metadata a { color: hsl(var(--eg-muted)); }
.eg-comments-wrap .comment-content p { font-size: .95rem; margin: 0; }
.eg-comments-wrap .reply a { font-size: .78rem; font-weight: 700; color: hsl(var(--eg-primary)); }
.eg-comments-wrap .children {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 2px solid hsl(var(--eg-border));
  margin-left: .5rem;
}
/* Formulário de comentário */
.eg-comments-wrap .comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.eg-comments-wrap .comment-form input[type="text"],
.eg-comments-wrap .comment-form input[type="email"],
.eg-comments-wrap .comment-form input[type="url"],
.eg-comments-wrap .comment-form textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid hsl(var(--eg-border));
  border-radius: 10px;
  background: hsl(var(--eg-card));
  color: hsl(var(--eg-fg));
  font-family: var(--eg-font-body);
  font-size: .95rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
}
.eg-comments-wrap .comment-form textarea { min-height: 140px; resize: vertical; }
.eg-comments-wrap .comment-form input:focus,
.eg-comments-wrap .comment-form textarea:focus { outline: 2px solid hsl(var(--eg-primary)); outline-offset: 1px; }
.eg-comments-wrap .comment-form-comment label { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; display: block; }
.eg-comments-wrap .form-submit input[type="submit"] {
  background: hsl(var(--eg-primary));
  color: hsl(var(--eg-primary-fg));
  border: none;
  padding: .65rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
}
.eg-comments-wrap .form-submit input:hover { opacity: .9; }
.eg-comments-wrap .comment-form .comment-notes { font-size: .8rem; color: hsl(var(--eg-muted)); margin-bottom: 1rem; }

/* ── 404 ────────────────────────────────────────────────────────── */
.eg-404-wrap { max-width: 680px; margin: 0 auto; text-align: center; padding: 3rem 0; }
.eg-404-code { font-family: var(--eg-font-display); font-size: clamp(5rem,15vw,9rem); font-weight: 900; line-height: 1; color: hsl(var(--eg-primary)/.15); margin: 0 0 -.5em; }
.eg-404-content h1 { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: .5rem; }
.eg-404-search { max-width: 480px; margin: 1.5rem auto; }
.eg-404-nav-label { font-size: .85rem; color: hsl(var(--eg-muted)); margin: 1.5rem 0 .75rem; }
.eg-404-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.eg-404-recent { text-align: left; }
.eg-404-recent h2 { font-size: 1.1rem; margin-bottom: 1rem; }

/* ── Dark mode: prefers-color-scheme (antes do JS carregar) ─────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --eg-bg: 222 47% 8%;
    --eg-fg: 210 40% 98%;
    --eg-muted: 215 20% 65%;
    --eg-card: 222 47% 11%;
    --eg-border: 217 33% 20%;
    --eg-accent: 217 33% 17%;
    --eg-primary-text: 82 88% 49%;
  }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  .eg-header, .eg-footer, .eg-sidebar, .eg-related,
  .eg-author-box, .eg-comments-wrap, .eg-read-progress-wrap,
  .eg-actions, .eg-mobile, #eg-search, .eg-toc-toggle,
  .eg-dots, nav.eg-pagination { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .eg-container, .eg-with-sidebar { display: block !important; max-width: 100% !important; }
  .eg-article { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .eg-toc { border: 1px solid #ccc; }
  .eg-toc-list { display: block !important; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  .eg-disclosure { border: 1px solid #ccc; padding: .5rem; font-size: 9pt; }
}

/* ================================================================
   v3.1.3 — Página de autor, página de tag
   ================================================================ */

/* ── Perfil do autor (author.php) ───────────────────────────────── */
.eg-author-profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: hsl(var(--eg-accent));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .eg-author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .eg-author-social { justify-content: center; }
}

.eg-author-profile-avatar {
  flex-shrink: 0;
}
.eg-author-profile-avatar img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid hsl(var(--eg-primary) / .25);
  display: block;
}

.eg-author-profile-info { flex: 1; min-width: 0; }

.eg-author-profile-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: hsl(var(--eg-primary));
  font-weight: 700;
  margin: 0 0 .3rem;
}

.eg-author-profile-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .35rem;
  line-height: 1.2;
}

.eg-author-profile-count {
  font-size: .8rem;
  color: hsl(var(--eg-muted));
  margin: 0 0 .85rem;
}

.eg-author-profile-bio {
  font-size: .95rem;
  color: hsl(var(--eg-fg));
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 65ch;
}
.eg-author-profile-bio p { margin: 0 0 .5em; }
.eg-author-profile-bio p:last-child { margin-bottom: 0; }

.eg-author-profile-site {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: hsl(var(--eg-primary));
  margin-bottom: .85rem;
  word-break: break-all;
}
.eg-author-profile-site::before {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AEC0F' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.eg-author-social { margin-top: .25rem; }

.eg-author-posts-header { margin-bottom: 1.25rem; }
.eg-author-posts-title {
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eg-author-posts-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.2em;
  background: hsl(var(--eg-primary));
  border-radius: 2px;
}

/* ── Cabeçalho de tag/termo (tag.php, taxonomy) ─────────────────── */
.eg-term-header {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: hsl(var(--eg-accent));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
}
.eg-term-header-inner { max-width: 72ch; }

.eg-term-type {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: hsl(var(--eg-primary));
  margin-bottom: .35rem;
}

.eg-term-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .35rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: .1em;
  color: hsl(var(--eg-primary));
}

.eg-term-hash {
  color: hsl(var(--eg-primary));
  font-weight: 900;
}

.eg-term-count {
  font-size: .8rem;
  color: hsl(var(--eg-muted));
  margin: 0 0 1rem;
}

.eg-term-description {
  font-size: .95rem;
  color: hsl(var(--eg-fg));
  line-height: 1.7;
}
.eg-term-description p { margin: 0 0 .6em; }
.eg-term-description p:last-child { margin-bottom: 0; }
.eg-term-description a { color: hsl(var(--eg-primary)); text-decoration: underline; text-underline-offset: 2px; }

/* ================================================================
   v3.1.3 — Layout de post: header full-width + imagem full-width
            + conteúdo/sidebar em grid
   ================================================================ */

/* ── ① Cabeçalho do post (full-width, dentro do container) ──────── */
.eg-post-header {
  padding: 2rem 0 1.5rem;
}
.eg-post-title {
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin: .4rem 0 .75rem;
  max-width: 22ch;
  color: hsl(var(--eg-primary));
}
.eg-post-header .eg-breadcrumb { margin-bottom: .6rem; }
.eg-post-header .eg-meta       { margin-top: .25rem; }

/* ── ② Imagem destacada full-width ──────────────────────────────── */
.eg-post-featured-image {
  width: 100%;
  /* Altura proporcional: entre 320px e 520px, ideal ~42vw */
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: hsl(var(--eg-accent));
  margin-bottom: 2rem;
}
.eg-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Sem border-radius aqui: a imagem vai de borda a borda */
}

/* ── ③ Zona dividida: conteúdo + sidebar ────────────────────────── */
.eg-post-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .eg-post-body {
    grid-template-columns: 1fr 300px;
  }
}

/* Conteúdo do artigo */
.eg-post-content {
  min-width: 0; /* evita overflow em grids */
}
.eg-post-content .eg-prose {
  font-size: 1.05rem;
  line-height: 1.8;
}
.eg-post-content .eg-prose p { margin: 0 0 1.1em; }

/* Sidebar sticky dentro do post-body */
.eg-post-body > .eg-sidebar {
  position: sticky;
  top: calc(72px + 1rem);
}

/* Remover max-width antigo do eg-article que conflitava */
.eg-post-content .eg-article,
article.eg-post-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── Responsivo: mobile sem sidebar visível no topo ─────────────── */
@media (max-width: 1023px) {
  .eg-post-featured-image {
    aspect-ratio: 16 / 9;
  }
  .eg-post-body > .eg-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .eg-post-header { padding: 1.25rem 0 1rem; }
  .eg-post-featured-image {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.25rem;
  }
  .eg-post-title { max-width: 100%; }
}

/* ── Print: imagem abaixo do título, sem sidebar ────────────────── */
@media print {
  .eg-post-featured-image { aspect-ratio: 16 / 9; margin-bottom: 1rem; }
  .eg-post-body { display: block !important; }
  .eg-post-body > .eg-sidebar { display: none !important; }
}

/* ── Título de coluna de widget no footer (eg_footer_col*_title) ── */
.eg-footer-widget-title {
  font-size: .95rem;
  margin-bottom: .75rem;
  color: hsl(var(--eg-fg));
}

/* ================================================================
   v3.1.3 — Página e bloco de lojas parceiras
   ================================================================ */

/* ── Bloco home: subtítulo e CTA ────────────────────────────────── */
.eg-partners-sub { margin: .25rem 0 1.5rem; }
.eg-partners-link { margin-top: 1.5rem; }
.eg-partner-name {
  font-weight: 800;
  font-size: .9rem;
  color: hsl(var(--eg-fg));
  padding: .25rem .5rem;
}

/* ── Página completa: header ────────────────────────────────────── */
.eg-partners-page-header {
  max-width: 720px;
  margin-bottom: 3rem;
}
.eg-partners-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: .4rem 0 .75rem;
}
.eg-partners-page-lead {
  font-size: 1.05rem;
  color: hsl(var(--eg-muted));
  line-height: 1.7;
  max-width: 65ch;
  margin: 0;
}

/* ── Como funciona ──────────────────────────────────────────────── */
.eg-partners-how {
  background: hsl(var(--eg-accent));
  border: 1px solid hsl(var(--eg-border));
  border-radius: var(--eg-radius);
  padding: 2rem;
  margin-bottom: 3rem;
}
.eg-partners-how h2 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
}
.eg-partners-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .eg-partners-how-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.eg-partners-how-item { }
.eg-partners-how-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: .5rem;
  line-height: 1;
}
.eg-partners-how-item h3 {
  font-size: .95rem;
  margin: 0 0 .35rem;
}
.eg-partners-how-item p {
  font-size: .875rem;
  color: hsl(var(--eg-muted));
  margin: 0;
  line-height: 1.6;
}
.eg-partners-disclosure {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  background: hsl(var(--eg-primary) / .08);
  border-left: 3px solid hsl(var(--eg-primary));
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  color: hsl(var(--eg-muted));
  line-height: 1.6;
}

/* ── Grade de lojas (página completa) ───────────────────────────── */
.eg-partners-page-grid-wrap h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eg-partners-page-grid-wrap h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.25em;
  background: hsl(var(--eg-primary));
  border-radius: 2px;
}
.eg-partners-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 480px) {
  .eg-partners-page-grid { grid-template-columns: repeat(2, 1fr); }
}

.eg-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: var(--eg-radius);
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, opacity .18s;
  min-height: 110px;
  opacity: .85;
}
[data-theme="dark"] .eg-partner-card {
  background: #252836;
  border-color: rgba(255,255,255,.08);
}
.eg-partner-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-3px);
  opacity: 1;
}
.eg-partner-card img {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}
.eg-partner-card:hover img {
  opacity: 1;
}
.eg-partner-card-label {
  font-size: .75rem;
  font-weight: 700;
  color: hsl(var(--eg-muted));
  text-align: center;
  line-height: 1.2;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.eg-partners-faq {
  border-top: 1px solid hsl(var(--eg-border));
  padding-top: 2.5rem;
  margin-bottom: 2rem;
}
.eg-partners-faq h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.eg-faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid hsl(var(--eg-border));
}
.eg-faq-item:last-child { border-bottom: none; }
.eg-faq-item h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  color: hsl(var(--eg-fg));
}
.eg-faq-item p {
  font-size: .9rem;
  color: hsl(var(--eg-muted));
  margin: 0;
  line-height: 1.65;
}

/* ── Dark mode: cards de lojas ──────────────────────────────────── */




/* ================================================================
   v3.1.3 — Dark mode: Content Egg, Affiliate Egg, APS Products
   ================================================================
   Estratégia: variáveis do tema repassadas para os containers
   dos plugins + overrides de cor/fundo/borda onde necessário.
   Todas as regras só ativam em [data-theme="dark"].
   ================================================================ */

/* ── Variáveis de atalho ─────────────────────────────────────────── */
[data-theme="dark"] {
  --plugin-bg:          hsl(var(--eg-card));
  --plugin-bg-alt:      hsl(var(--eg-accent));
  --plugin-fg:          hsl(var(--eg-fg));
  --plugin-muted:       hsl(var(--eg-muted));
  --plugin-border:      hsl(var(--eg-border));
  --plugin-primary:     hsl(var(--eg-primary));
  --plugin-price:       #4ade80;   /* verde claro — preço legível no escuro */
  --plugin-old-price:   hsl(var(--eg-muted));
  --plugin-btn-bg:      hsl(var(--eg-primary));
  --plugin-btn-fg:      hsl(var(--eg-primary-fg));
  --plugin-input-bg:    hsl(var(--eg-accent));
  --plugin-shadow:      0 2px 12px rgba(0,0,0,.4);
}

/* ════════════════════════════════════════════════════════════════
   Headings de seção — garantia de legibilidade no dark mode
   Cobre h2/h3 nus dentro de .eg-section (ex: "Compre e Ajude",
   "Últimas Notícias") que não estão em .eg-section-head.
   ════════════════════════════════════════════════════════════════ */
.eg-section h2,
.eg-section h3:not(.eg-title),
.eg-center h2 {
    color: hsl(var(--eg-fg));
}

/* ════════════════════════════════════════════════════════════════
   CONTENT EGG — classes principais
   ════════════════════════════════════════════════════════════════ */

/* Container raiz */
[data-theme="dark"] .content-egg-module,
[data-theme="dark"] .ceg-block,
[data-theme="dark"] .ceg-wrapper,
[data-theme="dark"] [class*="ceg-template"],
[data-theme="dark"] [class*="ce-template"] {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}

/* Cards de produto */
[data-theme="dark"] .ceg-product,
[data-theme="dark"] .ceg-item,
[data-theme="dark"] .ceg-card,
[data-theme="dark"] .ceg-offer,
[data-theme="dark"] .ce-product,
[data-theme="dark"] .ce-item,
[data-theme="dark"] .ce-offer,
[data-theme="dark"] .module-item,
[data-theme="dark"] .ce-block-item {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
  box-shadow: var(--plugin-shadow) !important;
}

/* Títulos dentro dos cards */
[data-theme="dark"] .ceg-product h2,
[data-theme="dark"] .ceg-product h3,
[data-theme="dark"] .ceg-product h4,
[data-theme="dark"] .ceg-item h2,
[data-theme="dark"] .ceg-item h3,
[data-theme="dark"] .ceg-item h4,
[data-theme="dark"] .ce-product h3,
[data-theme="dark"] .ce-item h3,
[data-theme="dark"] .module-item h3,
[data-theme="dark"] .module-item .item-title,
[data-theme="dark"] .ceg-title,
[data-theme="dark"] .ce-title {
  color: var(--plugin-fg) !important;
}

/* Preços */
[data-theme="dark"] .ceg-price,
[data-theme="dark"] .ce-price,
[data-theme="dark"] .module-price,
[data-theme="dark"] .item-price,
[data-theme="dark"] .price-new,
[data-theme="dark"] .price-current,
[data-theme="dark"] [class*="price"]:not([class*="old"]):not([class*="was"]):not([class*="original"]) {
  color: var(--plugin-price) !important;
}

/* Preços riscados / antigos */
[data-theme="dark"] .ceg-price-old,
[data-theme="dark"] .ce-price-old,
[data-theme="dark"] .price-old,
[data-theme="dark"] .price-was,
[data-theme="dark"] del,
[data-theme="dark"] .module-item del {
  color: var(--plugin-muted) !important;
  opacity: .7 !important;
}

/* Descrição / texto auxiliar */
[data-theme="dark"] .ceg-description,
[data-theme="dark"] .ce-description,
[data-theme="dark"] .module-item .item-description,
[data-theme="dark"] .ceg-merchant,
[data-theme="dark"] .ce-merchant,
[data-theme="dark"] .ceg-updated,
[data-theme="dark"] .ce-updated {
  color: var(--plugin-muted) !important;
}

/* Botões de compra */
[data-theme="dark"] .ceg-btn,
[data-theme="dark"] .ce-btn,
[data-theme="dark"] .ceg-button,
[data-theme="dark"] .ce-button,
[data-theme="dark"] .module-item .item-btn,
[data-theme="dark"] .btn-buy,
[data-theme="dark"] .btn-offer,
[data-theme="dark"] [class*="ceg-btn"],
[data-theme="dark"] [class*="ce-btn"] {
  background: var(--plugin-btn-bg) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
}
[data-theme="dark"] .ceg-btn:hover,
[data-theme="dark"] .ce-btn:hover,
[data-theme="dark"] .btn-buy:hover {
  opacity: .9 !important;
}

/* Tabs / filtros */
[data-theme="dark"] .ceg-tabs,
[data-theme="dark"] .ce-tabs,
[data-theme="dark"] .ceg-filter,
[data-theme="dark"] .ce-filter {
  background: var(--plugin-bg-alt) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .ceg-tabs li,
[data-theme="dark"] .ce-tabs li,
[data-theme="dark"] .ceg-tab,
[data-theme="dark"] .ce-tab {
  color: var(--plugin-muted) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .ceg-tab.active,
[data-theme="dark"] .ce-tab.active,
[data-theme="dark"] .ceg-tabs li.active,
[data-theme="dark"] .ce-tabs li.active {
  color: var(--plugin-primary) !important;
  border-bottom-color: var(--plugin-primary) !important;
  background: transparent !important;
}

/* Tabelas de comparação */
[data-theme="dark"] .ceg-table,
[data-theme="dark"] .ce-comparison-table,
[data-theme="dark"] .ceg-compare table,
[data-theme="dark"] .ce-compare table {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .ceg-table th,
[data-theme="dark"] .ce-comparison-table th {
  background: var(--plugin-bg-alt) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .ceg-table td,
[data-theme="dark"] .ce-comparison-table td {
  border-color: var(--plugin-border) !important;
  color: var(--plugin-fg) !important;
}
[data-theme="dark"] .ceg-table tr:nth-child(even),
[data-theme="dark"] .ce-comparison-table tr:nth-child(even) {
  background: var(--plugin-bg-alt) !important;
}

/* Loader / placeholder */
[data-theme="dark"] .ceg-loading,
[data-theme="dark"] .ce-loading {
  background: var(--plugin-bg-alt) !important;
}

/* ════════════════════════════════════════════════════════════════
   CONTENT EGG v20+ (classes cegg5-* + Bootstrap 5.3)
   ════════════════════════════════════════════════════════════════
   O Content Egg v20+ usa Bootstrap 5.3 e o atributo data-bs-theme
   para alternar tema. O JS do nosso tema propaga data-bs-theme="dark"
   para o <html> quando o usuário ativa dark mode, mas o ContentEgg
   também tem opção interna `color_mode`. Estas regras garantem que
   o tema escuro funcione independentemente das duas configurações.
   ════════════════════════════════════════════════════════════════ */

/* Container raiz dos blocos novos (cegg5-container e .cegg-card). */
[data-theme="dark"] .cegg5-container,
[data-theme="dark"] .cegg-card,
[data-theme="dark"] .cegg-list-card,
[data-theme="dark"] .cegg-grid-card,
[data-theme="dark"] .cegg-item-card,
[data-theme="dark"] .cegg-price-alert-card {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}

/* Header amarelo do alerta de preço — manter destaque mas com texto legível. */
[data-theme="dark"] .cegg-price-alert-card .card-header.text-bg-warning {
  background: #f59e0b !important;
  color: #1f2937 !important;
}

/* Card-body interno (corpo do form de alerta). */
[data-theme="dark"] .cegg-price-alert-card .card-body,
[data-theme="dark"] .cegg-card .card-body {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
}

/* Subtítulos e textos secundários do Bootstrap. */
[data-theme="dark"] .cegg5-container .card-subtitle,
[data-theme="dark"] .cegg5-container .text-body-secondary,
[data-theme="dark"] .cegg5-container .text-body-tertiary,
[data-theme="dark"] .cegg-card .card-subtitle,
[data-theme="dark"] .cegg-card .text-body-secondary,
[data-theme="dark"] .cegg-card .text-body-tertiary,
[data-theme="dark"] .cegg-price-alert-card .text-body-secondary,
[data-theme="dark"] .cegg-merchant {
  color: var(--plugin-muted) !important;
}

/* Inputs do form de alerta. */
[data-theme="dark"] .cegg-price-alert-card .form-control,
[data-theme="dark"] .cegg5-container .form-control,
[data-theme="dark"] .cegg-card .form-control {
  background: var(--plugin-input-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .cegg-price-alert-card .form-control::placeholder,
[data-theme="dark"] .cegg5-container .form-control::placeholder {
  color: var(--plugin-muted) !important;
  opacity: .7;
}

/* Símbolo de moeda (input-group-text). */
[data-theme="dark"] .cegg-price-alert-card .input-group-text,
[data-theme="dark"] .cegg5-container .input-group-text {
  background: var(--plugin-bg-alt) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}

/* Botão warning (Set Alert) — mantém amarelo padrão Bootstrap. */
[data-theme="dark"] .cegg-price-alert-card .btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #1f2937 !important;
}
[data-theme="dark"] .cegg-price-alert-card .btn-warning:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
}

/* Gráfico de histórico (Chart.js canvas) — força fundo do container. */
[data-theme="dark"] .cegg5-container canvas,
[data-theme="dark"] .cegg-price-history canvas {
  background: transparent !important;
}

/* Texto de "lowest price" e "highest price" no histórico. */
[data-theme="dark"] .cegg-card .text-success {
  color: #4ade80 !important;
}
[data-theme="dark"] .cegg-card .text-danger {
  color: #f87171 !important;
}
[data-theme="dark"] .cegg-card .text-primary {
  color: hsl(var(--eg-primary)) !important;
}

/* Preço destaque (cegg-card-price, cegg-list-price). */
[data-theme="dark"] .cegg-card-price,
[data-theme="dark"] .cegg-list-price {
  color: var(--plugin-price) !important;
}
[data-theme="dark"] .cegg-old-price {
  color: var(--plugin-old-price) !important;
}

/* Tooltip/popover do Bootstrap dentro do ContentEgg. */
[data-theme="dark"] .cegg5-container .tooltip-inner,
[data-theme="dark"] .cegg5-container .popover {
  background: var(--plugin-bg-alt) !important;
  color: var(--plugin-fg) !important;
}

/* Links internos. */
[data-theme="dark"] .cegg5-container a:not(.btn),
[data-theme="dark"] .cegg-card a:not(.btn) {
  color: hsl(var(--eg-primary)) !important;
}

/* Bordas internas (rows, dividers, ratings). */
[data-theme="dark"] .cegg5-container hr,
[data-theme="dark"] .cegg-card hr,
[data-theme="dark"] .cegg5-container .border,
[data-theme="dark"] .cegg-card .border {
  border-color: var(--plugin-border) !important;
}

/* Bootstrap 5.3 native: quando data-bs-theme já está propagado, deixa o
   próprio Bootstrap fazer o trabalho. Aqui só garantimos que o fundo
   dos cards Bootstrap (bg-body, bg-white, bg-light) respeitem nossa
   paleta caso o tema-bs ainda não tenha sido propagado por outro motivo. */
[data-theme="dark"] .cegg5-container .bg-body,
[data-theme="dark"] .cegg5-container .bg-white,
[data-theme="dark"] .cegg5-container .bg-light {
  background-color: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
}

/* ════════════════════════════════════════════════════════════════
   AFFILIATE EGG — classes principais
   ════════════════════════════════════════════════════════════════ */

[data-theme="dark"] .ae-product,
[data-theme="dark"] .ae-item,
[data-theme="dark"] .ae-card,
[data-theme="dark"] .ae-offer,
[data-theme="dark"] .affiliate-egg,
[data-theme="dark"] .aff-egg,
[data-theme="dark"] [class*="ae-template"],
[data-theme="dark"] [class*="aff-egg"] {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
  box-shadow: var(--plugin-shadow) !important;
}

[data-theme="dark"] .ae-product h2,
[data-theme="dark"] .ae-product h3,
[data-theme="dark"] .ae-item h3,
[data-theme="dark"] .ae-title,
[data-theme="dark"] .ae-product-title {
  color: var(--plugin-fg) !important;
}

[data-theme="dark"] .ae-price,
[data-theme="dark"] .ae-current-price,
[data-theme="dark"] .ae-product-price {
  color: var(--plugin-price) !important;
}

[data-theme="dark"] .ae-price-old,
[data-theme="dark"] .ae-original-price,
[data-theme="dark"] .ae-product del {
  color: var(--plugin-muted) !important;
  opacity: .7 !important;
}

[data-theme="dark"] .ae-description,
[data-theme="dark"] .ae-merchant,
[data-theme="dark"] .ae-shop-name,
[data-theme="dark"] .ae-updated {
  color: var(--plugin-muted) !important;
}

[data-theme="dark"] .ae-btn,
[data-theme="dark"] .ae-button,
[data-theme="dark"] .ae-buy-btn,
[data-theme="dark"] [class*="ae-btn"] {
  background: var(--plugin-btn-bg) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
}

/* Grid de lojas do Affiliate Egg */
[data-theme="dark"] .ae-shop,
[data-theme="dark"] .ae-shop-card,
[data-theme="dark"] .ae-store,
[data-theme="dark"] .ae-network {
  background: var(--plugin-bg) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .ae-shop-logo-wrapper,
[data-theme="dark"] .ae-store-logo {
  background: #fff !important;   /* logo da loja: fundo branco fixo */
  border-radius: 6px !important;
  padding: 4px !important;
}

/* ════════════════════════════════════════════════════════════════
   APS PRODUCTS STORE — classes principais
   ════════════════════════════════════════════════════════════════ */

[data-theme="dark"] .aps-product,
[data-theme="dark"] .aps-item,
[data-theme="dark"] .aps-card,
[data-theme="dark"] .aps-store,
[data-theme="dark"] .aps-wrapper,
[data-theme="dark"] .aps-container,
[data-theme="dark"] [class*="aps-product"],
[data-theme="dark"] [class*="aps-item"],
[data-theme="dark"] #aps-products,
[data-theme="dark"] .aps-products-list,
[data-theme="dark"] .aps-products-grid {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
  box-shadow: var(--plugin-shadow) !important;
}

[data-theme="dark"] .aps-product h2,
[data-theme="dark"] .aps-product h3,
[data-theme="dark"] .aps-item h3,
[data-theme="dark"] .aps-title,
[data-theme="dark"] .aps-product-name,
[data-theme="dark"] .aps-product-title {
  color: var(--plugin-fg) !important;
}

[data-theme="dark"] .aps-price,
[data-theme="dark"] .aps-product-price,
[data-theme="dark"] .aps-current-price,
[data-theme="dark"] .aps-sale-price {
  color: var(--plugin-price) !important;
}

[data-theme="dark"] .aps-price-original,
[data-theme="dark"] .aps-price-old,
[data-theme="dark"] .aps-regular-price,
[data-theme="dark"] .aps-product del {
  color: var(--plugin-muted) !important;
  opacity: .7 !important;
}

[data-theme="dark"] .aps-description,
[data-theme="dark"] .aps-product-description,
[data-theme="dark"] .aps-merchant,
[data-theme="dark"] .aps-shop-name,
[data-theme="dark"] .aps-meta {
  color: var(--plugin-muted) !important;
}

[data-theme="dark"] .aps-btn,
[data-theme="dark"] .aps-button,
[data-theme="dark"] .aps-buy-button,
[data-theme="dark"] .aps-add-to-cart,
[data-theme="dark"] [class*="aps-btn"] {
  background: var(--plugin-btn-bg) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
}

/* Filtros e ordenação */
[data-theme="dark"] .aps-filters,
[data-theme="dark"] .aps-sort,
[data-theme="dark"] .aps-search-bar,
[data-theme="dark"] .aps-filter-bar {
  background: var(--plugin-bg-alt) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .aps-filter-label,
[data-theme="dark"] .aps-sort-label,
[data-theme="dark"] .aps-filter-option {
  color: var(--plugin-muted) !important;
}
[data-theme="dark"] .aps-filter-option.active,
[data-theme="dark"] .aps-filter-option:hover {
  color: var(--plugin-primary) !important;
}

/* Inputs e selects dentro dos plugins */
[data-theme="dark"] .aps-filters input,
[data-theme="dark"] .aps-filters select,
[data-theme="dark"] .aps-search-bar input,
[data-theme="dark"] .ceg-filter input,
[data-theme="dark"] .ceg-filter select,
[data-theme="dark"] .ae-filter input,
[data-theme="dark"] .ae-filter select {
  background: var(--plugin-input-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}

/* Paginação dos plugins */
[data-theme="dark"] .aps-pagination a,
[data-theme="dark"] .ceg-pagination a,
[data-theme="dark"] .ae-pagination a {
  background: var(--plugin-bg-alt) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}
[data-theme="dark"] .aps-pagination a.active,
[data-theme="dark"] .ceg-pagination a.active,
[data-theme="dark"] .ae-pagination a.active,
[data-theme="dark"] .aps-pagination span.current,
[data-theme="dark"] .ceg-pagination span.current {
  background: var(--plugin-primary) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
}

/* Badges (Novo, Oferta, % desconto) */
[data-theme="dark"] .ceg-badge,
[data-theme="dark"] .ae-badge,
[data-theme="dark"] .aps-badge,
[data-theme="dark"] .ceg-label,
[data-theme="dark"] .ae-label,
[data-theme="dark"] .aps-label,
[data-theme="dark"] .aps-discount-badge,
[data-theme="dark"] .ceg-discount {
  filter: brightness(1.15) !important;
}

/* Rating / estrelas */
[data-theme="dark"] .ceg-rating,
[data-theme="dark"] .ae-rating,
[data-theme="dark"] .aps-rating,
[data-theme="dark"] .star-rating {
  color: #facc15 !important;   /* amarelo vivo — legível no escuro */
}

/* Imagens de produto: nunca inverter */
[data-theme="dark"] .ceg-product img,
[data-theme="dark"] .ae-product img,
[data-theme="dark"] .aps-product img,
[data-theme="dark"] .ceg-item img,
[data-theme="dark"] .ae-item img,
[data-theme="dark"] .aps-item img {
  filter: none !important;
}

/* Contraste (WCAG AA) nos cards do Content Egg.
   O Bootstrap 5.3 usa um azul (#0d6efd) e cinzas que reprovam o contraste
   mínimo em texto pequeno. Forçamos cores acessíveis sem alterar o plugin. */
.cegg-card .btn-outline-primary,
.cegg-list-card .btn-outline-primary,
.cegg5-container .btn-outline-primary {
  color: #0a58ca !important;          /* azul mais escuro: ~4.6:1 sobre branco */
  border-color: #0a58ca !important;
}
.cegg-card .btn-outline-primary:hover,
.cegg-list-card .btn-outline-primary:hover,
.cegg5-container .btn-outline-primary:hover {
  color: #fff !important;
  background-color: #0a58ca !important;
}
/* Preço antigo riscado: o cinza padrão fica abaixo do mínimo. */
.cegg-card s,
.cegg-list-card s,
.cegg5-container s,
.cegg-card del,
.cegg-list-card del,
.cegg5-container del {
  color: #595959 !important;          /* ~7:1 sobre branco */
}
[data-theme="dark"] .cegg-card .btn-outline-primary,
[data-theme="dark"] .cegg-list-card .btn-outline-primary,
[data-theme="dark"] .cegg5-container .btn-outline-primary {
  color: #6ea8fe !important;          /* azul claro: bom contraste no escuro */
  border-color: #6ea8fe !important;
}
[data-theme="dark"] .cegg-card s,
[data-theme="dark"] .cegg-list-card s,
[data-theme="dark"] .cegg5-container s,
[data-theme="dark"] .cegg-card del,
[data-theme="dark"] .cegg-list-card del,
[data-theme="dark"] .cegg5-container del {
  color: #adb5bd !important;
}

/* ================================================================
   v3.1.3 — Dark mode: Content Egg classes reais (cegg5)
   Baseado em inspeção direta do DOM via DevTools
   ================================================================ */

/* Container raiz do Content Egg v5 */
[data-theme="dark"] .cegg5-container,
[data-theme="dark"] [class*="cegg5-"],
[data-theme="dark"] [class*="cegg-wdgt"],
[data-theme="dark"] .cegg-list {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
}

/* Card individual */
[data-theme="dark"] .cegg-card,
[data-theme="dark"] .cegg-list-card,
[data-theme="dark"] [class*="cegg-card"],
[data-theme="dark"] [class*="cegg-list"] {
  background: var(--plugin-bg) !important;
  color: var(--plugin-fg) !important;
  border-color: var(--plugin-border) !important;
  box-shadow: var(--plugin-shadow) !important;
}

/* Container interno Bootstrap que o plugin usa */
[data-theme="dark"] .cegg5-container .container,
[data-theme="dark"] .cegg5-container .row,
[data-theme="dark"] .cegg5-container .col,
[data-theme="dark"] .cegg5-container [class*="col-"] {
  background: transparent !important;
  color: var(--plugin-fg) !important;
}

/* Título do produto */
[data-theme="dark"] .cegg-card .cegg-title,
[data-theme="dark"] .cegg-list-card .cegg-title,
[data-theme="dark"] .cegg-card h3,
[data-theme="dark"] .cegg-card h4,
[data-theme="dark"] .cegg-card a.cegg-title,
[data-theme="dark"] [class*="cegg-"] h3,
[data-theme="dark"] [class*="cegg-"] h4 {
  color: var(--plugin-fg) !important;
}

/* Preços — classes reais do cegg5 */
[data-theme="dark"] .cegg-price,
[data-theme="dark"] .cegg-price-new,
[data-theme="dark"] .cegg-current-price,
[data-theme="dark"] [class*="cegg-price"]:not([class*="old"]):not([class*="original"]) {
  color: var(--plugin-price) !important;
}

/* Preço antigo riscado */
[data-theme="dark"] .cegg-price-old,
[data-theme="dark"] .cegg-price-original,
[data-theme="dark"] [class*="cegg-price-old"],
[data-theme="dark"] .cegg-card del,
[data-theme="dark"] .cegg-list-card del {
  color: var(--plugin-muted) !important;
  opacity: .7 !important;
}

/* Desconto / badge percentual */
[data-theme="dark"] .cegg-discount,
[data-theme="dark"] .cegg-badge,
[data-theme="dark"] [class*="cegg-discount"],
[data-theme="dark"] [class*="cegg-badge"] {
  filter: brightness(1.2) !important;
}

/* Merchant / nome da loja */
[data-theme="dark"] .cegg-merchant,
[data-theme="dark"] .cegg-shop,
[data-theme="dark"] [class*="cegg-merchant"],
[data-theme="dark"] [class*="cegg-shop"] {
  color: var(--plugin-muted) !important;
}

/* Botão "Ir para a loja" */
[data-theme="dark"] .cegg-btn,
[data-theme="dark"] .cegg-buy-btn,
[data-theme="dark"] .cegg-button,
[data-theme="dark"] a[class*="cegg-btn"],
[data-theme="dark"] a[class*="cegg-buy"],
[data-theme="dark"] .cegg-card .btn,
[data-theme="dark"] .cegg-list-card .btn,
[data-theme="dark"] .cegg5-container .btn-primary {
  background: var(--plugin-btn-bg) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
  opacity: 1 !important;
}

/* Posição / ranking (números circulares 1, 2, 3...)
   Preserva text-bg-danger (vermelho) e demais variantes Bootstrap */
[data-theme="dark"] .cegg-position,
[data-theme="dark"] [class*="cegg-position"] {
  background: var(--plugin-primary) !important;
  color: var(--plugin-btn-fg) !important;
  border-color: transparent !important;
}
/* Garantir que o círculo vermelho nativo do plugin não seja sobrescrito */
[data-theme="dark"] .cegg5-container .text-bg-danger,
[data-theme="dark"] .cegg5-container .text-bg-warning,
[data-theme="dark"] .cegg5-container .text-bg-success,
[data-theme="dark"] .cegg5-container .text-bg-primary,
[data-theme="dark"] .cegg5-container .text-bg-info,
[data-theme="dark"] .cegg5-container [class*="text-bg-"] {
  /* Deixar as cores Bootstrap originais — não sobrescrever */
  background-color: revert !important;
  color: revert !important;
}

/* Linha separadora entre cards */
[data-theme="dark"] .cegg-list-card + .cegg-list-card,
[data-theme="dark"] .cegg5-container hr,
[data-theme="dark"] .cegg5-container .border-bottom {
  border-color: var(--plugin-border) !important;
}

/* Imagem do produto — nunca inverter */
[data-theme="dark"] .cegg-card img,
[data-theme="dark"] .cegg-list-card img,
[data-theme="dark"] .cegg5-container img {
  filter: none !important;
}

/* Texto genérico dentro do container */
[data-theme="dark"] .cegg5-container p,
[data-theme="dark"] .cegg5-container span,
[data-theme="dark"] .cegg5-container small,
[data-theme="dark"] .cegg5-container label {
  color: var(--plugin-fg) !important;
}

/* Sobrescrever qualquer background Bootstrap inline */
[data-theme="dark"] .cegg5-container .bg-white,
[data-theme="dark"] .cegg5-container .bg-light,
[data-theme="dark"] .cegg5-container [style*="background:#fff"],
[data-theme="dark"] .cegg5-container [style*="background: #fff"],
[data-theme="dark"] .cegg5-container [style*="background:white"],
[data-theme="dark"] .cegg5-container [style*="background: white"] {
  background: var(--plugin-bg) !important;
}

/* ════════════════════════════════════════════════════════════════
   CONTENT EGG — templates legados (egg-container / products.css)
   Cobre: egg-list, egg-grid, cegg-gridbox, row-products,
   cegg-image-cell, cegg-price-comparison e variantes.
   ════════════════════════════════════════════════════════════════ */

/* Wrapper raiz legado */
[data-theme="dark"] .egg-container {
  color: hsl(var(--eg-fg)) !important;
}

/* Linhas de produto (egg-list / egg-listcontainer) */
[data-theme="dark"] .egg-container .row-products > div {
  border-bottom-color: hsl(var(--eg-border)) !important;
}
[data-theme="dark"] .egg-container .row-products:hover {
  background-color: hsl(var(--eg-accent)) !important;
}

/* Célula de imagem: fundo branco → transparente */
[data-theme="dark"] .egg-container .cegg-image-cell,
[data-theme="dark"] .egg-container .cegg-thumb,
[data-theme="dark"] .cegg-image-container {
  background: transparent !important;
}

/* Título do produto */
[data-theme="dark"] .egg-container .cegg-list-logo-title a,
[data-theme="dark"] .egg-container .cegg-reviews-count,
[data-theme="dark"] .egg-container .row-products span,
[data-theme="dark"] .egg-container .row-products a:not(.btn) {
  color: hsl(var(--eg-fg)) !important;
}

/* Preço principal */
[data-theme="dark"] .egg-container .cegg-price,
[data-theme="dark"] .egg-listcontainer .cegg-price,
[data-theme="dark"] .cegg-list-withlogos .cegg-price,
[data-theme="dark"] .egg-item-popup .cegg-price {
  color: hsl(var(--eg-primary)) !important;
}

/* Preço riscado (original) */
[data-theme="dark"] .egg-container .cegg-price-row strike,
[data-theme="dark"] .egg-container strike {
  color: hsl(var(--eg-muted)) !important;
}

/* Nome do merchant / loja */
[data-theme="dark"] .egg-container .cegg-merhant_col a,
[data-theme="dark"] .egg-container .cegg-price_col a,
[data-theme="dark"] .egg-container .cegg-no-prices-desc {
  color: hsl(var(--eg-muted)) !important;
}

/* Gridbox (layout grade) */
[data-theme="dark"] .egg-container .cegg-gridbox {
  background-color: hsl(var(--eg-card)) !important;
  border-color: hsl(var(--eg-border)) !important;
}
[data-theme="dark"] .egg-container .cegg-gridbox:hover {
  box-shadow: 0 8px 16px -6px hsl(var(--eg-border)) !important;
  border-color: hsl(var(--eg-primary) / .5) !important;
}
[data-theme="dark"] .cegg-gridbox .producttitle,
[data-theme="dark"] .cegg-gridbox .producttitle a {
  color: hsl(var(--eg-fg)) !important;
}
[data-theme="dark"] .cegg-gridbox .productprice {
  color: hsl(var(--eg-primary)) !important;
}
[data-theme="dark"] .cegg-gridbox .productprice strike {
  color: hsl(var(--eg-muted)) !important;
}

/* Tabela de comparação de preços (cegg-price-comparison) */
[data-theme="dark"] .cegg-price-comparison {
  background: transparent !important;
  color: hsl(var(--eg-fg)) !important;
}
[data-theme="dark"] .cegg-price-comparison td,
[data-theme="dark"] .cegg-price-comparison th {
  background: transparent !important;
  border-color: hsl(var(--eg-border)) !important;
  color: hsl(var(--eg-fg)) !important;
}
[data-theme="dark"] .cegg-price-comparison tr:nth-child(even) td {
  background: hsl(var(--eg-accent)) !important;
}
[data-theme="dark"] .cegg-price-comparison .cegg-price_col a,
[data-theme="dark"] .cegg-price-comparison .cegg-merhant_col a {
  color: hsl(var(--eg-fg)) !important;
}

/* Separadores e bordas internas */
[data-theme="dark"] .egg-container.egg-compare .row {
  border-bottom-color: hsl(var(--eg-border)) !important;
}
[data-theme="dark"] .cegg-review-block {
  border-color: hsl(var(--eg-border)) !important;
}
[data-theme="dark"] .cegg-line-hr {
  border-top-color: hsl(var(--eg-border)) !important;
}
[data-theme="dark"] .egg-grid-wdgt-row .cegg-wdgt-gridbox {
  border-bottom-color: hsl(var(--eg-border)) !important;
}

/* Widget de produto (egg-grid-wdgt) */
[data-theme="dark"] .egg-grid-wdgt .product-name,
[data-theme="dark"] .egg-grid-wdgt .product-meta {
  color: hsl(var(--eg-fg)) !important;
}
[data-theme="dark"] .egg-grid-wdgt .product-price-old {
  color: hsl(var(--eg-muted)) !important;
}

/* Coupon box */
[data-theme="dark"] .cegg-couponcode {
  background: hsl(var(--eg-accent)) !important;
  border-color: hsl(var(--eg-primary) / .5) !important;
  color: hsl(var(--eg-fg)) !important;
}

/* Bordered box */
[data-theme="dark"] .cegg-bordered-box {
  border-color: hsl(var(--eg-border)) !important;
}

/* ============================================================
   FICHA TÉCNICA — layout de produto (v3.2.0)
   ============================================================ */
.eg-ficha{max-width:var(--eg-container);margin:0 auto}
.eg-ficha__hero{margin:1rem 0 1.5rem}
.eg-ficha__hero-card{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.5rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);padding:2rem;box-shadow:var(--eg-shadow)}
.eg-ficha__hero-main{display:grid;grid-template-columns:240px 1fr;gap:1.75rem;align-items:center}
.eg-ficha__hero-image{align-self:center}
.eg-ficha__hero-image img{width:100%;height:auto;max-height:340px;object-fit:contain;border-radius:var(--eg-radius);display:block}
.eg-ficha__hero-info{min-width:0}
.eg-ficha__hero-badge{display:inline-block;padding:.25rem .7rem;background:hsl(var(--eg-primary)/.12);color:hsl(var(--eg-primary));border-radius:999px;font-size:.8rem;font-weight:600;margin-bottom:.75rem}
.eg-ficha__hero-title{font-family:var(--eg-font-display);font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15;margin:0 0 .85rem;font-weight:800;letter-spacing:-.02em;color:hsl(var(--eg-primary))}
.eg-ficha__hero-excerpt{color:hsl(var(--eg-muted));margin:0 0 .85rem;font-size:1rem}
.eg-ficha__hero-launch{color:hsl(var(--eg-muted));margin:0;font-size:.95rem}
.eg-ficha__hero-launch strong{color:hsl(var(--eg-fg));margin-left:.25em}
.eg-ficha__hero-side{display:flex;flex-direction:column;gap:1rem}
.eg-ficha__hero-score{text-align:right}
.eg-ficha__hero-score-label{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:hsl(var(--eg-muted));margin-bottom:.4rem;font-weight:600}
.eg-ficha__hero-score-bar{display:block;width:32px;height:4px;background:hsl(var(--eg-primary));border-radius:2px;margin:0 0 .35rem auto}
.eg-ficha__hero-score-value{line-height:1;font-size:1rem;color:hsl(var(--eg-muted))}
.eg-ficha__hero-score-value strong{font-size:2.5rem;font-weight:800;color:hsl(var(--eg-fg));letter-spacing:-.03em}
.eg-ficha__hero-price{background:hsl(var(--eg-bg));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);padding:1.25rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.eg-ficha__hero-price-label{color:hsl(var(--eg-muted));font-size:.85rem}
.eg-ficha__hero-price-value{font-size:2rem;font-weight:800;color:hsl(var(--eg-primary));letter-spacing:-.02em;line-height:1}
.eg-ficha__hero-price-origin{display:block;margin-top:.3rem;font-size:.8rem;color:hsl(var(--eg-muted));font-weight:500}
.eg-ficha__hero-link{display:inline-flex;align-items:center;justify-content:center;gap:.5em;width:100%;padding:.85rem 1.2rem;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg,0 0% 100%));border-radius:10px;font-weight:700;text-decoration:none;margin-top:.35rem;transition:transform .15s ease,filter .15s ease}
.eg-ficha__hero-link:hover{transform:translateY(-1px);filter:brightness(1.08)}
.eg-ficha__hero-price-note{font-size:.75rem;color:hsl(var(--eg-muted))}
.eg-ficha__tabs{display:flex;flex-wrap:wrap;gap:.35rem;margin:1.5rem 0;border-bottom:1px solid hsl(var(--eg-border));padding-bottom:.5rem}
.eg-ficha__tab{padding:.5rem 1rem;border-radius:8px;font-weight:600;color:hsl(var(--eg-muted));text-decoration:none;font-size:.95rem;transition:background .15s,color .15s}
.eg-ficha__tab:hover,.eg-ficha__tab.is-active{background:hsl(var(--eg-bg));color:hsl(var(--eg-fg))}
.eg-ficha__section{margin:2.5rem 0;scroll-margin-top:90px}
.eg-ficha__section-title{font-family:var(--eg-font-display);font-size:1.5rem;font-weight:800;margin:0 0 1.25rem;color:hsl(var(--eg-fg))}
.eg-ficha__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
/* Rede de seguran\u00e7a: quando o n\u00famero de cards \u00e9 \u00edmpar, o \u00faltimo
   ocupa as 2 colunas no desktop \u2014 evita espa\u00e7o vazio na \u00faltima linha
   sem precisar reorganizar grupos. No mobile, todos j\u00e1 ocupam 1 coluna,
   ent\u00e3o o seletor n\u00e3o afeta nada l\u00e1. */
@media(min-width:768px){.eg-ficha__grid > .eg-ficha__card:last-child:nth-child(odd){grid-column:1 / -1}}
.eg-ficha__card{background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);overflow:hidden;box-shadow:var(--eg-shadow)}
.eg-ficha__card-header{padding:1rem 1.25rem .85rem;background:hsl(var(--eg-bg))}
.eg-ficha__card-header h2{margin:0;font-size:1.05rem;font-weight:700;color:hsl(var(--eg-fg))}
.eg-ficha__card-list{margin:0;padding:0}
.eg-ficha__card-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:1rem;align-items:start;padding:.85rem 1.25rem;border-top:1px solid hsl(var(--eg-border))}
.eg-ficha__card-row:first-child{border-top:0}
/* Tarefa 4: hierarquia de câmeras — cabeçalho de subgrupo + sensores recuados */
.eg-ficha__card-subgroup{padding:.7rem 1.25rem .4rem;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--eg-primary));border-top:1px solid hsl(var(--eg-border))}
.eg-ficha__card-subgroup:first-child{border-top:0}
.eg-ficha__card-row--indented{padding-left:2rem;border-top:0}
.eg-ficha__card-row--indented dt{font-size:.9rem}
.eg-ficha__card-subgroup + .eg-ficha__card-row--indented{border-top:0}
.eg-ficha__card-row dt{display:flex;align-items:center;gap:.55em;color:hsl(var(--eg-muted));margin:0;font-size:.95rem;font-weight:500}
.eg-ficha__card-row dd{margin:0;color:hsl(var(--eg-fg));font-weight:600;word-break:break-word;text-align:right}
.eg-ficha-icon{flex-shrink:0;color:hsl(var(--eg-primary));width:20px;height:20px}
.eg-ficha__empty{color:hsl(var(--eg-muted));padding:2rem;text-align:center;border:1px dashed hsl(var(--eg-border));border-radius:var(--eg-radius)}
.eg-ficha__proscons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.eg-ficha .eg-box{padding:1.25rem 1.5rem;border-radius:var(--eg-radius);border:1px solid hsl(var(--eg-border))}
.eg-ficha .eg-box-pros{background:hsl(142 70% 45%/.08);border-color:hsl(142 70% 45%/.25)}
.eg-ficha .eg-box-cons{background:hsl(350 80% 55%/.08);border-color:hsl(350 80% 55%/.25)}
.eg-ficha .eg-box h3{margin:0 0 .75rem;font-size:1.05rem;font-weight:700}
.eg-ficha .eg-box ul{margin:0;padding-left:1.2rem}
.eg-ficha .eg-box li{margin-bottom:.4em}
.eg-ficha__verdict{margin-top:1.5rem;padding:1.25rem 1.5rem;background:hsl(var(--eg-bg));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius)}
.eg-ficha__verdict h3{margin:0 0 .5rem;font-size:1.05rem;font-weight:700}
.eg-ficha__verdict p{margin:0}
.eg-ficha__news{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem}
.eg-ficha__news-item{display:block;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);overflow:hidden;text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease}
.eg-ficha__news-item:hover{transform:translateY(-2px);box-shadow:var(--eg-shadow)}
.eg-ficha__news-thumb img{width:100%;height:140px;object-fit:cover;display:block}
.eg-ficha__news-title{display:block;padding:.85rem 1rem;font-weight:600;font-size:.95rem;line-height:1.35}
.eg-ficha__stores{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.eg-ficha__store{display:grid;grid-template-columns:minmax(0,1.5fr) auto minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem 1.25rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius)}
.eg-ficha__store.is-best{border-color:hsl(var(--eg-primary))}
.eg-ficha__store-name{font-weight:600}
.eg-ficha__store-best{padding:.2rem .55rem;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg,0 0% 100%));font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:999px}
.eg-ficha__store-price{text-align:right;font-size:1.1rem}
.eg-ficha__store-price strong{color:hsl(var(--eg-primary));font-weight:800}
.eg-ficha__store-dash{color:hsl(var(--eg-muted))}
.eg-ficha__store-link{display:inline-block;padding:.6rem 1.1rem;background:hsl(var(--eg-primary));color:hsl(var(--eg-primary-fg,0 0% 100%));border-radius:8px;font-weight:700;text-decoration:none;font-size:.9rem}
.eg-ficha__back{margin:2.5rem 0 1rem}
.eg-ficha__back a{color:hsl(var(--eg-primary));text-decoration:none;font-weight:600;font-size:.95rem}
.eg-ficha__back a:hover{text-decoration:underline}
@media(max-width:960px){.eg-ficha__hero-card{grid-template-columns:1fr}.eg-ficha__hero-side{flex-direction:row;flex-wrap:wrap}.eg-ficha__hero-score,.eg-ficha__hero-price{flex:1;min-width:240px}.eg-ficha__hero-score{text-align:left}.eg-ficha__hero-score-bar{margin-left:0}}
@media(max-width:720px){.eg-ficha__hero-main{grid-template-columns:170px 1fr}.eg-ficha__grid,.eg-ficha__proscons{grid-template-columns:1fr}.eg-ficha__card-row{grid-template-columns:1fr;gap:.3rem}.eg-ficha__card-row dd{text-align:left}.eg-ficha__store{grid-template-columns:1fr}.eg-ficha__store-price{text-align:left}}
@media(max-width:480px){.eg-ficha__hero-main{grid-template-columns:1fr}.eg-ficha__hero-image{max-width:200px;margin:0 auto}.eg-ficha__hero-side{flex-direction:column}}

/* ===== Ficha: abas dinâmicas (sticky) v3.2.1 ===== */
.eg-ficha__tabs{position:sticky;top:var(--eg-header-h,72px);z-index:20;background:hsl(var(--eg-bg));margin:1.5rem 0 0;padding:.5rem 0;border-bottom:1px solid hsl(var(--eg-border))}
.eg-ficha__tab{appearance:none;border:0;background:transparent;font-family:inherit;cursor:pointer}
/* Sem JS: todos os painéis visíveis (progressive enhancement) */
.eg-ficha__panel{display:block}
.eg-ficha__panel+.eg-ficha__panel{border-top:1px solid hsl(var(--eg-border));margin-top:1.5rem;padding-top:1.5rem}
/* Com JS: só o painel ativo aparece */
.eg-ficha--tabs-js .eg-ficha__panel{display:none;animation:eg-fade .22s ease}
.eg-ficha--tabs-js .eg-ficha__section.eg-ficha__panel{margin-top:0;margin-bottom:0}
.eg-ficha--tabs-js .eg-ficha__panel.is-active{display:block;padding-top:1.5rem}
.eg-ficha--tabs-js .eg-ficha__panel+.eg-ficha__panel{border-top:0;margin-top:0;padding-top:0}
/* Bloco editorial: sem JS sempre visível; com JS acompanha Especificações */
.eg-ficha--tabs-js .eg-ficha__editorial{display:none;margin-top:1.5rem;border-top:1px solid hsl(var(--eg-border));padding-top:1.5rem}
.eg-ficha--tabs-js .eg-ficha__editorial.is-active{display:block}
.eg-ficha__panel:focus{outline:none}
.eg-ficha__panel:focus-visible{outline:2px solid hsl(var(--eg-primary));outline-offset:4px;border-radius:var(--eg-radius)}
@keyframes eg-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:720px){.eg-ficha__tabs{top:var(--eg-header-h-mobile,56px);overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.eg-ficha__tab{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.eg-ficha--tabs-js .eg-ficha__panel{animation:none}}

/* ===== Ficha: integração ContentEgg (v3.2.2) ===== */
/* Reset leve no painel ContentEgg pra ele respeitar o container do tema. */
.eg-ficha__panel--contentegg{max-width:100%}
.eg-ficha__panel--contentegg .cegg5-container{margin-top:1rem}
/* Os blocos do ContentEgg trazem CSS próprio (Bootstrap-like).
   Garante que os títulos não conflitem visualmente com nossa hierarquia. */
.eg-ficha__panel--contentegg .cegg-price-history-title,
.eg-ficha__panel--contentegg .cegg-price-alert-title{margin-top:1.5rem;font-family:var(--eg-font-display);font-size:1.15rem;font-weight:700}

/* ===== Ficha: aba Vídeos (v3.2.3) ===== */
.eg-ficha__videos{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:1rem}
.eg-ficha__gphotos-intro{color:hsl(var(--eg-muted));font-size:.95rem;line-height:1.6;margin:0 0 1rem;max-width:60ch}
.eg-ficha__video{appearance:none;background:none;border:0;padding:0;cursor:pointer;text-align:left;width:100%;color:inherit;font:inherit}
.eg-ficha__video-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#000}
.eg-ficha__video-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.eg-ficha__video:hover .eg-ficha__video-thumb img,.eg-ficha__video:focus-visible .eg-ficha__video-thumb img{transform:scale(1.05)}
.eg-ficha__video-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:48px;text-shadow:0 2px 12px rgba(0,0,0,.65);background:rgba(0,0,0,.18);transition:background .2s ease}
.eg-ficha__video:hover .eg-ficha__video-play,.eg-ficha__video:focus-visible .eg-ficha__video-play{background:rgba(0,0,0,.28)}
.eg-ficha__video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:8px;display:block}
.eg-ficha__video.is-playing{cursor:default}
.eg-ficha__video.is-playing .eg-ficha__video-thumb{display:none}

/* ===== Card de ficha (v3.2.4) ===== */
/* Usado no fim de matérias (.eg-ficha-cards) e na seção "Geração anterior" (.eg-prev-gen-section). */
.eg-ficha-cards{margin:2.5rem 0 1.5rem;border-top:1px solid hsl(var(--eg-border));padding-top:1.5rem}
.eg-ficha-cards__heading,.eg-prev-gen-section__heading{font-family:var(--eg-font-display);font-size:1.35rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--eg-primary));margin:0 0 1rem}
.eg-prev-gen-section{margin:2rem 0 1rem}
.eg-prev-gen-section__cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}

.eg-ficha-card{display:grid;grid-template-columns:120px 1fr;gap:16px;padding:14px;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:12px;margin-bottom:14px;transition:border-color .2s ease,transform .2s ease;align-items:center}
.eg-ficha-card:hover{border-color:hsl(var(--eg-primary));transform:translateY(-1px)}
.eg-ficha-card__thumb{display:block;border-radius:8px;overflow:hidden;background:transparent;aspect-ratio:1/1;align-self:center}
.eg-ficha-card__thumb img{width:100%;height:100%;object-fit:contain;display:block}
.eg-ficha-card__body{display:flex;flex-direction:column;min-width:0}
.eg-ficha-card__label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--eg-primary));font-weight:700;margin:0 0 4px}
.eg-ficha-card__title{font-size:1.05rem;font-weight:700;margin:0 0 6px;line-height:1.3}
.eg-ficha-card__title a{color:inherit;text-decoration:none}
.eg-ficha-card__title a:hover{color:hsl(var(--eg-primary))}
.eg-ficha-card__excerpt{font-size:.9rem;color:hsl(var(--eg-muted));margin:0 0 10px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.eg-ficha-card__offer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:8px 12px;background:hsl(var(--eg-primary)/.08);border-radius:8px;margin:auto 0 10px}
.eg-ficha-card__offer-label{font-size:11px;color:hsl(var(--eg-muted));text-transform:uppercase;letter-spacing:.05em}
.eg-ficha-card__offer-price{font-size:1.1rem;font-weight:800;color:hsl(var(--eg-fg))}
.eg-ficha-card__offer-origin{display:block;font-size:.72rem;color:hsl(var(--eg-muted));font-weight:500;margin-top:1px}
.eg-ficha-card__cta{display:inline-block;padding:6px 14px;border-radius:6px;font-size:13px;font-weight:600;text-decoration:none;transition:opacity .2s ease}
.eg-ficha-card__cta--buy{background:hsl(var(--eg-primary));color:#fff;margin-left:auto}
.eg-ficha-card__cta--buy:hover{opacity:.9}
.eg-ficha-card__cta--ghost{color:hsl(var(--eg-primary));padding-left:0}
.eg-ficha-card__cta--ghost:hover{text-decoration:underline}
.eg-ficha-card__actions{margin:0}

/* Variante compacta — usada na seção "Geração anterior". */
.eg-ficha-card--compact{grid-template-columns:80px 1fr;padding:10px;gap:12px}
.eg-ficha-card--compact .eg-ficha-card__excerpt{display:none}
.eg-ficha-card--compact .eg-ficha-card__title{font-size:.95rem}

/* Mobile: thumbnail no topo, full width. */
@media (max-width:640px){
    .eg-ficha-card{grid-template-columns:1fr}
    .eg-ficha-card__thumb{aspect-ratio:1/1;max-height:220px;max-width:220px;margin:0 auto}
    .eg-ficha-card--compact{grid-template-columns:60px 1fr}
    .eg-ficha-card--compact .eg-ficha-card__thumb{aspect-ratio:1/1;max-height:none}
}

/* ===== Páginas de Marca e Categoria (v3.2.5) ===== */
.eg-tax-header{padding:2.5rem 0 1.5rem;border-bottom:1px solid hsl(var(--eg-border));margin-bottom:2rem}
.eg-tax-header__kicker{font-size:.85rem;text-transform:uppercase;letter-spacing:.1em;color:hsl(var(--eg-primary));font-weight:700;margin:0 0 .25rem}
.eg-tax-header__title{font-size:2.4rem;font-weight:800;margin:0 0 .5rem;line-height:1.15;color:hsl(var(--eg-primary))}
.eg-tax-header__description{color:hsl(var(--eg-muted));font-size:1.05rem;line-height:1.6;max-width:65ch;margin:0 0 1rem}
.eg-tax-header__meta{font-size:.9rem;color:hsl(var(--eg-muted));margin:0}
.eg-tax-header__inner{display:block}
.eg-tax-header__body{min-width:0}
.eg-tax-header__logo{display:none}
@media(min-width:900px){
    .eg-tax-header__inner--has-logo{display:grid;grid-template-columns:minmax(0,1fr) clamp(200px,28%,320px);gap:2.5rem;align-items:center}
    .eg-tax-header__logo{display:flex;align-items:center;justify-content:center;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);padding:1.5rem;aspect-ratio:1/1;max-width:100%}
    .eg-tax-header__logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
}
/* Layout 2 colunas no archive de marca: main (produtos) + sidebar (matérias) */
.eg-tax-wrap{margin:1.5rem 0 0}
.eg-tax-wrap--has-sidebar{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:1024px){
    .eg-tax-wrap--has-sidebar{grid-template-columns:minmax(0,1fr) 340px;gap:2.5rem}
}
.eg-tax-main{min-width:0}
.eg-tax-sidebar{min-width:0}
.eg-tax-section--sidebar{margin:0;position:sticky;top:1rem}
.eg-tax-section--sidebar .eg-tax-section__title{font-size:1.1rem}

.eg-tax-sidebar__more{margin:1rem 0 0;text-align:right}
.eg-tax-sidebar__more-link{display:inline-block;font-size:.85rem;font-weight:700;color:hsl(var(--eg-primary));text-decoration:none;padding:.4rem 0;border-bottom:1px solid transparent;transition:border-color .15s ease}
.eg-tax-sidebar__more-link:hover{border-color:hsl(var(--eg-primary))}

/* Toggle "Ver mais" — esconde cards extras até clicar */
.eg-tax-card--hidden{display:none}
.eg-tax-section--collapsible.is-expanded .eg-tax-card--hidden{display:block}
.eg-tax-sidebar__toggle-wrap{margin:.75rem 0 0;text-align:center}
.eg-tax-sidebar__toggle{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;width:100%;padding:.55rem 1rem;background:hsl(var(--eg-card));color:hsl(var(--eg-fg));border:1px solid hsl(var(--eg-border));border-radius:6px;font-size:.85rem;font-weight:700;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.eg-tax-sidebar__toggle:hover{background:hsl(var(--eg-primary)/.08);border-color:hsl(var(--eg-primary))}
.eg-tax-sidebar__toggle:focus-visible{outline:2px solid hsl(var(--eg-primary));outline-offset:2px}
.eg-tax-sidebar__toggle-less{display:none}
.eg-tax-section--collapsible.is-expanded .eg-tax-sidebar__toggle-more{display:none}
.eg-tax-section--collapsible.is-expanded .eg-tax-sidebar__toggle-less{display:inline}

.eg-tax-section{margin:2.5rem 0}

/* Cross-link reverso na página de tag: bloco "Veja fichas técnicas de [Marca]".
   Aparece apenas quando há marca APS correspondente com produtos publicados. */
.eg-brand-crosslink{
    margin:1.5rem 0 2.5rem;
    padding:1.25rem 1.5rem;
    background:linear-gradient(135deg, hsl(var(--eg-primary)/.08), hsl(var(--eg-card)));
    border:1px solid hsl(var(--eg-primary)/.3);
    border-radius:12px;
}
.eg-brand-crosslink__header{margin:0 0 1rem}
.eg-brand-crosslink__title{
    margin:0 0 .25rem;
    font-size:1.15rem;
    font-weight:700;
    color:hsl(var(--eg-fg));
    line-height:1.3;
}
.eg-brand-crosslink__meta{
    margin:0;
    font-size:.85rem;
    color:hsl(var(--eg-muted));
}
.eg-brand-crosslink__preview{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:.75rem;
    margin:0 0 1rem;
}
@media(max-width:600px){
    .eg-brand-crosslink__preview{grid-template-columns:repeat(3, minmax(0, 1fr));gap:.5rem}
}
.eg-brand-crosslink__card{
    display:flex;
    flex-direction:column;
    text-decoration:none;
    color:inherit;
    background:hsl(var(--eg-bg));
    border:1px solid hsl(var(--eg-border));
    border-radius:8px;
    overflow:hidden;
    transition:transform .15s ease, border-color .15s ease;
}
.eg-brand-crosslink__card:hover{
    transform:translateY(-2px);
    border-color:hsl(var(--eg-primary));
}
.eg-brand-crosslink__thumb{
    display:block;
    aspect-ratio:1/1;
    background:hsl(var(--eg-card));
    overflow:hidden;
}
.eg-brand-crosslink__thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
    box-sizing:border-box;
}
.eg-brand-crosslink__card-title{
    padding:.5rem .65rem;
    font-size:.8rem;
    font-weight:600;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.eg-brand-crosslink__cta-wrap{margin:0;text-align:right}
.eg-brand-crosslink__cta{
    display:inline-block;
    padding:.55rem 1.1rem;
    background:hsl(var(--eg-primary));
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:.9rem;
    border-radius:8px;
    transition:opacity .15s ease, transform .15s ease;
}
.eg-brand-crosslink__cta:hover{
    opacity:.92;
    transform:translateY(-1px);
}
.eg-tax-section__title{font-size:1.4rem;font-weight:700;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:2px solid hsl(var(--eg-primary));display:inline-block;color:hsl(var(--eg-fg))}
.eg-tax-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.eg-tax-grid--posts{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}

/* Sidebar: 1 coluna com cards horizontais compactos (thumb à esquerda,
   texto à direita). Padrão usado por grandes portais editoriais brasileiros.
   Razão de escolha: títulos editoriais costumam ter 60-80 caracteres; grids
   2-col em sidebar de 340px truncam em 15-20 chars, prejudicando o CTR. */
.eg-tax-grid--sidebar,
.eg-tax-grid--posts.eg-tax-grid--sidebar{display:flex;flex-direction:column;grid-template-columns:none;gap:10px}

/* Card horizontal: thumb à esquerda + corpo à direita. Override do
   layout vertical padrão (.eg-tax-card__link block + thumb full-width). */
.eg-tax-card--sidebar{border-radius:8px}
.eg-tax-card--sidebar .eg-tax-card__link{display:flex;flex-direction:row;align-items:stretch;gap:0}
.eg-tax-card--sidebar .eg-tax-card__thumb{flex:0 0 110px;width:110px;height:auto;aspect-ratio:16/10;padding:0;border-radius:8px 0 0 8px;overflow:hidden;background:hsl(var(--eg-card))}
.eg-tax-card--sidebar .eg-tax-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eg-tax-card--sidebar .eg-tax-card__body{flex:1 1 auto;padding:8px 10px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.eg-tax-card--sidebar .eg-tax-card__date{font-size:10px;color:hsl(var(--eg-muted));margin-bottom:3px;font-weight:500}
.eg-tax-card--sidebar .eg-tax-card__title{font-size:.85rem;line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:hsl(var(--eg-fg))}

@media(max-width:600px){
    .eg-tax-card--sidebar .eg-tax-card__thumb{flex:0 0 100px;width:100px}
}
.eg-tax-card{background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:10px;overflow:hidden;transition:border-color .2s ease,transform .2s ease}
.eg-tax-card:hover{border-color:hsl(var(--eg-primary));transform:translateY(-2px)}
.eg-tax-card__link{display:block;color:inherit;text-decoration:none}
.eg-tax-card__thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;overflow:hidden;background:hsl(var(--eg-card));padding:.75rem}
.eg-tax-card__thumb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.eg-tax-card__body{display:block;padding:12px 14px}
.eg-tax-card__label{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--eg-primary));font-weight:700;margin-bottom:4px}
.eg-tax-card__date{display:inline-block;font-size:11px;color:hsl(var(--eg-muted));margin-bottom:4px}
.eg-tax-card__title{display:block;font-size:1rem;font-weight:700;line-height:1.3;color:hsl(var(--eg-fg))}
.eg-tax-card__price{display:block;font-size:.85rem;color:hsl(var(--eg-muted));margin-top:6px}
.eg-tax-card__price strong{color:hsl(var(--eg-fg));font-weight:800}
.eg-tax-card__price-origin{display:block;font-size:.72rem;color:hsl(var(--eg-muted));font-weight:500;margin-top:1px}
.eg-tax-pagination{margin:2rem 0;text-align:center}
.eg-tax-pagination .page-numbers{display:inline-block;padding:6px 12px;margin:0 2px;border:1px solid hsl(var(--eg-border));border-radius:6px;text-decoration:none;color:inherit}
.eg-tax-pagination .page-numbers.current{background:hsl(var(--eg-primary));color:#fff;border-color:hsl(var(--eg-primary))}
.eg-tax-empty{padding:3rem 0;text-align:center;color:hsl(var(--eg-muted));font-size:1.05rem}

/* Listagem de marcas /fichas-tecnicas-marcas/ */
.eg-brands-alpha{position:sticky;top:0;display:flex;flex-wrap:wrap;gap:.5rem;padding:1rem 0;margin:0 0 2rem;background:hsl(var(--eg-bg));border-bottom:1px solid hsl(var(--eg-border));z-index:5}
.eg-brands-alpha a{display:inline-block;min-width:2rem;padding:.4rem .6rem;border:1px solid hsl(var(--eg-border));border-radius:6px;font-weight:700;color:hsl(var(--eg-fg));text-align:center;text-decoration:none;transition:border-color .2s ease,color .2s ease,background-color .2s ease}
.eg-brands-alpha a:hover{border-color:hsl(var(--eg-primary));color:hsl(var(--eg-primary));background:hsl(var(--eg-primary)/.08)}
.eg-brands-section{margin:0 0 2.5rem}
.eg-brands-section__heading{font-size:1.5rem;font-weight:800;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid hsl(var(--eg-border));color:hsl(var(--eg-primary))}
.eg-brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}
.eg-brand-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem 1rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);color:hsl(var(--eg-fg));text-decoration:none;transition:border-color .2s ease,transform .2s ease}
.eg-brand-card:hover{border-color:hsl(var(--eg-primary));transform:translateY(-2px)}
.eg-brand-card__logo{display:flex;align-items:center;justify-content:center;width:96px;height:96px;margin-bottom:.75rem}
.eg-brand-card__logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.eg-brand-card__initial{font-size:2.5rem;font-weight:800;color:hsl(var(--eg-primary));opacity:.4}
.eg-brand-card__name{font-weight:700;text-align:center;margin-bottom:.25rem}
.eg-brand-card__count{font-size:.85rem;color:hsl(var(--eg-muted));text-align:center}

/* ===== Bloco "Mais sobre <marca>" no rodapé das matérias (v3.2.5) ===== */
.eg-more-about{margin:2rem 0 1.5rem;border-top:1px solid hsl(var(--eg-border));padding-top:1.5rem}
.eg-more-about__heading{font-size:1.1rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--eg-muted));margin:0 0 1rem}
.eg-more-about__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.eg-more-about__more{margin:1rem 0 0;font-size:.95rem}
.eg-more-about__more a{color:hsl(var(--eg-primary));text-decoration:none;font-weight:600}
.eg-more-about__more a:hover{text-decoration:underline}

.eg-post-card{background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:8px;overflow:hidden;transition:border-color .2s ease}
.eg-post-card:hover{border-color:hsl(var(--eg-primary))}
.eg-post-card__link{display:block;color:inherit;text-decoration:none}
.eg-post-card__thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:#f3f4f6}
.eg-post-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eg-post-card__body{display:block;padding:10px 12px}
.eg-post-card__date{display:block;font-size:11px;color:hsl(var(--eg-muted));margin-bottom:3px}
.eg-post-card__title{display:block;font-size:.95rem;font-weight:600;line-height:1.35;color:hsl(var(--eg-fg))}

/* ===== Fix dark mode bleeding (v3.2.7) ===== */
/* Garante que o bloco editorial e seus blocos Gutenberg respeitem o
   tema escuro, prevenindo o WordPress global styles de impor background
   branco em containers genéricos. */
[data-theme="dark"] .eg-prose,
[data-theme="dark"] .eg-ficha__editorial,
[data-theme="dark"] .eg-ficha__editorial .wp-block-group,
[data-theme="dark"] .eg-ficha__editorial .wp-block-columns,
[data-theme="dark"] .eg-ficha__editorial .wp-block-column,
[data-theme="dark"] .eg-prose .wp-block-group,
[data-theme="dark"] .eg-prose .wp-block-columns,
[data-theme="dark"] .eg-prose .wp-block-column {
  background: transparent;
  color: hsl(var(--eg-fg));
}

/* Headings dentro do editorial não devem herdar cor de Global Styles. */
[data-theme="dark"] .eg-prose h2,
[data-theme="dark"] .eg-prose h3,
[data-theme="dark"] .eg-prose h4,
[data-theme="dark"] .eg-ficha__editorial h2,
[data-theme="dark"] .eg-ficha__editorial h3,
[data-theme="dark"] .eg-ficha__editorial h4 {
  color: hsl(var(--eg-fg));
}

/* Parágrafos e listas com cor correta. */
[data-theme="dark"] .eg-prose p,
[data-theme="dark"] .eg-prose li,
[data-theme="dark"] .eg-prose strong,
[data-theme="dark"] .eg-ficha__editorial p,
[data-theme="dark"] .eg-ficha__editorial li,
[data-theme="dark"] .eg-ficha__editorial strong {
  color: hsl(var(--eg-fg));
}

/* Defensivo: se o WordPress decidir injetar background em .has-bg-background-color
   (preset background do theme.json), neutraliza no dark. */
[data-theme="dark"] .has-bg-background-color {
  background-color: hsl(var(--eg-bg)) !important;
}
[data-theme="dark"] .has-fg-color {
  color: hsl(var(--eg-fg)) !important;
}

/* ============================================================
 * Aba "Análise" — embed de review/page/post dentro do single APS
 * ============================================================ */
.eg-ficha__tab-score{display:inline-block;margin-left:.35rem;padding:.05rem .35rem;background:hsl(var(--eg-primary)/.15);color:hsl(var(--eg-primary));border-radius:4px;font-size:.78rem;font-weight:700;vertical-align:middle}
.eg-ficha__hero-score{display:inline-flex;align-items:baseline;gap:.15rem;margin-top:.5rem;padding:.4rem .8rem;background:hsl(var(--eg-primary)/.12);color:hsl(var(--eg-primary));border-radius:8px;font-weight:800;align-self:flex-start}
.eg-ficha__hero-score-value{font-size:1.5rem;line-height:1}
.eg-ficha__hero-score-max{font-size:.85rem;opacity:.7}

.eg-review-embed{display:block}
.eg-review-embed__banner{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:1.25rem 1.5rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius);margin-bottom:1.5rem}
.eg-review-embed__meta{flex:1;min-width:240px}
.eg-review-embed__badge{display:inline-block;padding:.2rem .6rem;background:hsl(var(--eg-primary)/.15);color:hsl(var(--eg-primary));border-radius:999px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}
.eg-review-embed__title{font-size:1.4rem;font-weight:800;margin:0 0 .35rem;line-height:1.2;color:hsl(var(--eg-fg))}
.eg-review-embed__byline{font-size:.85rem;color:hsl(var(--eg-muted));margin:0}
.eg-review-embed__score{display:flex;align-items:baseline;gap:.15rem;padding:.6rem 1rem;background:hsl(var(--eg-primary)/.12);color:hsl(var(--eg-primary));border-radius:10px;font-weight:800;flex-shrink:0}
.eg-review-embed__score-value{font-size:1.8rem;line-height:1}
.eg-review-embed__score-max{font-size:.9rem;opacity:.7}
.eg-review-embed__original-link{display:inline-flex;align-items:center;font-size:.9rem;color:hsl(var(--eg-primary));text-decoration:none;font-weight:600;white-space:nowrap}
.eg-review-embed__original-link:hover{text-decoration:underline}
.eg-review-embed__body{margin:0 0 2rem}
.eg-review-embed__body :first-child{margin-top:0}
.eg-review-embed__footer{display:flex;flex-direction:column;align-items:center;gap:.85rem;padding:1.75rem 0 .5rem;border-top:1px solid hsl(var(--eg-border));text-align:center}
.eg-review-embed__cta{display:inline-block;padding:.85rem 2rem;background:hsl(var(--eg-primary));color:#fff;border-radius:8px;text-decoration:none;font-weight:700;font-size:1rem;transition:opacity .2s ease,transform .2s ease}
.eg-review-embed__cta:hover{opacity:.92;transform:translateY(-1px)}

/* Pros/cons da aba Análise */
.eg-review-embed__highlights{display:grid;grid-template-columns:1fr;gap:1.25rem;margin:0 0 1.5rem;padding:1.25rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:var(--eg-radius)}
@media(min-width:600px){.eg-review-embed__highlights{grid-template-columns:1fr 1fr}}
.eg-review-embed__pros h3,
.eg-review-embed__cons h3{font-size:.9rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 .6rem;font-weight:700}
.eg-review-embed__pros h3{color:#10b981}
.eg-review-embed__cons h3{color:#ef4444}
.eg-review-embed__pros ul,
.eg-review-embed__cons ul{margin:0;padding-left:1.2rem;list-style:disc;color:hsl(var(--eg-fg));font-size:.95rem;line-height:1.55}
.eg-review-embed__pros li{margin-bottom:.35rem}
.eg-review-embed__cons li{margin-bottom:.35rem}

/* (atribuição removida — redundante quando autor da análise e da ficha é o mesmo portal) */

/* Fallback no-js — quando o JavaScript do tema não roda, garante que todo
   o conteúdo permanece acessível. Sem isso, painéis de aba ficam invisíveis
   e a ficha técnica não funciona. */
html.no-js .eg-ficha__panel { display: block !important; opacity: 1 !important; }
html.no-js .eg-ficha__tabs { display: none !important; }
html.no-js .eg-ficha__section-title { display: block !important; }

/* Internal Linking automático (Toolkit v3.6+): links pra fichas APS
   inseridos no corpo das matérias. Identidade sutil — sublinhado pontilhado
   que vira sólido no hover, pra distinguir de links normais sem poluir. */
.eg-autolink{
    color:hsl(var(--eg-primary));
    text-decoration:underline;
    text-decoration-style:dotted;
    text-underline-offset:2px;
    transition:text-decoration-color .15s ease;
}
.eg-autolink:hover{
    text-decoration-style:solid;
    opacity:1;
}

/* Tooltip do auto-link APS (montado por main.js no hover, desktop only).
   Card flutuante: foto + nome + CTA. Sem preço (evita desatualização). */
.eg-autolink-tip{
    position:absolute;
    z-index:9999;
    display:flex;
    gap:.75rem;
    width:300px;
    max-width:calc(100vw - 16px);
    padding:.75rem;
    background:hsl(var(--eg-card));
    border:1px solid hsl(var(--eg-border));
    border-radius:12px;
    box-shadow:0 8px 28px hsl(0 0% 0% / .18);
    pointer-events:auto;
    text-decoration:none !important;
    color:inherit !important;
    cursor:pointer;
    transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    animation:eg-autolink-tip-in .15s ease;
}
.eg-autolink-tip:hover{
    border-color:hsl(var(--eg-primary));
    box-shadow:0 10px 32px hsl(var(--eg-primary) / .22);
    opacity:1;
}
.eg-autolink-tip:hover .eg-autolink-tip__btn{
    text-decoration:underline;
}
@keyframes eg-autolink-tip-in{
    from{opacity:0;transform:translateY(4px);}
    to{opacity:1;transform:translateY(0);}
}
.eg-autolink-tip__img{
    flex:0 0 72px;
    width:72px;
    height:72px;
    border-radius:8px;
    overflow:hidden;
    background:hsl(var(--eg-bg));
    display:flex;
    align-items:center;
    justify-content:center;
}
.eg-autolink-tip__img img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.eg-autolink-tip__body{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:.15rem;
    min-width:0;
}
.eg-autolink-tip__name{
    font-weight:700;
    font-size:.9rem;
    color:hsl(var(--eg-fg));
    line-height:1.25;
}
.eg-autolink-tip__cta{
    font-size:.78rem;
    color:hsl(var(--eg-muted));
    line-height:1.3;
}
.eg-autolink-tip__btn{
    margin-top:.3rem;
    font-size:.8rem;
    font-weight:600;
    color:hsl(var(--eg-primary));
}
/* Setinha (acima por padrão, abaixo quando --below) */
.eg-autolink-tip::after{
    content:"";
    position:absolute;
    bottom:-7px;
    left:50%;
    transform:translateX(-50%) rotate(45deg);
    width:12px;height:12px;
    background:hsl(var(--eg-card));
    border-right:1px solid hsl(var(--eg-border));
    border-bottom:1px solid hsl(var(--eg-border));
}
.eg-autolink-tip--below::after{
    bottom:auto;
    top:-7px;
    border:0;
    border-left:1px solid hsl(var(--eg-border));
    border-top:1px solid hsl(var(--eg-border));
}

/* Newsletter widget — feedback inline AJAX (Brevo) */
.eg-widget-newsletter__row{display:flex;gap:.5rem}
.eg-widget-newsletter__feedback{margin-top:.6rem;font-size:.85rem;padding:.4rem .6rem;border-radius:6px;display:block}
.eg-widget-newsletter__feedback--ok{background:hsl(142 70% 15%);color:hsl(142 70% 75%);border:1px solid hsl(142 60% 25%)}
.eg-widget-newsletter__feedback--error{background:hsl(0 70% 15%);color:hsl(0 70% 75%);border:1px solid hsl(0 60% 25%)}

/* Card de ficha no topo da matéria (estilo âncora, abaixo da imagem destacada) */
.eg-ficha-top{display:flex;align-items:center;gap:1rem;justify-content:space-between;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:12px;padding:.85rem 1rem;margin:0 0 1.5rem}
.eg-ficha-top__main{display:flex;align-items:center;gap:.85rem;flex:1;min-width:0;text-decoration:none}
.eg-ficha-top__thumb{flex:0 0 56px;width:56px;height:56px;border-radius:8px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.eg-ficha-top__thumb img{width:100%;height:100%;object-fit:contain;padding:.2rem}
.eg-ficha-top__name{font-weight:600;font-size:1rem;color:hsl(var(--eg-fg));line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.eg-ficha-top__btn{flex:0 0 auto;display:inline-flex;align-items:center;border:1px solid hsl(var(--eg-border));color:hsl(var(--eg-fg));border-radius:999px;padding:.5rem 1.1rem;font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .2s,color .2s}
.eg-ficha-top__btn:hover{border-color:hsl(var(--eg-primary));color:hsl(var(--eg-primary))}
@media(max-width:560px){.eg-ficha-top{flex-direction:column;align-items:stretch;text-align:left}.eg-ficha-top__btn{justify-content:center}}

/* ════════════════════════════════════════════════════════════════
   AVALIAÇÃO DE RUMOR (Rumor Assessment)
   ════════════════════════════════════════════════════════════════ */
.eg-rumor{position:relative;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:12px;padding:1rem 1.15rem;margin:0 0 1.5rem}
.eg-rumor__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}
.eg-rumor__tag{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--eg-muted))}
.eg-rumor__info{background:none;border:none;cursor:pointer;font-size:1rem;color:hsl(var(--eg-muted));line-height:1;padding:0;width:24px;height:24px;border-radius:50%}
.eg-rumor__info:hover{background:hsl(var(--eg-accent));color:hsl(var(--eg-fg))}

/* Barra geral */
.eg-rumor__bar-row{display:flex;align-items:center;gap:.85rem;margin-bottom:1rem}
.eg-rumor__pct{flex:0 0 auto;font-size:1.05rem;font-weight:800;color:#fff;padding:.35rem .7rem;border-radius:999px;min-width:54px;text-align:center}
.eg-rumor__bar{flex:1;min-width:0}
.eg-rumor__label{display:block;font-size:.95rem;font-weight:700;color:hsl(var(--eg-fg));margin-bottom:.35rem}
.eg-rumor__track{display:block;height:8px;background:hsl(var(--eg-accent));border-radius:999px;overflow:hidden}
.eg-rumor__fill{display:block;height:100%;border-radius:999px;transition:width .4s ease}

/* Sub-scores */
.eg-rumor__subs{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.eg-rumor__sub{background:hsl(var(--eg-accent));border-radius:8px;padding:.55rem .65rem}
.eg-rumor__sub-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem}
.eg-rumor__sub-label{font-size:.78rem;color:hsl(var(--eg-fg));font-weight:600}
.eg-rumor__sub-val{font-size:.72rem;color:hsl(var(--eg-muted));font-weight:600}
.eg-rumor__dots{display:flex;gap:3px}
.eg-rumor__dot{width:7px;height:7px;border-radius:50%;background:hsl(var(--eg-border))}

/* Cores por faixa (fixas — semânticas de credibilidade) */
.eg-rumor__pct--unlikely,.eg-rumor__fill--unlikely{background:#e8443a}
.eg-rumor__pct--questionable,.eg-rumor__fill--questionable{background:#f5811f}
.eg-rumor__pct--plausible,.eg-rumor__fill--plausible{background:#e0a800}
.eg-rumor__pct--probable,.eg-rumor__fill--probable{background:#2f7ed8}
.eg-rumor__pct--likely,.eg-rumor__fill--likely{background:#23a35a}
.eg-rumor__dot--unlikely{background:#e8443a}
.eg-rumor__dot--questionable{background:#f5811f}
.eg-rumor__dot--plausible{background:#e0a800}
.eg-rumor__dot--probable{background:#2f7ed8}
.eg-rumor__dot--likely{background:#23a35a}

/* Popover da escala */
.eg-rumor__scale{margin-top:.9rem;padding:.85rem 1rem;background:hsl(var(--eg-accent));border-radius:8px}
.eg-rumor__scale-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;color:hsl(var(--eg-fg))}
.eg-rumor__scale-close{background:none;border:none;cursor:pointer;font-size:1.2rem;line-height:1;color:hsl(var(--eg-muted));padding:0}
.eg-rumor__scale-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.eg-rumor__scale-list li{display:flex;align-items:flex-start;gap:.5rem;font-size:.82rem;color:hsl(var(--eg-fg))}
.eg-rumor__scale-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;margin-top:.35rem}

@media(max-width:560px){.eg-rumor__subs{grid-template-columns:repeat(2,1fr)}}



/* ════════════════════════════════════════════════════════════════
   COMPARAÇÃO APS — skin escopada (template aps/temps/aps-compare.php)
   O template usa as classes aps-* originais (pra preservar o JS do
   plugin). Estilizamos escopadas em .eg-aps-compare-wrap pra herdar
   o visual Videogameria e vencer o CSS claro do plugin no dark mode.
   ════════════════════════════════════════════════════════════════ */
.eg-aps-compare-wrap{min-width:0}
.eg-aps-compare-wrap .aps-main-title{font-size:clamp(1.5rem,3vw,2.2rem);color:hsl(var(--eg-fg));margin:0 0 1rem;line-height:1.2}
.eg-aps-compare-wrap .aps-comparison-content{color:hsl(var(--eg-fg));margin-bottom:1.5rem;line-height:1.7}
.eg-aps-compare-wrap .aps-comparison-content a{color:hsl(var(--eg-primary))}

/* Container + tabela */
.eg-aps-compare-wrap .aps-compare-container{overflow-x:auto;margin:0 0 1.5rem}
.eg-aps-compare-wrap .aps-group{margin:0 0 1.25rem;background:hsl(var(--eg-card))!important;border:1px solid hsl(var(--eg-border))!important;border-radius:12px!important;overflow:hidden}
.eg-aps-compare-wrap .aps-group-title{font-size:1rem;font-weight:700;color:hsl(var(--eg-fg))!important;margin:0;padding:.85rem 1.15rem;background:hsl(var(--eg-bg))!important;border-bottom:2px solid hsl(var(--eg-primary))}
.eg-aps-compare-wrap .aps-specs-table{width:100%;border-collapse:collapse;background:transparent!important;border:none}
.eg-aps-compare-wrap .aps-specs-table tr{background:transparent!important;border-top:1px solid hsl(var(--eg-border))!important}
.eg-aps-compare-wrap .aps-specs-table tr:first-child{border-top:none!important}
.eg-aps-compare-wrap .aps-specs-table tr:nth-child(odd){background:transparent!important}
.eg-aps-compare-wrap .aps-specs-table tr:nth-child(even){background:hsl(var(--eg-accent) / .4)!important}
.eg-aps-compare-wrap .aps-specs-table td{padding:.7rem 1.15rem!important;border-bottom:none!important;background:transparent!important;color:hsl(var(--eg-fg))!important;vertical-align:middle}
.eg-aps-compare-wrap .aps-specs-table tr:last-child td{border-bottom:none!important}
/* Bordas verticais entre colunas: do plugin vêm em #f1f2f3 (branco). Trocamos pelo token do tema. */
.eg-aps-compare-wrap .aps-attr-co,
.eg-aps-compare-wrap .aps-1co,
.eg-aps-compare-wrap .aps-2co,
.eg-aps-compare-wrap .aps-3co,
.eg-aps-compare-wrap .aps-4co,
.eg-aps-compare-wrap .aps-5co{border-left:1px solid hsl(var(--eg-border))!important}
.eg-aps-compare-wrap .aps-comp-selector > div:first-child,
.eg-aps-compare-wrap .aps-attr-value > span:first-child{border-left:none!important}

/* Coluna de rótulo */
.eg-aps-compare-wrap .aps-attr-title{width:170px;background:hsl(var(--eg-accent))!important}
.eg-aps-compare-wrap .aps-term{font-size:.85rem;font-weight:600;color:hsl(var(--eg-muted))!important}

/* Coluna de valores: contém N produtos lado a lado via spans */
.eg-aps-compare-wrap .aps-attr-value{color:hsl(var(--eg-fg))!important;display:flex}
.eg-aps-compare-wrap .aps-attr-value > span,
.eg-aps-compare-wrap .aps-comp-selector > div{display:inline-block;vertical-align:top;padding:0 .6rem;box-sizing:border-box}
.eg-aps-compare-wrap .aps-1co{width:100%}
.eg-aps-compare-wrap .aps-2co{width:50%}
.eg-aps-compare-wrap .aps-3co{width:33.33%}
.eg-aps-compare-wrap .aps-4co{width:25%}
.eg-aps-compare-wrap .aps-5co{width:20%}

/* Cabeçalho do produto (seletor) */
.eg-aps-compare-wrap .aps-comp-selector{display:flex}
.eg-aps-compare-wrap .aps-comp-title{font-size:.95rem;font-weight:700;margin:.5rem 0 0;line-height:1.3;text-align:center}
.eg-aps-compare-wrap .aps-comp-title a{color:hsl(var(--eg-primary))!important;text-decoration:none}
.eg-aps-compare-wrap .aps-comp-title a:hover{text-decoration:underline}
.eg-aps-compare-wrap .aps-comp-thumb,
.eg-aps-compare-wrap .aps-attr-value img{max-width:100%;max-height:200px;width:auto;height:auto;border-radius:8px;background:transparent;padding:.3rem;box-sizing:border-box;display:block;margin:0 auto;object-fit:contain}

/* Valores especiais */
.eg-aps-compare-wrap .aps-cr-price,
.eg-aps-compare-wrap .aps-price-value{font-weight:700;color:hsl(var(--eg-primary))!important}
.eg-aps-compare-wrap .aps-comp-rating{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:50%;background:hsl(var(--eg-primary));color:#fff!important;font-weight:700;font-size:.9rem}
.eg-aps-compare-wrap .aps-attr-value a{color:hsl(var(--eg-primary))!important;text-decoration:none}
.eg-aps-compare-wrap .aps-attr-value a:hover{text-decoration:underline}

/* Botão "selecionar produto" + busca (modo page) */
/* Botão "Select Product" na linha de títulos: esconde texto, mantém clicabilidade */
.eg-aps-compare-wrap .aps-select-comp,
.eg-aps-compare-wrap .aps-button.aps-btn-skin{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:.5rem;font-size:0!important;background:transparent!important;color:hsl(var(--eg-muted))!important;border:none!important;border-radius:8px;text-decoration:none;cursor:pointer;min-height:2rem}
.eg-aps-compare-wrap .aps-select-comp:hover{color:hsl(var(--eg-primary))!important}
/* Campo de busca e ícone de lupa */
.eg-aps-compare-wrap .aps-search-comp{width:100%;padding:.55rem 2.5rem .55rem .75rem;border:1px solid hsl(var(--eg-border));border-radius:8px;background:hsl(var(--eg-bg));color:hsl(var(--eg-fg));font-size:.9rem;outline:none}
.eg-aps-compare-wrap .aps-search-comp:focus{border-color:hsl(var(--eg-primary))}
/* Corrige ícone de busca branco: força cor no elemento que usa mask-SVG */
.eg-aps-compare-wrap .aps-pd-search{color:hsl(var(--eg-muted))!important;background:transparent!important;border:none!important;top:50%;transform:translateY(-50%)}
.eg-aps-compare-wrap .aps-pd-search:hover{color:hsl(var(--eg-primary))!important}
/* Grid de resultados: 3 colunas, cards com imagem */
.eg-aps-compare-wrap .aps-comp-results{list-style:none;margin:.5rem 0 0;padding:.5rem;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:10px;display:grid!important;grid-template-columns:repeat(4,1fr);gap:.4rem;max-height:none;overflow:visible}
.eg-aps-compare-wrap .aps-comp-results li{padding:0!important;margin:0!important;width:100%!important;display:block!important;border-bottom:none;border-radius:8px;overflow:hidden;border:1px solid hsl(var(--eg-border));background:hsl(var(--eg-bg));transition:border-color .15s,box-shadow .15s}
.eg-aps-compare-wrap .aps-comp-results li:hover{border-color:hsl(var(--eg-primary));box-shadow:0 0 0 1px hsl(var(--eg-primary) / .3);background:hsl(var(--eg-accent))}
/* Links: vence display:block e background:#fff do plugin */
.eg-aps-compare-wrap .aps-comp-results li a.aps-add-compare{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;padding:.5rem .4rem!important;gap:.35rem;text-decoration:none;color:hsl(var(--eg-fg))!important;cursor:pointer;background:transparent!important;border:none!important;box-shadow:none!important;height:100%;box-sizing:border-box}
.eg-aps-compare-wrap .aps-comp-results li a.aps-add-compare:hover{color:hsl(var(--eg-primary))!important}
/* Imagem: proporção retrato, vence width:100% do plugin */
.eg-aps-compare-wrap .aps-comp-results .aps-wd-thumb{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:80px;flex-shrink:0}
.eg-aps-compare-wrap .aps-comp-results .aps-wd-thumb img{width:auto!important;height:80px!important;max-width:100%!important;object-fit:contain;border-radius:4px;background:transparent!important;display:block!important}
.eg-aps-compare-wrap .aps-comp-results .aps-wd-title{font-size:.7rem;font-weight:600;line-height:1.25;color:inherit;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;max-height:none!important;padding:0!important;width:100%}
/* Slot vazio: div próprio substituindo a <img> placeholder do APS */
.eg-aps-compare-wrap .eg-comp-empty-slot{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;width:100%;min-height:140px;color:hsl(var(--eg-muted));cursor:pointer;border:2px dashed hsl(var(--eg-border))!important;border-radius:12px;background:hsl(var(--eg-accent))!important;transition:border-color .2s,color .2s,background .2s;padding:1rem;box-sizing:border-box;font-size:inherit!important}
.eg-aps-compare-wrap .eg-comp-empty-slot:hover{border-color:hsl(var(--eg-primary))!important;color:hsl(var(--eg-primary))!important;background:hsl(var(--eg-primary) / .06)!important}
.eg-aps-compare-wrap .eg-comp-empty-slot svg{width:40px;height:40px;opacity:.5;flex-shrink:0}
.eg-aps-compare-wrap .eg-comp-empty-slot span{font-size:.82rem!important;font-weight:600;opacity:.7;line-height:1}

/* Disclaimer */
.eg-aps-compare-wrap .aps-disclaimer-title{font-size:.9rem;color:hsl(var(--eg-fg));margin:1.5rem 0 .35rem}
.eg-aps-compare-wrap .aps-disclaimer-note{font-size:.82rem;color:hsl(var(--eg-muted))}

/* Remover produto */
.eg-aps-compare-wrap .aps-remove-compare{cursor:pointer;color:hsl(var(--eg-muted))}
.eg-aps-compare-wrap .aps-remove-compare:hover{color:#e8443a}

@media(max-width:640px){
  .eg-aps-compare-wrap .aps-attr-title{width:100px}
  .eg-aps-compare-wrap .aps-term{font-size:.75rem}
  .eg-aps-compare-wrap .aps-specs-table td{padding:.5rem .55rem!important}
}

/* ════════════════════════════════════════════════════════════════
   FAQ (shortcode [eg_faq] + FAQPage schema)
   ════════════════════════════════════════════════════════════════ */
.eg-faq{margin:2rem 0;border:1px solid hsl(var(--eg-border));border-radius:12px;background:hsl(var(--eg-card));overflow:hidden}
.eg-faq__title{font-size:1.2rem;font-weight:700;color:hsl(var(--eg-fg));margin:0;padding:1rem 1.25rem;border-bottom:1px solid hsl(var(--eg-border))}
.eg-faq__item{border-bottom:1px solid hsl(var(--eg-border))}
.eg-faq__item:last-child{border-bottom:none}
.eg-faq__q{cursor:pointer;padding:1rem 1.25rem;font-weight:600;font-size:.98rem;color:hsl(var(--eg-fg));list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.eg-faq__q::-webkit-details-marker{display:none}
.eg-faq__q::after{content:"+";font-size:1.3rem;color:hsl(var(--eg-primary));flex:0 0 auto;transition:transform .2s}
.eg-faq__item[open] .eg-faq__q::after{content:"−"}
.eg-faq__q:hover{color:hsl(var(--eg-primary))}
.eg-faq__a{padding:0 1.25rem 1.15rem;color:hsl(var(--eg-muted));font-size:.92rem;line-height:1.65}
.eg-faq__a p{margin:0 0 .6rem}
.eg-faq__a p:last-child{margin-bottom:0}

/* Ficha — aliases (Também conhecido como / Não confundir com) */
.eg-ficha__aliases{margin:0 0 1.5rem;padding:.85rem 1.15rem;background:hsl(var(--eg-accent));border-radius:10px;border:1px solid hsl(var(--eg-border))}
.eg-ficha__alias{margin:.25rem 0;font-size:.9rem;color:hsl(var(--eg-fg));line-height:1.5}
.eg-ficha__alias-label{font-weight:700;color:hsl(var(--eg-muted))}
.eg-ficha__alias a{color:hsl(var(--eg-primary));text-decoration:none}
.eg-ficha__alias a:hover{text-decoration:underline}
.eg-ficha__alias--warn .eg-ficha__alias-label{color:#e0a800}

/* ════════════════════════════════════════════════════════════════
   SearchWP Live Ajax Search — dark mode
   O plugin renderiza .searchwp-live-search-results com fundo claro
   fixo; no tema escuro isso causava texto branco em fundo branco.
   Alinhamos aos tokens --eg-* (e cobrimos light mode também).
   ════════════════════════════════════════════════════════════════ */
.searchwp-live-search-results{
  background: hsl(var(--eg-card)) !important;
  color: hsl(var(--eg-fg)) !important;
  border: 1px solid hsl(var(--eg-border)) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
  overflow: hidden;
  padding: .35rem 0;
}
.searchwp-live-search-results *{color: hsl(var(--eg-fg));}
.searchwp-live-search-result{
  padding: .65rem 1rem !important;
  border-bottom: 1px solid hsl(var(--eg-border));
  transition: background .15s;
}
.searchwp-live-search-result:last-child{border-bottom: none;}
.searchwp-live-search-result a{color: hsl(var(--eg-fg)) !important;text-decoration: none;font-weight: 600;}
.searchwp-live-search-result .eg-search-excerpt,
.searchwp-live-search-result p,
.searchwp-live-search-result small{color: hsl(var(--eg-muted)) !important;font-weight: 400;}
.searchwp-live-search-result--focused,
.searchwp-live-search-result:hover{background: hsl(var(--eg-accent)) !important;}
.searchwp-live-search-result--focused a,
.searchwp-live-search-result:hover a{color: hsl(var(--eg-primary)) !important;}
.searchwp-live-search-no-results,
.searchwp-live-search-no-min-chars{padding: .85rem 1rem !important;color: hsl(var(--eg-muted)) !important;}


/* Ficha — aviso de isenção de responsabilidade (disclaimer) */
.eg-ficha__disclaimer{display:flex;gap:.7rem;align-items:flex-start;margin:2rem 0 1rem;padding:.85rem 1.1rem;background:hsl(var(--eg-accent));border:1px solid hsl(var(--eg-border));border-radius:10px;border-left:3px solid hsl(var(--eg-muted))}
.eg-ficha__disclaimer-icon{flex:0 0 auto;font-size:1.1rem;color:hsl(var(--eg-muted));line-height:1.4}
.eg-ficha__disclaimer p{margin:0;font-size:.82rem;line-height:1.6;color:hsl(var(--eg-muted))}
.eg-ficha__disclaimer strong{color:hsl(var(--eg-fg))}

/* ════════════════════════════════════════════════════════════════
   COMPARAÇÃO POR SELEÇÃO — botão abaixo do card + barra fixa no TOPO
   ════════════════════════════════════════════════════════════════ */
/* Botão de comparar abaixo do card (estilo do plugin) */
.eg-compare-btn{display:inline-flex;align-items:center;gap:.5rem;justify-content:center;margin-top:.5rem;padding:.4rem 0;background:transparent;border:none;color:hsl(var(--eg-muted));font-size:.85rem;font-weight:600;cursor:pointer;transition:color .15s}
.eg-compare-btn:hover{border-color:hsl(var(--eg-primary));color:hsl(var(--eg-primary))}
.eg-compare-btn__box{width:16px;height:16px;border:2px solid currentColor;border-radius:4px;flex:0 0 auto;position:relative;transition:background .15s}
.eg-compare-btn.is-selected{color:hsl(var(--eg-primary));background:transparent}
.eg-compare-btn.is-selected .eg-compare-btn__box{background:hsl(var(--eg-primary));border-color:hsl(var(--eg-primary))}
.eg-compare-btn.is-selected .eg-compare-btn__box::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}

/* Barra de comparação — FIXA NO TOPO, destacada */
.eg-compare-tray{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:hsl(var(--eg-primary));color:#fff;box-shadow:0 -4px 20px rgba(0,0,0,.25);transform:translateY(100%);transition:transform .25s ease;animation:eg-tray-in .25s ease forwards}
@keyframes eg-tray-in{to{transform:translateY(0)}}
.eg-compare-tray[hidden]{display:none}
.eg-compare-tray__inner{max-width:1200px;margin:0 auto;padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.eg-compare-tray__head{display:flex;align-items:center;gap:.5rem;flex:0 0 auto;font-weight:700;font-size:.9rem}
.eg-compare-tray__icon{font-size:1.2rem}
.eg-compare-tray__count{font-size:.82rem;font-weight:600;opacity:.9}
.eg-compare-tray__items{display:flex;gap:.5rem;flex:1;flex-wrap:wrap;min-width:0}
.eg-compare-tray__item{display:inline-flex;align-items:center;gap:.6rem;background:rgba(255,255,255,.15);border-radius:10px;padding:.35rem .5rem .35rem .4rem;font-size:.82rem;color:#fff;max-width:240px}
.eg-compare-tray__thumb{flex:0 0 44px;width:44px;height:44px;border-radius:8px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.eg-compare-tray__thumb img{width:100%;height:100%;object-fit:contain;padding:2px;box-sizing:border-box}
.eg-compare-tray__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eg-compare-tray__remove{flex:0 0 auto;width:20px;height:20px;border:none;background:transparent;color:#fff;font-size:1.1rem;line-height:1;cursor:pointer;border-radius:50%;opacity:.8}
.eg-compare-tray__remove:hover{background:rgba(255,255,255,.25);opacity:1}
.eg-compare-tray__actions{display:flex;align-items:center;gap:.7rem;flex:0 0 auto}
.eg-compare-tray__clear{background:none;border:none;color:#fff;font-size:.82rem;cursor:pointer;text-decoration:underline;opacity:.85}
.eg-compare-tray__clear:hover{opacity:1}
.eg-compare-tray__go{display:inline-flex;align-items:center;gap:.4rem;background:#fff;color:hsl(var(--eg-primary));border:none;border-radius:8px;padding:.55rem 1.4rem;font-size:.9rem;font-weight:700;cursor:pointer}
.eg-compare-tray__go:hover{filter:brightness(.95)}
.eg-compare-tray__toast{position:absolute;top:-2.8rem;left:50%;transform:translateX(-50%);background:hsl(var(--eg-fg));color:hsl(var(--eg-bg));padding:.45rem .9rem;border-radius:8px;font-size:.82rem;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s}
.eg-compare-tray__toast.is-visible{opacity:1}
@media(max-width:640px){
  .eg-compare-tray__inner{padding:.55rem .7rem;gap:.5rem}
  .eg-compare-tray__head{width:100%}
  .eg-compare-tray__name{max-width:80px}
  .eg-compare-tray__items{order:3;width:100%}
  .eg-compare-tray__go{padding:.5rem 1rem;font-size:.85rem}
}

/* Botão de comparar dentro do card do APS (loop-products override) */
/* Título principal do catálogo APS: herda estilo do eg-post-title (azul, grande) */
.eg-aps-index-wrap .eg-breadcrumb{margin-top:1.25rem}
.eg-aps-index-wrap .aps-main-title{font-size:clamp(1.7rem,3.5vw,2.75rem);line-height:1.15;margin:1.5rem 0 .75rem;color:hsl(var(--eg-primary));font-weight:800;font-family:var(--eg-font-display)}
.eg-aps-index-wrap .aps-product-box .eg-compare-btn{margin:.5rem auto .75rem;display:flex}
.eg-aps-index-wrap .aps-product-box{display:flex;flex-direction:column}
/* Zera as variáveis CSS do APS no escopo do índice — anula a borda/sombra
   definida inline pelo plugin via --aps-skin-border e --aps-skin-box-shadow */
.eg-aps-index-wrap{--aps-skin-border:none;--aps-skin-box-shadow:none}
/* .aps-product-thumb tem border:5px solid transparent que causa o frame visível */
html .eg-aps-index-wrap .aps-product-thumb{border:none!important;padding:0!important}
html .eg-aps-index-wrap .aps-product-box{border:none!important;box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important}
.eg-aps-index-wrap .aps-product-box:hover .aps-product-thumb img{transform:none!important}
.eg-aps-index-wrap .aps-product-box:hover img{animation:none!important;-webkit-animation:none!important}
.eg-aps-index-wrap .aps-item-meta{flex:1}
/* Nome dos aparelhos: vence color:#727374 hardcoded do plugin */
[data-theme="dark"] .eg-aps-index-wrap .aps-product-title a,
[data-theme="dark"] .eg-aps-index-wrap .aps-product-title,
[data-theme="dark"] .eg-aps-index-wrap .aps-products-list .aps-product-details,
[data-theme="dark"] .eg-aps-index-wrap .aps-products-grid .aps-product-details{color:hsl(var(--eg-fg))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-product-title a:hover{color:hsl(var(--eg-primary))!important}
/* ── APS dropdowns e controles — dark mode ───────────────────── */
[data-theme="dark"] .eg-aps-index-wrap .aps-current-dp,
[data-theme="dark"] .eg-aps-compare-wrap .aps-current-dp{background:hsl(var(--eg-card))!important;color:hsl(var(--eg-fg))!important;border-color:hsl(var(--eg-border))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown:hover .aps-current-dp,
[data-theme="dark"] .eg-aps-compare-wrap .aps-dropdown:hover .aps-current-dp{background:hsl(var(--eg-primary))!important;color:#fff!important;border-color:hsl(var(--eg-primary))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown ul,
[data-theme="dark"] .eg-aps-compare-wrap .aps-dropdown ul{background:hsl(var(--eg-card))!important;border-color:hsl(var(--eg-border))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown ul li,
[data-theme="dark"] .eg-aps-compare-wrap .aps-dropdown ul li{border-color:hsl(var(--eg-border))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown ul li a,
[data-theme="dark"] .eg-aps-compare-wrap .aps-dropdown ul li a{color:hsl(var(--eg-fg))!important;background:transparent!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown ul li a:hover,
[data-theme="dark"] .eg-aps-compare-wrap .aps-dropdown ul li a:hover{background:hsl(var(--eg-accent))!important;color:hsl(var(--eg-primary))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-select-box,
[data-theme="dark"] .eg-aps-compare-wrap .aps-select-box{background:hsl(var(--eg-card))!important;color:hsl(var(--eg-fg))!important;border-color:hsl(var(--eg-border))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-select-icon,
[data-theme="dark"] .eg-aps-compare-wrap .aps-select-icon{color:hsl(var(--eg-muted))!important}
[data-theme="dark"] .eg-aps-index-wrap .aps-dropdown:hover .aps-select-icon{color:#fff!important}

/* ===== Card de marca no topo da matéria (eg-brandtop) ===== */
.eg-brandtop{display:flex;align-items:center;gap:16px;padding:14px 18px;margin:0 0 18px;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:14px;text-decoration:none;color:inherit;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.eg-brandtop:hover{border-color:hsl(var(--eg-primary));transform:translateY(-1px);box-shadow:0 6px 18px -8px hsl(var(--eg-primary) / .5)}
.eg-brandtop__logo{flex-shrink:0;width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:12px;overflow:hidden;background:hsl(var(--eg-accent))}
.eg-brandtop__logo-img,.eg-brandtop__logo img{width:100%;height:100%;object-fit:contain;display:block;padding:8px;box-sizing:border-box}
.eg-brandtop__logo--text{font-size:1.8rem;font-weight:800;color:hsl(var(--eg-primary))}
.eg-brandtop__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.eg-brandtop__label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--eg-primary));font-weight:700}
.eg-brandtop__name{font-size:1.25rem;font-weight:800;color:hsl(var(--eg-fg));line-height:1.15}
.eg-brandtop__count{font-size:.82rem;color:hsl(var(--eg-muted))}
.eg-brandtop__cta{flex-shrink:0;font-size:.9rem;font-weight:700;color:hsl(var(--eg-primary));white-space:nowrap;align-self:center}
@media(max-width:560px){.eg-brandtop__cta{display:none}.eg-brandtop__name{font-size:1.1rem}}

/* ============================================================
   Buscador de Fichas (página /buscar-fichas/)
   ============================================================ */
.eg-ficha-finder{padding:2rem 0}
.eg-ficha-finder__header{margin-bottom:1.5rem}
.eg-ficha-finder__title{font-family:var(--eg-font-display);font-size:1.9rem;font-weight:800;margin:0 0 .35rem;color:hsl(var(--eg-fg))}
.eg-ficha-finder__count{color:hsl(var(--eg-muted));margin:0}
.eg-ficha-finder__layout{display:grid;grid-template-columns:260px 1fr;gap:1.75rem;align-items:start}

/* Painel de filtros */
.eg-ficha-finder__filters{position:sticky;top:80px}
.eg-ff-form{background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));border-radius:12px;padding:1.1rem}
.eg-ff-form__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem;padding-bottom:.6rem;border-bottom:1px solid hsl(var(--eg-border))}
.eg-ff-form__head h2{font-size:1.1rem;font-weight:800;margin:0;color:hsl(var(--eg-fg))}
.eg-ff-clear{font-size:.82rem;color:hsl(var(--eg-primary-text));text-decoration:none}
.eg-ff-clear:hover{text-decoration:underline}
.eg-ff-group{margin-bottom:1rem}
.eg-ff-group__label{display:block;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:hsl(var(--eg-muted));margin-bottom:.5rem}
.eg-ff-options{display:flex;flex-direction:column;gap:.35rem;max-height:220px;overflow-y:auto}
.eg-ff-check{display:flex;align-items:center;gap:.5rem;font-size:.92rem;color:hsl(var(--eg-fg));cursor:pointer;line-height:1.3}
.eg-ff-check input{flex:0 0 auto}
.eg-ff-check em{color:hsl(var(--eg-muted));font-style:normal;font-size:.82rem}
.eg-ff-range{display:flex;align-items:center;gap:.4rem}
.eg-ff-range input{width:100%;min-width:0;padding:.45rem .55rem;border:1px solid hsl(var(--eg-border));border-radius:6px;background:hsl(var(--eg-bg));color:hsl(var(--eg-fg));font-size:.9rem}
.eg-ff-range__sep{color:hsl(var(--eg-muted));flex:0 0 auto}
.eg-ff-range__unit{color:hsl(var(--eg-muted));font-size:.85rem;flex:0 0 auto}
.eg-ff-empty{font-size:.85rem;color:hsl(var(--eg-muted));margin:0}
.eg-ff-submit{display:block;width:100%;margin-top:.5rem;padding:.7rem;background:hsl(var(--eg-primary));color:#fff;border:none;border-radius:8px;font-weight:700;font-size:.95rem;cursor:pointer;text-align:center;text-decoration:none;transition:filter .2s}
.eg-ff-submit:hover{filter:brightness(1.08)}

/* Resultados */
.eg-ff-toolbar{display:flex;justify-content:flex-end;margin-bottom:1rem}
.eg-ff-sort{font-size:.9rem;color:hsl(var(--eg-muted));display:flex;align-items:center;gap:.4rem}
.eg-ff-sort select{padding:.4rem .55rem;border:1px solid hsl(var(--eg-border));border-radius:6px;background:hsl(var(--eg-card));color:hsl(var(--eg-fg));font-size:.9rem}
.eg-ff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.eg-ff-noresults{text-align:center;padding:3rem 1rem;color:hsl(var(--eg-muted))}
.eg-ff-noresults .eg-ff-submit{display:inline-block;width:auto;margin-top:1rem;padding:.6rem 1.5rem}

/* Paginação */
.eg-ff-pagination{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:center;margin-top:1.75rem}
.eg-ff-page{min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;padding:0 .5rem;border:1px solid hsl(var(--eg-border));border-radius:8px;background:hsl(var(--eg-card));color:hsl(var(--eg-fg));text-decoration:none;font-size:.9rem;transition:background .2s}
.eg-ff-page:hover{background:hsl(var(--eg-accent))}
.eg-ff-page.is-current{background:hsl(var(--eg-primary));color:#fff;border-color:hsl(var(--eg-primary));font-weight:700}

@media (max-width:768px){
	.eg-ficha-finder__layout{grid-template-columns:1fr}
	.eg-ficha-finder__filters{position:static}
}

/* Buscador de Fichas — zonas de conteúdo SEO/E-E-A-T */
.eg-ficha-finder__intro{max-width:none;margin:0 0 1.75rem;padding:1.1rem 1.25rem;background:hsl(var(--eg-accent));border-radius:10px;color:hsl(var(--eg-fg));line-height:1.65}
.eg-ficha-finder__intro p{margin:0 0 .6rem}
.eg-ficha-finder__intro p:last-child{margin-bottom:0}
.eg-ficha-finder__outro{margin:2.5rem 0 0;padding-top:1.75rem;border-top:1px solid hsl(var(--eg-border));color:hsl(var(--eg-fg));line-height:1.7}
.eg-ficha-finder__outro p{margin:0 0 .8rem}
.eg-ficha-finder__faq{margin:2rem 0 0}
.eg-ficha-finder__faq h2{font-family:var(--eg-font-display);font-size:1.4rem;font-weight:800;margin:0 0 1rem;color:hsl(var(--eg-fg))}
.eg-faq-list{display:flex;flex-direction:column;gap:.6rem}
.eg-faq-item{border:1px solid hsl(var(--eg-border));border-radius:8px;background:hsl(var(--eg-card));overflow:hidden}
.eg-faq-item summary{padding:.85rem 1.1rem;font-weight:700;cursor:pointer;color:hsl(var(--eg-fg));list-style:none;position:relative;padding-right:2.5rem}
.eg-faq-item summary::-webkit-details-marker{display:none}
.eg-faq-item summary::after{content:"+";position:absolute;right:1.1rem;top:50%;transform:translateY(-50%);font-size:1.3rem;color:hsl(var(--eg-primary));transition:transform .2s}
.eg-faq-item[open] summary::after{content:"−"}
.eg-faq-answer{padding:0 1.1rem 1rem;color:hsl(var(--eg-fg));line-height:1.65}
.eg-faq-answer p{margin:0}

/* Buscador — opções de preset (radio) nos filtros de spec */
.eg-ff-radio{cursor:pointer}
.eg-ff-radio input{flex:0 0 auto}
.eg-ff-radio--clear{margin-top:.25rem;padding-top:.4rem;border-top:1px dashed hsl(var(--eg-border));opacity:.8}

/* ─────────────────────────────────────────────────────────────────────────
   Camada 3 — Comparação lado a lado de fichas (estilo GSMArena)
   Usa as variáveis de tema (--eg-primary etc.) p/ herdar paleta + dark mode.
   ───────────────────────────────────────────────────────────────────────── */
.eg-compare-page{max-width:1100px;margin:0 auto;padding:1.5rem 1rem 3rem}
.eg-compare-page__head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:1.25rem}
.eg-compare-page__head h1{font-size:1.6rem;margin:0;color:hsl(var(--eg-fg))}
.eg-compare-page__back{font-size:.9rem;color:hsl(var(--eg-primary));text-decoration:none}
.eg-compare-page__back:hover{text-decoration:underline}

.eg-compare-empty{text-align:center;padding:3rem 1rem;color:hsl(var(--eg-muted))}
.eg-compare-empty__cta{display:inline-block;margin-top:1rem;padding:.6rem 1.5rem;background:hsl(var(--eg-primary));color:#fff;border-radius:8px;text-decoration:none;font-weight:600}

/* Scroll horizontal no mobile; a 1ª coluna (rótulos) fica fixa (sticky). */
.eg-compare-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid hsl(var(--eg-border));border-radius:12px}
.eg-compare-table{border-collapse:collapse;width:100%;min-width:520px;font-size:.92rem}
.eg-compare-table th,.eg-compare-table td{padding:.7rem .85rem;text-align:left;border-bottom:1px solid hsl(var(--eg-border));vertical-align:middle}
.eg-compare-table__rowhead{position:sticky;left:0;z-index:2;background:hsl(var(--eg-card));font-weight:600;color:hsl(var(--eg-fg));white-space:nowrap;box-shadow:1px 0 0 hsl(var(--eg-border))}
.eg-compare-table__corner{color:hsl(var(--eg-muted));font-weight:700}
.eg-compare-table thead th{background:hsl(var(--eg-card));position:sticky;top:0;z-index:1}
.eg-compare-table thead .eg-compare-table__rowhead{z-index:3}

.eg-compare-device{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-decoration:none;color:hsl(var(--eg-fg));min-width:110px}
.eg-compare-device__img{width:150px;height:150px;object-fit:contain}
.eg-compare-device__name{font-size:.85rem;font-weight:600;text-align:center;line-height:1.2}

.eg-compare-cell{color:hsl(var(--eg-fg))}
.eg-compare-row--same td,.eg-compare-row--same .eg-compare-table__rowhead{color:hsl(var(--eg-muted))}
.eg-compare-cell--best{font-weight:700;color:hsl(var(--eg-primary))}
.eg-compare-cell__badge{margin-left:.25rem;font-size:.8rem}

/* "Mostrar apenas diferenças": esconde linhas iguais. */
.eg-compare-table--onlydiff .eg-compare-row--same{display:none}
.eg-compare-difftoggle{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;font-size:.9rem;color:hsl(var(--eg-muted));cursor:pointer}

@media (max-width:600px){
	.eg-compare-page__head h1{font-size:1.3rem}
	.eg-compare-table{font-size:.85rem}
	.eg-compare-device__img{width:100px;height:100px}
}
.eg-compare-faq--active{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid hsl(var(--eg-border))}
/* Botão "Comparar" nos cards do Buscador de Fichas */
.eg-ff-grid .eg-tax-card{display:flex;flex-direction:column}
.eg-ff-grid .eg-tax-card__link{flex:1 1 auto}
.eg-ff-grid .eg-compare-btn{margin:0;padding:.55rem;border-top:1px solid hsl(var(--eg-border));width:100%}
.eg-ff-grid .eg-compare-btn:hover{background:hsl(var(--eg-accent))}

/* Comparação — preço destacado no cabeçalho do aparelho */
.eg-compare-device__price{display:block;margin-top:.4rem;font-size:.95rem;font-weight:700;color:hsl(var(--eg-primary));text-align:center}

/* Comparação — seções detalhadas (estilo GSMArena) */
.eg-compare-scroll--section{margin-top:1.25rem}
.eg-compare-table__section{background:hsl(var(--eg-primary));color:#fff;font-size:1rem;font-weight:700;text-align:left;position:static}
.eg-compare-page--onlydiff .eg-compare-section--nodiff{display:none}

/* Comparação — adicionar aparelho (autocomplete estilo GSMArena) */
.eg-compare-add{margin-bottom:1rem;position:relative}
.eg-compare-add__toggle{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1rem;background:hsl(var(--eg-card));border:1px dashed hsl(var(--eg-border));border-radius:8px;color:hsl(var(--eg-primary));font-weight:600;font-size:.9rem;cursor:pointer;transition:border-color .2s,background .2s}
.eg-compare-add__toggle:hover{border-color:hsl(var(--eg-primary));background:hsl(var(--eg-accent))}
.eg-compare-add__panel{margin-top:.6rem;max-width:420px}
.eg-compare-add__input{width:100%;padding:.6rem .8rem;border:1px solid hsl(var(--eg-border));border-radius:8px;background:hsl(var(--eg-card));color:hsl(var(--eg-fg));font-size:.95rem}
.eg-compare-add__input:focus{outline:none;border-color:hsl(var(--eg-primary))}
.eg-compare-add__results{list-style:none;margin:.4rem 0 0;padding:0;border:1px solid hsl(var(--eg-border));border-radius:8px;overflow:hidden;background:hsl(var(--eg-card))}
.eg-compare-add__results:empty{display:none}
.eg-compare-add__result a{display:flex;align-items:center;gap:.65rem;padding:.55rem .7rem;text-decoration:none;color:hsl(var(--eg-fg));font-size:.9rem;transition:background .15s}
.eg-compare-add__result a:hover{background:hsl(var(--eg-accent))}
.eg-compare-add__result + .eg-compare-add__result a{border-top:1px solid hsl(var(--eg-border))}
.eg-compare-add__thumb{width:34px;height:34px;object-fit:contain;flex:0 0 auto}

/* Comparação — botão remover aparelho */
.eg-compare-table__device{position:relative}
.eg-compare-device__remove{position:absolute;top:.3rem;right:.3rem;z-index:2;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:hsl(var(--eg-card));border:1px solid hsl(var(--eg-border));color:hsl(var(--eg-muted));font-size:1.1rem;line-height:1;text-decoration:none;transition:color .15s,border-color .15s}
.eg-compare-device__remove:hover{color:#e5484d;border-color:#e5484d}
