/* --- 1. CONFIGURAÇÕES GERAIS (ESTILO DEEP SPACE) --- */
body {
    background-color: #050505; /* Preto profundo */
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* Efeito de nebulosa e estrelas no fundo */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: 
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* --- 2. BANNER DE COMANDO (HUD TECNOLÓGICO) --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    flex-wrap: wrap;
    gap: 20px;
}

.header-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.header-container h2.imagem-rotativa {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: #fbfbfb;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    height: 150px;
}

.header-container h2 span {
    position: absolute;
    white-space: nowrap;
    animation: blurCiclo 4.0s infinite ease-in-out;
}

.header-container h2::after {
    content: "";
    position: absolute;
    width: 130px; 
    height: 130px;
    background-image: url('icone\ sebo\ .WebP');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    opacity: 0;
    filter: blur(15px);
    animation: blurCiclo 4.0s infinite ease-in-out 2.0s;
}

@keyframes blurCiclo {
    0%, 100% { opacity: 0; filter: blur(10px); transform: scale(0.95); }
    10%, 40% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

/* --- 3. GALERIA (ESTANTE DE LIVROS ESPACIAL) --- */
.galeria-wrapper {
    position: relative;
    width: 95%;
    max-width: 1300px;
    margin: 40px auto;
    display: flex;
    align-items: center;
}

#galeria {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* Suporte Safari Mac/iOS */
}

#galeria::-webkit-scrollbar { display: none; }

#galeria img {
    flex: 0 0 auto; /* Impede achatamento no Mac/Safari */
    height: 350px;
    width: 230px;
    object-fit: cover;
    /* Estética de Livro de Ficção: Lombada à esquerda */
    border-radius: 2px 12px 12px 2px !important; 
    border-left: 5px solid #1e293b;
    box-shadow: 15px 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    -webkit-user-drag: none;
}

#galeria img:hover {
    transform: perspective(1000px) rotateY(-25deg) translateX(10px) translateY(-10px);
    box-shadow: 25px 15px 40px rgba(99, 102, 241, 0.3);
    border-left-color: #60a5fa;
}

/* --- 4. BOTÕES MODERNOS (GLASSMORPHISM) --- */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Suporte Mac/Safari */
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
    color: #020617;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 249, 196, 0.4);
}

.btn-prev { left: -20px; }
.btn-next { right: -20px; }

/* --- 5. SEÇÃO DE AQUISIÇÃO (FICÇÃO) --- */
.compra-infantil {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle, #0f172a 0%, #020617 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.compra-infantil h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #f8fafc;
    letter-spacing: 2px;
}

.btn-infantil {
    display: inline-block;
    padding: 22px 60px;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: #60a5fa !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid #60a5fa;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.btn-infantil:hover {
    background: #60a5fa;
    color: #020617 !important;
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.6);
    transform: skewX(-5deg) translateY(-3px);
}

/* --- 6. ADAPTAÇÃO MOBILE --- */
@media (max-width: 768px) {
    .header-container { padding: 40px 5%; justify-content: center; }
    
    #galeria img { 
        height: 280px; 
        width: 180px; 
    }
    
    .btn-nav { width: 45px; height: 45px; }
    .btn-prev { left: 5px; } 
    .btn-next { right: 5px; }
    
    .header-container h2.imagem-rotativa { min-width: 100%; }
    .btn-infantil { width: 100%; padding: 18px 20px; }
}