/* assets/style.css */
:root {
    --primaria: #d0021b;   /* Vermelho Destaque */
    --escuro: #111111;     /* Preto Sólido */
    --fundo: #fafafa;      /* Branco Suave */
    --texto: #2c3e50;      /* Cinza Escuro Leitura */
    --borda: #eaeaea;
    --whatsapp: #25D366;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--fundo);
    color: var(--texto);
}

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

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Identidade do Logo */
.main-header {
    background: #ffffff;
    border-bottom: 3px solid var(--escuro);
    padding: 20px 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--escuro);
    line-height: 1;
}
.logo span { color: var(--primaria); }
.logo small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}
.header-tagline { font-weight: bold; color: var(--primaria); margin: 0; }

/* Lista Corrida Vertical (index.php) */
.lista-apostilas { list-style: none; padding: 0; margin: 30px 0 0 0; }
.item-apostila {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}
.item-apostila img {
    width: 130px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.item-conteudo { flex: 1; }
.item-conteudo h2 { margin: 0 0 8px 0; font-size: 1.5rem; color: var(--escuro); font-weight: 800; }
.preco-lista { font-size: 1.3rem; font-weight: 900; color: var(--primaria); display: block; margin-bottom: 12px; }
.item-conteudo p { margin: 0 0 15px 0; color: #555; line-height: 1.6; font-size: 0.95rem; }
.btn-detalhes, .btn-voltar-topo {
    display: inline-block;
    background: var(--escuro);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn-detalhes:hover { background: var(--primaria); }

/* Detalhes do Produto (apostila.php) */
.layout-produto { background: #ffffff; border-radius: 12px; padding: 40px; display: flex; gap: 40px; border: 1px solid var(--borda); }
.produto-img { max-width: 280px; width: 100%; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.badge-envio { background: #f5f5f5; color: var(--escuro); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.preco-por { font-size: 2.8rem; font-weight: 900; color: var(--primaria); display:block; margin: 15px 0; }
.btn-comprar-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--whatsapp);
    color: white;
    text-decoration: none;
    padding: 16px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.btn-comprar-whatsapp:hover { background: #20bd5a; }

.main-footer { text-align: center; padding: 40px 0; color: #888; font-size: 0.9rem; border-top: 1px solid var(--borda); margin-top: 60px; }

/* Responsivo */
@media(max-width: 768px) {
    .item-apostila, .layout-produto { flex-direction: column; align-items: center; text-align: center; }
    .header-flex { flex-direction: column; gap: 10px; text-align: center; }
}