:root {
    --primary: #A0442C;
    --primary-dark: #7d3422;
    --accent: #25D366;
    --bg: #FDF9F5;
    --text: #332D2B;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg); color: var(--text); overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0px; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; }
.logo h1 { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 1.6rem; line-height: 1; }
.logo small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: #888; }
.cart-pill { background: var(--primary); color: white; padding: 8px 18px; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.cart-pill:hover { background: var(--primary-dark); }

/* HERO SECTION */
.hero { padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; background: white; padding: 40px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.badge { background: #F8E8E4; color: var(--primary); padding: 5px 15px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; }
.hero-content h2 { font-family: 'Playfair Display', serif; font-size: 3rem; margin: 15px 0; color: var(--primary); }
.hero-price { font-size: 2.5rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.btn-main { background: var(--primary); color: white; border: none; padding: 16px 40px; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 15px 15px 40px rgba(0,0,0,0.1); }

/* MENU CARDS */
.section-header { text-align: center; margin: 60px 0 30px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--primary); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.menu-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: 0.3s; }
.menu-card:hover { transform: translateY(-5px); }
.card-img { height: 220px; background-size: cover; background-position: center; }
.card-body { padding: 25px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.btn-add-circle { background: var(--primary); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.btn-add-circle:hover { background: var(--primary-dark); }

/* BARRA DE CARRINHO */
#cart-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 600px; background: white; padding: 15px 25px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); z-index: 900; cursor: pointer; border: 1px solid #eee; }
.bar-content { display: flex; justify-content: space-between; align-items: center; }
.total-info { display: flex; flex-direction: column; }
.total-info span { font-size: 0.8rem; color: #777; }
.btn-view { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.hidden { display: none !important; }

/* --- ESTILO DO MODAL REFINADO --- */

#cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center; /* Centraliza na tela desktop */
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    #cart-modal { align-items: flex-end; } /* No celular ele sobe de baixo */
}

.modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(2px); /* Suporte para Safari */
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 3001;
}

/* Título e Fechar */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

/* Itens no Carrinho (Onde estava o visual "amador") */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.btn-remove {
    background: #fff0f0;
    color: #ff4d4d;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

/* Rodapé e Botão Principal */
.modal-total {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
    margin: 20px 0;
    color: #333;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-whatsapp:hover { background: #20ba5a; }

.btn-clear {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #999;
    margin-top: 15px;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Rodapé do Modal */
.modal-footer {
    margin-top: 20px;
    text-align: center;
}

.modal-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-clear {
    display: inline-block;
    margin-top: 15px;
    background: #f8f8f8;
    color: #999;
    border: none;
    padding: 8px 20px;
    border-radius: 50px; /* Deixa ele arredondado como o pill do topo */
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear:hover {
    background: #fee;
    color: #ff4d4d;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; padding: 25px; text-align: center; }
    .hero-image { order: -1; }
    .hero-content h2 { font-size: 2.2rem; }
}

/* --- FOOTER PROFISSIONAL --- */
footer {
    width: 100%;
    background-color: #fdf9f6; /* Cor de fundo que pega a tela toda */
    padding: 40px 0 20px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px; /* Largura máxima do conteúdo */
    margin: 0 auto;    /* Centraliza o bloco de texto */
    padding: 0 20px;   /* Respiro nas laterais para mobile */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.main-footer {
    background-color: #fdf9f6; /* Cor de fundo em 100% da largura */
    width: 100%;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-brand p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-info h4, .footer-pay h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 15px;
}

.footer-info address, .footer-pay p {
    font-style: normal;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

/* RODAPÉ FINAL */
.footer-bottom {
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #f9f4f0; /* Um tom levemente mais escuro para o fim */
    padding: 25px 0;
    text-align: center;
    width: 100%;
}

.etzs-credits a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
}

/* POP-UP DE BOAS-VINDAS */
#welcome-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.5s ease;
}

.popup-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.popup-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(160, 68, 44, 0.4); /* Tom terracota transparente */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: relative;
    background: white;
    width: 90%; max-width: 400px;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#welcome-popup:not(.popup-hidden) .popup-content { transform: scale(1); }

.popup-badge { background: #F8E8E4; color: var(--primary); padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.popup-content h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--primary); margin: 15px 0; }
.popup-content p { color: #666; font-size: 0.95rem; margin-bottom: 25px; }

.close-popup {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 2rem; color: #ccc; cursor: pointer;
}

/* BOTÃO DE SUPORTE FLUTUANTE */
.btn-support-float {
    position: fixed;
    bottom: 100px; /* Fica acima da barra de carrinho quando ela aparece */
    right: 20px;
    background-color: #ffffff;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 800; /* Abaixo do modal, mas acima do conteúdo */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.btn-support-float:hover {
    transform: scale(1.05);
    background-color: var(--primary);
    color: white;
}

.support-icon {
    font-size: 1.2rem;
}

.support-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Ajuste para quando a barra de carrinho estiver ativa no mobile */
@media (max-width: 768px) {
    .btn-support-float {
        bottom: 95px; /* Ajuste a altura para não cobrir a barra de preço */
        padding: 8px 15px;
    }
}

.delivery-options {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: left;
}

.delivery-options h4 { font-size: 0.9rem; margin-bottom: 10px; color: var(--primary); }

.radio-group { display: flex; gap: 20px; margin-bottom: 15px; }

.radio-group label { font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 5px; }

.input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.input-field:focus { border-color: var(--primary); }

.hidden-address { display: none; }

/* Container do Status */
.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 50px;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #eee;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .status-container {
        position: static; /* Volta ao fluxo normal */
        transform: none;
        order: 3;        /* Pode jogar para baixo ou manter no meio */
    }
    .nav-bar {
        flex-wrap: wrap; /* Permite quebrar linha se não couber */
        justify-content: space-around;
    }
}

/* A bolinha que pisca */
#status-bola {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: 0.3s;
}

/* Estados de Aberto/Fechado */
.bola-aberto { 
    background-color: #28a745; 
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); 
}

.bola-fechado { 
    background-color: #dc3545; 
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5); 
}

/* Garante que o container de atendimento não quebre o layout */
.info-atendimento-container {
    padding: 20px 0;
    width: 100%;
}

.info-atendimento-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 15px rgba(160, 68, 44, 0.08);
    border-left: 5px solid #a0442c;
}

/* Correção para Celular */
@media (max-width: 768px) {
    .info-atendimento-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .info-divider {
        width: 80%;
        height: 1px;
        background: #eee;
    }
}

.info-item h4 {
    color: #a0442c;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0;
}

.info-divider {
    width: 1px;
    height: 60px;
    background: #eee;
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .info-atendimento-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .info-divider {
        width: 80%;
        height: 1px;
    }
}

/* Container do Alerta (Fundo escurecido) */
#custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Quando estiver visível */
#custom-alert.alert-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Caixa de conteúdo do alerta */
.alert-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s;
}

#custom-alert.alert-visible .alert-content {
    transform: scale(1);
}

.alert-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.alert-content h3 {
    color: #a0442c; /* Terracota da logo */
    margin-bottom: 10px;
}

.alert-content p {
    color: #666;
    margin-bottom: 20px;
}

.btn-alert-ok {
    background: #a0442c;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.alert-hidden { display: none; } /* Fallback caso precise */

#custom-alert {
    display: none; /* Começa escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Maior que o modal do carrinho */
    align-items: center;
    justify-content: center;
}

.alert-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.alert-content {
    position: relative;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-icon { font-size: 40px; margin-bottom: 10px; }

.alert-content h3 { color: #a0442c; margin-bottom: 10px; font-family: sans-serif; }

.btn-alert-ok {
    background: #a0442c;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}