/* HiperBarato — componentes de artigo injetados pelo SeoAutopilot
   (app/Content/ProductArticleFormatter.php e app/Publish/WordPressPublisher.php).
   Header/footer/tipografia de título agora são controlados nativamente pelo
   tema Kadence (Customizer) — aqui só os blocos que o WordPress em si não
   conhece: caixa de preço, CTA, banner, galeria, relacionados, tags, FAQ.
   Paleta oficial da marca (já usada no restante do site, ver hiperbarato-blog.php
   e theme_mods_kadence): laranja #FF6B35 / navy #1E1B2E / creme #FAF9F6. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --hb-ink: #1E1B2E;
  --hb-ink-soft: #3a3641;
  --hb-paper: #FAF9F6;
  --hb-surface: #ffffff;
  --hb-muted: #767676;
  --hb-border: #F0EEEA;
  --hb-accent: #FF6B35;
  --hb-accent-deep: #E8580C;
  --hb-accent-soft: #FFE4D6;
  --hb-danger: #ad3b2c;
  --hb-danger-soft: #f6e3de;
  --hb-radius-lg: 20px;
  --hb-radius: 14px;
  --hb-radius-sm: 10px;
  --hb-shadow: 0 14px 32px -14px rgba(30, 27, 46, .22);
  --hb-shadow-sm: 0 3px 10px rgba(30, 27, 46, .07);
  --hb-ease: cubic-bezier(.16, 1, .3, 1);
}

/* Imagem principal do produto */
.hb-hero-img {
  display: block; width: 100%; height: auto; margin: 0 0 28px;
  border-radius: var(--hb-radius-lg); box-shadow: var(--hb-shadow);
}

/* Caixa de preço + CTA logo no topo */
.hb-price-box {
  background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-lg);
  padding: 26px 28px; margin: 26px 0; box-shadow: var(--hb-shadow-sm);
}
.hb-price-line { font-size: 14.5px; color: var(--hb-muted); margin-bottom: 16px; }
.hb-price-old { color: var(--hb-muted); text-decoration: line-through; }
.hb-price-now { font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px; color: var(--hb-ink); }
.hb-price-hint { font-size: 12px; color: var(--hb-muted); }
.hb-discount-badge {
  display: inline-block; background: var(--hb-danger-soft); color: var(--hb-danger);
  font-weight: 700; font-size: 12.5px; padding: 3px 11px; border-radius: 999px; vertical-align: middle;
}

/* Botão de call-to-action */
.hb-cta-wrap { margin: 22px 0; }
.hb-cta-wrap.center { text-align: center; margin: 34px 0; }
.hb-cta-btn {
  display: inline-block; background: var(--hb-accent); color: #fff !important; font-weight: 700; font-size: 16.5px;
  padding: 15px 34px; border-radius: 999px; text-decoration: none !important;
  box-shadow: var(--hb-shadow-sm); transition: transform 180ms var(--hb-ease), box-shadow 180ms var(--hb-ease), background 180ms var(--hb-ease);
}
.hb-cta-btn:hover { background: var(--hb-accent-deep); transform: translateY(-2px); box-shadow: var(--hb-shadow); }

/* Banner de convite pro grupo */
.hb-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--hb-ink); border-radius: var(--hb-radius-lg); padding: 20px 26px; margin: 0 0 30px;
  box-shadow: var(--hb-shadow-sm);
}
.hb-banner span { color: #f3ead9; font-weight: 600; font-size: 15.5px; }
.hb-banner a {
  display: inline-block; background: var(--hb-accent-soft); color: var(--hb-accent-deep) !important; font-weight: 700; font-size: 14.5px;
  padding: 10px 22px; border-radius: 999px; text-decoration: none !important; white-space: nowrap;
  transition: background 180ms var(--hb-ease);
}
.hb-banner a:hover { background: #fff; }

/* Galeria de fotos extras */
.hb-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 28px 0; }
.hb-gallery-item { border-radius: var(--hb-radius); overflow: hidden; box-shadow: var(--hb-shadow-sm); aspect-ratio: 1/1; }
.hb-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* Cards "você também pode gostar" */
.hb-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 18px 0 30px; }
.hb-related-card {
  text-decoration: none !important; color: inherit; display: block; background: var(--hb-surface);
  border: 1px solid var(--hb-border); border-radius: var(--hb-radius); overflow: hidden;
  box-shadow: var(--hb-shadow-sm); transition: transform 180ms var(--hb-ease), box-shadow 180ms var(--hb-ease);
}
.hb-related-card:hover { transform: translateY(-3px); box-shadow: var(--hb-shadow); }
.hb-related-card img { display: block; width: 100%; height: 155px; object-fit: cover; }
.hb-related-card .titulo { padding: 13px 15px; font-weight: 600; font-size: 14.5px; color: var(--hb-ink); line-height: 1.4; }

/* Tags/palavras-chave */
.hb-tags { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--hb-border); }
.hb-tag {
  display: inline-block; background: var(--hb-surface); border: 1px solid var(--hb-border); color: var(--hb-muted) !important;
  font-size: 13px; font-weight: 600; padding: 6px 15px; border-radius: 999px; text-decoration: none !important;
  margin: 0 8px 8px 0; transition: border-color 180ms var(--hb-ease), color 180ms var(--hb-ease);
}
.hb-tag:hover { border-color: var(--hb-accent); color: var(--hb-accent-deep) !important; }

/* FAQ */
.hb-faq-item {
  background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius);
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--hb-shadow-sm);
}
.hb-faq-item summary {
  font-weight: 600; cursor: pointer; list-style: none; color: var(--hb-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hb-faq-item summary::-webkit-details-marker { display: none; }
.hb-faq-item summary::after {
  content: ''; width: 8px; height: 8px; flex-shrink: 0; border-right: 2px solid var(--hb-accent); border-bottom: 2px solid var(--hb-accent);
  transform: rotate(45deg); transition: transform 180ms var(--hb-ease);
}
.hb-faq-item[open] summary::after { transform: rotate(-135deg); }
.hb-faq-item p { margin: 12px 0 0; color: var(--hb-muted); }

@media (prefers-reduced-motion: reduce) {
  .hb-cta-btn, .hb-related-card, .hb-faq-item summary::after { transition: none; }
}
