/* Reset Básico e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cores Principais (Baseadas no Cardápio) */
:root {
    --primary-color: #4a148c; /* Roxo escuro */
    --secondary-color: #e00084; /* Pink */
    --light-color: #ffffff;
    --dark-color: #333;
}

/* Header */
.main-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos da Logo */
.logo {
    font-weight: 900;
    font-size: 2rem;
    display: flex; /* Para alinhar imagem e texto */
    align-items: center; /* Alinha verticalmente */
}

/* ============================ */
/* == ESTILO DA LOGO ATUALIZADO == */
/* ============================ */
.logo img {
    height: 40px; /* Ajuste a altura conforme necessário */
    width: 40px; /* Garantir que seja quadrada para o círculo perfeito */
    margin-right: 10px; /* Espaço entre a logo e o texto */
    border-radius: 50%; /* <<-- ADICIONADO PARA DEIXAR REDONDA */
    object-fit: cover; /* <<-- ADICIONADO para preencher o círculo */
}
/* ============================ */

.logo span {
    color: var(--secondary-color);
}

.main-header nav a {
    color: var(--light-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-header nav a:hover {
    color: var(--secondary-color);
}

/* Seção Hero (Boas-vindas) */
.hero {
    background: linear-gradient(rgba(74, 20, 140, 0.8), rgba(74, 20, 140, 0.8)), url(imagens/4841845.jpg) no-repeat center center/cover;
    color: var(--light-color);
    text-align: center;
    padding: 6rem 0;
    animation: fadeIn 1s ease-in-out;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Botões */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #c00070;
    transform: scale(1.05);
}

.btn-primary {
    background: var(--secondary-color);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* Cardápio */
main#menu {
    padding: 3rem 0;
}

main#menu h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.menu-section {
    margin-bottom: 3rem;
}

.menu-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.menu-section > p { /* Parágrafo logo abaixo do h3 */
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.menu-card img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
}

.menu-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 1rem 0.5rem 1rem;
}

.menu-card p {
    padding: 0 1rem 1rem 1rem;
    flex-grow: 1; /* Empurra o rodapé do card para baixo */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.price.free {
    color: #4caf50; /* Verde para "Grátis" */
}

/* Card simples (para copos e adicionais) */
.menu-card.simple {
    padding: 1rem;
}

.menu-card.simple h4 {
    padding: 0.5rem 0;
}

.menu-card.simple .card-footer {
    padding: 0.5rem 0 0 0;
    border-top: none;
}


/* Rodapé */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.main-footer a {
    color: var(--secondary-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

/* Botão Flutuante do Carrinho */
.cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--light-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.cart-float:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal (Carrinho) */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn 0.5s;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Itens do Carrinho */
#cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item span {
    font-weight: 700;
}

.remove-item {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 1rem 0;
}

/* Formulário de Pedido */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
}

/* Estilo de Pagamento em Lista */
.radio-group {
    display: flex;
    flex-direction: column; /* Coloca as opções em coluna (lista) */
    gap: 0.8rem; /* Espaçamento entre as opções */
}

.radio-option {
    display: flex;
    align-items: center; /* Alinha o botão e o texto verticalmente */
}

.radio-group label {
    font-weight: normal;
    margin-left: 0.5rem; /* Pequeno_espaço entre o botão e o texto */
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .modal-content {
        margin: 20% auto;
    }
    .logo {
        font-size: 1.5rem; /* Diminui um pouco o texto no celular */
    }
    .logo img {
        height: 30px; /* Diminui a logo no celular */
        width: 30px;
    }
}

@media (max-width: 480px) {
    .main-header .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
}