/* --- 1. CONFIGURAÇÃO DE CORES (SLATE DARK MODE OTIMIZADO) --- */
:root {
    /* --- LIGHT MODE --- */
    --bg-body: #FFFFFF;
    --bg-section: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.95);
    
    --text-main: #334155;     /* Slate 700 */
    --text-heading: #1e293b;  /* Slate 800 */
    
    --primary: #D4AF37;       /* Dourado */
    --primary-hover: #b5952f;
    --primary-glow: rgba(212, 175, 55, 0.4);
    
    --secondary: #2C3E50;     /* Azul Marinho */
    --accent: #E8A6A6;
    --success: #27ae60;
    
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    
    --offer-bg: #FFFFFF;
}

[data-theme="dark"] {
    /* --- DARK MODE PREMIUM (SLATE) --- */
    --bg-body: #020617;       /* Slate 950 */
    --bg-section: #0f172a;    /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-header: rgba(2, 6, 23, 0.9);
    
    --text-main: #cbd5e1;     /* Slate 300 */
    --text-heading: #f1f5f9;  /* Slate 50 */
    
    --primary: #fbbf24;       /* Amber 400 (Dourado Neon) */
    --primary-hover: #f59e0b;
    --primary-glow: rgba(251, 191, 36, 0.25);
    
    --secondary: #f8fafc;     /* Azul vira Branco p/ ícones */
    --success: #4ade80;
    
    --border-color: #334155;
    --card-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    --offer-bg: #1e293b;
}

/* --- 2. RESET E GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
body { font-family: 'Open Sans', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--text-heading); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; }

/* --- 3. HEADER E TOP BAR --- */
.top-bar { background: var(--secondary); color: #fff; text-align: center; padding: 8px; font-size: 0.85rem; font-weight: 600; }
[data-theme="dark"] .top-bar { background: #1e293b; color: var(--primary); border-bottom: 1px solid var(--border-color); }

.header-sales { padding: 15px 0; border-bottom: 1px solid var(--border-color); background: var(--bg-header); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-heading); }
.logo span { color: var(--primary); }
.nav-controls { display: flex; gap: 15px; align-items: center; }

.btn-sm-header { padding: 8px 20px; font-size: 0.85rem; border-radius: 50px; background: var(--secondary); color: #fff; font-weight: 600; border: 1px solid var(--secondary); }
[data-theme="dark"] .btn-sm-header { background: transparent; color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .btn-sm-header:hover { background: var(--primary); color: #020617; }

.theme-btn { background: none; border: none; cursor: pointer; color: var(--text-main); font-size: 1.2rem; padding: 5px; }

/* --- 4. HERO SECTION (Layout Split) --- */
.sales-hero { padding: 80px 0; background: radial-gradient(circle at center, var(--bg-section) 0%, var(--bg-body) 100%); border-bottom: 1px solid var(--border-color); }

.product-hero-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

.badge-gold { background: rgba(212, 175, 55, 0.15); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; border: 1px solid rgba(212, 175, 55, 0.3); }

.product-hero-text h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; }
.subheadline { font-size: 1.2rem; color: var(--text-main); margin-bottom: 30px; }
.guarantee-text { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }

/* Mockup 3D CSS */
.product-hero-img { display: flex; justify-content: center; }
.book-3d { width: 280px; height: 380px; border-radius: 5px 20px 20px 5px; box-shadow: 15px 15px 40px rgba(0,0,0,0.2); border-left: 12px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.3s; }
.book-3d:hover { transform: translateY(-5px) rotateY(-5deg); }
.book-3d::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.1); }

/* Cores Específicas do Produto */
.challenge-color { background: linear-gradient(135deg, #D4AF37, #f1c40f); }

.book-content { text-align: center; color: #1e293b; z-index: 2; padding: 20px; }
.icon-3d { font-size: 4rem; margin-bottom: 20px; display: block; opacity: 0.9; }
.book-content h3 { font-size: 2rem; line-height: 1.1; margin-bottom: 5px; color: #1e293b; }
.book-subtitle { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* --- 5. PAIN SECTION --- */
.pain-section { padding: 80px 0; background: var(--bg-body); }
.section-header-center { text-align: center; margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.pain-item { background: var(--bg-card); padding: 30px; border-radius: 15px; text-align: center; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.pain-item i { font-size: 2.5rem; color: #e74c3c; margin-bottom: 20px; }
[data-theme="dark"] .pain-item i { color: #f87171; text-shadow: 0 0 10px rgba(248, 113, 113, 0.3); }

/* --- 6. TIMELINE SECTION (Produto Específico) --- */
.timeline-section { padding: 80px 0; background: var(--bg-section); }
.timeline-wrapper { max-width: 800px; margin: 0 auto; }

.timeline-step { display: flex; gap: 25px; margin-bottom: 40px; position: relative; }
.timeline-step:last-child { margin-bottom: 0; }

/* Linha da Timeline */
.timeline-step::before { content: ''; position: absolute; left: 25px; top: 60px; bottom: -40px; width: 2px; background: var(--border-color); }
.timeline-step:last-child::before { display: none; }

.step-icon { 
    width: 50px; height: 50px; 
    background: var(--primary); 
    color: #1e293b; /* Sempre escuro para contraste */
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.4rem; font-weight: 800; 
    flex-shrink: 0; z-index: 2; 
    box-shadow: 0 0 0 5px var(--bg-section); 
}

.step-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }
.step-content p { color: var(--text-main); font-size: 1rem; }

/* --- 7. OFFER SECTION --- */
.offer-section { padding: 80px 0; background: var(--bg-body); }
.offer-box { max-width: 600px; margin: 0 auto; background: var(--offer-bg); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); overflow: hidden; border: 2px solid var(--primary); }
[data-theme="dark"] .offer-box { box-shadow: 0 0 50px rgba(0,0,0,0.5); }

.offer-header { background: var(--secondary); color: #fff; padding: 30px; text-align: center; }
[data-theme="dark"] .offer-header { background: var(--bg-section); border-bottom: 1px solid var(--border-color); }
[data-theme="dark"] .offer-header h3 { color: var(--primary); }
[data-theme="dark"] .offer-header p { color: var(--text-main); }

.offer-body { padding: 40px; text-align: center; }
.price-display { margin-bottom: 10px; color: var(--text-heading); }
.currency { font-size: 1.5rem; vertical-align: middle; }
.amount { font-size: 4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.cash-price { color: var(--text-main); margin-bottom: 30px; font-weight: 600; }

.offer-benefits { text-align: left; max-width: 350px; margin: 0 auto 30px; color: var(--text-main); }
.offer-benefits li { margin-bottom: 10px; display: flex; align-items: center; }
.offer-benefits i { color: var(--success); margin-right: 10px; }

/* Botão CTA */
.btn-cta { 
    display: block; width: 100%; text-align: center;
    background: linear-gradient(180deg, var(--primary) 0%, #c49f26 100%); 
    color: #fff; 
    padding: 18px; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4); 
    border: none;
}
[data-theme="dark"] .btn-cta { 
    background: var(--primary); 
    color: #020617 !important; 
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5); }

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

.secure-badges { margin-top: 20px; font-size: 0.8rem; color: var(--text-main); opacity: 0.7; display: flex; justify-content: center; gap: 20px; }

/* --- 8. FOOTER --- */
.footer-sales { padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); font-size: 0.9rem; opacity: 0.7; background: var(--bg-body); }

/* --- 9. RESPONSIVO --- */
@media (max-width: 768px) {
    .product-hero-split { grid-template-columns: 1fr; text-align: center; }
    .product-hero-text h1 { font-size: 2rem; }
    .product-hero-img { margin-top: 40px; }
    .timeline-step { gap: 15px; }
    .timeline-step::before { left: 25px; } /* Ajuste fino */
    .nav-controls .btn-sm-header { display: none; }
}

/* --- Cores Específicas dos Produtos --- */

/* Cor do Desafio (Amarelo/Dourado) - Já deve ter, mas reforçando */
.challenge-color { 
    background: linear-gradient(135deg, #D4AF37, #f1c40f); 
}

/* Cor do Guia de Rotina (Verde Esmeralda/Natureza) */
.routine-color { 
    background: linear-gradient(135deg, #27ae60, #2ecc71); 
}

/* Cor para Futuro Guia de Telas (Azul Tecnológico) */
.digital-color {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Cor para Futuro Cartões de Valores (Rosa/Laranja) */
.values-color {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}
/* --- SEÇÃO "O QUE TEM DENTRO" (CHECKLIST) --- */

/* Ajuste na seção pai para garantir o fundo correto */
section.inside-section-wrapper {
    background-color: var(--bg-section); /* Fundo cinza/azul */
    padding: 60px 0 80px; /* Espaçamento generoso */
    position: relative;
    z-index: 2;
}

.inside-box { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    padding: 50px; 
    /* Removemos a margem negativa para evitar quebras */
    margin: 0 auto; 
    max-width: 900px;
    
    /* Sombra mais difusa e elegante */
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); 
}

/* Título do Box */
.inside-box h3 {
    text-align: center;
    color: var(--primary); /* Título em Dourado */
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Grade do Checklist */
.inside-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Colunas mais largas */
    gap: 30px; 
    align-items: start;
}

/* Item Individual */
.inside-item { 
    display: flex; 
    align-items: flex-start; /* Alinha no topo caso o texto seja longo */
    gap: 20px; 
    font-size: 1.05rem; 
    color: var(--text-main); 
    font-weight: 500;
    line-height: 1.5;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s;
}

/* Efeito Hover no Item */
.inside-item:hover {
    background-color: var(--bg-section);
}

/* Ícone Estilizado */
.inside-item i { 
    flex-shrink: 0; /* Impede o ícone de amassar */
    width: 35px; 
    height: 35px; 
    
    /* Gradiente Verde Premium */
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff; 
    
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-size: 0.9rem;
    
    /* Sombra colorida no ícone (Glow) */
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

/* --- AJUSTES DARK MODE --- */
[data-theme="dark"] .inside-box {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.4);
}

[data-theme="dark"] .inside-item:hover {
    background-color: rgba(255,255,255,0.03);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .inside-box {
        padding: 30px 20px; /* Menos padding no celular */
    }
    
    .inside-grid {
        grid-template-columns: 1fr; /* Uma coluna */
        gap: 15px;
    }
    
    .inside-item {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .inside-box h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}
/* --- Cores Específicas dos Produtos (Adicione ao final do style-sales.css) --- */

/* Cor para Controle Digital (Azul Tecnológico) */
.digital-color {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Cor para Cartões de Valores (Laranja/Coral - Para a próxima página) */
.values-color {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}
/* --- Cores Específicas dos Produtos --- */

/* Cor do Desafio (Amarelo) */
.challenge-color { background: linear-gradient(135deg, #D4AF37, #f1c40f); }

/* Cor da Rotina (Verde) */
.routine-color { background: linear-gradient(135deg, #27ae60, #2ecc71); }

/* Cor do Digital (Azul) */
.digital-color { background: linear-gradient(135deg, #2980b9, #3498db); }

/* Cor dos Valores (Laranja/Coral - NOVO) */
.values-color { background: linear-gradient(135deg, #e67e22, #f39c12); }

/* --- ESTILOS DA BIBLIOTECA (STORE) --- */

/* Hero da Loja */
.store-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--bg-body);
}

/* Banner do Desafio (Destaque Horizontal) */
.challenge-banner {
    padding: 20px 0 60px;
}

.challenge-card-horizontal {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.challenge-visual {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    position: relative;
}

.icon-banner { font-size: 4rem; opacity: 0.8; }
.visual-tag { 
    margin-top: 10px; 
    background: rgba(255,255,255,0.2); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    font-weight: 700; 
}

.challenge-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.challenge-info h2 { font-size: 2rem; margin-bottom: 10px; color: var(--text-heading); }
.challenge-info p { color: var(--text-main); margin-bottom: 20px; font-size: 1.1rem; }

.mini-benefits { list-style: none; display: flex; gap: 20px; margin-bottom: 30px; }
.mini-benefits li { font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; }
.mini-benefits i { color: var(--success); margin-right: 8px; }

.price-row { display: flex; align-items: center; gap: 20px; }
.price-value { font-size: 1.8rem; font-weight: 800; color: var(--text-heading); }
.btn-small { padding: 12px 30px; font-size: 1rem; width: auto; }

/* Grid de Produtos */
.library-grid-section {
    padding: 40px 0 80px;
    background: var(--bg-section);
}

.section-title-left {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-heading);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.store-card-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
}

/* O corpo do card precisa crescer para empurrar o footer para baixo */
.store-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-card-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
    min-height: 50px; /* Alinha títulos */
}

.store-card-body p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 20px;
    opacity: 0.8;
    flex: 1;
}

.store-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.price-small {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.btn-outline-store {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.2s;
}

.btn-outline-store:hover {
    background: var(--primary);
    color: #1e293b;
    border-color: var(--primary);
}

/* Ajustes Dark Mode para a Loja */
[data-theme="dark"] .store-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
[data-theme="dark"] .btn-outline-store {
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .btn-outline-store:hover {
    background: var(--primary);
    color: #020617;
}

/* Responsividade da Loja */
@media (max-width: 768px) {
    .challenge-card-horizontal { flex-direction: column; }
    .challenge-visual { width: 100%; height: 150px; flex-direction: row; gap: 15px; }
    .price-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-small { width: 100%; text-align: center; }
}

/* --- PÁGINA LEGAL (Políticas e Termos) --- */

.legal-section {
    padding: 60px 0;
    background: var(--bg-body);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.7;
    margin-bottom: 30px;
}

.legal-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul li {
    list-style: disc;
    color: var(--text-main);
    margin-bottom: 8px;
}

.legal-footer-contact {
    text-align: center;
    background: var(--bg-section);
    padding: 30px;
    border-radius: 10px;
}

/* Responsividade Legal */
@media (max-width: 768px) {
    .legal-content {
        padding: 25px;
    }
    .legal-content h1 {
        font-size: 1.8rem;
    }
    .legal-content p {
        text-align: left; /* Justificado fica ruim no mobile */
    }
}

/* --- Capa do Desafio (Substituindo o Ícone) --- */

.challenge-cover-wrapper {
    /* Define um tamanho fixo para a área da imagem para não quebrar o layout */
    width: 200px; 
    flex-shrink: 0; /* Impede que a imagem seja esmagada se a tela diminuir */
    display: flex;
    justify-content: center;
    align-items: center;
}

.challenge-book-img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Cantos levemente arredondados */
    
    /* Sombra realista para dar profundidade */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.25);
    
    /* Leve inclinação para dar charme */
    transform: rotate(-3deg); 
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse em cima do card */
.challenge-card:hover .challenge-book-img,
.challenge-wrapper:hover .challenge-book-img {
    transform: rotate(0deg) scale(1.05); /* Endireita e aumenta um pouquinho */
}

/* Animação de Flutuar (Opcional - Já definimos antes, mas reforçando) */
.floating-animate {
    animation: float-book 6s ease-in-out infinite;
}

@keyframes float-book {
    0% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(-3deg); } /* Sobe um pouco */
    100% { transform: translateY(0px) rotate(-3deg); }
}

/* --- Ajuste Mobile --- */
@media (max-width: 768px) {
    .challenge-cover-wrapper {
        width: 160px; /* Um pouco menor no celular */
        margin-bottom: 20px; /* Espaço para o texto abaixo */
    }
}

/* =========================================
   CSS DA BIBLIOTECA (STORE GRID)
   ========================================= */

.library-grid-section {
    padding: 60px 0 100px;
    background: var(--bg-body); /* Garante fundo correto no Dark/Light */
}

/* Título da Seção */
.section-title-left {
    font-size: 1.8rem;
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 5px solid var(--primary);
    color: var(--text-heading);
}

/* Grid Responsivo */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ajusta colunas auto */
    gap: 30px;
}

/* O Cartão do Produto */
.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Para alinhar o rodapé lá embaixo */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.store-card:hover {
    transform: translateY(-5px); /* Levanta um pouco */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Cabeçalho do Card (Onde fica a Imagem + Cor de Fundo) */
.store-card-header {
    height: 250px; /* Altura generosa para a capa respirar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    /* A cor de fundo vem do HTML inline, mas aqui ajustamos o comportamento */
}

/* A Imagem da Capa */
.store-book-img {
    height: 100%;       /* Ocupa a altura disponível */
    width: auto;        /* Mantém proporção */
    max-width: 100%;
    object-fit: contain; /* Mostra a capa inteira sem cortar */
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2)); /* Sombra realista atrás do livro */
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse */
.store-card:hover .store-book-img {
    transform: scale(1.05) rotate(-2deg); /* Zoom e leve inclinação */
}

/* Corpo do Texto */
.store-card-body {
    padding: 25px;
    flex: 1; /* Cresce para ocupar espaço vazio */
    display: flex;
    flex-direction: column;
}

.store-card-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
    line-height: 1.3;
    min-height: 3.2rem; /* Alinha os títulos mesmo se um for maior que o outro */
}

.store-card-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Rodapé (Preço e Botão) */
.store-card-footer {
    margin-top: auto; /* Empurra para o fundo */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-small {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
}

/* Botão "Saiba Mais" */
.btn-outline-store {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: transparent;
}

.btn-outline-store:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #1e293b; /* Texto escuro no hover para contraste */
}

/* --- Ajustes Específicos para Dark Mode --- */
[data-theme="dark"] .store-card-header {
    /* Diminui o brilho das cores pastéis no modo escuro para não ofuscar */
    filter: brightness(0.85); 
}

[data-theme="dark"] .price-small {
    color: var(--primary); /* Preço em dourado no escuro */
}

[data-theme="dark"] .btn-outline-store {
    border-color: var(--text-main);
    color: var(--text-main);
}

[data-theme="dark"] .btn-outline-store:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #020617;
}

/* --- Responsividade --- */
@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr; /* Um card por linha no celular */
        gap: 20px;
    }
    
    .store-card-header {
        height: 220px; /* Um pouco menor no mobile */
    }
}

/* --- Capa Real do E-book na Hero Section --- */

.hero-book-real {
    width: 100%;
    max-width: 380px; /* Tamanho ideal para capa vertical */
    height: auto;
    
    /* Sombra profunda para dar efeito 3D no fundo claro ou escuro */
    filter: drop-shadow(0 25px 30px rgba(0,0,0,0.25));
    
    /* Leve inclinação para dar charme */
    transform: rotate(-3deg);
    
    border-radius: 5px; /* Suaviza os cantos da imagem */
    transition: transform 0.3s ease;
}

/* Ajuste da Animação de Flutuar para manter a inclinação */
.floating-animate {
    animation: float-book 6s ease-in-out infinite;
}

@keyframes float-book {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg); /* Sobe mantendo o ângulo */
    }
    100% {
        transform: translateY(0px) rotate(-3deg);
    }
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .hero-book-real {
        max-width: 280px; /* Menor no celular */
        margin-top: 20px;
    }
}