:root {
    --vermelho-marca: #d32f2f; 
    --vermelho-escuro: #b71c1c;
    --amarelo-marca: #ffb300; 
    --branco: #ffffff;
    --fundo: #f8f9fa;
    --texto: #333333;
    --cinza-leve: #eeeeee;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: var(--fundo); color: var(--texto); padding-bottom: 90px; }

/* Header e Efeito Cinematic */
.navbar-delivery { background: var(--vermelho-marca); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

.hero-cinematic {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; 
    margin-bottom: 15px;
}

.bg-motion-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; 
    background-size: cover; background-position: center; 
}
.bg-motion-img.img-1 { 
    background-image: url('../img/hero-salgados.webp'); 
    animation: kenBurnsZoom 15s infinite alternate linear; 
    z-index: 2; 
}
.bg-motion-img.img-2 { 
    background-image: url('../img/hero-salgados\ 01.webp'); 
    animation: crossFadeImages 12s infinite; 
    z-index: 2; 
}

.bg-motion-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: linear-gradient(to bottom, rgba(183, 28, 28, 0.4), var(--vermelho-marca));
    z-index: 1; 
}

.logo-wrapper { position: relative; z-index: 4; text-align: center; }
.logo-wrapper img { height: 75px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }

@keyframes kenBurnsZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
@keyframes crossFadeImages { 0%, 20% { opacity: 0; } 40%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Abas de Categoria 50/50 */
.menu-categorias { display: flex; padding: 0 15px 15px; gap: 10px; }
.cat-btn { 
    flex: 1; 
    background: transparent; 
    color: var(--branco); 
    border: 1px solid rgba(255,255,255,0.4); 
    padding: 12px 16px; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1rem;
    text-align: center;
    cursor: pointer; 
    transition: 0.3s; 
}
.cat-btn.ativo { background: var(--amarelo-marca); color: var(--vermelho-escuro); border-color: var(--amarelo-marca); }

/* Listagem de Produtos iFood Layout */
.container-cardapio { padding: 20px 15px; }
.grid-produtos { display: grid; gap: 15px; }
.card-produto { background: var(--branco); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.produto-img {
    width: 85px; 
    height: 85px; 
    border-radius: 10px; 
    object-fit: cover; 
    flex-shrink: 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-info { flex: 1; }
.card-info h4 { color: var(--vermelho-escuro); font-size: 1rem; margin-bottom: 3px; line-height: 1.2; }
.card-info p { font-size: 0.8rem; color: #666; margin-bottom: 8px; line-height: 1.3; }
.preco { font-weight: 900; color: var(--texto); font-size: 1.15rem; }
.btn-add { background: var(--amarelo-marca); color: var(--vermelho-escuro); border: none; width: 40px; height: 40px; border-radius: 8px; font-size: 1.4rem; font-weight: bold; cursor: pointer; transition: transform 0.1s; }
.btn-add:active { transform: scale(0.9); }

/* Barra Carrinho Flutuante */
.barra-carrinho { 
    position: fixed; bottom: 15px; left: 15px; right: 15px; 
    background: var(--vermelho-marca); color: var(--branco); 
    border-radius: 12px; padding: 15px 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4); 
    z-index: 1000; cursor: pointer; 
    animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.info-carrinho { display: flex; align-items: center; gap: 12px; }
.badge { background: var(--amarelo-marca); color: var(--vermelho-escuro); font-weight: 900; padding: 3px 10px; border-radius: 20px; font-size: 0.95rem; }
.texto-ver { font-weight: bold; font-size: 1.05rem; }
.valor-total { font-weight: 900; font-size: 1.25rem; }

@keyframes slideUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* Modal Checkout Overlay */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; z-index: 2000; justify-content: center; align-items: flex-end; }
.modal-content { background: var(--branco); width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; padding: 25px 20px; overflow-y: auto; animation: slideUp 0.25s ease-out; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--cinza-leve); padding-bottom: 15px; }
.modal-header h3 { font-size: 1.3rem; color: var(--vermelho-escuro); }
.btn-fechar { background: none; border: none; font-size: 1.8rem; font-weight: bold; color: #999; cursor: pointer; }

input, select { width: 100%; padding: 14px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; color: var(--texto); background: #fafafa; }
input:focus, select:focus { outline: none; border-color: var(--vermelho-marca); background: var(--branco); }
.btn-finalizar { width: 100%; background: #25D366; color: white; border: none; padding: 16px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; margin-top: 10px; cursor: pointer; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }


/* Alinhamento do novo bloco de total no carrinho */
.total-box { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
}

/* Microcópia (Aviso da taxa) */
.aviso-taxa { 
    font-size: 0.75rem; 
    opacity: 0.85; 
    font-weight: 500; 
    margin-top: 2px; 
}

/* Caixa de resumo no Modal de Checkout */
.resumo-valores { 
    background: var(--cinza-leve); 
    padding: 12px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-size: 0.95rem; 
    color: var(--texto); 
    border: 1px dashed #ccc;
}
.resumo-valores strong { 
    color: var(--vermelho-escuro); 
    font-size: 1.1rem; 
}

/* =======================================================
   CONTROLADORES DE QUANTIDADE [ - ] [ 1 ] [ + ]
   ======================================================= */
.controle-qtd { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    background: var(--cinza-leve); 
    padding: 4px; 
    border-radius: 8px; 
}

.btn-qtd { 
    background: var(--branco); 
    border: none; 
    width: 28px; 
    height: 28px; 
    border-radius: 6px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: var(--vermelho-escuro); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    transition: transform 0.1s;
}

.btn-qtd:active { transform: scale(0.9); }

.qtd-numero { 
    font-weight: 900; 
    font-size: 1rem; 
    width: 16px; 
    text-align: center; 
    color: var(--texto);
}