/* --- 1. CONFIGURAÇÕES GERAIS (ESTILO PERGAMINHO MÁGICO) --- */
/* --- 1. CONFIGURAÇÕES GERAIS (ESTILO PERGAMINHO INTEGRAL) --- */
body {
    /* Cor base de papel envelhecido */
    background-color: #f4ead5; 
    /* Textura de papel sutil aplicada ao corpo todo */
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: 'Quicksand', sans-serif;
    color: #431407; /* Cor do texto em marrom sépia */
}

/* Efeito de "Bordas Queimadas" ou envelhecidas nas extremidades da tela */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    /* Vinheta suave para escurecer as bordas da tela */
    background: radial-gradient(circle, transparent 60%, rgba(139, 69, 19, 0.15) 100%);
    pointer-events: none;
    z-index: 10;
}

/* --- AJUSTE NO BANNER PARA COMBINAR --- */
.admin-banner {
    /* O banner agora é um tom levemente diferente para destacar do fundo */
    background-color: #fcf5e5;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png'); /* Textura diferente para o banner */
    border: 2px solid #b45309;
    outline: 8px solid #5d2e17;
    outline-offset: -18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- AJUSTE NA SEÇÃO DE COMPRA --- */
.compra-infantil {
    background: transparent; /* Remove o fundo branco para usar o papel do body */
    border-top: 2px dashed #b45309;
    padding: 60px 20px;
}

/* --- 2. BANNER DE HISTÓRIAS (ESTILO LIVRO ABERTO) --- */
/* --- 2. BANNER HISTÓRICO (ESTILO PERGAMINHO REAL) --- */
.admin-banner {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 60px 50px;
    
    /* Textura de papel antigo e degradê sépia */
    background-color: #f2e8cf;
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        url('https://www.transparenttextures.com/patterns/parchment.png'); /* Textura sutil de papel */
    
    /* Borda Dupla: Uma de "ouro" e uma de "couro" */
    border: 2px solid #b45309; 
    outline: 10px solid #5d2e17; 
    outline-offset: -20px;
    
    border-radius: 4px; /* Menos redondo para parecer um documento oficial */
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.2), 
        inset 0 0 100px rgba(180, 83, 9, 0.1);
    
    position: relative;
    text-align: center;
}

/* Detalhe de "Canto Ornamental" (Cantoneiras de livros antigos) */
.admin-banner::before {
    content: "❧";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #b45309;
    opacity: 0.6;
}

.admin-banner::after {
    content: "☙";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2rem;
    color: #b45309;
    opacity: 0.6;
}

.admin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.admin-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: #431407;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: -1px;
    /* Linha decorativa embaixo do título */
    border-bottom: 2px solid #b45309;
    padding-bottom: 10px;
}

.admin-description {
    max-width: 700px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5d2e17;
    font-weight: 400;
    font-style: italic;
    margin-top: 10px;
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .admin-banner {
        padding: 40px 20px;
        outline-offset: -12px;
    }
    .admin-banner::before, .admin-banner::after { display: none; }
}

/* --- 3. CARROSSEL DE CAPAS DE LIVROS --- */
.carrossel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
}

.imgg img {
    flex: 0 0 220px;
    height: 310px;
    object-fit: cover;
    border-radius: 10px 25px 25px 10px !important; /* Formato que lembra a lombada de um livro */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15); 
    transition: all 0.4s ease;
    cursor: pointer;
    scroll-snap-align: center;
    border-left: 12px solid #451a03; /* Simula a lateral/lombada do livro */
}

.imgg img:hover { 
    transform: translateY(-15px) rotate(-2deg); /* Livro "saltando" da prateleira */
    box-shadow: 15px 25px 35px rgba(120, 53, 15, 0.3);
}

/* --- 4. SETAS NAVEGAÇÃO (ÍCONES MÁGICOS) --- */
.seta-decorativa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #b45309; 
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- 5. BOTÃO DE CHAMADA (ERA UMA VEZ...) --- */
.btn-infantil {
    display: inline-block;
    padding: 22px 60px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); /* Verde floresta encantada */
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 15px; /* Menos redondo, mais "manual" */
    box-shadow: 0 8px 0px #064e3b; 
    transition: all 0.2s ease;
    border: 2px solid #ecfdf5;
    cursor: pointer;
}

.btn-infantil:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.btn-infantil:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px #064e3b;
}

/* --- 6. SEÇÃO DE TEXTO --- */
.compra-infantil h1 {
    color: #1e1b4b; /* Azul noite profunda */
    letter-spacing: -1px;
}

.compra-infantil p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animação suave de "Página Virando" */
@keyframes pulsar {
    0% { transform: perspective(1000px) rotateY(0deg); }
    50% { transform: perspective(1000px) rotateY(-5deg); }
    100% { transform: perspective(1000px) rotateY(0deg); }
}

.btn-infantil {
    animation: pulsar 3s infinite ease-in-out;
}
/* --- CONTAINER DAS IMAGENS (A LINHA RETA) --- */
.imgg {
    display: flex;             /* Coloca os itens um ao lado do outro */
    flex-direction: row;       /* Garante que fiquem em linha */
    flex-wrap: nowrap;         /* PROÍBE quebrar para a linha de baixo */
    overflow-x: auto;          /* Cria a barra de rolagem se as fotos passarem do limite */
    gap: 20px;                 /* Espaço entre cada imagem */
    padding: 20px 10px;        /* Espaço interno para não cortar a sombra */
    scroll-behavior: smooth;   /* Rolagem suave */
    -webkit-overflow-scrolling: touch; /* Melhora a rolagem no celular */
}

/* --- ESTILO DAS IMAGENS --- */
.imgg img {
    flex: 0 0 auto;            /* Impede que as imagens estiquem ou encolham */
    width: 200px;              /* Largura fixa para manter o padrão de "livro" */
    height: 280px;             /* Altura fixa */
    object-fit: cover;         /* Ajusta a imagem sem distorcer */
    border-radius: 15px;       /* Bordas arredondadas */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s ease;
}

/* --- ESCONDER BARRA DE ROLAGEM (Opcional, para estética) --- */
.imgg::-webkit-scrollbar {
    display: none;             /* Esconde a barra no Chrome/Safari */
}
.imgg {
    scrollbar-width: none;     /* Esconde a barra no Firefox */
}
/* Container de Chamada */
.compra-infantil {
    text-align: center;
    padding: 80px 20px;
    background: #fdfcf0; /* Cor de papel antigo */
    border-top: 2px dashed #d4af37; /* Linha de ouro pontilhada */
}

.compra-infantil h1 {
    font-family: 'Playfair Display', serif;
    color: #431407; /* Marrom couro escuro */
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.compra-infantil p {
    color: #78350f;
    font-style: italic;
    margin-bottom: 40px;
}

/* O Botão "Ouro e Nobreza" */
.btn-infantil {
    display: inline-block;
    padding: 22px 45px;
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%); /* Tons de bronze/couro */
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px; /* Menos redondo, mais formal */
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.4);
    border: 3px solid #fcd34d; /* Borda de ouro */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Efeito de Brilho que passa pelo botão */
.btn-infantil::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
    pointer-events: none;
}

.btn-infantil:hover::after {
    left: 120%;
    transition: all 0.5s;
}

.btn-infantil:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(120, 53, 15, 0.6);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-infantil:active {
    transform: translateY(2px);
}