:root {
    --primary: #e63946;
    --secondary: #9da3a0;
    --dark: #1d3557;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    padding-bottom: 110px; /* Espaço para o carrinho fixo */
}

/* --- HEADER --- */
/* Importando a fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;900&display=swap');

.loja-header {
    /* Gradiente mais profundo e moderno */
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 50%, #1d3557 100%);
    
    /* Adiciona uma textura sutil de "ondas" ou ruído se desejar, 
       ou apenas mantém o brilho do gradiente */
    background-size: 100% 100%;
    animation: gradientAnimation 10s ease infinite;

    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.3);
    position: relative;
    overflow: hidden;
}

/* Animação suave para o fundo não ficar estático */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efeito de brilho atrás da logo */
/* Estilo da Logo Arredondada */
.logo-img {
    width: 260px;           /* Tamanho fixo para garantir o círculo */
    height: 260px;          /* Altura igual à largura */
    object-fit: cover;      /* Garante que a imagem preencha o círculo sem esticar */
    border-radius: 50%;     /* O segredo para deixar arredondada */
    border: 4px solid rgba(255, 255, 255, 0.2); /* Borda fina para dar acabamento */
    background-color: #fff; /* Fundo branco caso a imagem tenha transparência */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    z-index: 2;
}

/* Ajuste no Header para acomodar a logo */
.loja-header {
    background: radial-gradient(circle, #457b9d 0%, #1d3557 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Estilo do Título CARDÁPIO */
.titulo-cardapio {
    font-family: 'Poppins', sans-serif;
    font-weight: 900; /* Super negrito */
    font-size: 2.5rem; /* Aumentado significativamente */
    letter-spacing: 2px;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.status { 
    background: var(--secondary); 
    padding: 6px 16px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    display: inline-block;
}

/* ============================================================
   --- CONTAINER DO CARDÁPIO (GRID LADO A LADO) ---
   ============================================================ */
#cardapio-container {
    display: grid;
    /* Define colunas automáticas: mínimo 165px para caber 2 no telemóvel */
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CARD DO PRODUTO --- */
.produto {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.02);
    min-height: 230px; /* Mantém todos os cards com altura igual */
}

.produto:hover {
    transform: translateY(-5px);
}

.prod-info h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    /* Limita o nome a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
}

/* Ajuste na descrição para não ter altura fixa e permitir que o card cresça se necessário */
.prod-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Aumentei para 3 linhas para caber mais ingredientes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto; /* Mude de 2.8em para auto */
}

/* Nova regra para o rodapé do card não quebrar */
.prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px; /* Espaço mínimo entre preço e botão */
    margin-top: auto;
    width: 100%;
}

.prod-info span {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    display: block;
}

/* --- BOTÃO ADICIONAR --- */
.produto button {
    margin-top: 15px;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produto button:hover {
    filter: brightness(1.1);
}

/* --- CARRINHO FIXO --- */
.carrinho-fixo {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: var(--white);
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 999;
}

#finalizar-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* --- MODAL E FORMULÁRIO --- */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 1000; 
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.campo-checkout { margin-bottom: 15px; }
.campo-checkout label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.campo-checkout input, .campo-checkout select, .campo-checkout textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    box-sizing: border-box;
}

/* RESPONSIVIDADE PARA TELEMÓVEIS PEQUENOS */
@media (max-width: 380px) {
    #cardapio-container {
        grid-template-columns: 1fr; /* Volta para 1 por linha se a tela for muito estreita */
    }
}
/* --- ESTILO DAS NOVAS INFORMAÇÕES --- */

.boas-vindas {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 15px 0;
    max-width: 80%; /* Para não ficar muito largo no PC */
    line-height: 1.4;
}

.redes-sociais {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.redes-sociais a {
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1); /* Efeito de vidro sutil */
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.redes-sociais a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.redes-sociais span {
    font-size: 1rem;
}

/* Ajuste no Header para acomodar mais itens */
.loja-header {
    padding-bottom: 30px; /* Mais espaço no final para as curvas */
}


/* Estilo para produto indisponível */
.produto-esgotado {
    filter: grayscale(1); /* Deixa o card cinza */
    opacity: 0.7;
    pointer-events: none; /* Impede cliques no card */
    position: relative;
}

.produto-esgotado::after {
    content: "ESGOTADO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #ef4444;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.btn-esgotado {
    background: #334155 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}


.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: var(--white); margin: 5% auto; padding: 30px; width: 90%; max-width: 450px; border-radius: 25px; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #ddd; box-sizing: border-box; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-confirmar { flex: 2; background: var(--secondary); color: white; border: none; padding: 15px; border-radius: 10px; font-weight: bold; cursor: pointer; }
.btn-cancelar { flex: 1; background: #eee; border: none; padding: 15px; border-radius: 10px; cursor: pointer; }