/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}



/* ================= HEADER ================= */

.header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 99;

    /* sombra igual a imagem */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

        /* 👇 adiciona isso */
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* LOGO */
.header-logo img {
    width: 58px;
    height: auto;
    display: block;
}

/* MENU */
.header-menu {
    display: flex;
    gap: 45px;
    align-items: center;
}

.header-menu a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    font-family: "Georgia", serif;
    transition: 0.2s;
}

.header-menu a:hover {
    transform: translateY(-1px);
    opacity: 0.75;
}

/* AÇÕES (CARRINHO + REDES) */
.header-acoes {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* BOTÃO CARRINHO */
.btn-carrinho-topo {
    border: 2px solid #6cc04a;
    background: #b7f08c;
    color: #000;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: 0.2s;
}

.btn-carrinho-topo i {
    font-size: 16px;
}

.btn-carrinho-topo:hover {
    transform: scale(1.03);
}

/* CONTADOR */
#contadorCarrinho {
    background: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 800;
}

/* REDES */
.header-redes {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-redes a {
    font-size: 24px;
    text-decoration: none;
    transition: 0.2s;
}

.header-redes a:hover {
    transform: scale(1.1);
}

/* cores parecidas */
.header-redes a:nth-child(1) {
    color: #E1306C; /* insta */
}

.header-redes a:nth-child(2) {
    color: #25D366; /* whatsapp */
}








/* ================= MENU MOBILE BONITO ================= */

.menu-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}

.menu-mobile-overlay.ativo {
    opacity: 1;
    pointer-events: auto;
}

.menu-mobile {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 18px;
    transition: 0.28s ease;
    box-shadow: -15px 0 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 22px 0 0 22px;
}

.menu-mobile.ativo {
    right: 0;
}

.menu-mobile-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-mobile-titulo h3 {
    font-size: 18px;
    color: #ff4fa3;
    margin-top: 4px;
}

.menu-mobile-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #ff4fa3;
    background: #ffe3f1;
    padding: 6px 10px;
    border-radius: 999px;
}

.btn-fechar-menu {
    border: none;
    background: #ffe3f1;
    color: #ff4fa3;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-mobile-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 700;
    padding: 14px 14px;
    border-radius: 16px;
    background: #f7f7f7;
    transition: 0.2s;
}

.menu-mobile-links a i {
    font-size: 18px;
    color: #ff4fa3;
    width: 22px;
    text-align: center;
}

.menu-mobile-links a:hover {
    background: #ffe3f1;
    transform: translateX(-2px);
}

.menu-mobile-divider {
    height: 1px;
    width: 100%;
    background: #eee;
}

.menu-mobile-redes p {
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.menu-mobile-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-mobile-social a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #333;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f7f7;
    transition: 0.2s;
}

.menu-mobile-social a i {
    font-size: 18px;
    color: #ff4fa3;
    width: 22px;
    text-align: center;
}

.menu-mobile-social a:hover {
    background: #ffe3f1;
}

/* mobile menor */
@media (max-width: 420px) {
    .menu-mobile {
        width: 280px;
    }
}








/* ================= MENU MOBILE ================= */

.btn-menu {
    background: #ff4fa3;
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
}

.menu-mobile {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 18px;
    transition: 0.3s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-mobile.ativo {
    right: 0;
}

.menu-mobile-overlay.ativo {
    display: block;
}

.menu-mobile-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-mobile-topo h3 {
    font-size: 18px;
    color: #ff4fa3;
}

.btn-fechar-menu {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #ff4fa3;
}

.menu-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-mobile-links a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    background: #f7f7f7;
}

.menu-mobile-links a:hover {
    background: #ffe3f1;
}

.menu-mobile-redes p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* ================= HEADER RESPONSIVO (CORRIGIDO) ================= */

@media (max-width: 768px) {

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
    }

    /* some com o menu e redes */
    .header-menu,
    .header-redes {
        display: none !important;
    }

    /* ações ficam alinhadas na direita */
    .header-acoes {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }

    /* botão hamburguer aparece */
    .btn-menu {
        display: flex !important;
    }

    /* logo menor */
    .header-logo img {
        width: 55px;
    }
}




@media (max-width: 768px) {

    /* some com QUALQUER bloco de redes no header */
    header a[href*="instagram"],
    header a[href*="wa.me"],
    header a[href*="whatsapp"],
    header a[href*="facebook"],
    header i.fa-instagram,
    header i.fa-whatsapp,
    header i.fa-facebook {
        display: none !important;
    }
}



@media (max-width: 768px) {

    header .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* garante que a logo não ocupa 100% */
    header .logo {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    header .logo img {
        display: block;
        height: 55px;
    }

    /* agrupa carrinho + menu pra não quebrar linha */
    .acoes-header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 0 0 auto !important;
    }
}










/* ===== TOPO ROSA ===== */
.topo {
    background-color: #f5a6b1;
    background-image: radial-gradient(white 2px, transparent 2px);
    background-size: 20px 20px;

    position: relative;
    z-index: 1;
}

/* CONTAINER IMAGENS */
.imagens-topo {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.imagens-topo img {
    max-width: 180px;
    width: 100%;
    height: auto;
}



/* ===== EFEITO DA LOGO SAINDO ===== */
.logo-centro {
    transform: translateY(60px);
    position: relative;
    z-index: 2;
}


/* ===== PARTE BRANCA ===== */
.parte-branca {
    background-color: #f4eeee;
    height: 60px;
}

/* ===== TÍTULO ===== */
.titulo-section {
    background-color: #f4eeee;
    text-align: center;
    padding: 80px 20px 60px;
}

.titulo-section h1 {
    font-size: 2.8rem;
    font-family: 'Georgia', serif;
    margin-bottom: 15px;
}

.linha-titulo  {
    width: 120px;
    height: 3px;
    background-color: #d4a373;
    margin: 0 auto;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {

    .imagens-topo img {
        max-width: 100px; /* diminui no mobile */
    }

    .logo-centro {
        margin-bottom: 0;
    }

    .parte-branca {
        height: 30px;
    }
}







/* ================= CARDÁPIO ================= */

.cardapio {
    background: #ffffff;
    padding: 80px 5vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
}


/* CATEGORIA */
.categoria {
    background: #f5ebeb;
    padding: 25px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.categoria h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.categoria h2 {
    font-size: 1.0rem;
    color: #7a7a7a;
}

.subtitulo{
    margin-bottom: 20px;
}


/* ===== ITEM CARDÁPIO ESTILO LISTA ===== */

.item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid #f1d2d8;
}

.item:hover {
    transform: translateX(5px);
}

.nome {
    font-weight: 500;
}

.linha {
    flex: 1;
    border-bottom: 2px dashed #f5a6b1;
    margin-top: 5px;
}

.preco {
    white-space: nowrap;
    font-weight: bold;
    color: #d6336c;
}



/* BOTÃO FECHAR */
.fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}



/* ================= BOTÕES FECHAR (X) ================= */

.fechar,
#modalAcai .fechar,
.btn-fechar-menu {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: white;
    display: flex;
    background: #ff4d4d;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
    border: none;
}

/* HOVER VERMELHO */
.fechar:hover,
#modalAcai .fechar:hover,
.btn-fechar-menu:hover {
    background: #ff4d4d;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}







/* ===== MODAL FUNDO ===== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* ===== CAIXA ===== */

.modal-box {
    background: #fff;
    width: 95%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== IMAGEM ===== */

.modal-img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

/* ===== CONTEÚDO ===== */

.modal-conteudo {
    padding: 25px;
}

.modal-conteudo h2 {
    margin-bottom: 10px;
}

.modal-conteudo p {
    margin-bottom: 15px;
    color: #555;
}

.modal-conteudo label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}

.modal-conteudo select,
.modal-conteudo textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-family: inherit;
}

.total {
    font-weight: bold;
    margin-bottom: 20px;
}

/* ===== BOTÃO ===== */

.btn-carrinho {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #f5a6b1, #d4a373);
    transition: 0.3s;
}

.btn-carrinho:hover {
    opacity: 0.9;
}







/* FUNDO ESCURO */
#modalAcai {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* CAIXA DO MODAL */
#modalAcai .modal-box {
    background: #fff;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 25px;
    animation: aparecer 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ANIMAÇÃO */
@keyframes aparecer {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



/* TÍTULO */
#acaiTitulo {
    text-align: center;
    margin-bottom: 20px;
    color: #7b1fa2;
}

/* SUBTÍTULOS */
#modalAcai h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #9c27b0;
    font-size: 16px;
}

/* ÁREA DAS OPÇÕES */
.opcoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LABEL ESTILO CARD */
.opcoes label {
    background: #f7f0fb;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

/* HOVER */
.opcoes label:hover {
    background: #f0e1f9;
}

/* INPUTS */
.opcoes input {
    accent-color: #9c27b0;
    cursor: pointer;
}

/* QUANDO SELECIONADO */
.opcoes input:checked + span {
    font-weight: bold;
}

/* BOTÃO */
#modalAcai .btn-carrinho {
    margin-top: 25px;
    width: 100%;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalAcai .btn-carrinho:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}







.grupo {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f0e1f9;
}

/* TÍTULO CLICÁVEL */
.grupo-titulo {
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    color: white;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CONTEÚDO */
.grupo-conteudo {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
    padding: 0 12px;
}

/* QUANDO ABERTO */
.grupo.aberto .grupo-conteudo {
    max-height: 500px; /* valor alto suficiente */
    padding: 12px;
}


.total-acai {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #7b1fa2;
}







/* ================= CARRINHO MODAL ================= */

.modal-carrinho {
    max-width: 560px;
    padding: 25px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 100;
}

.titulo-carrinho {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 800;
}

/* LISTA COM SCROLL */
.lista-carrinho {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 12px;
}

/* ITEM */
.item-carrinho {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.item-carrinho h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.item-carrinho p {
    font-size: 14px;
    margin-bottom: 3px;
    color: #555;
}

/* BOTÃO REMOVER */
.btn-remover {
    margin-top: 6px;
    background: transparent;
    border: 1px solid #aaa;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-remover:hover {
    background: #f1f1f1;
}

/* TOTAL */
.total-geral {
    font-size: 20px;
    font-weight: 900;
    margin-top: 10px;
    text-align: left;
}

/* LINHA */
.linha-divisao {
    margin: 18px 0;
    border: none;
    height: 1px;
    background: #ddd;
}

/* ENTREGA */
.titulo-entrega {
    font-size: 20px;
    margin-bottom: 10px;
}

.form-entrega label {
    display: block;
    font-weight: 600;
    margin: 10px 0 6px;
}

.form-entrega input,
.form-entrega textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.form-entrega textarea {
    min-height: 90px;
    resize: none;
}

/* BOTÃO FINALIZAR */
.btn-finalizar {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, #f5a6b1, #d4a373);
    transition: 0.2s;
}

.btn-finalizar:hover {
    transform: scale(1.02);
}




/* ================= FOOTER ================= */

footer {
    margin-top: 60px;
    padding: 22px 18px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    line-height: 1.5;
}

footer div {
    margin-top: 8px;
}

footer a {
    color: #ff4fa3;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
    footer {
        padding: 20px 14px;
    }

    footer p {
        font-size: 13px;
    }
}


/* ================= MODAL CARRINHO COM SCROLL ================= */

.modal-carrinho {
    max-height: 90vh;       /* não passa da tela */
    overflow-y: auto;       /* cria scroll */
}



header nav a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Linha animada */
header nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ff4d6d; /* sua cor principal */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Hover */
header nav a:hover {
    color: #ff4d6d;
}

header nav a:hover::after {
    width: 100%;
}
