/* =========================
   1. GERAL, RESETS E VARIÁVEIS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #fff9ea;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* =========================
   2. HEADER E NAVEGAÇÃO
========================= */
header {
    padding: 15px 8%;
    background-color: #fff9ea;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav_logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #e9a209;
}

#nav_list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    font-weight: 600;
    color: #1d1d1d;
    transition: 0.3s;
}

.nav-item.active a {
    color: #e9a209;
    border-bottom: 3px solid #ffe100;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BOTÃO DO CARRINHO (HEADER) */
#cart-btn {
    background-color: #e9a209;
    color: #1d1d1d;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 53px;
}

#cart-btn i {
    font-weight: 900;
    -webkit-text-stroke: 0.5px #1d1d1d;
}

#cart-count {
    background-color: #1d1d1d;
    color: #e9a209;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff9ea;
}

#mobile_btn {
    display: none;
    font-size: 28px;
}

/* =========================
   3. HOME / HERO
========================= */
#home {
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding: 0 8%;
    position: relative;
}

.shape {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background-color: #ffe8b4;
    border-radius: 40% 0 0 40%;
    z-index: 1;
}

#cta {
    width: 45%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#cta .title {
    font-size: 3.5rem;
    line-height: 1.1;
}

#cta .title span {
    color: #e9a209;
}

.btn-default {
    background-color: #e9a209;
    color: #1d1d1d;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(233, 162, 9, 0.2);
    transition: 0.3s;
}

.social-midia-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-midia-buttons a {
    font-size: 30px;
    /* Aumentado conforme pedido */
    color: #1d1d1d;
    transition: 0.3s ease;
}

.social-midia-buttons a:hover {
    color: #e9a209;
    transform: scale(1.2);
}

.banner-container {
    width: 55%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

#banner img {
    width: 100%;
    max-width: 450px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}



/* =========================
   4. CARDÁPIO E BEBIDAS (REVISADO)
========================= */
#menu {
    padding: 60px 0;
    text-align: center;
    position: relative;
    /* CHAVE DO PROBLEMA */
    overflow: visible !important;
}

/* Container do Botão */
.categories-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 20px auto 40px;
    z-index: 1500;
}

#btn-bebidas {
    background-color: #e9a209;
    color: #1d1d1d;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    position: relative;
    z-index: 3001;
}

/* A Caixa Branca (Dropdown) - AJUSTADA */
.bebidas-opcoes {
    display: none; 
    position: absolute;
    top: 110%; /* Aparece abaixo do botão */
    left: 50%;
    transform: translateX(-50%); /* Centraliza exato no meio */
    background-color: white !important;
    width: 280px !important; /* LARGURA FIXA PARA O TEXTO NÃO QUEBRAR */
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    padding: 15px 0;
    z-index: 2000;
    flex-direction: column; /* Itens um embaixo do outro */
}



/* ESTA É A CLASSE QUE O JS ATIVA */
.bebidas-opcoes.active {
    display: flex !important;
    flex-direction: column;
}

/* Título interno */
.bebidas-opcoes h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1d1d1d;
    text-align: center;
}



.bebida-item {
    background: white !important; /* Tira o amarelo da foto */
    color: #1d1d1d !important;
    border: none !important;
    width: 100% !important;
    padding: 12px 20px !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between; /* Nome na esquerda, preço na direita */
    align-items: center;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0 !important;
    white-space: nowrap !important; /* FORÇA O TEXTO A FICAR EM UMA LINHA SÓ */
    transition: 0.3s;
}


.bebida-item:last-of-type {
    border-bottom: none !important;
}

/* Efeito de destaque ao passar o mouse */
.bebida-item:hover {
    background-color: #f8d477 !important;
     padding-left: 30px !important;
}

/* Botão de Fechar */
#btn-fechar-bebidas {
    background: none !important;
    border: none !important;
    color: #888 !important;
    text-decoration: underline;
    margin-top: 10px;
    cursor: pointer;
}
/* =========================
   5. ROLAGEM E CARDS
========================= */
.menu-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    z-index: 100;
    position: relative;
}

.menu-navigation button {
    background-color: #1d1d1d;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.menu-navigation button:hover {
    background-color: #e9a209;
    transform: scale(1.1);
}

.dishes-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 30px;
    padding: 20px 10% 40px;
    scroll-behavior: smooth;
    width: 100%;
}

.dish-item {
    background: #fff;
    flex: 0 0 280px;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.dish-item:hover {
    transform: translateY(-10px);
}

.dish-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.4s;
}

.dish-item:hover img {
    transform: scale(1.1);
}

.dish-item p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 65px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 15px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
    pointer-events: none;
}

.dish-item:hover p {
    opacity: 1;
    transform: translateY(0);
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.dish-price {
    font-weight: 700;
    font-size: 18px;
}

/* BOTÃO CESTA (DENTRO DO CARD) */
.btn-cart {
    background-color: #e9a209;
    color: #1d1d1d;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(233, 162, 9, 0.2);
}

.btn-cart:hover {
    background-color: #1d1d1d !important;
    color: #e9a209 !important;
    transform: scale(1.1);
}

/* ====SUBTITULO ====== */
.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}


/* =========================
   6. AVALIAÇÕES (ESTILO ORIGINAL)
========================= */
#avaliacoes {
    padding: 60px 8%;
    background-color: #fff9ea;
}

.avaliacao-container {
    display: flex;
    align-items: flex-start;
    /* Alinha pelo topo para não tremer ao flutuar */
    justify-content: center;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.avaliacao-img img {
    width: 100%;
    max-width: 380px;
}

.avaliacao-content {
    flex: 1;
    text-align: left;
}

.avaliacao-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    padding-top: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avaliacao-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid transparent;
    /* Truque da luz */
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transition: all 0.3s ease;
}

.avaliacao-card:hover {
    transform: translateY(-12px);
    border-bottom-color: #e9a209;
    /* Luz amarela */
    box-shadow: 0 15px 35px rgba(233, 162, 9, 0.25);
}

.avaliacao-card.hidden {
    display: none !important;
}

/* --- BOTÕES DE CONTROLE (CORRIGIDO) --- */
.container-btn-center {
    margin-top: 30px;
    display: flex;
    flex-direction: column; /* Coloca um botão abaixo do outro se ambos aparecerem */
    align-items: flex-start; /* Alinha à esquerda conforme sua foto */
    gap: 15px;               /* CRUCIAL: Espaço entre os botões */
    width: 100%;
}

.btn-avaliacoes {
    background-color: #e9a209;
    color: #1d1d1d;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-avaliacoes:hover {
    background-color: #f8d477;
    transform: scale(1.05);
}

/* Regra de Ouro: Garante que o botão escondido não ocupe espaço */
.hidden {
    display: none !important;
}

/* 1. A "receita" da animação que você mandou */
@keyframes flutuarChefCompleto {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    50% {
        transform: translateY(-20px);
        filter: drop-shadow(0 25px 25px rgba(0,0,0,0.2));
    }
}

/* 2. APLICAÇÃO NA IMAGEM (O que faz ele se mexer de verdade) */
.avaliacao-img img {
    display: block;
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
    
    /* Ativando a animação: nome, tempo, suavidade e infinito */
    animation: flutuarChefCompleto 4s ease-in-out infinite !important;
}


/* =========================
   7. MODAIS, CARRINHO E OVERLAY
========================= */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    /* Clique fora sem escurecer */
    z-index: 1500;
}

#overlay.active {
    display: block;
}

#cart-dropdown {
    position: fixed;
    /* FIXO PARA FLUTUAR */
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: 75vh;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    z-index: 3000;
    overflow-y: auto;
    display: none;
}

#cart-dropdown.active {
    display: block;
    animation: slideIn 0.3s ease;
}

#cart-items {
    list-style: none !important;
    margin-bottom: 15px;
    padding: 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#finalizar-compra {
    display: block;
    width: 100%;
    background-color: #e9a209;
    color: #1d1d1d;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
}

#pix-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#pix-modal.active {
    display: flex;
}

.pix-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
}
/* BOTÃO JÁ PAGUEI MELHORADO */
#pix-ok {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    background-color: #27ae60; /* Verde esmeralda (cor de sucesso) */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); /* Sombra verde suave */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#pix-ok:hover {
    background-color: #219150;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

#pix-ok:active {
    transform: scale(0.98);
}

/* =========================
   8. FEEDBACKS (TOAST)
========================= */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease;
}

.animar-carrinho {
    animation: cartBounce 0.4s ease-in-out;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   9. RESPONSIVIDADE TOTAL
========================= */
@media (max-width: 1024px) {
    #nav_list {
        display: none;
    }

    #mobile_btn {
        display: block;
    }

    .nav-actions {
        display: flex !important;
    }

    #peca-aqui-fixo {
        padding: 8px 15px;
        font-size: 13px;
        display: block !important;
    }
     #cta_buttons .btn-default {
        width: 100%;
        max-width: 280px; 
        margin: 0 !important;              /* Remove margens que podem atrapalhar */
    }
        #cta_buttons {
        display: flex !important;
        flex-direction: column !important; /* Mantém um embaixo do outro */
        gap: 15px !important;              /* CRUCIAL: cria o espaço entre eles */
        align-items: flex-start;           /* Alinha à esquerda */
    }

}

@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        padding: 10px 4% !important;
        background: #fff9ea;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: 80px !important;
    }

    #home {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 5%;
    }

    #cta {
        width: 100%;
    }

    #cta .title {
        font-size: 2.5rem;
    }

    #cta_buttons {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 15px !important;
        width: 100%;
    }

    #cta_buttons .btn-default {
        width: 100%;
        max-width: 320px;
    }

    .dishes-container {
        overflow-x: auto !important;
        padding: 10px 15px 30px !important;
        scrollbar-width: none;
    }

    .dishes-container::-webkit-scrollbar {
        display: none;
    }

    .dish-item {
        flex: 0 0 260px !important;
    }

    .avaliacao-container {
        flex-direction: column !important;
        text-align: center;
    }

    .avaliacao-cards {
        grid-template-columns: 1fr !important;
    }

    .avaliacao-img img {
        max-width: 250px;
        margin: 0 auto;
    }

   #cart-dropdown {
        position: fixed !important; /* Fixa na tela */
        top: 50% !important;        /* Centraliza na vertical */
        left: 50% !important;       /* Centraliza na horizontal */
        transform: translate(-50%, -50%) !important; /* Ajuste exato do centro */
        
        width: 90% !important;      /* Ocupa quase toda a largura */
        max-width: 380px !important;
        max-height: 85vh !important; /* Não deixa passar da altura da tela */
        
        background-color: white !important; /* Fundo sólido para não ver o fundo */
        z-index: 5000 !important;   /* VALOR ALTO: Fica na frente de botões e lanches */
        
        padding: 25px !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
        
        display: none; /* JS controla o .active */
        flex-direction: column;
        overflow-y: auto; /* Se tiver muitos itens, ele cria rolagem interna */
    }
  #cart-dropdown.active {
        display: flex !important;
    }
       #overlay.active {
    
        background: rgba(0, 0, 0, 0.6) !important; /* Escurece o fundo para destacar o carrinho */
    }
}



@media (max-width: 400px) {
    #peca-aqui-fixo {
        display: none;
    }

    #cart-btn {
        padding: 8px 12px !important;
        font-size: 18px !important;
    }
}

#mobile-menu {
    display: none;
    background: #fff9ea;
    padding: 20px;
    border-bottom: 3px solid #e9a209;
    position: absolute;
    width: 100%;
    z-index: 1600;
    top: 100%;
    left: 0;
}

#mobile-menu.active {
    display: block;
}

#mobile_nav_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer {
    background-color: #e9a209;
    padding: 30px 8%;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 912px) {
    #home {
        text-align: left; /* Mantém o texto na esquerda como no print */
    }
    
    .social-midia-buttons {
        margin-top: 20px;
        gap: 15px;
    }
}