@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&display=swap');
/* ==========================================================================
   1. REGRAS GERAIS E CONFIGURAÇÕES DO BODY
   ========================================================================== */
body {
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: rgb(0, 0, 0); /* Aplicado de body.livros */
    color: #ffffff;                 /* Aplicado de body.livros */
    margin: 0;
    padding: 0;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   2. BOTÕES DE ACESSO (LOGIN / CADASTRO)
   ========================================================================== */
.top-access-btns {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.access-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.78rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
    background: none;
}
.access-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.access-btn-cadastro {
    background: rgba(163,78,158,0.15);
    border-color: rgba(163,78,158,0.4);
    color: #c87fc3;
}
.access-btn-cadastro:hover { background: rgba(163,78,158,0.3); }

.access-btn-login {
    background: transparent;
    color:#d4a87a;
    border: 1px solid #d4a87a;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: 7px 20px;
}
.access-btn-login:hover {
    background: #d4a87a;
    color: #0a0508;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px 10px 3px 4px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.user-chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(163,78,158,0.4); }
.user-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(163,78,158,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #c87fc3;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-chip-nome {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── DRAWER USUÁRIA ── */
.drawer-user-area {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.5rem;
}
.drawer-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.drawer-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(163,78,158,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #c87fc3;
    overflow: hidden;
    flex-shrink: 0;
}
.drawer-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.drawer-user-info { display: flex; flex-direction: column; }
.drawer-user-nome { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.drawer-user-sub  { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.drawer-btn-sair {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.5rem 0;
    text-align: left;
    transition: color 0.2s;
    width: 100%;
    margin-top: 0.4rem;
}
.drawer-btn-sair:hover { color: rgba(255,255,255,0.6); }

/* esconde no mobile (drawer cuida disso) */


/* ==========================================================================
    3. HEADER COM BANNER E MENU (NAV)
    ========================================================================== */
    /* ── Header ── */
    header.header-com-banner {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        aspect-ratio: 1280 / 250 !important;
        padding: 0 !important;
        z-index: 1 !important;
        border-bottom: 1px solid rgba(163, 78, 158, 0.2) !important;
    }

    .header-bg-static {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

    .header-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(to bottom, rgba(10, 5, 8, 0.65), rgba(10, 5, 8, 0.35)) !important;
        z-index: 2 !important;
    }

    .header-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        padding: 20px 110px !important;
        box-sizing: border-box !important;
    }

    .header-content nav {
        width: auto !important;
        gap: 2.5rem !important;
        display: flex !important;
        justify-content: space-between !important;
        margin: 0 !important;
        margin-bottom: 5px !important;
        font-size: 20px !important;
    }

    nav a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 18px !important;
        letter-spacing: 0.2em !important;
        text-decoration: none !important;
        font-weight: bold !important;
        margin: 0 !important;
        transition: color 0.2s !important;
    }

    nav a:hover,
    nav a.active {
        color:  #d4a87a !important;
        text-decoration: none !important;
    }



/* Linha ornamental */
/* Linha ornamental */
.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    
    /* AJUSTE AQUI: 1.5rem no topo afasta da frase "EXPLORE OS LIVROS", 
       auto centraliza nas laterais, e 2.5rem joga os filtros para baixo */
    margin: 1.5rem auto 2.5rem; 
    
    width: 100%;
    max-width: 300px; /* Um pouquinho maior para o traço aparecer melhor */
}

.ornament-line::before,
.ornament-line::after {
    content: '';
    flex: 1;
    height: 1px;
}

.ornament-line::before {
    /* Trocado a variável por cor fixa (#c4956a) para garantir que funcione se a var sumir */
    background: linear-gradient(to right, transparent, #c4956a);
}

.ornament-line::after {
    /* Trocado para cor fixa (#c4956a) */
    background: linear-gradient(to left, transparent, #c4956a);
}

.ornament-diamond {
    width: 6px;
    height: 6px;
    background: #d4a87a; /* Trocado var(--gold) por #d4a87a */
    transform: rotate(45deg);
    flex-shrink: 0;
}  

/* ==========================================================================
   4. LAYOUT E ESTRUTURA PRINCIPAL (MAIN / SIDEBAR)
   ========================================================================== */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.sidebar {
    width: 250px;
    border-right: 2px solid #ddd;
    padding-right: 20px;
    flex-shrink: 0;
}

.content {
    flex-grow: 1;
}

/* ==========================================================================
   5. CAIXAS DE FILTRO (SIDEBAR)
   ========================================================================== */
.caixa-filtro {
    border: 2px solid  #e8c99a;
    border-radius: 12px;
    padding: 18px 18px 10px 18px;
    margin-bottom: 28px;
    background: rgba(0, 0, 0, 0.13);
    box-shadow: 0 2px 8px 0 rgba(134,100,119,0.07);
    text-align: left; /* Garante alinhamento correto dos checkboxes */

    
}

.caixa-filtro h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2em;
    color: #fff;
    letter-spacing: 1px;
}

.caixa-filtro label {
    color: #fff;
    font-size: 1em;
    margin-bottom: 6px;
    display: block;
    cursor: pointer;
}

/* ==========================================================================
   6. BARRA DE AÇÕES SUPERIOR (TÍTULO, BUSCA E FILTROS FLUTUANTES)
   ========================================================================== */
.top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    position: relative;
}

/* Eyebrow */
.header-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #a34e9e;
    margin: 0 0 6px 0;
}

.titles-group {
    flex: unset;
    text-align: center;
    margin-left: 0;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5.5em;
    margin: 0 0 4px 0;
    color: #d4a87a;
    text-transform: none;
    display: inline-block;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    color: #9a8a9a;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.livros-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 auto 2rem;
}

.actions-container {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

/* Botão + Filtros Específicos */
.btn-filter {
    background: linear-gradient(135deg, #c4956a 0%, #e8c99a 50%, #c4956a 100%);
    color: #1a0810;
    border: 1px solid #c4956a;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(196, 149, 106, 0.3);
}

.btn-filter:hover {
    background: linear-gradient(135deg, #e8c99a 0%, #f5deb3 50%, #e8c99a 100%);
    border-color: #e8c99a;
    color: #0a0508;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(212, 168, 122, 0.45);
}

.btn-filter:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 149, 106, 0.3);
}
/* Menu Dropdown de Filtros */
.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    color: #000;
    min-width: 800px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #ddd;
    z-index: 100;
    text-align: left;
}

.filter-dropdown h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-grid label {
    white-space: normal;
    word-break: break-word;
}

.filter-dropdown label {
    font-size: 15px;
    display: block;
    cursor: pointer;
    white-space: nowrap;
}

.btn-aplicar {
    width: 100%;
    margin-top: 15px;
    background-color: #a34e9e;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.btn-aplicar:hover {
    background-color: #64155f;
}

/* Caixa de Busca */
.search-box {
    display: flex;
    height: 38px;
    width: 300px;
    padding: 5px;
    font-size: 13px;
    outline: none;
    border: 1px solid #ccc;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 5px;
    outline: none;
    flex: 1;
    color: #000;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Container de Etiquetas Ativas */
.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    min-height: 0;
}

.filter-tag {
    background-color: #f3e5f5;
    color: #7a12a3;
    border: 1px solid #a34e9e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: capitalize;
}

.filter-tag .close-x {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.filter-tag .close-x:hover {
    color: red;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #bbb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.btn-clear-all:hover {
    color: white;
    font-weight: bold;
}

#series-container {
    display: none;
}

/* ==========================================================================
   7. GRID DE LIVROS (BOOK CARD & HOVER EFFECTS)
   ========================================================================== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.book-card {
    text-align: center;
}

.cover-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.cover-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-sinopse {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.cover-container:hover .hover-overlay {
    opacity: 1;
}

.cover-container:hover img {
    transform: scale(1.05);
}

.book-info h3 {
    margin: 15px 0 5px;
    font-size: 1.2em;
    text-transform: uppercase;
}

/* Tags dos Livros */
.tags {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background-color: transparent;
    color:#e8c99a;
    
    /* Borda ultra fina e cantos suavemente arredondados */
    border: 0.5px solid  #e8c99a; 
    border-radius: 20px;
    
    
    /* Espaçamento bem apertadinho (1px vertical, 5px horizontal) */
    padding: 1px 5px;
    
    /* Letras pequenininhas, exatamente como na imagem */
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    
    /* Margem pequena para elas não grudarem uma na outra */
    margin: 2px;
    display: inline-block;
}

/* .tags {
    display: flex;
    justify-content: center;
    gap: 3px;          /* Dá um respiro lateral e vertical entre as tags */
   /* flex-wrap: wrap;
    margin-top: 10px;  /* Afasta as tags do título do livro */
   /* max-width: 240px;  /* Limita a largura para não passar da capa */
   /* margin-left: auto;
    margin-right: auto;
}
*/

.tag-red { background-color: #b22222; }
.tag-black { background-color: #000000; }
.tag-purple { background-color: #7a12a3; }
.tag-whitew { background-color: #f3e5f5; }
.tag-white { background-color: transparent; }



/* ==========================================================================
   8. MODAL DE SINOPSE
   ========================================================================== */
.modal-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    align-items: flex-start;
}

/* Coluna Esquerda: Imagem + Botões Extras */
.coluna-esquerda {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-capa-container img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.botoes-extra {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-extra {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
    box-sizing: border-box;
    text-transform: uppercase;
}

.btn-roxo { background-color: #7a12a3; }
.btn-roxo:hover { background-color: #46135a; }

.btn-vermelho { background-color: #8b0000; }
.btn-vermelho:hover { background-color: #600000; }

/* Coluna Direita: Informações e Texto */
.modal-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-info h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #7a12a3;
}

.scroll-texto {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 15px;
    white-space: pre-line;
    line-height: 1.6;
    text-align: justify;
    color: #333;
    font-size: 16px;
}

.scroll-texto::-webkit-scrollbar {
    width: 8px;
}

.scroll-texto::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

.btn-amazon {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    background-color: #FF9900;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background 0.3s;
    text-align: center;
}

.btn-amazon:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

/* ==========================================================================
   9. FOOTER (RODAPÉ)
   ========================================================================== */

    footer {
            background: #000000;
            color: rgba(255, 245, 230, 0.7);
            text-align: center;
            padding: 2rem 1.5rem;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: 0.05em;
        }

        .social-media p {
            font-size: 12px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            opacity: 0.6;
            margin-bottom: 0.4rem;
        }

        .social-media a {
            color: #742670;
            text-decoration: none;
            font-size: 15px;
            display: block;
            margin-bottom: 0.5rem;
        }

        .copyright p {
            font-size: 12px;
            opacity: 0.5;
            margin-top: 0.5rem;
            font-family: 'Cormorant Garamond', serif;
        }  

     .section-divider {
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, #c4956a55, transparent);
        }




/* ==========================================================================
   MENU HAMBURGUER + RESPONSIVIDADE MOBILE (ADAPTADO)
   ========================================================================== */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(10, 5, 8, 0.7);
    border: 1px solid rgba(163, 78, 158, 0.4);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1100;
    position: fixed;
    top: 16px;
    left: 16px;
    transition: border-color 0.3s;
}
.hamburger-btn:hover { border-color: #a34e9e; }
.hamburger-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #d4a87a;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 8, 0.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.visible { opacity: 1; }

/* Gaveta lateral */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: #0f0610;
    border-right: 1px solid rgba(163, 78, 158, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to right, #7a12a3, #d4a87a, #7a12a3);
}

.mobile-drawer-logo {
    padding: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(163, 78, 158, 0.15);
    overflow: hidden;
    height: 100px;
    flex-shrink: 0;
}

.mobile-drawer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.mobile-drawer nav {
    display: flex;
    flex-direction: column !important;
    padding: 8px 24px 0 !important;
    gap: 0 !important;
    width: auto !important;
    font-size: unset !important;
    justify-content: unset !important;
    margin-bottom: 0 !important;
}

.mobile-drawer nav a {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(163, 78, 158, 0.1) !important;
    transition: color 0.2s, padding-left 0.2s !important;
    display: block !important;
    margin: 0 !important;
}

.mobile-drawer nav a:last-child { border-bottom: none !important; }

.mobile-drawer nav a:hover,
.mobile-drawer nav a.active {
    color: #d4a87a !important;
    padding-left: 8px !important;
}

.mobile-drawer-access {
    margin-top: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(163, 78, 158, 0.15);
}

.mobile-drawer-access .access-btn {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   MEDIA QUERIES — LIVROS (VERSÃO REORGANIZADA)
   ========================================================================== */
@media (max-width: 768px) {

    /* Header */
    header.header-com-banner {
        aspect-ratio: unset !important;
        height: 90px !important;
    }
    .header-content {
        padding: 20px 20px !important;
    }
    .header-content nav { display: none !important; }
    
    .hamburger-btn { display: flex; }

    /* REORGANIZAÇÃO LOGICA DO FLUXO MOBILE */
    .content {
        display: flex;
        flex-direction: column;
    }

    /* Força o título e a busca a serem os primeiros itens da tela */
    .top-bar {
        text-align: center;
        margin-bottom: 20px;
        order: -2; /* Força o título a ser o primeiro item no topo */
    }

    .section-title {
        font-size: 2.8em; /* Ajuste delicado do tamanho do título */
        line-height: 1.1;
    }

    .livros-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
        padding: 0 10px; /* Evita que o texto quebre muito na borda */
    }

    /* Layout Geral (Invertendo a ordem visual das caixas) */
    .main-container {
        flex-direction: column;
        padding: 0 10px; /* Reduz margens laterais para ganhar espaço */
        gap: 15px;
    }

    /* Os filtros (.sidebar) agora ficam abaixo da barra de busca */
    .sidebar {
        display: none;
    }

    /* A grid de livros fica por último no fluxo */
    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Garante pelo menos 2 colunas mas permite ajustar */
        gap: 15px; /* Espaçamento mais enxuto entre os cards */
        order: 2;
    }

    /* Ajuste de Botões e Busca da barra superior */
   .actions-container {
    width: 100%;
    display: flex;
    flex-direction: row;        /* ← era column, muda para row */
    flex-wrap: wrap;            /* ← permite quebrar linha se necessário */
    justify-content: center;    /* ← centraliza */
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    order: 0;
    }

   .btn-filter {
        width: 100%; /* Ocupa a largura total para ficar bem alinhado */
        max-width: 280px; /* Limita a largura máxima para não ficar gigante */
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: normal; /* Permite que o texto quebre linha se necessário */
        text-align: center;
    }

    .search-box {
        width: 100%; /* Ocupa a largura total livre */
        max-width: 320px; /* Limita a largura máxima para harmonia visual */
        height: 42px; /* Aumenta ligeiramente a altura para toque */
    }

    /* Caixas de Filtro mais limpas e compactas */
    .caixa-filtro {
        margin-bottom: 0;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .caixa-filtro h2 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .caixa-filtro label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .caixa-filtro input[type="checkbox"] {
        width: 13px;
        height: 13px;
        margin: 0;
    }

    .caixa-filtro:first-child {
    display: none;
    }

    /* Tipografia do Título */
    .section-title {
        font-size: 3.5em;
    }
    
    .book-info h3 {
        font-size: 0.9em;
        padding: 0 5px;
        margin-top: 10px;
    }


    .tags {
        gap: 4px; /* Diminui o espaçamento entre as tags */
        margin-top: 8px;
        justify-content: center; /* Centraliza as tags */
       
    }

    .tags .tag:nth-child(n+3) {
        display: none;
    }

    .tag {
        font-size: 9px; /* Texto ultra-pequeno para tags longas como "fake dating" */
        padding: 2px 6px; /* Padding bem enxuto */
    }

    .ornament-line {
        margin: 1rem auto 1.5rem;
        max-width: 250px; /* Diminui a largura da linha dourada */
    }

    .mobile-drawer-series {
    border-top: 1px solid rgba(163, 78, 158, 0.15);
    margin-top: 8px;
    }





    #series-container {
            display: block;

    }

    .filter-dropdown {
            min-width: unset;
            width: calc(100vw - 20px);
            left: 50%;
            transform: translateX(-50%);
            right: auto;
            box-sizing: border-box;
    }

    .modal-content {
        padding: 20px 15px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .coluna-esquerda {
         width: 100%;
        flex-direction: column;      /* empilha vertical */
        align-items: center;         /* centraliza tudo */
        gap: 10px;
    }

    .modal-capa-container img {
        width: 130px;
        margin-bottom: 0;
    }

    .botoes-extra {
        width: auto;
        align-items: center;
    }

    .btn-extra {
        font-size: 12px;
        padding: 8px 20px;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .scroll-texto {
        max-height: 200px;
        font-size: 13px;
    }

    

}

@media (max-width: 480px) {
    .section-title {
        font-size: 3em;
    }
    .livros-subtitle {
        margin-bottom: 1rem;
    }
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
/* ==========================================================================
   ANIMAÇÕES DE ENTRADA CORRIGIDAS
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-eyebrow  { animation: fadeUp 0.7s ease both; }
.section-title   { animation: fadeUp 0.7s 0.1s ease both; }
.livros-subtitle { animation: fadeUp 0.7s 0.2s ease both; }
.ornament-line   { animation: fadeUp 0.7s 0.15s ease both; }
.book-grid       { animation: fadeUp 0.7s 0.2s ease both; }




#empty-state {
    text-align: center;
    padding: 60px 20px;
}

#empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

#empty-state .empty-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5em;
    color: #d4a87a;
    margin: 0 0 8px;
}

#empty-state .empty-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

