body {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    background-color: #EAF0F6;
}



section{
    margin-bottom: 30px;
    
}

header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    top: 0;
    z-index: 1000;
    height: 100px;
}

.header-cima {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgb(92, 12, 142); /* Roxo bem escuro para a textura se destacar */

    /* TEXTURA DE CRISTAIS FEITA COM CSS */
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.05) 25%, #310757 25%);
    background-size: 40px 40px;
    background-position: 10px 0, 10px 0, 0 0, 0 0;
}

/* BARRA "PROMOÇÕES E CUPONS" */
header nav {
    text-align: center;
    padding: 10px 15px 5px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgb(92, 12, 142);
    background: linear-gradient(145deg, rgb(92, 12, 142), #3a2252); 
    

}
.header-cima h1 {
    font-family: "Story Script", sans-serif;
    font-size: 27px;
    padding-left: 10px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    margin: 0;
}



/* O texto "Promoções e Cupons" */
header nav h4 {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0; 
    padding-bottom: 5px;
    
    animation: pulsarSuave 2.5s infinite;
}
@keyframes pulsarSuave {
    0% {
        opacity: 1; /* Começa com opacidade total */
    }
    50% {
        opacity: 0.9; /* No meio da animação, fica 70% opaco */
    }
    100% {
        opacity: 1; /* Volta opacidade total */
    }
}

#conteiner-info {
    /* FUNDO DE PEDRA POLIDA */
    background: linear-gradient(145deg, rgba(234, 233, 234, 0.722), #d9c9e8); /* Gradiente escuro sutil */
    border-radius: 8px;
    
    /* EFEITO DE BORDA ESCULPIDA COM SOMBRA INTERNA */
    box-shadow: 
        inset 0px 2px 4px rgba(255, 255, 255, 0.47), 
        inset 0px -4px 6px rgba(0, 0, 0, 0.4),     
        0 2px 5px rgba(0, 0, 0, 0.3);         

    /* ORGANIZAÇÃO INTERNA */
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px;
    padding: 12px;
    height: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
   
}

.info p {
    font-size: 12px;
    color: #000000; 
    font-weight: 500;
    margin: 0;
}

.info {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}




/* botao voltar*/
.btn-voltar {
    position: fixed; 
    top: 15px;       
    left: 15px;    
    z-index: 1000;  
    width: 40px;     
    height: 40px;    
    background-color: rgba(0, 0, 0, 0.25); 
    border-radius: 50%; 
    
    /* centralizar o icone SVG dentro do circulo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
}



/* 2. Ajustando o ícone SVG dentro do botão */
.btn-voltar svg {
    width: 22px;     
    height: 22px;
    stroke: #ffffff; 
    
}
.header-cima img{
    width: 50px;      /* Aumentei para 90px (antes devia estar uns 50px) */
    height: auto;     /* Mantém a proporção correta */
    padding-left: 20px;
    padding-right: 10px; /* Adicionei um espacinho para o texto não colar na logo */
    
    /* Opcional: Um filtro leve para destacar se o fundo for escuro */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));

}


h1{
    font-family: "Story Script", sans-serif;
    font-size: 22px;
    padding-top: 5px;
    padding-left: 10px;
    color: black;
}

h4{
    font-size: 15px;
    color: rgb(0, 0, 0);
    margin: 0;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold; 

}

/* edição do monte sua marmita span */
.complementos-gratis span{
    font-size: 3px;
}

.loja-aberta{
    color: #397a3c;
    border: 1px solid #5caa4f;
    border-radius: 8px;
    
    text-align: center;

   
    background-color: #4f9f3f; 
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.089) 10px,
        rgba(0, 0, 0, 0.089) 20px
    ); 
}
/* Estilo do Loja Aberta */
.loja-aberta p {
    margin: 0;
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffffff; 
}
.loja-fechada{
    color: #343434;
    border: 1px solid #6f6f6f;
    border-radius: 8px;
    
    text-align: center;

   
    background-color: #545454; 
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.089) 10px,
        rgba(0, 0, 0, 0.089) 20px
    ); 
}
/* Estilo do Loja Aberta */
.loja-fechada p {
    margin: 0;
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffffff; 
}
.status-loja {
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 2px 8px;
    transition: all 0.3s ease;
}

/*  Container dos combos na pagina principal  */

span {
    font-size: 14px;
}
h3{
    font-size: 14px;
}

/* =========================================================
   MODAL GLOBAL: LOJA FECHADA
   ========================================================= */

#modal-loja-fechada {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro */
    backdrop-filter: blur(5px); /* Desfoque moderno */
    z-index: 9999; /* Fica na frente de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estado inicial: Escondido */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Classe para mostrar o modal */
#modal-loja-fechada.ativo {
    opacity: 1;
    pointer-events: auto;
}

/* O Cartão Branco do Modal */
.modal-fechada-content {
    background-color: #fff;
    width: 90%;
    max-width: 300px;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    
    /* Animação de entrada (Zoom in) */
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#modal-loja-fechada.ativo .modal-fechada-content {
    transform: scale(1);
}

/* Ícone (Emoji) */
.icon-fechado {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* Título */
.titulo-fechado {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

/* Texto Descritivo */
.texto-fechado {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botão "Entendi" */
.btn-fechado-ok {
    background-color: rgb(92, 12, 142);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-fechado-ok:hover {
    background-color: #4a0a70;
}

/* =========================================================
   LAYOUT DESKTOP: MODO "APLICATIVO" (CORRIGIDO V3)
   ========================================================= */

@media (min-width: 450px) {
    
    /* 1. Fundo da Tela */
    body {
        background-color: #dcdcdc;
        display: flex;
        justify-content: center;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* 2. O Corpo do App */
    main {
        width: 100%;
        max-width: 450px; 
        background-color: #EAF0F6; 
        margin: 0 auto; 
        position: relative;
        box-shadow: 0 0 40px rgba(0,0,0,0.2); 
        
        /* AJUSTE DE PADDING: */
        /* Reservamos apenas o espaço do Header (100px) */
        /* O Status e o Cupom vão rolar junto com a página agora */
        padding-top: 100px !important; 
        padding-bottom: 80px !important; 
        min-height: 100vh;
        z-index: 1;
    }

    /* 3. ELEMENTOS FIXOS (Apenas Header e Rodapé) */
    header, 
    #menu, 
    .footer-fixo, 
    .carrinho-total,
    .btn-voltar {
        position: fixed;
        width: 100% !important;
        max-width: 450px !important;
        
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        
        border-left: 1px solid rgba(0,0,0,0.05);
        border-right: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
    }

    /* --- AJUSTES DE POSIÇÃO --- */
    
    /* Topo */
    header { 
        top: 0; 
        height: 100px; 
        z-index: 1001;
    }

    /* --- AJUSTE CRÍTICO: ELEMENTOS DE FLUXO NATURAL --- */
    /* Tiramos o 'fixed' desses dois para eles se empilharem sozinhos */
    
   #conteiner-info {
    /* FUNDO DE PEDRA POLIDA */
    background: linear-gradient(145deg, rgba(234, 233, 234, 0.722), #d9c9e8); /* Gradiente escuro sutil */
    border-radius: 8px;
    
    /* EFEITO DE BORDA ESCULPIDA COM SOMBRA INTERNA */
    box-shadow: 
        inset 0px 2px 4px rgba(255, 255, 255, 0.47), 
        inset 0px -4px 6px rgba(0, 0, 0, 0.4),     
        0 2px 5px rgba(0, 0, 0, 0.3);         

    /* ORGANIZAÇÃO INTERNA */
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px;
    padding: 12px;
    height: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
   height: 60px;
}
    
    .aviso-cupom-container /* Faixa Roxa */
    {
        position: relative !important; /* Segue o fluxo normal */
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        margin: 0 !important; /* Remove margens laterais que sobram */
        max-width: 100%;
    }
    
    /* Ajuste fino para o Status não colar no Header */
    #conteiner-info {
        margin-top: 10px !important;
        margin-bottom: 5px !important;
        padding: 0 15px; /* Respiro lateral */
    }

    /* Ajuste fino para o Cupom */
    .aviso-cupom-container {
        margin-bottom: 20px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Botão Voltar */
    .btn-voltar {
        left: calc(50% - 205px) !important; 
        transform: none !important;
        width: 40px !important;
        top: 20px;
        z-index: 1100;
    }

    /* Rodapé */
    #menu, .carrinho-total, .footer-fixo {
        bottom: 0;
    }

    /* Splash Screen */
    #splash-screen {
        max-width: none !important;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        transform: none !important;
    }
    
    ::-webkit-scrollbar { width: 10px; background: #ccc; }
    ::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; }
}