/* =========================================================
   ESTILOS GERAIS E CABEÇALHO (MANTIDOS)
   ========================================================= */

/* Container do Cupom Animado */
.aviso-cupom-container {
    background: linear-gradient(145deg, rgb(92, 12, 142), #3a2252);
    color: white;
    font-weight: bold;
    padding: 10px 0;
    margin: 0; 
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    box-shadow: 0 2px 20px rgba(92, 12, 142, 0.57);
}

/* O texto que será animado */
.aviso-cupom-texto {
    display: inline-block; 
    animation: scrollTexto 20s linear infinite; 
}

/* Estilo para cada frase de cupom */
.aviso-cupom-texto span {
    padding: 0 20px; 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* A ANIMAÇÃO DO LETREIRO */
@keyframes scrollTexto {
    0% {
        transform: translateX(0%); /* Começa na posição normal */
    }
    100% {
        transform: translateX(-50%); /* Move 50% para a esquerda */
    }
}


/* =========================================================
   NOVO BANNER PARALLAX ANIMADO (CORRIGIDO V2)
   ========================================================= */

.slider-area {
    padding: 0 15px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.slider-container {
    width: 100%;
    /* Ajustei para 2/1 (mais retangular) para caber melhor em celulares sem cortar tanto */
    aspect-ratio: 2 / 1; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(92, 12, 142, 0.4);
    position: relative;
    background-color: #3a2252; /* Cor de fundo caso a imagem não carregue */
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    /* Garante que o container não altere o tamanho dos filhos */
    width: 100%; 
}

/* Configuração base de TODOS os slides */
.slider-slide {
    /* TRAVA DE SEGURANÇA ANTI-DEFORMAÇÃO */
    width: 100%;       
    min-width: 100%;   /* Obriga a ter 100% da largura */
    flex: 0 0 100%;    /* Não deixa encolher nem esticar no Flexbox */
    
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Imagens normais (Slides 2, 3, 4...) */
.slider-slide > img {
    width: 100%;
    height: 100%;
    /* Use 'cover' para preencher tudo ou 'contain' se não quiser cortar nada do banner */
    object-fit: cover; 
    display: block;
}

/* === LÓGICA DAS CAMADAS (PARALLAX DO CUPOM) === */
/* (Este continua animando sempre, pois é suave) */

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform; 
}

/* CAMADA 1: FUNDO (Roxo) */
.layer-fundo {
    object-fit: cover; 
    z-index: 1;
    animation: backgroundBreathing 5s ease-in-out infinite alternate;
}

/* CAMADA 2: DETALHES (Cupons brancos) */
.layer-produto { 
    object-fit: contain; 
    z-index: 2;
    transform-origin: center center;
    animation: floatingTickets 4s ease-in-out infinite;
    width: 90%; /* Margem de segurança */
    height: 90%;
    left: 5%; /* Centralizar */
    top: 5%;
}

/* CAMADA 3: TEXTO ("Use o Cupom") */
.layer-texto {
    object-fit: contain; 
    z-index: 3;
    transform-origin: center center;
    animation: pulseAttention 3s ease-in-out infinite;
    width: 100%; 
    height: 100%;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* === KEYFRAMES (ANIMAÇÕES CUPOM) === */

@keyframes backgroundBreathing {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes floatingTickets {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseAttention {
    0% { transform: scale(0.85); }
    50% {
        transform: scale(0.95); 
        filter: drop-shadow(0 0 12px rgba(255,255,255,0.4)); 
    }
    100% { transform: scale(0.85); }
}

/* =========================================================
   NOVO PARALLAX: COMBO 4 CAMADAS (COM GATILHO JS)
   ========================================================= */

/* 1. FUNDO (Camada 1) */
.layer-c4-fundo {
    z-index: 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* Movimento suave do fundo (sempre ativo ou no gatilho, tanto faz) */
    animation: bgSlowMove 15s ease-in-out infinite alternate;
}

/* 2. TEXTO "COMBO MINI" (Camada 2) */
.layer-c4-texto {
    z-index: 4;
    object-fit: contain;
    
    /* Suas posições personalizadas */
    width: 40%; 
    height: 20%; 
    top: 10%;     
    left: 10%;
    right: 0;
    margin: 0 auto; 
    
    transform-origin: center center;
    
    /* ESTADO INICIAL (Invisível/Parado antes de entrar) */
    opacity: 1;
    transform: scale(1);
}
/* O GATILHO: Só anima quando tiver a classe .slide-ativa */
.slide-ativa .layer-c4-texto {
    
    animation: popSequence 4s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* 3. COPO DE AÇAÍ (Camada 3) */
.layer-c4-copo {
    z-index: 3;
    object-fit: contain;
    
    /* Suas posições personalizadas */
    width: 45%;   
    height: 60%;  
    top: 10%;     
    left: 5%;
    right: 0;
    margin: 0 auto; 
    
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); 

    /* ESTADO INICIAL */
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}
/* O GATILHO */
.slide-ativa .layer-c4-copo {
    opacity: 1;
    animation: circularMotion 6s linear infinite;
}


/* 4. PREÇO (Camada 4) */
.layer-c4-preco {
    z-index: 5; 
    object-fit: contain;
    
    /* Suas posições personalizadas */
    width: 30%;
    height: 20%;
    bottom: 0; 
    right: 0;  
    left: auto;
    top: auto;
    
    transform-origin: center center;

    /* ESTADO INICIAL */
    opacity: 1;
    transform: scale(1);
}
/* O GATILHO */
.slide-ativa .layer-c4-preco {
   
    animation: popSequence 4s ease-in-out infinite;
    animation-delay: 1.6s; 
}


/* === KEYFRAMES EXCLUSIVOS (MANTIDOS IGUAIS) === */

@keyframes bgSlowMove {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-1%); }
}

@keyframes popSequence {
    0% { transform: scale(1); }
    10% { transform: scale(1.2); } /* Pulo Explosivo */
    20% { transform: scale(1); }   /* Volta */
    100% { transform: scale(1); }  /* Espera */
}

@keyframes circularMotion {
    0% { transform: translate(0, 0); }
    25% { transform: translate(3px, -3px); }   /* Movimento mais sutil */
    50% { transform: translate(0, -6px); }    
    75% { transform: translate(-3px, -3px); }  
    100% { transform: translate(0, 0); }       
}

/* Navegação (Bolinhas) - Mantido para o JS funcionar */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    background-color: #ccc;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: rgb(92, 12, 142); /* Roxo da marca */
    transform: scale(1.2);
}


/* =========================================================
   SEÇÃO DE PROMOÇÕES E PRODUTOS (MANTIDOS)
   ========================================================= */

.secao-promocoes {
    background-color: rgba(255, 255, 255, 0); 
    margin: 0;
    padding: 0;
}

.secao-promocoes h2 {
    font-family: 'Poppins', sans-serif; 
    color: #080808;         
    font-size: 1.5rem;     
    font-weight: 700;      
    margin-top: 17px;
    margin-bottom: 20px;   
    text-transform: capitalize; 
}

#combosp {
   display: flex;            
   align-items: center;      
   justify-content: center;  
   background-color: rgba(255, 255, 255, 0.25);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   border: 1px solid rgba(0, 0, 0, 0.4);
   border-radius: 12px;
   margin: 25px 15px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.323);
   padding: 0;
}

.font-pag-principal {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.5rem;
    color: #310757;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.196);
}

#card-produtos {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    padding: 5px 15px;
    background-color: #EAF0F6;
    text-align: center;
    padding-left: 15px;
    gap: 8px;
    scrollbar-width: none; 
    border-radius: 2px;
    margin: 0 0 0 16px;
}

#card-produtos::-webkit-scrollbar {
    display: none;
}

#card-produtos .link-combo {
    flex: 0 0 160px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.979);
    box-shadow: 0 2px 8px rgb(92, 12, 142);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.combos-acai {
    flex: 0 0 160px;
    border-radius: 8px;
    background-color: rgba(249, 250, 250, 0.778);
    box-shadow: 0 2px 8px rgb(92, 12, 142);
    overflow: hidden;
    text-align: center;
}

.combos-acai h3 {
    font-family: 'Poppins', sans-serif; 
    color: #000000; 
    font-size: 1rem; 
    font-weight: 700; 
    margin: 8px 0; 
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.222); 
}

.combos-acai img {
    max-width: 90%; 
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0;
}

.antigo-preco {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; 
    color: rgba(0, 0, 0, 0.7); 
    font-weight: 400; 
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.14);
}

.antigo-preco span {
    color: #000000; 
    font-weight: 700; 
    font-size: 1.1rem; 
    margin-left: 6px; 
}


/* =========================================================
   MONTE SEU AÇAÍ E MARMITA (MANTIDOS)
   ========================================================= */

#monte-acai {
    background-color: rgba(86, 187, 202, 0);
    padding: 0px;
    margin: 0px;
    padding-bottom: 10px;
    padding-top: 20px;
}

#monte-marmita {
    background-color: rgba(86, 187, 202, 0);
    padding: 0px;
    margin: 0px;
    padding-bottom: 65px;
}

#tamanho-acai {
    display: flex;
    background-color: rgb(92, 12, 142);
    flex-direction: column;
    width: 100%;
}

.acai-txt {
    display: flex;            
    align-items: center;      
    justify-content: center;  
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin: 25px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.362);
    padding: 8px 20px;
}

.acai-txt h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #310757;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Card principal de cada copo */
.acai-ml { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; 
    padding: 0 15px; 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgb(92, 12, 142);
    background-color: rgba(255, 255, 255, 0.25);
    gap: 120px;
}

/* container que segura a imagem */
.acai-imagem-container {
    height: 100%;
    width: 100px;  
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* A imagem dentro do novo container */
.acai-imagem-container img {
    max-width: 100%; 
    max-height: 100%; 
    height: 100%;
    object-fit: contain; 
}

.info-produto {
    padding-left: 0;
    flex: 1;
    padding-bottom: 2px;
    display: flex;
    flex-direction: column;
}

.info-produto h3, .preco-copo {
    color: rgb(0, 0, 0);
    padding-top: 0;
    margin-top: 0;
}

.link-cardapio {
    text-decoration: none;
    color: rgb(0, 0, 0);
    display: block;
    margin: 0 15px 15px 15px;
}


/* =========================================================
   RODAPÉ / MENU INFERIOR (MANTIDOS)
   ========================================================= */

#menu {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 65px;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(64, 4, 102, 0.738);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.menu-inicio {
    flex: 1;
    text-align: center;
}

.menu-inicio a {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 8px 0; 
    color: #e0e0e0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-inicio a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px; 
}

.menu-inicio a span {
    font-size: 12px;
    font-weight: 500;
}

.menu-inicio a:hover, .menu-inicio a:active {
    background-color: rgba(255, 255, 255, 0.049);
    color: #ffffff;
}

/* Estilo para o Badge do Carrinho */
.cart-badge {
    display: none; 
    position: absolute;
    top: 2px; 
    right: 15px; 
    background-color: #F8436E; 
    color: white;
    min-width: 18px; 
    height: 18px;
    padding: 0 4px; 
    border-radius: 9px; 
    font-size: 11px;
    font-weight: bold;
    line-height: 18px; 
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* =========================================================
   TELA DE CARREGAMENTO (SPLASH SCREEN)
   ========================================================= */
#splash-screen {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: #310757; /* Roxo da marca */
    z-index: 99999; /* Fica na frente de ABSOLUTAMENTE tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: pulseLogo 1.5s infinite alternate;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff; /* Cor que gira */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Classe para sumir suavemente */
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseLogo { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.1); } 
}