body { margin: 0; background-color: #f4f7f6; }
.pagina-alimentos {
font-family: 'Inter', sans-serif, Arial;
max-width: 480px; /* Largura ideal para mobile */
margin: 0 auto;
padding: 15px;
text-align: center;
-webkit-tap-highlight-color: transparent;
}
/* HEADER COM LOGO MAIOR NO MOBILE */
.header-topo {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 15px;
margin: 20px 0 25px 5px;
}
.logo-site { height: 55px; width: auto; object-fit: contain; }
.texto-header { text-align: left; }
.texto-header h1 { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0; letter-spacing: -0.5px; }
.texto-header p { font-size: 14px; color: #777; margin: 0; }
/* BARRA DE PROGRESSO MAIS VISÍVEL */
.header-progresso { display: flex; align-items: center; margin-bottom: 30px; padding: 0 5px; }
.barra-fundo { flex-grow: 1; height: 8px; background: #e0e6e4; border-radius: 10px; margin: 0 15px; overflow: hidden; }
.barra-preenchimento { width: 85%; height: 100%; background: #28a745; border-radius: 10px; }
/* CARDS DE REFEIÇÃO MAIS ROBUSTOS */
.card-refeicao {
background: white;
border-radius: 24px;
padding: 22px 18px;
margin-bottom: 25px;
box-shadow: 0 8px 20px rgba(0,0,0,0.04);
text-align: left;
}
.titulo-refeicao { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.titulo-refeicao h3 { margin: 0; font-size: 20px; font-weight: 800; color: #1a1a1a; }
.status-selecao { background: #f0fdf4; color: #28a745; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-left: auto; }
/* GRID DE 2 COLUNAS PARA MELHOR CLIQUE NO CELULAR */
.grid-alimentos {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.item-alimento {
border: 2px solid #f1f3f2;
border-radius: 18px;
padding: 18px 10px;
text-align: center;
cursor: pointer;
position: relative;
background: #fff;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 90px;
}
.item-alimento .emoji { font-size: 28px; margin-bottom: 8px; }
.item-alimento span {
font-size: 13px;
font-weight: 700;
color: #333;
line-height: 1.2;
}
/* CHECK CIRCLE MAIOR */
.check-circle { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border: 2px solid #eee; border-radius: 50%; background: #fff; }
.item-alimento.selected { border-color: #28a745; background-color: #f0fff4; transform: translateY(-2px); }
.item-alimento.selected .check-circle {
background-color: #28a745; border-color: #28a745;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
background-size: 12px; background-repeat: no-repeat; background-position: center;
}
/* OPÇÕES EXTRAS E SELECT */
.card-extra, .card-chocolate { background: white; border-radius: 22px; padding: 22px; margin-bottom: 25px; border: 1px solid #eee; text-align: left; }
.card-extra { display: flex; align-items: center; justify-content: space-between; }
.campo-select {
width: 100%; height: 58px; padding: 0 15px; border-radius: 15px;
border: 2px solid #f1f3f2; margin-top: 15px; background: #fafafa;
font-size: 16px; color: #444; font-weight: 600;
}
/* FOOTER FIXO OU ESPAÇADO */
.footer-botoes { display: flex; gap: 12px; margin-top: 10px; padding-bottom: 40px; }
.btn-voltar { flex: 1; height: 65px; border: none; background: #e9ecef; color: #495057; border-radius: 18px; font-weight: 800; font-size: 16px; cursor: pointer; }
.btn-proximo { flex: 2; height: 65px; background: #28a745; color: white; border: none; border-radius: 18px; font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 8px 15px rgba(40, 167, 69, 0.2); }
🍎
Lanche da Manhã
0 itens
× Remover este lanche
🍫
Chocolate na Dieta?
Escolha uma opção
Sim, 1x ao dia
Não, prefiro sem
function toggleSelection(elemento) {
elemento.classList.toggle('selected');
const container = elemento.closest('.card-refeicao');
const selecionados = container.querySelectorAll('.item-alimento.selected').length;
container.querySelector('.status-selecao').innerText = selecionados + ' itens';
}
function abrirLanche() {
document.getElementById('box-opcional').style.display = 'none';
document.getElementById('detalhe-lanche').style.display = 'block';
}
function fecharLanche() {
document.getElementById('box-opcional').style.display = 'block';
document.getElementById('detalhe-lanche').style.display = 'none';
}