/* ==========================================================
   page-single.css — Estilos exclusivos do single.html (artigo)
   ========================================================== */

body { padding-top: var(--announce-height, 37px); line-height: 1.7; }

.container { max-width: 1200px; }

/* Mantém o menu fixo abaixo da barra de ofertas sem afetar o hero do artigo. */
body > header { position: sticky; top: var(--announce-height, 37px); z-index: 100; }
.article-hero { position: static; top: auto; z-index: auto; }

.announce-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.announce-countdown {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.18); border-radius: 6px; padding: 2px 8px;
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .03em;
}

.container-post { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ── BREADCRUMB BAR ───────────────────────────────────────── */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }

.breadcrumb { list-style: none; flex-wrap: wrap; gap: 0; }
.breadcrumb a { color: var(--muted, #6B7280); }
.breadcrumb li:last-child span { color: var(--text, #111827); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '\203A'; margin: 0 8px; color: var(--border); font-size: 16px; line-height: 1; }
.breadcrumb a:hover { color: var(--brand); }

/* ── ARTICLE HERO ─────────────────────────────────────────── */
.article-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 48px 0 40px; }

.article-hero .category-badge { margin-bottom: 16px; }

.article-hero h1 { font-size: 32px; font-weight: 800; line-height: 1.25; color: var(--text); margin-bottom: 16px; }
.article-hero .intro { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  padding-top: 20px; border-top: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta .article-author { gap: 4px; }
.article-meta .article-author a { color: var(--text); font-weight: 600; }
.article-meta .article-author a:hover { color: var(--brand); }
.article-meta svg { color: var(--brand); }

.hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-top: 32px; }

/* ── ARTICLE BODY ─────────────────────────────────────────── */
.article-body { padding: 20px 0 80px; }
body.single-post .article-body > .container-post {
  margin-top: 56px;
}

.prose { font-size: 15.5px; line-height: 1.8; color: var(--text); }
.prose p { margin-bottom: 20px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose ul ul, .prose ol ol { margin-top: 8px; margin-bottom: 4px; }

.article-content { margin-bottom: 40px; }

/* ── SUMMARY TABLE ────────────────────────────────────────── */
.summary-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; font-size: 14px;
}
.summary-table thead tr { background: var(--bg); border-bottom: 2px solid var(--border); }
.summary-table th { padding: 12px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); text-align: left; }
.summary-table th:last-child { text-align: center; }
.summary-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.summary-table tbody tr:last-child { border-bottom: none; }
.summary-table tbody tr:hover { background: var(--bg); }
.summary-table td { padding: 12px 16px; vertical-align: middle; }

.st-rank { font-size: 15px; font-weight: 800; width: 40px; color: var(--muted); }
.st-rank.gold   { color: #D97706; }
.st-rank.silver { color: #9CA3AF; }
.st-rank.bronze { color: #C2410C; }
.st-img { width: 56px; padding: 8px 16px 8px 0; }
.st-img img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f5f5f5; }
.st-info { flex: 1; }
.st-name { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.st-phrase { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.st-cta { text-align: center; white-space: nowrap; }

.btn-table {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: var(--brand-contrast);
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  padding: 8px 16px; border-radius: 99px; border: none;
  cursor: pointer; text-decoration: none; transition: background .15s; white-space: nowrap;
}
.btn-table:hover { background: var(--brand-dark); }

/* ── PRODUCT CARD ─────────────────────────────────────────── */
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; scroll-margin-top: 80px;
}
.product-rank {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.rank-badge {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; font-weight: 800; flex-shrink: 0;
  background: var(--border); color: var(--muted);
}
.rank-badge.gold   { background: #FEF3C7; color: #D97706; }
.rank-badge.silver { background: #F3F4F6; color: #6B7280; }
.rank-badge.bronze { background: #FEF2EE; color: #C2410C; }
.rank-name { font-size: 16px; font-weight: 700; flex: 1; }

.product-body { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.product-img-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px; border-right: 1px solid var(--border); background: #fafafa;
}
.product-img-wrap img { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; }
.product-info { padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.product-review { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* ── PROS & CONS ──────────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pros { background: var(--green-light); border-radius: 10px; padding: 14px 16px; }
.cons { background: var(--red-light);   border-radius: 10px; padding: 14px 16px; }
.pros-title, .cons-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pros-title { color: var(--green); }
.cons-title { color: var(--red); }
.pros ul, .cons ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pros li, .cons li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.5; }
.pros li svg { color: var(--green); font-size: 11px; margin-top: 3px; flex-shrink: 0; }
.cons li svg { color: var(--red);   font-size: 11px; margin-top: 3px; flex-shrink: 0; }

/* ── PRODUCT CTA ──────────────────────────────────────────── */
.product-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-top: 1px solid var(--border); background: var(--bg); gap: 16px;
}
.product-cta .verdict { font-size: 13px; color: var(--muted); line-height: 1.5; }
.product-cta .verdict strong { color: var(--text); font-weight: 600; }

.btn-buy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--brand-contrast);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 99px; border: none;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s; text-decoration: none;
}
.btn-buy:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ── BENEFITS ─────────────────────────────────────────────── */
.benefits { margin-bottom: 40px; }
.benefits h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.benefits h2 svg { color: var(--brand); }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.benefit-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); flex-shrink: 0; color: var(--brand); }
.benefit-text h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.benefit-text p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.benefits .prose { font-size: 14.5px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { margin-bottom: 40px; }
.faq h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.faq h2 svg { color: var(--brand); }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none; transition: background .15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s, background .15s;
}
details[open] .faq-question { border-bottom: 1px solid var(--border); }
details[open] .faq-question .faq-icon { transform: rotate(45deg); background: var(--brand); color: var(--brand-contrast); }
.faq-answer { padding: 18px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.faq-answer strong { color: var(--text); font-weight: 600; }

/* ── CONCLUSION ───────────────────────────────────────────── */
.conclusion { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 40px; }
.conclusion h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.conclusion h2 svg { color: var(--brand); }
.conclusion p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* ── SOCIAL PROOF TOAST ───────────────────────────────────── */
.sp-toast {
  position: fixed; bottom: 88px; left: 24px; z-index: 300;
  background: #fff; border: 1px solid #D1FAE5; border-left: 4px solid #059669;
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  padding: 12px 16px 12px 14px;
  display: flex; align-items: flex-start; gap: 12px; max-width: 290px;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.sp-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sp-toast-icon { width: 36px; height: 36px; background: #ECFDF5; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #059669; }
.sp-toast-body { line-height: 1.4; }
.sp-toast-label { font-size: 10.5px; font-weight: 700; color: #059669; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.sp-toast-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sp-toast-product { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sp-toast-close { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 12px; color: var(--muted); cursor: pointer; padding: 2px 4px; line-height: 1; }
.sp-toast-close:hover { color: var(--text); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-body { grid-template-columns: 1fr; }
  .product-img-wrap { border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
  .product-img-wrap img { width: 140px; height: 140px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 240px 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-hero h1 { font-size: 24px; }
  .hero-img { height: 220px; }
  .pros-cons { grid-template-columns: 1fr; }
  .product-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .summary-table th:nth-child(1), .summary-table td:nth-child(1) { display: none; }
  .btn-table span { display: none; }
  .btn-table { padding: 8px 12px; }
}
