/*
Theme Name: Virtubit Afiliados
Theme URI: https://virtubit.com.br
Author: Seu Nome
Author URI: https://virtubit.com.br
Description: Tema profissional para blog de tecnologia e marketing de afiliados — Virtubit.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtubit-afiliados
Tags: blog, technology, affiliate, one-column, two-columns, custom-colors, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* =============================================
   DESIGN SYSTEM — VARIÁVEIS CSS
   ============================================= */
:root {
  /* Paleta Principal */
  --color-purple:       #6C3BDA;
  --color-purple-dark:  #4A22A8;
  --color-purple-light: #9B6EF3;
  --color-blue:         #1B6FEB;
  --color-blue-dark:    #0F4DB5;
  --color-blue-light:   #5B9EFF;
  --color-gold:         #D4A017;
  --color-gold-light:   #F5C842;
  --color-gold-dark:    #A07800;
  --color-white:        #FFFFFF;
  --color-off-white:    #F5F4FF;
  --color-light-gray:   #EEEDF8;
  --color-mid-gray:     #8884A8;
  --color-dark:         #12102B;
  --color-dark-soft:    #1E1A3E;

  /* Gradientes */
  --gradient-hero:      linear-gradient(135deg, #12102B 0%, #1E1A3E 40%, #2A1870 100%);
  --gradient-accent:    linear-gradient(90deg, var(--color-purple) 0%, var(--color-blue) 100%);
  --gradient-gold:      linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold-light) 100%);
  --gradient-card:      linear-gradient(160deg, rgba(108,59,218,0.08) 0%, rgba(27,111,235,0.08) 100%);

  /* Tipografia */
  --font-heading:       'Sora', 'Segoe UI', sans-serif;
  --font-body:          'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:          'JetBrains Mono', 'Courier New', monospace;

  /* Espaçamentos */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Bordas */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(108,59,218,0.10);
  --shadow-md:  0 6px 24px rgba(108,59,218,0.16);
  --shadow-lg:  0 16px 48px rgba(108,59,218,0.22);
  --shadow-gold: 0 4px 20px rgba(212,160,23,0.30);

  /* Transições */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width:       1200px;
  --max-width-text:  780px;
  --header-height:   80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--color-dark);
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-blue); }
ul, ol { padding-left: var(--space-xl); }

/* =============================================
   TIPOGRAFIA
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: var(--space-md); }

/* =============================================
   UTILITÁRIOS
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}
.container--text { max-width: var(--max-width-text); }
.section { padding-block: var(--space-3xl); }
.section--sm { padding-block: var(--space-2xl); }
.hero + .section,
.hero + section { margin-top: 0; }
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--purple { background: rgba(108,59,218,0.12); color: var(--color-purple); }
.badge--gold   { background: rgba(212,160,23,0.15); color: var(--color-gold-dark); }
.badge--blue   { background: rgba(27,111,235,0.12); color: var(--color-blue); }

/* =============================================
   BOTÕES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn .virtubit-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}
.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,160,23,0.45);
  color: var(--color-dark);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* =============================================
   HEADER / NAVEGAÇÃO
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 16, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
  min-width: 0;
}
.site-logo {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white) !important;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.site-logo span { color: var(--color-gold-light) !important; }
.site-logo:hover { color: var(--color-white) !important; opacity: 0.9; }

/* Logo imagem — header */
.site-logo .custom-logo,
.site-logo img,
img.custom-logo {
  max-height: 48px !important;
  max-width: 240px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo imagem — rodapé */
.footer-logo .custom-logo,
.footer-brand .site-logo img {
  max-height: 64px !important;
  max-width: 280px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove link wrapper extra do WordPress dentro do site-logo */
.site-logo .custom-logo-link {
  display: contents;
}

/* Separar logo do menu — espaço à direita */
.site-logo {
  margin-right: 32px;
}

/* Logo personalizada (imagem via Customizer) */
.site-logo .custom-logo-link,
.site-logo .custom-logo-link:hover {
  display: flex;
  align-items: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .site-logo .custom-logo,
  .footer-logo .custom-logo,
  .footer-brand .site-logo img,
  img.custom-logo {
    max-height: 60px !important;
    max-width: 200px !important;
  }
}

.main-nav {
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--color-white); }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { width: 100%; }

.header-cta { display: flex; gap: var(--space-sm); align-items: center; }

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(108,59,218,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(27,111,235,0.20) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 65%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.hero-content {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.hero-eyebrow-line {
  width: 40px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.hero-eyebrow-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   SEÇÃO: ÚLTIMOS ARTIGOS
   ============================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  gap: var(--space-xl);
}
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: var(--space-sm);
}
.section-title { margin-bottom: 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  width: 100%;
  min-width: 0;
}

.posts-grid > * {
  min-width: 0;
}
.posts-grid--featured {
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
}
.posts-grid--featured .post-card:first-child {
  grid-row: span 2;
}

/* Card de Post */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,59,218,0.2);
}
.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gradient-card);
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Cards de Reviews, Guias e Comparativos: preservar a imagem inteira do produto.
   As imagens de produto costumam ser quadradas/verticais; cover cortava o produto. */
.post-card--product-image .post-card__thumb {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(145deg, #faf9ff 0%, #f1effb 100%);
}
.post-card--product-image .post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.post-card--product-image:hover .post-card__thumb img {
  transform: scale(1.025);
}

@media (max-width: 768px) {
  .post-card--product-image .post-card__thumb {
    min-height: 230px;
    padding: 14px;
  }
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-mid-gray);
}
.post-card__meta-sep { color: var(--color-light-gray); }
.post-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.post-card__title a { color: var(--color-dark); }
.post-card__title a:hover { color: var(--color-purple); }
.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-mid-gray);
  line-height: 1.6;
  flex: 1;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
  font-size: 0.82rem;
}
.post-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-mid-gray);
}
.post-card__author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-accent);
}
.post-card__read-time {
  color: var(--color-mid-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   SEÇÃO: PRODUTOS / AFILIADOS
   ============================================= */
.affiliate-section {
  background: var(--color-off-white);
  position: relative;
  overflow: hidden;
}
.affiliate-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,160,23,0.3);
}
.product-card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}
.product-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
}

/* Imagem grande no topo do card */
.product-card__image-link {
  display: block;
  text-decoration: none;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform 0.3s ease;
  display: block;
}
.product-card:hover .product-card__image {
  transform: scale(1.05);
}
.product-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  width: 100%;
  height: 100%;
}

/* Corpo do card */
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
  gap: var(--space-sm);
}

/* Tags de categoria */
.product-card__cats {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.product-card__cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-purple);
  background: rgba(108,59,218,0.08);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition-fast);
}
.product-card__cat-tag:hover { background: rgba(108,59,218,0.18); }

/* Nome */
.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.product-card__name a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.product-card__name a:hover { color: var(--color-purple); }

/* Avaliação */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.stars { color: var(--color-gold); font-size: 0.85rem; letter-spacing: 1px; }
.rating-count { font-size: 0.78rem; color: var(--color-mid-gray); }

/* Descrição — limitada a 3 linhas */
.product-card__description {
  font-size: 0.85rem;
  color: var(--color-mid-gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}

/* Preço */
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.price-original {
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  text-decoration: line-through;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
}
.price-period { font-size: 0.78rem; color: var(--color-mid-gray); }
.preco-economia {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Ações */
.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.product-card__btn-details {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
}
.product-card__cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
}
.product-card__disclosure {
  font-size: 0.7rem;
  color: var(--color-mid-gray);
  text-align: center;
  margin: 0;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(27,111,235,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(108,59,218,0.25) 0%, transparent 60%);
}
.newsletter-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}
.newsletter-icon {
  width: 72px; height: 72px;
  background: rgba(212,160,23,0.15);
  border: 2px solid rgba(212,160,23,0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 2rem;
}
.newsletter-section h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.newsletter-section p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-2xl); }
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin-inline: auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus {
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.12);
}
.newsletter-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-md);
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-2xl);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.content-sidebar-wrapper > main,
.content-sidebar-wrapper > .sidebar {
  min-width: 0;
  max-width: 100%;
}
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-light-gray);
}
.widget--affiliate {
  background: var(--gradient-hero);
  border-color: rgba(212,160,23,0.3);
}
.widget--affiliate .widget-title { color: var(--color-gold-light); border-color: rgba(212,160,23,0.2); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .site-logo { margin-bottom: var(--space-md); display: flex; align-items: center; gap: 0; line-height: 1; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social a:hover {
  background: var(--color-purple);
  color: var(--color-white);
  border-color: var(--color-purple);
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--color-gold-light); }
.affiliate-disclosure {
  text-align: center;
  padding: var(--space-sm) var(--space-xl);
  background: rgba(212,160,23,0.08);
  border-top: 1px solid rgba(212,160,23,0.15);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.blog-archive-hero {
  padding-block: var(--space-3xl);
}
.blog-archive-hero .container {
  max-width: var(--max-width-text);
}
.post-hero__description {
  color: rgba(255,255,255,0.72);
  margin-top: var(--space-md);
  max-width: 700px;
}
.archive-product-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.18em;
  color: var(--color-gold-light);
  vertical-align: -0.08em;
}
.archive-product-icon .virtubit-icon {
  width: 100%;
  height: 100%;
}
.virtubit-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  vertical-align: middle;
}
.virtubit-icon--eyebrow {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.35rem;
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero {
  background: var(--gradient-hero);
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.blog-archive-hero {
  border-bottom: 4px solid var(--color-blue);
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.post-hero h1 { color: var(--color-white); }
.post-hero__info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}

/* ── Imagem destaque padrão ─────────────────────────────────── */
.post-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f8f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.post-featured-img img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    display: block !important;
}

/* ── Layout VS: duas imagens lado a lado ────────────────────── */
.post-vs-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #f8f6ff;
    position: relative;
}

/* Cada coluna tem altura fixa igual */
.post-vs-images__item {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f6ff;
    padding: 20px;
    box-sizing: border-box;
}

/* Imagem se encaixa no espaço disponível sem corte */
.post-vs-images__item img {
    max-width: calc(100% - 0px) !important;
    max-height: 320px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: var(--radius-md) !important;
}

/* Divisória vertical entre as duas imagens */
.post-vs-images__item:first-child {
    border-right: 2px solid rgba(255,255,255,0.1);
}

/* Badge VS centralizado absolutamente */
.post-vs-images__badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6c3bda, #7c4bea);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff, 0 4px 20px rgba(108,59,218,0.5);
    letter-spacing: 1px;
    z-index: 3;
}

@media (max-width: 640px) {
    .post-vs-images {
        grid-template-columns: 1fr;
    }
    .post-vs-images__item {
        border-right: none !important;
        border-bottom: 2px solid rgba(255,255,255,0.1);
    }
    .post-vs-images__badge {
        top: 50%;
        left: 50%;
    }
}

.entry-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2A2742;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100%;
  height: auto;
}

.entry-content iframe {
  width: 100%;
}

.entry-content table {
  width: 100%;
  max-width: 100%;
}

.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.entry-content pre {
  max-width: 100%;
}
.entry-content h2 { margin: var(--space-2xl) 0 var(--space-md); color: var(--color-dark); }
.entry-content h3 { margin: var(--space-xl) 0 var(--space-sm); }
.entry-content a { color: var(--color-purple); border-bottom: 1px solid rgba(108,59,218,0.3); }
.entry-content a:hover { color: var(--color-blue); border-bottom-color: var(--color-blue); }
.entry-content blockquote {
  border-left: 4px solid var(--color-purple);
  background: var(--color-off-white);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--color-dark-soft);
}
.entry-content code {
  font-family: var(--font-mono);
  background: var(--color-light-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--color-purple-dark);
}
.entry-content pre {
  background: var(--color-dark);
  color: #e0d7ff;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

/* Caixa de afiliado dentro do post */
.affiliate-box {
  background: linear-gradient(135deg, var(--color-off-white) 0%, #EDE9FF 100%);
  border: 1px solid rgba(108,59,218,0.2);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}
.affiliate-box__content h4 { margin-bottom: var(--space-sm); }
.affiliate-box__content p { margin-bottom: var(--space-md); font-size: 0.92rem; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.breadcrumbs a { color: rgba(255,255,255,0.55); }
.breadcrumbs a:hover { color: var(--color-gold-light); }
.breadcrumbs-sep { color: rgba(255,255,255,0.2); }

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-light-gray);
  color: var(--color-dark);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--color-purple); color: var(--color-purple); }
.pagination .current {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--color-white);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1100px) and (min-width: 769px) {
  .header-inner {
    gap: var(--space-md);
  }

  .site-logo {
    margin-right: 12px;
  }

  .main-nav ul {
    gap: var(--space-lg);
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .header-cta .btn {
    padding-inline: 20px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .posts-grid--featured { grid-template-columns: 1fr; }
  .posts-grid--featured .post-card:first-child { grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 3rem; --space-2xl: 2rem; }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .site-logo .custom-logo,
  .site-logo img,
  img.custom-logo {
    max-width: min(200px, 100%);
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 16px 16px;
    background: rgba(18, 16, 43, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 0;
    width: 100%;
  }

  .main-nav.is-open li {
    width: 100%;
  }

  .main-nav.is-open a {
    display: block;
    width: 100%;
    padding: 12px 8px;
  }

  .main-nav.is-open a::after {
    display: none;
  }

  .posts-grid,
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .content-sidebar-wrapper {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .post-card,
  .product-card,
  .widget,
  .affiliate-box {
    min-width: 0;
    max-width: 100%;
  }

  .hero-stats { flex-wrap: wrap; gap: var(--space-xl); }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; min-width: 0; }
  .affiliate-box { flex-direction: column; }
  .section-header { flex-direction: column; align-items: flex-start; }

  .btn {
    max-width: 100%;
    white-space: normal;
  }

  .post-hero {
    overflow: hidden;
  }

  .post-hero .container {
    min-width: 0;
  }

  .post-hero__info {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero .container {
    display: block;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    gap: var(--space-lg);
  }

  .products-toolbar,
  .products-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .products-filters {
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
    white-space: normal;
  }

  .breadcrumbs {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* =============================================
   SINGLE PRODUTO AFILIADO
   ============================================= */
.produto-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}
.produto-single__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-light-gray);
  box-shadow: var(--shadow-lg);
  max-height: 250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.produto-single__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: contain;
}
.produto-badge-desconto {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: #e53935;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.02em;
}
.produto-single__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}
.produto-single__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.rating-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}
.rating-count {
  font-size: 0.88rem;
  color: var(--color-mid-gray);
}
.produto-single__preco {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
}
.preco-antigo {
  font-size: 1rem;
  color: var(--color-mid-gray);
  text-decoration: line-through;
}
.preco-atual {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
.preco-economia {
  font-size: 0.82rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.produto-single__cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.produto-single__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.produto-single__disclosure {
  font-size: 0.75rem;
  color: var(--color-mid-gray);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.produto-single__excerpt {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-purple-light);
  background: rgba(108,59,218,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-dark-soft);
  line-height: 1.6;
}
.produto-single__excerpt p { margin: 0; }
.produto-single__meta {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
}
.produto-single__conteudo {
  max-width: var(--max-width-text);
  margin: 0 auto;
}
.produto-single__cta-bottom {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-light-gray);
}
@media (max-width: 768px) {
  .produto-single-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .preco-atual { font-size: 1.8rem; }
  .produto-single__title { font-size: 1.5rem; }
}

/* Melhorias página de produto */
.produto-single-section {
  background: var(--color-white);
  padding-top: var(--space-2xl);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-mid-gray);
}
.breadcrumbs a {
  color: var(--color-purple);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs-sep {
  color: var(--color-light-gray);
}

/* ============================================================
   FRONT-PAGE — Estilos exclusivos (hp-cats, hp-trust, hp-about)
   ============================================================ */

/* Botões extras usados na front-page */
.btn--ghost {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.btn--ghost:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn--outline-purple {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.btn--outline-purple:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* --- Categorias em Destaque --- */
.hp-cats {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
}
.hp-cats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 960px;
  margin-inline: auto;
}
.hp-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-decoration: none;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(4px);
}
.hp-cat-card:hover {
  background: rgba(108,59,218,0.35);
  border-color: var(--color-purple-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108,59,218,0.3);
}
.hp-cat-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
}
.hp-cat-card__icon .virtubit-icon {
  width: 38px;
  height: 38px;
}
.hp-cat-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}
.hp-cat-card__count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* --- Por que Confiar --- */
.hp-trust {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}
.hp-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.hp-trust__item {
  text-align: center;
  padding: var(--space-xl);
}
.hp-trust__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
  margin-bottom: var(--space-md);
}
.hp-trust__icon .virtubit-icon {
  width: 42px;
  height: 42px;
}
.hp-trust__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}
.hp-trust__item p {
  font-size: 0.9rem;
  color: var(--color-mid-gray);
  line-height: 1.6;
}

/* --- Sobre o Site --- */
.hp-about {
  padding: var(--space-3xl) 0;
  background: var(--color-off-white);
}
.hp-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.hp-about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.hp-about__text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
}
.hp-about__text p {
  color: var(--color-mid-gray);
  line-height: 1.7;
}
.hp-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.hp-about__stat {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.hp-about__stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-about__stat-label {
  font-size: 0.85rem;
  color: var(--color-mid-gray);
  font-weight: 600;
}

/* --- Responsivo front-page --- */
@media (max-width: 900px) {
  .hp-cats__grid     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-trust__grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-about__inner   { grid-template-columns: 1fr; }
  .hp-about__stats   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hp-cats__grid     { grid-template-columns: 1fr; gap: var(--space-md); }
  .hp-trust__grid    { grid-template-columns: 1fr 1fr; }
  .hp-about__stats   { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PÁGINA DE PRODUTOS — Toolbar, Busca, Filtros, Card atualizado
   ============================================================ */

/* Toolbar */
.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Busca */
.products-search-wrap {
  position: relative;
  max-width: 420px;
}
.products-search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.products-search {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) * 2 + 1.2rem);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.products-search:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(108,59,218,0.12);
}

/* Filtros */
.products-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: var(--space-xs) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-mid-gray);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.filter-btn:hover,
.filter-btn:focus-visible {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(108,59,218,0.18);
}
.filter-btn--active,
.filter-btn--active:hover,
.filter-btn--active:focus-visible {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

/* Contador */
.products-count {
  font-size: 0.9rem;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-xl);
}

/* Vazio */
.products-empty {
  text-align: center;
  padding: var(--space-3xl);
}
.products-empty p:first-child { font-size: 3rem; margin-bottom: var(--space-md); }
.products-empty h3 { margin-bottom: var(--space-sm); }

/* Badge vermelho (desconto) */
.badge--red {
  background: #EF4444;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Responsivo toolbar */
@media (max-width: 600px) {
  .products-search-wrap { max-width: 100%; }
}

/* ============================================================
   PÁGINA SINGLE PRODUTO — Breadcrumb compacto, Galeria, Variações
   ============================================================ */

/* Breadcrumb compacto (substitui post-hero alto) */
.produto-breadcrumb-bar {
  background: var(--gradient-hero);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.produto-breadcrumb-bar .breadcrumbs a {
  color: rgba(255,255,255,0.7);
}
.produto-breadcrumb-bar .breadcrumbs a:hover {
  color: var(--color-white);
}
.produto-breadcrumb-bar .breadcrumbs,
.produto-breadcrumb-bar .breadcrumbs span {
  color: rgba(255,255,255,0.5);
}
.produto-breadcrumb-bar .breadcrumbs [aria-current="page"] {
  color: var(--color-white);
  font-weight: 600;
}

/* Galeria — imagem principal */
.gallery-main-wrap {
  position: relative;
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  width: 100%;
  height: 440px;           /* altura fixa — garante container consistente */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.gallery-main-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;  /* deixa a imagem escolher sua largura natural */
  height: auto !important;
  object-fit: contain !important;
  padding: var(--space-md);
  display: block !important;
  transition: opacity 0.15s ease;
}
/* scale removido — o zoom de lente substituiu esse efeito */
.gallery-main-wrap:hover .gallery-main-img {
  transform: none;
}

/* ── Zoom de imagem (lente + painel) ───────────────────────────── */
.zoom-lens {
  display: none;
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-purple);
  border-radius: 4px;
  background: rgba(108, 59, 218, 0.08);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(108,59,218,0.15);
}
.zoom-lens--ativo {
  display: block;
}

.zoom-panel {
  display: none;
  position: fixed;
  z-index: 9000;
  background-repeat: no-repeat;
  background-color: var(--color-off-white, #f9f9f9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  overflow: hidden;
  pointer-events: none;
  /* sem transition — precisa ser instantâneo para acompanhar o cursor */
}
.zoom-panel--ativo {
  display: block;
}

/* O grid é o contexto de posicionamento do painel */
.produto-single-grid {
  position: relative;
}

/* Mobile: desativar zoom */
@media (max-width: 767px) {
  .zoom-lens,
  .zoom-panel { display: none !important; }
}

/* Lightbox */
.virtubit-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.virtubit-lightbox.is-open {
  display: flex;
}
.virtubit-lightbox img {
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  cursor: default;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) brightness(1.02);
  backdrop-filter: blur(0.5px);
}
.virtubit-lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  line-height: 1;
}
.virtubit-lightbox__close:hover { background: rgba(255,255,255,0.3); }
.virtubit-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.virtubit-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.virtubit-lightbox__prev { left: var(--space-lg); }
.virtubit-lightbox__next { right: var(--space-lg); }
.virtubit-lightbox__counter {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* Galeria — thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;          /* wrap para múltiplas linhas se necessário */
  margin-top: var(--space-md);
}
.gallery-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--color-off-white);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover {
  border-color: var(--color-purple-light);
  transform: translateY(-2px);
}
.gallery-thumb--hover {
  border-color: var(--color-purple-light);
  box-shadow: 0 0 0 2px rgba(108,59,218,0.15);
}
.gallery-thumb--active {
  border-color: var(--color-purple) !important;
  box-shadow: 0 0 0 3px rgba(108,59,218,0.2);
}

/* Variações */
.produto-variacoes {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.variacao-grupo {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.variacao-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variacao-opcoes {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.variacao-btn {
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.variacao-btn:hover {
  border-color: var(--color-purple);
  background: rgba(108, 59, 218, 0.1);
  color: var(--color-purple);
}
.variacao-btn--active {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(108, 59, 218, 0.3);
}

/* Responsivo galeria */
@media (max-width: 768px) {
  .gallery-thumbs { gap: var(--space-xs); }
  .gallery-thumb  { width: 60px; height: 60px; }
}

/* Thumbnail de vídeo na galeria */
.gallery-thumb--video {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #333;
}
.gallery-thumb-play {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}
.gallery-thumb--video:hover {
  border-color: var(--color-purple);
  background: #222;
}

/* Lightbox — área de vídeo */
.virtubit-lightbox__video {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Qualidade das imagens da galeria */
.gallery-main-img,
.gallery-thumb img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ===== OTIMIZAÇÃO DE QUALIDADE DO LIGHTBOX ===== */

/* Container do lightbox com fundo otimizado */
.virtubit-lightbox {
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(20,20,30,0.95) 100%);
  backdrop-filter: blur(2px);
}

/* Imagem no lightbox com qualidade profissional */
.virtubit-lightbox img {
  /* Evitar interpolação de baixa qualidade */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  -ms-interpolation-mode: nearest-neighbor;
  
  /* Antialiasing suave */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Melhorar nitidez e contraste */
  filter: contrast(1.05) brightness(1) saturate(1.1);
  
  /* Animação suave ao abrir */
  animation: lightbox-zoom-in 0.3s ease-out;
}

/* Animação de entrada */
@keyframes lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Melhorar qualidade em diferentes resoluções */
@media (min-width: 1920px) {
  .virtubit-lightbox img {
    max-width: 100%;
    max-height: 98vh;
  }
}

@media (max-width: 768px) {
  .virtubit-lightbox img {
    max-width: 98%;
    max-height: 95vh;
  }
  
  /* Botões do lightbox em mobile */
  .virtubit-lightbox__close,
  .virtubit-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  
  .virtubit-lightbox__prev { left: var(--space-sm); }
  .virtubit-lightbox__next { right: var(--space-sm); }
}


/* ==========================================================================
   RESPONSIVIDADE ESTRUTURAL — VIRTUBIT 1.2
   Regras de layout para impedir overflow sem mascarar elementos.
   ========================================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
}

.container,
.section,
.post-hero,
.newsletter-section,
.site-footer {
  min-width: 0;
}

.post-card__body,
.product-card__body,
.widget,
.footer-brand,
.footer-grid > * {
  min-width: 0;
}

.post-card__title,
.post-card__excerpt,
.product-card__title,
.product-card__excerpt {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .blog-archive-hero {
    padding-block: var(--space-2xl);
  }

  .container {
    padding-inline: 14px;
  }

  .post-hero {
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .post-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .post-vs-images {
    grid-template-columns: 1fr;
  }

  .post-vs-images__item {
    height: 260px;
  }

  .affiliate-box {
    padding: var(--space-lg);
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* ============================================================
   IMAGENS DE PRODUTO — APRESENTAÇÃO APRIMORADA
   Mantém a proporção original e cria uma área visual consistente
   sem cortar a imagem do produto.
   ============================================================ */

/* Cards de produtos */
.product-card__image-link {
  aspect-ratio: 1 / 1;
  min-height: 300px;
  background: linear-gradient(145deg, #f8f7ff 0%, #f1effb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-card__image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 10px;
  transform: scale(1);
  transition: transform .3s ease, filter .3s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.035);
  filter: saturate(1.03);
}

/* Imagem de destaque dos reviews/artigos */
.post-featured-img {
  min-height: 420px;
  padding: clamp(20px, 4vw, 42px);
  background: linear-gradient(145deg, #faf9ff 0%, #f1effb 100%);
  border: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-md);
}

.post-featured-img img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: var(--radius-md);
  margin-inline: auto;
}

/* Comparativos/reviews com duas imagens */
.post-vs-images {
  background: linear-gradient(145deg, #faf9ff 0%, #f1effb 100%);
  border: 1px solid var(--color-light-gray);
}

.post-vs-images__item {
  min-height: 400px;
  height: 400px;
  padding: 28px;
  background: transparent;
}

.post-vs-images__item img {
  max-width: 94% !important;
  max-height: 350px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center;
}

/* Galeria principal da página individual de produto */
.gallery-main-wrap {
  height: 500px;
  min-height: 500px;
  padding: 26px;
  background: linear-gradient(145deg, #faf9ff 0%, #f0eef9 100%);
  border: 1px solid #e4e1f2;
  box-shadow: var(--shadow-md);
}

.gallery-main-img {
  width: auto !important;
  height: auto !important;
  max-width: 94% !important;
  max-height: 94% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center;
}

/* Miniaturas: mesma linguagem visual da imagem principal */
.gallery-thumbs {
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  background: #faf9ff;
  border-color: #dfdceb;
}

.gallery-thumb img {
  object-fit: contain;
  padding: 4px;
}

.gallery-thumb--active {
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(108,59,218,.14);
}

@media (max-width: 768px) {
  .product-card__image-link {
    min-height: 250px;
    padding: 14px;
  }

  .post-featured-img {
    min-height: 280px;
    padding: 18px;
  }

  .post-featured-img img {
    max-height: 360px !important;
  }

  .post-vs-images__item {
    height: 300px;
    min-height: 300px;
    padding: 20px;
  }

  .post-vs-images__item img {
    max-height: 260px !important;
  }

  .gallery-main-wrap {
    height: 360px;
    min-height: 360px;
    padding: 18px;
  }

  .gallery-main-img {
    max-width: 96% !important;
    max-height: 96% !important;
  }

  .gallery-thumb {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 480px) {
  .product-card__image-link {
    min-height: 230px;
  }

  .post-featured-img {
    min-height: 240px;
    padding: 14px;
  }

  .post-vs-images__item {
    height: 250px;
    min-height: 250px;
    padding: 16px;
  }

  .post-vs-images__item img {
    max-height: 220px !important;
  }

  .gallery-main-wrap {
    height: 310px;
    min-height: 310px;
    padding: 14px;
  }
}


/* Fix: Impedir corte de imagens nos cards de reviews/produtos */
.card-post img,
.card-product img,
article img,
.post-card img,
.product-card img,
.entry-thumbnail img,
.featured-media img,
.aspect-video img,
.aspect-square img {
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 6px !important;
}


/* --- FIX DEFINITIVO DE CORTE DE IMAGENS NOS CARDS --- */
.post-card__thumb,
.product-card__image-link {
    aspect-ratio: 4 / 3 !important;
    min-height: 220px !important;
    max-height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.post-card__thumb img,
.post-card__thumb a img,
.product-card__image,
.post-card--product-image .post-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-height: 250px !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: transparent !important;
    transform: none !important;
}


/* --- CORREÇÕES E MELHORIAS NA PÁGINA DE REVIEW (SINGLE.PHP) --- */
.single-post-header {
    background: linear-gradient(135deg, #120b2e 0%, #1e1245 100%);
    padding: 40px 0 30px 0 !important;
    color: #ffffff;
    text-align: left;
}

.single-post-header__title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    margin: 15px 0 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.single-post-header__meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #a5a1c9;
    flex-wrap: wrap;
}

.single-post-content-wrapper {
    margin-top: 30px;
    margin-bottom: 50px;
}

.single-post-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .single-post-grid {
        grid-template-columns: 1fr;
    }
}

.single-post-featured-image {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    text-align: center;
}

.single-post-featured-image img {
    max-height: 380px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto;
}

/* Estilização dos Formulários de Comentários e Busca */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #6366f1;
    background-color: #ffffff;
}

.comment-form input[type="submit"] {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: #4f46e5;
}

/* Box do Autor */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
}

.author-box__avatar img {
    border-radius: 50%;
}

.author-box__info h4 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
}

.author-box__info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Ajuste na Seção de Newsletter */
section[aria-label="Newsletter"],
.section-newsletter {
    padding: 60px 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

.section-newsletter h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* --- CORREÇÕES VISUAIS DA HOME (FRONT-PAGE) --- */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6366f1;
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: #a5a1c9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-about__stats {
    display: flex;
    gap: 20px;
}

.hp-about__stat {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
    flex: 1;
}

.hp-about__stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6366f1;
    display: block;
}

.hp-about__stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}


/* --- BOTÃO VOLTAR AO TOPO & RESPONSIVIDADE MOBILE (v1.5.0) --- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #6366f1;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Otimizações Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Ajuste de Tipografia em Dispositivos Móveis */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    .hero {
        padding: 40px 0 30px 0 !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Grids e Colunas Mobile */
    .hp-cats__grid,
    .posts-grid,
    .products-grid,
    .hp-trust__grid,
    .related-posts__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Rodapé Mobile */
    .site-footer__grid,
    footer .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 25px !important;
    }

    .site-footer__brand,
    .hp-about__inner {
        flex-direction: column;
        text-align: center;
    }

    .hp-about__stats {
        flex-direction: column;
        width: 100%;
    }
}


/* --- AJUSTE DE NAVEGAÇÃO LIGHTBOX NO MODO CELULAR (v1.5.1) --- */
@media (max-width: 768px) {
    /* Forçar exibição das setas de navegação */
    .gnext, .gprev,
    .glightbox-clean .gnext, 
    .glightbox-clean .gprev,
    .gslide-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 25px !important;
        top: auto !important;
        transform: none !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(30, 20, 60, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        z-index: 999999 !important;
    }

    /* Posicionar seta Anterior à esquerda e Próxima à direita no rodapé */
    .gprev, .glightbox-clean .gprev {
        left: 25% !important;
        right: auto !important;
    }

    .gnext, .glightbox-clean .gnext {
        right: 25% !important;
        left: auto !important;
    }

    /* Ajustar ícone interno das setas */
    .gnext svg, .gprev svg {
        width: 22px !important;
        height: 22px !important;
        fill: #ffffff !important;
    }

    /* Reduzir margem da imagem para dar espaço às setas no rodapé */
    .gslide-image img {
        max-height: 70vh !important;
        margin-bottom: 50px !important;
    }
}
