/* ==========================================================================
   1. TRAVAS E RESET (IMPEDE O ARRASTE LATERAL)
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    background: linear-gradient(180deg, #dcd7bb 0%, #b2b7a0 50%, #383535c0 100%) no-repeat fixed;

}
/* CONTAINER PRINCIPAL */
.header-container {
    display: flex;
    justify-content: space-between; /* Lado a lado no PC */
    align-items: center;
    padding: 60px 10%;
    background: linear-gradient(180deg, #dcd7bb 0%, #b2b7a0 50%, #383535c0 100%) no-repeat fixed;
    flex-wrap: wrap; /* Permite quebrar linha no celular */
    gap: 20px;
}

/* TÍTULO PRINCIPAL */
.header-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: #2c1e14;
    margin: 0;
    flex: 1; /* Ajuda no alinhamento */
    min-width: 300px; /* Evita que o texto fique espremido demais */
}

/* CONTAINER DA ANIMAÇÃO (H2) */
.header-container h2.imagem-rotativa {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: #8b4513;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    height: 150px;
    margin: 0;
}

/* TEXTO DENTRO DA ANIMAÇÃO */
.header-container h2 span {
    position: absolute;
    white-space: nowrap;
    animation: blurCiclo 4.0s infinite ease-in-out;
}

/* ÍCONE DENTRO DA ANIMAÇÃO */
.header-container h2::after {
    content: "";
    position: absolute;
    width: 130px; 
    height: 130px;
    background-image: url('icone\ sebo\ .png'); /* Certifique-se que o caminho está correto */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    opacity: 0;
    filter: blur(15px);
    animation: blurCiclo 4.0s infinite ease-in-out 2.0s;
}

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

/* --- AJUSTES PARA CELULAR (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    .header-container {
        justify-content: center; /* Centraliza horizontalmente */
        text-align: center;      /* Centraliza o texto do H1 */
        padding: 40px 5%;        /* Menos espaço lateral */
    }

    .header-container h1 {
        flex: none;
        width: 100%;             /* H1 ocupa a linha toda */
        margin-bottom: 10px;
    }

    .header-container h2.imagem-rotativa {
        min-width: 100%;         /* H2 ocupa a largura total disponível */
        height: 120px;           /* Reduz a altura para não ocupar muito espaço */
    }

    .header-container h2::after {
        width: 100px;            /* Ícone um pouco menor no celular */
        height: 100px;
    }
}
/* ==========================================================================
   2. CABEÇALHO (REPROPORCIONADO)
   ========================================================================== */
.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
   background: linear-gradient(180deg, #dcd7bb 0%, #b2b7a0 50%, #383535c0 100%) no-repeat fixed;
    border-bottom: 2px solid rgba(0, 0, 0, 0.611);
    padding: 1.5rem 5%; /* Padding dinâmico */
}



.localidade {
    color: #5d4037;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-style: italic;
}

/* ==========================================================================
   3. CARDS DAS LOJAS (GOOGLE MAPS)
   ========================================================================== */
.container-lojas {
    display: flex;
    gap: 15px;
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.teb {
    flex: 1;
    background: linear-gradient(180deg, #575755 0%, #c4c7b3 50%, #938888c0 100%) no-repeat fixed;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.teb-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.text-area span {
    font-size: 0.9rem;
    font-weight: bold;
}

.loja-foto {
    width: 100%;
    aspect-ratio: 16 / 9; /* Formato cinema, ocupa menos espaço vertical */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.loja-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-google {
    margin-top: auto;
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   4. CARROSSEL DE VENDAS (AJUSTADO PARA NÃO OCUPAR A TELA TODA)
   ========================================================================== */
.venda {
    color: #8b4513;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin: 20px 0 10px;
}

.promo-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
    touch-action: pan-y;
}

.promo {
    display: flex;
    width: max-content;
    gap: 15px;
    animation: rolarInfinito 25s linear infinite;
}

.promo img {
    /* No PC elas terão no máximo 180px, no Mobile diminuem */
    width: clamp(100px, 25vw, 180px); 
    height: auto; /* Mantém a proporção da capa do livro */
    aspect-ratio: 2 / 3; 
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

@keyframes rolarInfinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   5. AJUSTES ESPECÍFICOS PARA TELEFONE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .cabecalho {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .container-lojas {
        flex-direction: column; /* Empilha os cards */
        padding: 10px;
    }

    .teb {
        margin-bottom: 10px;
    }

    .promo {
        animation-duration: 15s; /* Mais rápido no celular por ter menos tela */
    }
}