/* =========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    --azul-claro: #007bff;
    --azul-escuro: #004e92;
    --azul-noite: #000428;
    --amarelo: #ffc107;
    --branco: #ffffff;
    --preto-suave: #2d3436;
    --cinza-fundo: #f0f2f5;
    --sombra-premium: 0 10px 30px rgba(0,0,0,0.15);
    --transicao: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body { 
    background-color: #f0f2f5; 
    padding-top: 95px !important; /* Ajuste este valor se o slide ainda estiver um pouco escondido */
}

/* =========================================
   2. HEADER FIXO (DUAS BARRAS)
   ========================================= */
/* Container que agrupa as duas barras */
.header-geral {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Força uma barra em cima da outra sem espaços */
    gap: 0; /* Garante que não haja buraco entre elas */
}


/* Isso remove espaços em branco antes do header */
html, body {
    margin: 0;
    padding: 0;
}

.header-container {
    width: 85%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible !important;
}

/* BARRA SUPERIOR (Institucional) */


.barra-superior .header-container { justify-content: center; }
.barra-superior {
    height: 35px;
    background-color: var(--azul-claro);
    width: 100%;
    margin: 0 !important; /* Remove qualquer margem residual */
    display: flex;
    align-items: center;
}

.barra-inferior {
    height: 60px;
    background: linear-gradient(135deg, #004e92, #000428);
    width: 100%;
    margin: 0 !important; /* Remove qualquer margem residual */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra apenas na barra de baixo */
}

.menu-top-lista { display: flex; gap: 30px; list-style: none; }

.menu-top-lista a {
    color: var(--branco);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    transition: var(--transicao);
}
.menu-top-lista a:hover { opacity: 1; transform: translateY(-1px); }

/* BARRA INFERIOR (Principal) */
.barra-inferior {
    height: 60px;
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-noite));
    display: flex;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.barra-inferior .header-container { justify-content: space-between; }

/* =========================================
   3. COMPONENTES DO HEADER
   ========================================= */

/* Logo Flutuante */
.logo-link-destaque { flex: 0 0 170px; position: relative; }

.logo-img-floating {
    position: absolute;
    top: -45px; 
    left: 0;
    max-height: 105px;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.4));
    transition: var(--transicao);
    z-index: 2100;
}

/* Busca Central */
.busca-container-central { flex: 1; display: flex; justify-content: center; padding: 0 40px; }

.header-busca-v2 {
    background: var(--branco);
    border-radius: 8px;
    display: flex;
    height: 38px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.header-busca-v2 select { background: #f8f9fa; border: none; padding: 0 12px; font-size: 12px; font-weight: 600; color: #555; cursor: pointer; }
.header-busca-v2 input { border: none; outline: none; padding: 0 15px; flex: 1; font-size: 14px; color: var(--preto-suave); }
.header-busca-v2 button { border: none; background: #e9ecef; padding: 0 18px; cursor: pointer; transition: 0.2s; font-size: 16px; }
.header-busca-v2 button:hover { background: #dee2e6; }

/* Ações Direita */
.header-acoes-direita { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }

.btn-publique-v2 {
    background: var(--amarelo);
    color: #000 !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 4px 0 #b78a00;
    transition: 0.2s;
}
.btn-publique-v2:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b78a00; }

.carrinho-link-v2, .btn-login-v2 {
    color: var(--branco);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* =========================================
   4. SISTEMA DE LOGIN (FOTO + DROPDOWN PREMIUM)
   ========================================= */
.user-menu-container {
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transicao);
}
.user-menu-container:hover { background: rgba(255, 255, 255, 0.2); }

.user-info-trigger { display: flex; align-items: center; gap: 10px; }

.user-thumb-nav {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul-claro);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.user-name-nav { color: var(--branco); font-size: 13px; font-weight: 700; }

/* Dropdown */
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 65px;
    background: var(--branco);
    min-width: 250px;
    border-radius: 16px;
    box-shadow: var(--sombra-premium);
    z-index: 3000;
    padding: 15px 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-dropdown-content.active { display: block !important; animation: popIn 0.3s forwards; }

.dropdown-header {
    text-align: center; /* CENTRALIZADO */
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 900;
    color: var(--azul-escuro);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.user-dropdown-content a {
    color: #444 !important;
    padding: 12px 25px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.user-dropdown-content a:hover {
    background: #f8fbff;
    color: var(--azul-claro) !important;
    padding-left: 35px;
}

.menu-sair { color: #e74c3c !important; border-top: 1px solid #eee; margin-top: 10px; }

/* =========================================
   5. SLIDESHOW (RESTAURADO)
   ========================================= */
.slideshow-container {
    max-width: 1250px;
    position: relative;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-premium);
}

.mySlides img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* =========================================
   6. MODAIS E ANIMAÇÕES
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 5000;
}

.modal-card {
    background: white; width: 90%; max-width: 400px;
    margin: 100px auto; padding: 40px; border-radius: 20px;
    position: relative;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsivo */
@media (max-width: 992px) {
    .header-container { width: 95%; }
    .busca-container-central { display: none; }
}
/* =========================================
   FOOTER - ESTILO DOS LINKS ÚTEIS
   ========================================= */
footer {
    background: linear-gradient(135deg, #004e92, #000428);
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid #007bff;
}

.footer-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Ajuste específico para a sua classe .footer-col */
.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #ffc107; /* Amarelo Vivo */
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* Linha decorativa abaixo do título */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #007bff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Efeito ao passar o mouse nos links */
.footer-col ul li a:hover {
    color: #ffc107; /* Muda para amarelo */
    transform: translateX(8px); /* Desliza suavemente */
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* Estilo para a nova coluna de segurança */
.col-seguranca h4 {
    margin-bottom: 15px;
}

.selos-seguranca {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.selos-seguranca img {
    height: 40px; /* Tamanho dos selos principais */
    filter: grayscale(0.2);
    transition: 0.3s;
}

.selos-seguranca img:hover {
    filter: grayscale(0);
}

.bandeiras-pagamento {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bandeiras-pagamento img {
    height: 25px; /* Tamanho das bandeiras de cartão */
}

.texto-seguro {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 5px;
}

/* Ajuste no rodapé inferior */
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}
/* Remove o azul e o sublinhado do link de suporte */
.footer-col p a {
    color: inherit; /* Faz o link herdar a cor do texto do parágrafo (geralmente branco ou cinza claro) */
    text-decoration: none; /* Remove o sublinhado */
    transition: 0.3s;
}

/* Adiciona um efeito suave ao passar o mouse */
.footer-col p a:hover {
    color: #28a745; /* Cor de destaque (ex: verde) ou uma cor mais clara */
    text-decoration: underline; /* Opcional: o sublinhado aparece só no hover */
}

/* =========================================
   PÁGINA DE CARRINHO - RESTAURAÇÃO
   ========================================= */

/* Centraliza o conteúdo da página */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh; /* Garante que o footer não suba se o carrinho estiver vazio */
}

/* Estilo do link "Continuar Comprando" */
h2 a {
    font-size: 14px;
    text-decoration: none;
    color: #007bff;
    font-weight: normal;
    margin-left: 10px;
}

h2 a:hover {
    text-decoration: underline;
}

/* Botão Finalizar Compra */
.btn-comprar-grande {
    display: inline-block;
    background: #28a745; /* Verde para conversão */
    color: white !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-comprar-grande:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Ajuste para a Tabela no Mobile */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr { border: 1px solid #ccc; margin-bottom: 10px; }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right !important;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
    }
}
/* =========================================
   PÁGINA FALE CONOSCO (CONTATO)
   ========================================= */

/* RESET PARA PÁGINA DE CONTATO/LOGIN */
.body-login {
    display: block !important; /* Remove o Flex que causa o deslocamento vertical */
    width: 100%;
    margin: 0 auto;
    padding-top: 50px; /* Espaço após o padding do body */
    min-height: 70vh;
}

/* Centraliza o box do formulário horizontalmente */
.login-container {
    margin: 0 auto; /* Centraliza horizontalmente */
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px; /* Largura do formulário */
}

#form-login h2 {
    color: #004e92;
    margin-bottom: 10px;
    text-align: center;
    font-size: 24px;
}

/* Estilização dos Inputs */
#form-login input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    display: block;
    box-sizing: border-box; /* Garante que o padding não aumente a largura */
}

#form-login input:focus, #form-login textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* Botão de Enviar */
.btn-enviar {
    width: 100%;
    padding: 12px;
    background: #004e92;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-enviar:hover {
    background: #003366;
}

/* Seção de Contato Direto (WhatsApp e E-mail) */
.contato-direto p {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contato-direto a {
    color: #004e92;
    text-decoration: none;
}

.contato-direto a:hover {
    text-decoration: underline;
}

/* Links abaixo do formulário */
.links-auxiliares {
    margin-top: 20px;
    text-align: center;
}

.links-auxiliares a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.links-auxiliares a:hover {
    color: #004e92;
}

/* =========================================
   PÁGINA COMO FUNCIONA
   ========================================= */

/* Centralização da página */
.main-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

/* Blocos de informação (Passos) */
.passo-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease;
}

.passo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.passo-box h3 {
    color: #004e92;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.passo-box ul {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.passo-box ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.passo-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Badges de formato (PDF/EPUB) */
.badge-formato {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #495057;
}

/* Caixa de destaque de anúncio (Amarela) */
.destaque-anuncio {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Seção Mercado Pago */
.mercado-pago-section {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 15px;
    border: 1px dashed #dee2e6;
    margin-top: 40px;
}

/* Botão Azul padrão da página */
.btn-azul {
    background: #004e92;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-azul:hover {
    background: #003366;
    transform: scale(1.02);
}

/* Variável de cor caso não esteja no root */
:root {
    --azul-padrao: #004e92;
}

/* =========================================
   VITRINE DE E-BOOKS (GRID E CARDS)
   ========================================= */

/* Container da Vitrine */
.grid-ebooks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* Card Individual do E-book */
.card-ebook {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    position: relative;
}

.card-ebook:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Capa do Livro */
.card-ebook img {
    width: 100%;
    height: 280px; /* Altura fixa para alinhar todos os cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

/* Título e Autor */
.card-ebook h3 {
    font-size: 15px;
    color: #333;
    margin: 10px 0 5px 0;
    line-height: 1.3;
    min-height: 40px; /* Garante que títulos longos não desalinharem o card */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-ebook .small {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

/* Preço */
.card-ebook .preco {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

/* =========================================
   BOTÕES DA VITRINE - VERSÃO FINAL
   ========================================= */

/* Base para todos os botões de ação no card */
.card-ebook .btn-acessar {
    display: block !important;
    width: 100% !important;
    padding: 12px 10px !important;
    margin-top: 8px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

/* Botão COMPRAR (Verde com texto Branco) */
.btn-comprar-vitrine {
    background-color: #28a745 !important;
    color: #ffffff !important; /* Branco absoluto */
}

.btn-comprar-vitrine:hover {
    background-color: #218838 !important;
    transform: scale(1.03);
}

/* Botão VER MAIS (Estilo contorno azul ou cinza elegante) */
.btn-detalhes-vitrine {
    background-color: #f8f9fa !important;
    color: #004e92 !important;
    border: 1px solid #004e92 !important;
}

.btn-detalhes-vitrine:hover {
    background-color: #004e92 !important;
    color: #ffffff !important;
}

/* Container dos botões para garantir alinhamento */
.card-ebook div[style*="flex-direction: column"] {
    margin-top: auto !important; /* Empurra os botões para o fim do card */
}
/* =========================================
   AVISO DE COOKIES
   ========================================= */
.cookie-wrapper {
    position: fixed;
    bottom: -100px; /* Começa escondido para a animação */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    z-index: 99999;
    padding: 20px 0;
    transition: bottom 0.5s ease-in-out;
}

.cookie-wrapper.show {
    bottom: 0; /* Sobe para aparecer */
}

.cookie-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #004e92;
    text-decoration: underline;
}

.btn-cookie-aceitar {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-cookie-aceitar:hover {
    background: #218838;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   PÁGINA DE BUSCA - GRID E CARDS
   ========================================= */

/* Container da busca (alinhado com o header) */
.container-vitrine {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 60vh;
}

.container-vitrine h2 {
    color: #004e92;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Grid de resultados */
.grade-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* Card de produto da busca */
.card-produto {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card-produto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Box da Imagem */
.imagem-box {
    width: 100%;
    height: 280px;
    background: #f9f9f9;
}

.imagem-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do livro */
.info-box {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-box h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px;
}

.info-box .preco {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

/* Botão Ver Detalhes */
.btn-ver-mais {
    display: block;
    background: #004e92;
    color: white !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-ver-mais:hover {
    background: #003366;
}

/* Mensagem de erro/aviso */
.aviso {
    grid-column: 1 / -1; /* Ocupa a largura toda se não houver resultados */
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 10px;
    color: #666;
}

/* Fundo escuro atrás do modal */
.modal-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

/* Caixa do modal */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-icon { font-size: 50px; margin-bottom: 15px; }

.btn-fechar {
    background: #004e92;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --- CONFIGURAÇÃO MOBILE --- */
@media (max-width: 850px) {
    /* Garante que a barra superior tenha posição relativa para o menu se apoiar */
    .barra-superior {
        position: relative;
    }

    /* Esconde o menu original e prepara a versão Mobile */
    .nav-top {
        display: none; /* Escondido */
        position: absolute;
        top: 100%; /* Brota logo abaixo da barra azul */
        left: 0;
        width: 100%;
        background: #004e92; /* Cor azul do seu tema */
        z-index: 99999; /* Valor alto para ficar na frente de tudo */
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    /* Classe que o JS vai ativar */
    .nav-top.active {
        display: block !important;
    }

    .menu-top-lista {
        flex-direction: column !important;
        padding: 0;
        margin: 0;
    }

    .menu-top-lista li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-top-lista li a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-align: left;
    }

    /* Estilo do Botão Hambúrguer */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #fff;
        transition: 0.3s;
    }
}

.container-funcionamento { max-width: 1000px; margin: 40px auto; padding: 20px; color: #333; }
.intro-secao { text-align: center; margin-bottom: 50px; }
.intro-secao h1 { color: #004e92; font-size: 2.5rem; }

.header-bloco { margin-bottom: 30px; }
.tag-categoria { background: #e1f5fe; color: #01579b; padding: 5px 15px; border-radius: 20px; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }
.tag-categoria.autor { background: #e8f5e9; color: #2e7d32; }

/* Grid de passos do Leitor */
.grid-passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 30px 0; }
.passo-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; border-top: 4px solid #004e92; }
.passo-card .numero { position: absolute; top: -15px; right: 10px; font-size: 2rem; font-weight: bold; color: rgba(0,78,146,0.1); }

/* Banner de destaque */
.banner-monetize { background: #fff3e0; padding: 20px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.banner-monetize span { font-weight: bold; color: #e65100; }

/* Tabela */
.taxas-container { background: #f9f9f9; padding: 30px; border-radius: 15px; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 20px 0; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #004e92; color: white; }

.divisao-lucro { display: flex; gap: 20px; margin-top: 20px; justify-content: center; }
.lucro-item { background: #004e92; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; }

.aviso-juros { font-size: 0.9rem; color: #666; font-style: italic; }
.divisor { margin: 60px 0; border: 0; border-top: 1px solid #ddd; }

@media (max-width: 600px) {
    .divisao-lucro { flex-direction: column; }
    .banner-monetize { text-align: center; justify-content: center; }
}

/* Bloco de Destaque Final */
.destaque-suporte {
    background: linear-gradient(135deg, #004e92 0%, #002f5a 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0,78,146,0.3);
}

.destaque-suporte h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.destaque-suporte p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-suporte-contato {
    background: #28a745; /* Verde para destacar */
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.btn-suporte-contato:hover {
    background: #218838;
    transform: scale(1.05);
}

.email-direto {
    display: block;
    margin-top: 20px;
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Ajuste fino na tabela para mobile */
@media (max-width: 768px) {
    .tabela-responsiva {
        overflow-x: auto;
    }
    .destaque-suporte h2 {
        font-size: 1.5rem;
    }
}
/* Container que segura a foto */
.user-menu-container {
    display: inline-block;
}

/* O conteúdo do menu (escondido por padrão) */
.user-dropdown-content {
    display: none; /* Começa escondido */
    position: absolute;
    right: 0;
    top: 50px; /* Ajuste conforme a altura da sua navbar */
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 5px;
    text-align: left;
}

/* Links dentro do menu */
.user-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* A classe que o JavaScript ativa ao clicar */
.user-dropdown-content.show {
    display: block !important;
}

/* Estilo da foto */
.user-thumb-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff8c00;
}

/* Container da foto */
.user-menu-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0 15px;
}

.user-thumb-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
    object-fit: cover;
}

/* O Dropdown */
.user-dropdown-content {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 55px; /* Ajuste para ficar abaixo da foto */
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 99999; /* Valor alto para ficar acima de tudo */
    overflow: hidden;
    border: 1px solid #eee;
}

/* Quando ativo via JS */
.user-dropdown-content.active {
    display: block !important;
}

/* Estilização Interna */
.user-dropdown-header {
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.user-dropdown-header small { color: #888; display: block; font-size: 11px; }

.user-dropdown-content a {
    color: #444;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: 0.2s;
}

.user-dropdown-content a i { margin-right: 8px; width: 16px; color: #ff8c00; }

.user-dropdown-content a:hover {
    background-color: #fff5eb;
    color: #ff8c00;
}

.user-dropdown-content hr { margin: 0; border: 0; border-top: 1px solid #eee; }

.logout-link { color: #d9534f !important; }
.logout-link i { color: #d9534f !important; }
.user-dropdown-content.active {
    display: block !important;
}

//* 1. O container precisa ser a referência */
.user-menu-container {
    position: relative; 
    display: inline-flex;
    align-items: center;
    padding-bottom: 15px; /* Cria uma 'ponte' invisível para o mouse não perder o foco */
    margin-bottom: -15px; /* Compensa o padding para não empurrar outros elementos */
}

/* 2. O Dropdown */
.user-dropdown-content {
    display: none;
    position: absolute;
    /* Ajuste o 'top' conforme a altura da sua barra inferior */
    top: 100%; /* Isso joga o menu exatamente abaixo do container da foto */
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 99999;
    border: 1px solid #eee;
    margin-top: 5px; /* Pequeno respiro visual */
}

/* 3. A mágica do Hover */
.user-menu-container:hover .user-dropdown-content {
    display: block !important;
}

/* Container Principal */
.vitrine-container {
    width: 80%; /* Valor para PC */
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 15px;
}


/* Título da Seção Centralizado */
.header-secao {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o título e o ícone */
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #1a2a3a;
    padding-bottom: 15px;
}

.header-secao h2 {
    color: #1a2a3a;
    margin: 0;
    text-transform: uppercase;
}

/* Grid de E-books - Lado a Lado no PC */
.grid-ebooks {
    display: grid;
    /* Mantém o tamanho fixo de 200px que você definiu */
    grid-template-columns: repeat(auto-fill, 200px);
    justify-content: center; 
    gap: 25px;
}

/* --- REGRAS PARA CELULAR (MOBILE) --- */
@media (max-width: 768px) {
    .vitrine-container {
        width: 92% !important; 
        margin: 60px auto 20px auto;
        padding: 0;
    }

    .grid-ebooks {
        /* Aqui a mágica: 1fr faz o card ocupar todo o espaço disponível */
        /* Se você quiser 1 card por linha, use: 1fr */
        /* Se quiser 2 cards por linha, use: repeat(2, 1fr) */
        grid-template-columns: 1fr; 
        gap: 10px;
        justify-items: center;
    }

    .ebook-box {
        width: 100% !important; /* Faz o card ocupar a largura total dos 92% */
        max-width: 450px;       /* Limite para não ficar gigante em tablets */
        height: auto; 
        min-height: 450px;      /* Aumentei para o conteúdo respirar */
    }

   .ebook-img {
        width: 100%;
        height: 480px; /* Aumentamos de 180px para 280px */
        padding: 5px;  /* Reduzi o padding para a imagem ganhar espaço */
        background: #f4f4f4;
    }

    .ebook-img img {
        width: auto;
        height: 100%;    /* Faz a imagem preencher toda a altura do container cinza */
        max-width: 100%; /* Garante que não escape para os lados */
        object-fit: contain; /* Mantém a proporção do livro sem cortar */
        box-shadow: 3px 5px 15px rgba(0,0,0,0.3); /* Sombra mais visível */
    }
    
    .ebook-data h4 {
        font-size: 16px; /* Título maior para acompanhar o box maior */
        margin-top: 10px;
    }
}



/* Ajuste do Box (200x350 para caber o autor) */
.ebook-box {
    width: 200px;
    height: 380px; /* Aumentei um pouco para o nome do autor caber com folga */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.3s;
}

.ebook-img {
    width: 100%;
    height: 180px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ebook-img img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.ebook-data {
    padding: 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebook-data h4 { font-size: 13px; color: #1a2a3a; margin-bottom: 4px; }
.nome-autor { font-size: 11px; color: #777; margin-bottom: 8px; font-style: italic; }
.stats-vendas { font-size: 10px; color: #ff8c00; font-weight: bold; }
.preco-tag { font-size: 18px; color: #27ae60; font-weight: 800; }





/* Botões em azul escuro e laranja */
.btn-area { display: flex; flex-direction: column; gap: 1px; }
.btn-detalhes { background: #0000FF; color: #fff; padding: 6px; text-align: center; text-decoration: none; font-size: 11px; }
.btn-comprar { background: #00BFFF; color: #fff; padding: 8px; text-align: center; text-decoration: none; font-size: 12px; font-weight: bold; }

/* Container de Publicidade */
.pub-container {
    width: 80%;
    min-height: 120px; /* Mudamos de height para min-height */
    margin: 40px auto;
    background: #1a2a3a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.pub-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
}

.pub-lista li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.pub-item-info {
    border-right: 2px dashed rgba(255, 255, 255, 0.2);
    flex-direction: column;
    text-align: left;
    align-items: flex-start !important;
}

/* --- REGRAS PARA CELULAR (MOBILE) --- */
@media (max-width: 768px) {
    .pub-container {
        height: auto; /* Deixa a altura crescer conforme o conteúdo */
    }

    .pub-lista {
        flex-direction: column; /* Coloca um abaixo do outro */
    }

    .pub-item-info {
        border-right: none; /* Remove a linha lateral */
        border-bottom: 2px dashed rgba(255, 255, 255, 0.2); /* Coloca a linha abaixo */
        text-align: center; /* Centraliza o texto no mobile */
        align-items: center !important;
    }

    .pub-item-banner img {
        max-width: 100%; /* Garante que a imagem não saia da tela */
        height: auto;
    }
}




/* Container que isola a página de detalhes */
.detalhe-page-wrapper {
    width: 80%;
    max-width: 1000px;
    margin: 60px auto; /* Centraliza e desce do header */
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Título Estilizado no Topo */
.titulo-detalhe-top {
    text-align: center;
    color: #1a2a3a;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff8c00; /* Linha laranja estilizada */
    text-transform: uppercase;
}

/* Layout Flex Interno */
.detalhes-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.col-capa {
    flex: 0 0 300px;
}

.capa-principal {
    width: 100%;
    border-radius: 10px;
    box-shadow: 5px 15px 25px rgba(0,0,0,0.2);
    display: block;
}

.col-info {
    flex: 1;
}

/* Preço em destaque */
.preco-grande-detalhe {
    font-size: 32px;
    color: #27ae60;
    font-weight: 800;
    margin: 20px 0;
}

/* Botão Comprar Grande (Diferente da vitrine) */
.btn-comprar-detalhe {
    display: block;
    width: 100%;
    max-width: 300px;
    background: #ff8c00;
    color: #fff !important;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-comprar-detalhe:hover {
    background: #e67e00;
    transform: scale(1.02);
}

/* Responsividade */
@media (max-width: 850px) {
    .detalhe-page-wrapper { width: 95%; padding: 20px; }
    .detalhes-flex { flex-direction: column; align-items: center; }
    .col-capa { flex: 0 0 250px; }
}

/* Estilização dos blocos de conteúdo */
.bloco-estilizado {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Destaque para o modelo Externo/Premium */
.externo-destaque {
    border: 2px solid #ff8c00;
    background: linear-gradient(145deg, #ffffff 0%, #fffbf2 100%);
    position: relative;
}

.selo-premium {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff8c00;
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.titulo-modelo {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

/* Badges (Círculos com números/texto) */
.etapa-badge {
    width: 50px;
    height: 50px;
    background: #1a2a3a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 12px;
    font-weight: bold;
}

.etapa-badge.gold {
    background: #ff8c00;
}

/* Botão de Planos dentro da explicação */
.cta-planos {
    text-align: center;
    margin-top: 30px;
}

.btn-planos-premium {
    display: inline-block;
    background: #1a2a3a;
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-planos-premium:hover {
    background: #ff8c00;
    transform: scale(1.05);
}

/* Ajuste nos itens para não ficarem "espremidos" */
.etapa-item {
    padding: 15px;
    transition: 0.3s;
}

.etapa-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .bloco-estilizado { padding: 20px 10px; }
}


/* Estilização da Seção Leitor */
.grid-passos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.passo-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid #1a2a3a;
}

.passo-card .numero {
    background: #1a2a3a;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.divisor-estilizado {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 60px 0;
}

/* Reutilizando os estilos de Modelo-Card e Planos-Chamada enviados anteriormente */
/* ... (Mantenha o CSS do Modelo-Card e Box-Planos aqui) ... */

.banner-monetize {
    background: #e7f3ff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn-publique-v2 {
    background: #1a2a3a;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-publique-v2:hover { background: #000; }

@media (max-width: 768px) {
    .banner-monetize { flex-direction: column; gap: 20px; text-align: center; }
}
Isso acontece porque o navegador aplica o estilo padrão de "link" (azul e sublinhado) às tags <a>. Para resolver, precisamos "limpar" esse estilo no CSS da classe .btn-publique-v2.

Aqui está o código para deixar o botão com cara de botão profissional:
CSS

<style>
.btn-publique-v2 {
    background-color: #1a2a3a; /* Azul escuro (ou a cor do seu site) */
    color: #ffffff !important;  /* Força o texto a ficar branco */
    text-decoration: none !important; /* Remove o sublinhado */
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block; /* Garante que o padding funcione bem */
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-publique-v2:hover {
    background-color: #ff8c00; /* Muda para laranja ao passar o mouse */
    color: #ffffff;
    transform: scale(1.05); /* Dá um leve zoom */
}

/* Ajuste do banner para alinhar o texto e o botão */
.banner-monetize {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f7ff;
    padding: 20px 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px dashed #1a2a3a;
}

@media (max-width: 768px) {
    .banner-monetize {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* Seletor ultra específico para vencer qualquer outra regra */
div.banner-monetize a.btn-publique-v2 {
    background-color: #1a2a3a !important;
    color: #ffffff !important;
    text-decoration: none !important; /* Mata o sublinhado */
    border-bottom: none !important;   /* Caso o sublinhado seja uma borda */
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    display: inline-block !important;
    text-align: center !important;
    transition: 0.3s !important;
}

div.banner-monetize a.btn-publique-v2:hover {
    background-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ajuste do Banner (Container) */
.banner-monetize {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f7ff;
    padding: 20px 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px dashed #1a2a3a;
}

.banner-monetize span {
    font-weight: bold;
    color: #1a2a3a;
}
/* ESTILO GERAL DO BOTÃO (Para todos os lugares) */
.btn-publique-v2 {
    text-decoration: none !important;
    display: inline-block;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

/* ESPECÍFICO PARA O HEADER (Ajuste as cores aqui) */
.header-acoes-direita .btn-publique-v2 {
    background-color: #ff8c00 !important; /* Laranja para destacar no header escuro */
    color: #ffffff !important;           /* Texto sempre branco */
    padding: 8px 15px !important;
    font-size: 13px !important;
    border: none !important;
}

.header-acoes-direita .btn-publique-v2:hover {
    background-color: #e67e00 !important;
    transform: scale(1.05);
}

/* ESPECÍFICO PARA O BANNER MONETIZE (O botão lá do meio da página) */
.banner-monetize .btn-publique-v2 {
    background-color: #1a2a3a !important; /* Azul escuro no banner */
    color: #ffffff !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
}

.banner-monetize .btn-publique-v2:hover {
    background-color: #ff8c00 !important;
}


.cookie-barra {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a2a3a; /* Cor padrão do seu site */
    color: #fff;
    padding: 20px 0;
    z-index: 9999;
    display: none; /* Começa escondido, o JS mostra se necessário */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.cookie-conteudo {
    width: 80%; /* Mantém o padrão do seu PC */
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-conteudo p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.cookie-conteudo a {
    color: #ff8c00;
    text-decoration: underline;
}

.btn-cookie {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background: #e67e00;
    transform: scale(1.05);
}

/* Responsividade Mobile (92%) */
@media (max-width: 768px) {
    .cookie-conteudo {
        width: 92%;
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        width: 100%;
    }
}

/* Estilos Gerais (Desktop e Mobile) */
.grid-ebooks {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Desktop dinâmico */
}

.ebook-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.ebook-img img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Mantém a proporção da capa sem achatar */
}


/* --- CONFIGURAÇÃO PARA PC (Desktop) --- */
@media (min-width: 601px) {
    .grid-ebooks {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; 
        gap: 30px !important;
    }

    .ebook-box {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff;
        border: 1px solid #f0f0f0; 
        border-radius: 15px !important; 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        height: 100%;
    }

    /* No PC fixamos a altura para alinhar a vitrine */
    .ebook-img {
        width: 100% !important;
        height: 320px !important; 
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .ebook-img img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important; 
    }
}

/* --- CONFIGURAÇÃO PARA MOBILE (Celular) --- */
@media (max-width: 600px) {
    .grid-ebooks {
        display: block !important; /* Um abaixo do outro */
    }

    .ebook-box {
        display: block !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        border-radius: 15px !important;
        border: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    /* O SEGREDO DO MOBILE: Altura totalmente automática */
    .ebook-img {
        width: 100% !important;
        height: auto !important; /* Libera a altura */
        display: block !important;
        padding: 0 !important; /* Remove padding que pode achatar a imagem */
    }

    .ebook-img img {
        width: 100% !important;
        height: auto !important; /* A imagem dita sua própria altura */
        display: block !important;
        object-fit: initial !important; /* Remove qualquer tentativa de "encaixar" */
        max-height: none !important; /* Garante que nada corte a imagem */
    }

    .ebook-data {
        padding: 20px !important;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebook-data h4 { font-size: 18px; color: #1a2a3a; margin-bottom: 4px; }
.nome-autor { font-size: 14px; color: #777; margin-bottom: 8px; font-style: italic; }
.stats-vendas { font-size: 14px; color: #ff8c00; font-weight: bold; }
.preco-tag { font-size: 24px; color: #27ae60; font-weight: 800; }



}

.mensagem-sucesso {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    border-left: 5px solid #2ecc71;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999;
    min-width: 300px;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.mensagem-conteudo {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.mensagem-sucesso .icone {
    font-size: 24px;
}

.mensagem-sucesso .texto strong {
    display: block;
    color: #27ae60;
    font-size: 16px;
}

.mensagem-sucesso .texto p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.btn-fechar {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    margin-left: auto;
}

/* Barra que diminui indicando o tempo */
.barra-progresso {
    height: 4px;
    background-color: #2ecc71;
    width: 100%;
    animation: progresso 5s linear forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes progresso {
    from { width: 100%; }
    to { width: 0%; }
}

/* Fundo escuro atrás do alerta */
.alerta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px); /* Leve desfoque no fundo do site */
}

/* Caixa centralizada */
.alerta-central {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease-out;
}

.alerta-icone {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.alerta-corpo h2 {
    color: #1a2a3a;
    margin-bottom: 10px;
}

.alerta-corpo p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-entendido {
    background: #ff8c00; /* Laranja do seu site */
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-entendido:hover {
    background: #e67e22;
}

/* Animação de entrada */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Esconde os itens com a classe hidden-item */
.hidden-item {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

/* Garante que o grid não reserve espaço para o que está escondido */
.grid-ebooks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ajuste conforme seu layout */
    gap: 20px;
    margin-bottom: 20px;
}

/* Esconde totalmente os itens extras */
.hidden-item {
    display: none !important; /* Força o sumiço para não ocupar espaço */
}

/* Quando o container estiver aberto, mostra os itens */
.grid-ebooks.aberto .hidden-item {
    display: block !important;
    animation: fadeIn 0.5s ease forwards;
}

/* Estilo do Botão (Vazado mas com bordas e cores do seu site) */
.btn-ver-mais {
    display: inline-block;
    background-color: blue;
    border: 2px solid #00BFFF; /* Azul que você já usa */
    color: #00BFFF;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-ver-mais:hover {
    background-color: #00BFFF;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden-item {
    display: none !important; /* Remove o item do layout completamente */
}

.grid-ebooks.aberto .hidden-item {
    display: block !important; /* Mostra quando o container tem a classe 'aberto' */
    animation: fadeIn 0.4s ease forwards;
}

.btn-ver-mais {
    display: inline-block;
    background-color: blue;
    border: 2px solid #00BFFF;
    color: #00BFFF;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-ver-mais:hover {
    background-color: #00BFFF;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Estilo para o item pai */
.dropdown-item-pai {
    position: relative;
}

/* Esconde o menu filho por padrão */
.dropdown-filho {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 5px;
    text-align: left;
	max-height: 500px;
	overflow-y: auto;
	
}

/* Mostra ao passar o mouse */
.dropdown-item-pai:hover .dropdown-filho {
    display: block;
}

/* Estilo dos links das categorias */
.dropdown-filho li a {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    color: #333 !important;
    text-decoration: none;
}

.dropdown-filho li a:hover {
    background-color: #f8f9fa;
    color: #ff8c00 !important; /* Cor que você usa no destaque */
}

/* Estilo do contador (badge) */
.badge-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: #666;
}


    /* Ajuste para o container do carrossel */
    .swiper { width: 100%; padding: 20px 0 50px 0; }
    
    /* Mantém seus boxes com tamanho fixo dentro do slide */
    .swiper-slide { 
        display: flex; 
        justify-content: center; 
        height: auto; 
    }

    /* Estilização das setas e paginação */
    .swiper-button-next, .swiper-button-prev { color: #00BFFF; }
    .swiper-pagination-bullet-active { background: #00BFFF; }
	
	
	
	
/* CARROSSEL */

/* Isso garante que o carrossel não estoure o tamanho da tela */
    .swiper {
        width: 100%;
        height: auto;
        padding-bottom: 50px !important; /* Espaço para os pontinhos */
    }

    /* Força o card a respeitar o container e não ficar gigante */
    .swiper-slide {
        display: flex;
        justify-content: center;
        height: auto;
    }

    .ebook-box {
        width: 100%;
        max-width: 280px; /* Ajuste o tamanho máximo do card aqui */
        margin: 0 auto;
    }
	     .item-oculto { display: none !important; }
        .stats-header {
            display: flex; justify-content: space-between; align-items: center; 
            background: #f8f9fa; padding: 20px; border-radius: 10px; margin: 20px 0;
            border: 1px solid #ddd; flex-wrap: wrap; gap: 10px;
        }
        .btn-ver-mais-central {
            background: #00BFFF; color: #fff; padding: 15px 40px; border: none; 
            border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 18px;
        }
		

    .pill {
        padding: 8px 18px;
        background: #f0f0f0;
        border-radius: 20px;
        text-decoration: none;
        color: #333;
        font-weight: bold;
        transition: 0.3s;
        border: 2px solid transparent;
    }
    .pill:hover { background: #00BFFF; color: white; }
    .pill.active { background: #00BFFF; color: white; border-color: #008b8b; }
	
	.categoria-card:hover {
        background: #0000FF !important;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    /* Estilo para as setas não ficarem em cima do card */
    .swiperCategorias { padding: 0 40px; }
    .btn-tab {
        padding: 8px 20px; border: 1px solid #00BFFF; background: white;
        color: #00BFFF; border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.3s;
    }
    .btn-tab.active, .btn-tab:hover { background: #00BFFF; color: white; }
    .card-ebook-item { transition: opacity 0.3s ease; }