/* --- 1. CONFIGURAÇÕES GERAIS (ESTILO PERGAMINHO) --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Trava o balanço lateral */
    background-color: #f4ead5; 
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    font-family: 'Quicksand', sans-serif;
    color: #431407;
}

* {
    box-sizing: border-box;
}

/* --- 2. SEU HEADER ORIGINAL (EXATAMENTE COMO VOCÊ ENVIOU) --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    background-color: #f4ead5ac; 
    border-radius: 15px;
    
}

.header-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: #2c1e14;
    margin: 0;
}

.header-container h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: #8b4513;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 380px; /* Largura mínima original */
    height: 160px;    /* Altura original */
}

/* Estilo do TEXTO da animação */
.header-container h2 span {
    position: absolute;
    white-space: nowrap;
    animation: blurCiclo 4.0s infinite ease-in-out;
}

/* Estilo da IMAGEM da animação */
.header-container h2::after {
    content: "";
    position: absolute;
    width: 150px; 
    height: 150px;
    background-image: url('icone\ sebo\ .png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    opacity: 0;
    filter: blur(15px);
    animation: blurCiclo 4.0s infinite ease-in-out 2.0s;
}

/* ANIMAÇÃO DE DESFOQUE ORIGINAL */
@keyframes blurCiclo {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: scale(0.95);
    }
    10%, 40% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
    50%, 100% {
        opacity: 0;
        filter: blur(15px);
        transform: scale(0.95);
    }
}

/* --- 3. GALERIA (ESTILO LOMBADA DE LIVRO) --- */
.galeria-secao {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.imgg {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 30px 40px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.imgg::-webkit-scrollbar { display: none; }

.imgg img {
    flex: 0 0 auto;
    width: 210px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px 20px 20px 5px; /* Formato de livro */
    border-left: 10px solid #ffffff8b; /* Lombada */
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

/* --- 4. BOTÕES DE NAVEGAÇÃO --- */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.482);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}

.prev { left: 10px; }
.next { right: 10px; }

/* --- 5. SEÇÃO DE COMPRA --- */
.compra-infantil {
    text-align: center;
    padding: 60px 20px;
}

.btn-infantil {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    border: 3px solid #fcd34d;
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.4);
    transition: 0.3s;
    border: solid 5px black;
}

/* --- 6. ADAPTAÇÃO PARA TELEFONE (CRUCIAL PARA NÃO CORTAR) --- */
@media (max-width: 768px) {
    .header-container {
        padding: 40px 5%;
        flex-direction: column; /* Empilha o título e a animação */
        text-align: center;
    }

    .header-container h2 {
        min-width: 100%; /* No celular ele ocupa a largura da tela */
        transform: scale(0.85); /* Reduz levemente para caber em telas mini */
        height: 140px;
    }

    .imgg {
        padding: 20px 10px;
        gap: 15px;
    }

    .imgg img {
        width: 180px;
        height: 260px;
    }

    .btn-nav {
        width: 35px;
        height: 35px;
        background: rgba(44, 30, 20, 0.6);
    }
}