/* ─────────────────────────────────────────────
   Páginas de venda de livro — clovissoler.com.br/livros/*
   Usar junto com site.css (variáveis, nav, footer, botões).
   Arquivo separado de propósito: alterar aqui não afeta home nem blog.
   ───────────────────────────────────────────── */

/* HERO DO LIVRO */
.book-hero { background: var(--ink-soft); padding: 150px 0 90px; position: relative; overflow: hidden; }
.book-hero::before { content: ''; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(184,145,42,0.12) 0%, transparent 70%); pointer-events: none; }
.book-hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.book-breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.book-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.book-breadcrumb a:hover { color: var(--gold); }
.book-hero h1 { font-family: var(--ff-display); font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.book-hero h1 em { font-style: normal; color: var(--gold); }
.book-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 560px; margin-bottom: 1.75rem; }
.book-author-line { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem; }
.book-author-line strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* CAIXA DE COMPRA */
.buy-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 24px 26px; max-width: 520px; }
.buy-box-light { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); margin: 0 auto; }
.buy-price-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.buy-price { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.buy-box-light .buy-price { color: var(--ink-soft); }
.buy-installments { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.buy-box-light .buy-installments { color: var(--text-muted); }
.buy-box .btn { width: 100%; justify-content: center; font-size: 0.95rem; padding: 16px 28px; }
.buy-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.buy-box-light .buy-trust { color: var(--text-muted); justify-content: center; }

/* CAPA */
.book-cover-wrap { display: flex; justify-content: center; perspective: 1200px; }
.book-cover { width: 300px; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; position: relative; transform: rotateY(-14deg) rotateX(2deg); box-shadow: 28px 34px 70px rgba(0,0,0,0.55), -2px 0 0 rgba(255,255,255,0.08); }
.book-cover::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.06)); z-index: 2; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Capa provisória em CSS (usada só enquanto não houver imagem da capa) */
.book-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(150deg, #B8912A 0%, #7A5B10 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 34px 28px; }
.book-cover-placeholder .bc-author { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.book-cover-placeholder .bc-title { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700; color: var(--white); line-height: 1.15; }
.book-cover-placeholder .bc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* SEÇÕES */
.book-section-white { background: var(--white); }
.book-section-surface { background: var(--surface); }
.book-narrow { max-width: 760px; }
.book-lead { font-size: 1.08rem; line-height: 1.85; color: var(--text-body); margin-bottom: 1.25rem; }

.pain-list { list-style: none; margin-top: 2rem; display: grid; gap: 12px; }
.pain-list li { padding: 16px 20px; background: var(--surface); border-left: 3px solid var(--gold); border-radius: var(--radius); font-size: 0.98rem; color: var(--ink-soft); }

.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.learn-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.learn-num { font-family: var(--ff-display); font-size: 0.85rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 6px; }
.learn-title { font-family: var(--ff-display); font-size: 1.08rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.35; }
.learn-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* O QUE VOCÊ RECEBE */
.includes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.include-card { background: var(--surface); border-radius: var(--radius-lg); padding: 30px 26px; border-top: 3px solid var(--gold); }
.include-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }
.include-title { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.include-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.include-note { margin-top: 1.75rem; font-size: 0.85rem; color: var(--text-muted); padding: 14px 18px; background: var(--gold-muted); border-radius: var(--radius); }

/* PARA QUEM É / NÃO É */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.fit-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.fit-col h3 { font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1rem; }
.fit-col ul { list-style: none; display: grid; gap: 10px; }
.fit-col li { font-size: 0.93rem; line-height: 1.6; padding-left: 28px; position: relative; }
.fit-yes li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.fit-no li::before { content: '✕'; position: absolute; left: 0; color: #9A9086; font-weight: 700; }

/* AUTOR */
.book-author { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: center; }
.book-author-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.book-author-photo img { width: 100%; height: 340px; object-fit: cover; object-position: top center; display: block; }
.book-author p { margin-bottom: 1rem; line-height: 1.8; font-size: 0.97rem; }

/* PRÓXIMO PASSO (ponte para produto) */
.next-step { background: linear-gradient(135deg, var(--ink-soft) 0%, #0D0D1A 100%); border-radius: var(--radius-lg); padding: 44px; color: rgba(255,255,255,0.7); }
.next-step .tag { color: var(--gold-light); }
.next-step h3 { font-family: var(--ff-display); font-size: 1.5rem; color: var(--white); margin-bottom: 0.75rem; }
.next-step p { margin-bottom: 1.5rem; max-width: 620px; }

/* FAQ */
.faq-list { margin-top: 2.5rem; display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); font-size: 0.98rem; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 1.3rem; color: var(--gold); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin-top: 12px; font-size: 0.93rem; line-height: 1.75; color: var(--text-body); }

/* CTA FINAL */
.book-final { text-align: center; }
.book-final .section-title { margin-bottom: 0.75rem; }
.book-final .section-subtitle { margin: 0 auto 2.5rem; }

/* BARRA FIXA NO CELULAR */
.sticky-buy { display: none; }

@media (max-width: 900px) {
  .book-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .book-cover-wrap { order: -1; }
  .book-cover { width: 220px; }
  .learn-grid, .fit-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .book-author { grid-template-columns: 1fr; gap: 2rem; }
  .book-author-photo { max-width: 260px; }
}
@media (max-width: 768px) {
  .book-hero { padding: 120px 0 64px; }
  .next-step { padding: 30px 24px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink-soft); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
  .sticky-buy span { color: var(--white); font-weight: 600; font-size: 0.95rem; }
  .sticky-buy .btn { padding: 11px 18px; }
  footer { padding-bottom: 90px; }
}
