/* Paleta de Cores Dark/Churrasco */
:root {
    --fundo-principal: #121212;
    --fundo-secundario: #1e1e1e;
    --laranja-fogo: #ff5e00;
    --vermelho-brasa: #d92027;
    --texto-claro: #f5f6fa;
    --texto-cinza: #a4b0be;
    --verde-whatsapp: #25D366;
    --borda: #2f3640;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fundo-principal);
    color: var(--texto-claro);
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

/* Utilitários */
.escondido {
    display: none !important;
}

.container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Header Fixo */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 100;
    border-bottom: 1px solid var(--borda);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--laranja-fogo);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carrinho-icone {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    color: var(--texto-claro);
}

#contador-carrinho {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(45deg, var(--vermelho-brasa), var(--laranja-fogo));
    color: white;
    font-size: 12px;
    font-weight: bold;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section (Banner de Fogo) */
.hero {
    margin-top: 60px;
    height: 200px;
    background-image: linear-gradient(to top, var(--fundo-principal), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.hero-texto h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--laranja-fogo);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-texto p {
    font-size: 14px;
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Menu de Categorias Deslizante */
.menu-categorias {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 20px;
    scrollbar-width: none; /* Esconde scroll no Firefox */
}
.menu-categorias::-webkit-scrollbar {
    display: none; /* Esconde scroll no Chrome/Safari */
}

.btn-categoria {
    background-color: var(--fundo-secundario);
    color: var(--texto-cinza);
    border: 1px solid var(--borda);
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-categoria.ativo {
    background-color: var(--laranja-fogo);
    color: white;
    border-color: var(--laranja-fogo);
}

/* Cards de Produtos */
.grid-produtos {
    display: grid;
    gap: 20px;
    padding-bottom: 40px;
}

.produto-card {
    background-color: var(--fundo-secundario);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.produto-card:active {
    border-color: var(--laranja-fogo);
    transform: scale(0.98);
}

.produto-imagem {
    width: 120px;
    background-size: cover;
    background-position: center;
}

.produto-info {
    padding: 15px;
    flex: 1;
}

.produto-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.produto-info p {
    font-size: 12px;
    color: var(--texto-cinza);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preco {
    font-weight: bold;
    color: var(--laranja-fogo);
    font-size: 16px;
}

/* Modal de Produto e Adicionais */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: flex-end; /* Fica preso na parte de baixo */
}

.modal-conteudo {
    background-color: var(--fundo-secundario);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    position: relative;
    animation: subirModal 0.3s ease-out;
}

@keyframes subirModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.btn-fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
}

.img-destaque-modal {
    width: calc(100% + 40px);
    margin: -20px -20px 15px -20px;
    height: 200px;
    object-fit: cover;
}

.adicionais-lista {
    margin-top: 15px;
    border-top: 1px solid var(--borda);
    padding-top: 15px;
}

.adicional-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--borda);
}

.adicional-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--laranja-fogo);
}

.btn-add-carrinho {
    width: 100%;
    background: linear-gradient(45deg, var(--vermelho-brasa), var(--laranja-fogo));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

/* Tela de Checkout */
.checkout-header {
    padding: 20px;
    background-color: var(--fundo-secundario);
    border-bottom: 1px solid var(--borda);
    margin-top: 60px;
}

.btn-voltar {
    background: none;
    border: none;
    color: var(--laranja-fogo);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkout-secao {
    background-color: var(--fundo-secundario);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.checkout-secao h3 {
    margin-bottom: 15px;
    color: var(--laranja-fogo);
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-checkout-card {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--borda);
    padding: 10px 0;
}

.item-checkout-info ul {
    list-style: none;
    padding-left: 10px;
    color: var(--texto-cinza);
    font-size: 12px;
    margin-top: 5px;
}

.btn-remover {
    color: #ff4757;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding-left: 10px;
}

.total-checkout {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--borda);
}

/* Formulários Dark */
input, select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--fundo-principal);
    border: 1px solid var(--borda);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--laranja-fogo);
}

/* Rodapé Finalizar */
.rodape-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--borda);
}

.btn-whatsapp {
    width: 100%;
    background-color: var(--verde-whatsapp);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/* Efeito de Lanche Esgotado */
.produto-card.esgotado {
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: not-allowed;
    transform: none; /* Tira o efeito de pular ao passar o mouse */
    box-shadow: none;
}

/* Selo Vermelho de Aviso */
.selo-esgotado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 80%;
}
/* Espaço extra no final da tela para os lanches não sumirem atrás do menu */
body {
    padding-bottom: 140px; 
}

/* === MENU INFERIOR (BOTTOM NAV) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999; /* Cor cinza clarinha para inativos */
    font-size: 11px;
    gap: 4px;
}

.nav-item i {
    font-size: 20px;
}

/* O item que está selecionado agora */
.nav-item.ativo {
    color: #0a192f; /* Azul escuro elegante */
    font-weight: 600;
}

/* === BARRA DA SACOLA FLUTUANTE === */
#barra-sacola {
    position: fixed;
    bottom: 75px; /* Fica exatamente flutuando acima do menu branco */
    left: 5%;
    width: 90%;
    background-color: #0a192f; /* Azul bem escuro, como na foto */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Quando não tem lanche, ela desce e some */
#barra-sacola.escondido {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.sacola-icone {
    position: relative;
    font-size: 20px;
}

#contador-sacola {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #ffffff;
    color: #0a192f;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.sacola-texto {
    font-weight: 600;
    font-size: 15px;
}

.sacola-total {
    font-weight: bold;
    font-size: 15px;
}/* Adiciona um espaço extra no fundo do modal para o botão verde não ficar escondido atrás do menu branco */
.modal-conteudo {
    padding-bottom: 100px !important;
}/* === 9. FIX: TELA DE CHECKOUT === */

/* Quando entrar no checkout, some com a barra de sacola e menu inferior */
body.modo-checkout #barra-sacola,
body.modo-checkout .bottom-nav {
    display: none !important;
}

/* Estilo do Rodapé e botão de Enviar Pedido no WhatsApp */
.rodape-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--fundo-secundario, #1e1e1e);
    padding: 15px 20px;
    border-top: 1px solid #333;
    z-index: 2000; /* Fica acima de tudo na tela */
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366; /* Verde original do WhatsApp */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}/* === MENU INFERIOR (BOTTOM NAV) === */
.bottom-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--fundo-secundario, #1e1e1e); /* Fundo escuro elegante */
    display: flex !important; /* MÁGICA: Força a ficar lado a lado */
    flex-direction: row !important;
    justify-content: space-around; 
    padding: 15px 0; 
    z-index: 1000; 
    border-top: 1px solid #333;
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-decoration: none; 
    color: var(--texto-cinza, #a4b0be); 
    font-size: 12px; 
    gap: 5px;
}

.nav-item.ativo { 
    color: var(--laranja-fogo, #ff5e00); 
    font-weight: bold; 
}

/* Isso garante que a barra da sacola fique logo acima do menu inferior */
#barra-sacola {
    bottom: 85px; 
}