/* ============================================
   CUPOM BELEZA - CSS moderno, mobile-first
   Otimizado para PageSpeed 100
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================
   Fontes fallback ajustadas para reduzir CLS
   Quando Inter/Poppins ainda não carregaram, o texto usa
   "Arial ajustada" com métricas próximas — evita layout shift
   ============================================ */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 112%;
  ascent-override: 92%;
  descent-override: 30%;
  line-gap-override: 8%;
}

:root {
  /* Cores principais */
  --rosa: #ec4899;
  --rosa-escuro: #db2777;
  --rosa-claro: #fce7f3;
  --roxo: #9333ea;
  --roxo-escuro: #7e22ce;
  --roxo-claro: #f3e8ff;
  --verde: #16a34a;
  --verde-escuro: #15803d;
  --verde-claro: #f0fdf4;
  --laranja: #f97316;
  --laranja-escuro: #ea580c;
  --azul: #2563eb;
  --azul-escuro: #1d4ed8;
  --amarelo: #fbbf24;
  
  /* Texto */
  --texto: #0f172a;
  --texto-suave: #64748b;
  --texto-fraco: #94a3b8;
  
  /* Superfícies */
  --fundo: #ffffff;
  --fundo-secao: #fafafa;
  --fundo-cinza: #f1f5f9;
  --borda: #e5e7eb;
  --borda-suave: #f1f5f9;
  
  /* Raios e sombras */
  --raio-sm: 8px;
  --raio-md: 12px;
  --raio-lg: 14px;
  --raio-pill: 999px;
  
  --sombra-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sombra: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --sombra-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --sombra-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
  
  --fonte: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fonte-titulo: 'Poppins', 'Poppins Fallback', 'Inter', sans-serif;
  --fonte-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

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

body {
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo-secao);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rosa); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rosa-escuro); }
img { max-width: 100%; height: auto; display: block; }

/* Visualmente oculto, mas acessível para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  line-height: 1.25;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: white;
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  gap: 1rem;
}

.logo { display: inline-block; flex-shrink: 0; line-height: 0; }
.logo img,
.logo picture img { 
  width: 180px;
  height: 48px; 
  display: block;
  object-fit: contain;
}
.logo picture { display: block; }
@media (max-width: 768px) {
  .logo img,
  .logo picture img { width: 150px; height: 40px; }
}

.nav-principal {
  display: flex;
  flex: 1;
  justify-content: center;
}

.nav-principal > ul {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 0.92rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--raio-sm);
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}

.nav-link:hover { color: var(--rosa); background: var(--rosa-claro); }
.nav-link.ativo { color: var(--texto); font-weight: 600; }
.nav-link .seta { font-size: 0.7em; opacity: 0.6; }

.nav-item-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--borda);
  border-radius: var(--raio-md);
  box-shadow: var(--sombra-lg);
  list-style: none;
  min-width: 220px;
  padding: 6px;
  display: none;
  z-index: 10;
}

.nav-item-dropdown:hover .dropdown,
.nav-item-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 9px 12px;
  color: var(--texto-suave);
  font-size: 0.88rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.dropdown li a:hover { background: var(--rosa-claro); color: var(--rosa-escuro); }

.menu-mobile {
  display: none;
  background: transparent;
  border: 1px solid var(--borda);
  padding: 8px;
  border-radius: var(--raio-sm);
  color: var(--texto-suave);
}

@media (max-width: 1100px) {
  .nav-link { padding: 7px 9px; font-size: 0.88rem; }
}

@media (max-width: 900px) {
  .nav-principal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--borda);
    box-shadow: var(--sombra);
    flex-direction: column;
  }
  .nav-principal.aberto { display: flex; }
  .nav-principal > ul {
    flex-direction: column;
    padding: 0.75rem;
    width: 100%;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link { padding: 12px; font-size: 0.95rem; }
  .dropdown { 
    position: static;
    box-shadow: none;
    border: none;
    background: var(--fundo-secao);
    margin: 4px 0;
  }
  .menu-mobile { display: inline-flex; }
}

/* ============================================
   LAYOUT HOME
   ============================================ */
.layout-home {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 1.5rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .layout-home {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 1rem 2rem;
  }
}

/* Topo da home */
.home-topo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  min-height: 110px; /* reserva espaço da logo, evita CLS */
}

/* Parágrafo de introdução (texto de contexto/SEO logo abaixo do H1) */
.home-topo-intro {
  margin: 0 0 1.5rem;
  padding: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}
.home-topo-intro p {
  margin: 0 0 0.75rem;
}
.home-topo-intro p:last-child { margin-bottom: 0; }
.home-topo-intro strong { color: #0f172a; font-weight: 600; }
.home-topo-intro a { color: var(--rosa); text-decoration: underline; }
.home-topo-intro a:hover { color: var(--rosa-escuro); }

.home-topo-logo {
  background: var(--roxo);
  border-radius: var(--raio-lg);
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.18);
}

.home-topo-logo img,
.home-topo-logo picture,
.home-topo-logo picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 100 / 58; /* mesmo do atributo width/height — evita CLS */
  filter: brightness(0) invert(1);
}
.home-topo-logo picture {
  filter: none; /* o filter já está no img, não duplica */
  line-height: 0;
}

.badge-atualizado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde-claro);
  color: var(--verde-escuro);
  padding: 4px 10px;
  border-radius: var(--raio-pill);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--verde);
  border-radius: 50%;
  animation: pulso 2s ease-in-out infinite;
  will-change: opacity;
}

@keyframes pulso {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.home-topo-texto h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--texto);
  letter-spacing: -0.02em;
}

.home-topo-dominio {
  color: var(--texto-suave);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 700px) {
  .home-topo {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .home-topo-logo {
    width: 90px;
    height: 90px;
    padding: 0.5rem;
  }
  .home-topo-texto h1 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .home-topo {
    gap: 0.85rem;
  }
  .home-topo-logo {
    width: 80px;
    height: 80px;
  }
  .home-topo-texto h1 { font-size: 1.05rem; }
}

/* ============================================
   PÁGINAS INTERNAS
   ============================================ */
.pagina-interna {
  padding: 2rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pagina-conteudo {
  max-width: 860px;
  margin: 0 auto;
}

.pagina-header { text-align: center; margin-bottom: 2rem; }

/* H1 tamanho 31px no desktop (você pediu) */
.pagina-header h1 {
  font-size: 1.95rem;       /* ~31px */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

@media (max-width: 700px) {
  .pagina-header h1 { font-size: 1.5rem; }   /* mobile menor */
}

/* === Bloco de compartilhar === */
.compartilhar-bloco {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.4rem;
  padding-top: 0.4rem;
}
.compartilhar-label {
  font-size: 0.85rem;
  color: var(--texto-suave);
  font-weight: 500;
  margin-right: 4px;
}
.compartilhar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: white;
  color: white;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.15s;
  line-height: 1;
  padding: 0;
}
.compartilhar-btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-md); opacity: 0.95; }
.compartilhar-btn:active { transform: translateY(0); }
.compartilhar-btn svg { flex-shrink: 0; }
.compartilhar-btn > span {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Feedback "Copiado!" - exibe tooltip flutuante */
.compartilhar-btn.copiado::after {
  content: 'Copiado!';
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #15803d;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeIn 0.2s;
}
.compartilhar-btn { position: relative; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.compartilhar-whatsapp { background: #25d366; }
.compartilhar-whatsapp:hover { background: #1da851; color: white; }

.compartilhar-facebook { background: #1877f2; }
.compartilhar-facebook:hover { background: #145dbf; color: white; }

.compartilhar-x { background: #0f172a; }
.compartilhar-x:hover { background: #000; color: white; }

/* Instagram: gradiente oficial */
.compartilhar-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}
.compartilhar-instagram:hover { color: white; filter: brightness(1.05); }
.compartilhar-instagram.copiado {
  background: var(--verde);
  filter: none;
}

.compartilhar-email { background: #475569; }
.compartilhar-email:hover { background: #334155; color: white; }

.compartilhar-copiar {
  background: white;
  color: var(--texto);
  border: 1px solid var(--borda);
}
.compartilhar-copiar:hover { border-color: var(--rosa); color: var(--rosa); }
.compartilhar-copiar.copiado {
  background: var(--verde-claro);
  border-color: var(--verde);
  color: var(--verde-escuro);
}

@media (max-width: 540px) {
  .compartilhar-bloco { gap: 8px; }
  .compartilhar-btn { width: 38px; height: 38px; }
  .compartilhar-btn svg { width: 17px; height: 17px; }
  .compartilhar-label { width: 100%; text-align: center; margin-bottom: 4px; font-size: 0.8rem; }
}

.pagina-hero-img {
  margin: 1.5rem auto 0;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--raio-md);
  background: #f1f5f9;
}

.conteudo-principal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-texto { font-size: 1.02rem; }

.cupons-secao {
  background: white;
  padding: 1.5rem;
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra-sm);
  border: 1px solid var(--borda-suave);
}

.secao-titulo {
  color: var(--rosa-escuro);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

/* ============================================
   CARDS DE CUPOM
   ============================================ */
.cupons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cupom em destaque - borda rosa + badge */
.cupom-card.cupom-destaque {
  position: relative;
  border: 2px solid var(--rosa);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.18);
  background: linear-gradient(to right, #fff 0%, #fef7fa 100%);
}
.cupom-card.cupom-destaque:hover {
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.24);
}
.cupom-tag-destaque {
  position: absolute;
  top: -10px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-escuro));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3);
  z-index: 1;
}

.cupom-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: white;
  border-radius: var(--raio-md);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--borda-suave);
  box-shadow: var(--sombra-sm);
  transition: box-shadow 0.2s, transform 0.15s;
  /* Reserva altura mínima pra evitar CLS no carregamento inicial */
  min-height: 96px;
}

/* Otimização: pula renderização dos cards distantes (depois do 6º) */
.cupom-card:nth-child(n+7) {
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

.cupom-card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-1px);
}

/* Desconto à esquerda - texto colorido sem fundo */
.cupom-desconto {
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.desconto-valor {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: #15803d; /* verde escuro WCAG AA: 4.86:1 em branco */
  letter-spacing: -0.04em;
}

.desconto-off {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: #15803d; /* mesmo verde escuro */
  letter-spacing: -0.04em;
  margin-top: 2px;
}

.desconto-tipo {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: #475569; /* cinza escuro: 8.59:1 em branco — passa AAA */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cupom-card.cor-laranja .desconto-valor,
.cupom-card.cor-laranja .desconto-off { color: #c2410c; } /* laranja escuro: 4.52:1 */
.cupom-card.cor-azul .desconto-valor,
.cupom-card.cor-azul .desconto-off { color: #1d4ed8; } /* azul escuro: 6.45:1 */

.cupom-info { min-width: 0; }

.cupom-titulo {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.cupom-descricao {
  font-size: 0.86rem;
  color: var(--texto-suave);
  margin-bottom: 6px;
  line-height: 1.5;
}

.cupom-data {
  font-size: 0.75rem;
  color: #64748b; /* WCAG AA: 4.85:1 em branco */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.cupom-data::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}

/* Botão à direita */
.cupom-botao {
  display: inline-flex;
  align-items: stretch;
  background: #15803d; /* verde escuro WCAG AA: 5.13:1 com texto branco */
  color: white;
  border-radius: var(--raio-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  overflow: hidden;
  min-width: 160px;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.18);
}

.cupom-botao.botao-laranja {
  background: #c2410c; /* laranja escuro WCAG AA: 4.78:1 */
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.18);
}

.cupom-botao.botao-azul {
  background: #1d4ed8; /* azul escuro WCAG AA: 6.45:1 */
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.18);
}

.cupom-botao:hover {
  filter: brightness(1.08);
  color: white;
  transform: translateY(-1px);
}

.cupom-botao:active { transform: translateY(0); }

.botao-texto {
  padding: 13px 18px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.botao-codigo {
  background: transparent;
  padding: 13px 12px;
  font-family: var(--fonte-mono);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-left: 2px dashed rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
}

/* Mobile: layout em coluna */
@media (max-width: 700px) {
  .cupom-card {
    grid-template-columns: 70px 1fr;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
  }
  .cupom-botao {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
  .botao-texto { padding: 12px 16px; }
  .desconto-valor,
  .desconto-off { font-size: 1.2rem; }
  .cupom-titulo { font-size: 0.95rem; }
  .cupom-descricao { font-size: 0.82rem; }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--raio-lg);
  border: 1px solid var(--borda-suave);
  box-shadow: var(--sombra-sm);
}

/* Card 1: Loja */
.sidebar-loja { text-align: center; }

.sidebar-loja-logo {
  background: var(--roxo);
  padding: 1.75rem 1rem;
  border-radius: var(--raio-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.18);
}

.sidebar-loja-logo img,
.sidebar-loja-logo picture,
.sidebar-loja-logo picture img {
  width: 130px;
  height: auto;
  aspect-ratio: 130 / 76; /* atributo width/height da imagem */
  filter: brightness(0) invert(1);
  display: block;
}
.sidebar-loja-logo picture {
  filter: none;
  line-height: 0;
}

.sidebar-loja-titulo {
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.sidebar-loja-sub {
  color: var(--texto-suave);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.sidebar-utilizados {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fce7f3;
  color: #9d174d; /* rosa muito escuro: 7.85:1 em #fce7f3 - WCAG AAA */
  padding: 6px 14px;
  border-radius: var(--raio-pill);
  font-weight: 700;
  font-size: 0.8rem;
  /* Largura mínima reservada pra evitar reflow quando o número troca */
  min-width: 130px;
  justify-content: center;
}
.sidebar-utilizados [data-contador-utilizados] {
  font-variant-numeric: tabular-nums; /* dígitos com largura fixa */
  display: inline-block;
  min-width: 50px;
  text-align: right;
}

/* Card 2: Resumo + Sobre */
.sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569; /* slate-600: 7.96:1 em branco - WCAG AAA */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.rating-bloco {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.rating-num {
  font-family: var(--fonte-titulo);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rating-estrelas {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.estrela {
  display: block;
  flex-shrink: 0;
}

.rating-info {
  color: var(--texto-suave);
  font-size: 0.8rem;
  margin-bottom: 0;
}
.rating-info [data-contador-avaliacoes] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--borda);
  margin: 1.25rem 0;
}

.sidebar-sobre-titulo {
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.sidebar-texto-pequeno {
  color: var(--texto-suave);
  font-size: 0.84rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sidebar-social-inline {
  display: flex;
  gap: 8px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fundo-cinza);
  color: var(--texto-suave);
  border-radius: var(--raio-sm);
  transition: all 0.15s;
}

.social-icon:hover {
  color: white;
  transform: translateY(-2px);
}

.social-icon[aria-label="Facebook"]:hover { background: #1877f2; }
.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #64748b;
}

.breadcrumb a { color: var(--texto-suave); }
.breadcrumb a:hover { color: var(--rosa); }
.breadcrumb [aria-current="page"] { color: var(--texto); font-weight: 500; }

/* ============================================
   PROSE
   ============================================ */
.prose { color: var(--texto); font-size: 1.05rem; line-height: 1.75; }
.prose h1 { font-size: 1.95rem; margin: 1.4em 0 0.5em; color: var(--texto); line-height: 1.2; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.55rem; margin: 1.6em 0 0.6em; color: var(--rosa-escuro); line-height: 1.25; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.25rem; margin: 1.3em 0 0.5em; line-height: 1.3; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 0.5em; line-height: 1.35; font-weight: 600; }
.prose p { margin-bottom: 1em; line-height: 1.75; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; line-height: 1.65; }
.prose a { color: var(--rosa); text-decoration: underline; }
.prose strong { color: var(--texto); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--rosa);
  padding: 0.5em 1em;
  background: var(--rosa-claro);
  margin: 1em 0;
  border-radius: 0 var(--raio-sm) var(--raio-sm) 0;
}

@media (max-width: 700px) {
  .prose { font-size: 1rem; line-height: 1.7; }
  .prose h1 { font-size: 1.5rem; }
  .prose h2 { font-size: 1.3rem; }
  .prose h3 { font-size: 1.1rem; }
  .prose h4 { font-size: 1rem; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-secao { margin-top: 3rem; }

.faq-secao h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--borda-suave);
  border-radius: var(--raio-md);
  overflow: hidden;
  transition: box-shadow 0.15s;
  min-height: 56px;
}
.faq-item:nth-child(n+4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 70px;
}

.faq-item:hover { box-shadow: var(--sombra-sm); }

.faq-pergunta {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  user-select: none;
  color: var(--texto);
}

.faq-pergunta::-webkit-details-marker { display: none; }
.faq-pergunta::marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  color: var(--rosa);
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-resposta {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--borda-suave);
  padding-top: 1rem;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-resposta p { margin-bottom: 0.7em; }
.faq-resposta ul, .faq-resposta ol { margin: 0.7em 0; padding-left: 1.5em; }
.faq-resposta li { margin-bottom: 0.3em; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0f0820;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.site-footer .logo { margin-bottom: 1rem; display: inline-flex; line-height: 0; }
.site-footer .logo img,
.site-footer .logo picture img { 
  width: 160px;
  height: 42px; 
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer h3 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.site-footer ul { list-style: none; }
.site-footer a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--rosa); }

.footer-rodape {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }

.modal-fundo {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 32, 0.55);
  backdrop-filter: blur(3px);
}

.modal-conteudo {
  position: relative;
  background: white;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: var(--raio-lg);
  max-width: 460px;
  width: 100%;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalAparece 0.2s ease-out;
}

@keyframes modalAparece {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--rosa);
  border-radius: 50%;
  display: flex;
}
.modal-fechar:hover { background: var(--rosa-claro); }

.modal-titulo-cupom {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--texto);
  margin: 0 2rem 0.85rem 0;
  letter-spacing: -0.02em;
}

.modal-descricao {
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.modal-codigo-box {
  background: white;
  border: 2px dashed var(--borda);
  border-radius: var(--raio-md);
  padding: 1.1rem;
  margin: 0 0 1rem 0;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.modal-codigo-box:hover {
  border-color: var(--rosa);
  background: var(--rosa-claro);
}
.modal-codigo-box.copiado {
  border-color: var(--verde);
  background: var(--verde-claro);
}
.modal-codigo-box.sem-codigo { display: none; }

.modal-codigo {
  font-family: var(--fonte-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--texto);
  letter-spacing: 0.08em;
}

.modal-botao {
  display: block;
  width: 100%;
  padding: 0.95rem;
  background: #c2410c;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--raio-md);
  transition: background 0.15s, transform 0.05s;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}
.modal-botao:hover {
  background: var(--laranja-escuro);
  color: white;
  transform: translateY(-1px);
}
.modal-botao:active { transform: translateY(0); }

.modal-loja {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
}
.modal-loja img {
  max-height: 36px;
  max-width: 150px;
  object-fit: contain;
}
.modal-loja[hidden] { display: none; }

/* ============================================
   404
   ============================================ */
.erro-404 {
  text-align: center;
  padding: 3rem 1rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.erro-404 h1 {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--rosa), var(--roxo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.erro-404 h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.erro-404 p {
  color: var(--texto-suave);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--rosa);
  color: white;
  border-radius: var(--raio-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover { background: var(--rosa-escuro); color: white; }
