/* ==============================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}


body {

    font-family: Arial, sans-serif;

    background-color: #f7f3f0;

    color: #2b0d0d;

    padding-bottom: 90px;

}


/* ==============================
   CABEÇALHO
================================= */

.cabecalho {

    background-color: #2b0d0d;

    width: 100%;

    padding: 0;

    text-align: center;

}

.logo-titulo {
    display: block;
    width: 100%;
    height: clamp(130px, 22vw, 260px);
    object-fit: contain;
    object-position: center;
    max-width: 100%;
}


.titulo-teste {

    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;

}

.status-funcionamento {
    padding: 9px 16px;
    text-align: center;
    background: #f0ece9;
    color: #5d5550;
    border-bottom: 1px solid #ded8d4;
    font-size: 13px;
    font-weight: 700;
}

.status-funcionamento.aberto { background: #e7f6eb; color: #176b32; border-bottom-color: #b9dfc3; }
.status-funcionamento.fechado { background: #fdeaea; color: #9b2828; border-bottom-color: #edbcbc; }

/* ==============================
   CATEGORIAS
================================= */

.categorias {

    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 15px;

    background-color: white;

    position: sticky;

    top: 0;

    z-index: 10;

    scrollbar-width: none;

}


.categorias::-webkit-scrollbar {

    display: none;

}


.categorias button {

    border: none;

    background-color: #ffc400;

    color: #2b0d0d;

    padding: 11px 18px;

    border-radius: 25px;

    font-weight: bold;

    white-space: nowrap;

    cursor: pointer;

    transition: 0.2s;

}


.categorias button:hover {

    opacity: 0.85;

    transform: scale(1.03);

}


.categorias button.categoria-ativa {

    background-color: #2b0d0d;

    color: white;

}


/* ==============================
   CARDÁPIO
================================= */

.cardapio {

    padding: 25px 15px;

    max-width: 900px;

    margin: auto;

}


.cardapio h2 {

    margin-bottom: 18px;

    font-size: 24px;

}


/* ==============================
   PRODUTOS
================================= */

.produto {

    background-color: white;

    border-radius: 15px;

    padding: 18px;

    margin-bottom: 15px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);

}


.produto h3 {

    font-size: 20px;

    margin-bottom: 8px;

}


.produto-descricao {

    color: #666;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 15px;

}


.produto-rodape {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.produto-preco {

    color: #c58b00;

    font-size: 19px;

    font-weight: bold;

}


.botao-adicionar {

    border: none;

    background-color: #2b0d0d;

    color: white;

    padding: 11px 17px;

    border-radius: 9px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


.botao-adicionar:hover {

    opacity: 0.85;

    transform: scale(1.03);

}


/* ==============================
   BARRA DO CARRINHO
================================= */

.carrinho-barra {

    position: fixed;

    bottom: 0;

    left: 0;

    width: 100%;

    background-color: #2b0d0d;

    color: white;

    padding: 12px 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    box-shadow:
        0 -3px 15px rgba(0, 0, 0, 0.2);

    z-index: 50;

}


.carrinho-info {

    display: flex;

    align-items: center;

    gap: 10px;

}


.carrinho-icone {

    font-size: 30px;

}


.carrinho-info strong {

    display: block;

    font-size: 16px;

}


#total-carrinho {

    display: block;

    color: #ffc400;

    font-size: 15px;

    margin-top: 3px;

}


.carrinho-barra > button {

    border: none;

    background-color: #ffc400;

    color: #2b0d0d;

    padding: 13px 18px;

    border-radius: 10px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


.carrinho-barra > button:hover {

    opacity: 0.85;

    transform: translateY(-1px);

}


/* ==============================
   MODAIS
================================= */

.modal {

    display: none;

    position: fixed;

    inset: 0;

    background-color: rgba(0, 0, 0, 0.65);

    z-index: 100;

    padding: 15px;

    overflow-y: auto;

}


.modal.aberto {

    display: flex;

    align-items: flex-end;

    justify-content: center;

}


.modal-conteudo {

    background-color: #f7f3f0;

    width: 100%;

    max-width: 600px;

    max-height: 92vh;

    overflow-y: auto;

    border-radius: 20px 20px 0 0;

    padding: 20px;

    animation: aparecer 0.2s ease;

}


@keyframes aparecer {

    from {

        transform: translateY(30px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}


.modal-cabecalho {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

}


.modal-cabecalho h2 {

    font-size: 22px;

}


.botao-fechar {

    border: none;

    background: none;

    font-size: 32px;

    cursor: pointer;

    color: #2b0d0d;

    transition: 0.2s;

}


.botao-fechar:hover {

    transform: scale(1.1);

}


/* ==============================
   ITENS DO CARRINHO
================================= */

.item-carrinho {

    background-color: white;

    padding: 15px;

    border-radius: 12px;

    margin-bottom: 10px;

}


.item-carrinho-topo {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 10px;

}


.item-carrinho h3 {

    font-size: 17px;

}


.item-carrinho-preco {

    font-weight: bold;

    color: #c58b00;

    white-space: nowrap;

}


.item-carrinho-detalhes {

    color: #666;

    font-size: 13px;

    line-height: 1.5;

    margin: 8px 0;

}


.controles-quantidade {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;

}


.controles-quantidade button {

    width: 32px;

    height: 32px;

    border: none;

    border-radius: 50%;

    background-color: #2b0d0d;

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: 0.2s;

}


.controles-quantidade button:hover {

    transform: scale(1.08);

}


/* ==============================
   BOTÃO REMOVER
================================= */

.controles-quantidade .botao-remover {

    width: auto;

    height: auto;

    margin-left: auto;

    padding: 8px 12px;

    border-radius: 8px;

    background-color: transparent;

    color: #c62828;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


.controles-quantidade .botao-remover:hover {

    background-color: #ffebee;

    transform: none;

    opacity: 1;

}


/* ==============================
   CARRINHO VAZIO
================================= */

.carrinho-vazio {

    text-align: center;

    padding: 30px 10px;

}


.botao-secundario {

    width: 100%;

    border: 2px solid #2b0d0d;

    background-color: transparent;

    color: #2b0d0d;

    padding: 13px;

    border-radius: 10px;

    margin-top: 15px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


.botao-secundario:hover {

    background-color: #2b0d0d;

    color: white;

}


/* ==============================
   RESUMOS
================================= */

.resumo-carrinho,
.resumo-final,
.produto-modal-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #ddd;

}


.resumo-carrinho strong,
.resumo-final strong,
.produto-modal-total strong {

    color: #c58b00;

    font-size: 21px;

}


/* ==============================
   BOTÃO PRINCIPAL
================================= */

.botao-principal {

    width: 100%;

    border: none;

    background-color: #2b0d0d;

    color: white;

    padding: 14px;

    border-radius: 10px;

    margin-top: 18px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


.botao-principal:hover {

    background-color: #3d1515;

    transform: translateY(-1px);

}


/* ==============================
   PRODUTO / ADICIONAIS
================================= */

.produto-modal-descricao {

    color: #666;

    line-height: 1.5;

    margin-bottom: 20px;

}


#lista-adicionais h3 {

    margin-bottom: 10px;

}


.adicional {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background-color: white;

    padding: 12px;

    border-radius: 9px;

    margin-bottom: 8px;

    cursor: pointer;

    transition: 0.15s;

}


.adicional:hover {

    background-color: #fffaf0;

}


.adicional-info {

    display: flex;

    gap: 8px;

    align-items: center;

}


.adicional-info input {

    width: auto;

    margin: 0;

}


.adicional-preco {

    color: #c58b00;

    font-weight: bold;

    white-space: nowrap;

}


/* ==============================
   INPUTS
================================= */

textarea,
input {

    width: 100%;

    border: 1px solid #ddd;

    border-radius: 9px;

    padding: 12px;

    margin-top: 6px;

    margin-bottom: 15px;

    font-size: 15px;

    background-color: white;

}


textarea {

    min-height: 80px;

    resize: vertical;

}


textarea:focus,
input:focus {

    outline: 2px solid #ffc400;

    border-color: transparent;

}


label {

    font-weight: bold;

    font-size: 14px;

}


h3 {

    margin-top: 15px;

    margin-bottom: 10px;

}


/* ==============================
   OPÇÕES
================================= */

.opcoes {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.opcao {

    background-color: white;

    padding: 12px;

    border-radius: 9px;

    cursor: pointer;

    transition: 0.15s;

}


.opcao:hover {

    background-color: #fffaf0;

}


.opcao input {

    width: auto;

    margin: 0 8px 0 0;

}


/* ==============================
   CAMPOS DUPLOS
================================= */

.campos-duplos {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

}


/* ==============================
   CONFIRMAÇÃO
================================= */

.confirmacao {

    text-align: center;

    padding: 35px 20px;

}


.confirmacao-icone {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: auto auto 20px;

    border-radius: 50%;

    background-color: #2b0d0d;

    color: #ffc400;

    font-size: 40px;

    font-weight: bold;

}

.opcoes-bebida {
    margin-bottom: 18px;
}

.opcoes-bebida .opcao {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    line-height: 1.35;
}

.confirmacao-pix {

    background-color: white;

    border-radius: 12px;

    margin: 18px 0;

    padding: 14px;

    text-align: left;

}


.confirmacao-pix textarea {

    min-height: 96px;

    font-size: 12px;

    word-break: break-all;

}


.confirmacao-pix .botao-secundario {

    margin-top: 0;

}

.localizacao-estabelecimento { background:#fff; border-top:1px solid #e4dfdc; padding:34px 20px 110px; }
.localizacao-conteudo { width:min(1120px, 100%); margin:0 auto; display:grid; grid-template-columns:minmax(240px, .7fr) minmax(360px, 1.3fr); gap:28px; align-items:center; }
.localizacao-legenda { color:#9a7300; font-size:12px; font-weight:800; }
.localizacao-conteudo h2 { margin:7px 0 8px; font-size:26px; }
.localizacao-conteudo p { color:#5f514c; line-height:1.5; }
.localizacao-conteudo iframe { width:100%; min-height:270px; border:1px solid #ddd5d1; border-radius:8px; }
.botao-maps { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 15px; border-radius:8px; background:#2b0d0d; color:#fff; text-decoration:none; font-weight:700; }
.confirmacao-retirada-maps { display:grid; gap:7px; margin:14px 0; padding:14px; border:1px solid #e1d8d4; border-radius:8px; background:#faf8f7; text-align:left; }
.confirmacao-retirada-maps[hidden] { display:none; }
@media (max-width:700px) {
    .localizacao-conteudo { grid-template-columns:1fr; }
    .localizacao-conteudo iframe { min-height:230px; }
}


/* ==============================
   DESKTOP
================================= */

@media (min-width: 700px) {

    .modal.aberto {

        align-items: center;

    }


    .modal-conteudo {

        border-radius: 20px;

    }


    .produto {

        padding: 20px;

    }

}


/* ==============================
   CELULAR
================================= */

@media (max-width: 500px) {

    .cardapio {
        width: 100%;
        padding: 22px 12px;
    }

    .produto {
        min-width: 0;
        padding: 16px;
    }

    .produto-descricao {
        overflow-wrap: anywhere;
    }

    .produto-rodape {
        min-width: 0;
        flex-wrap: wrap;
    }

    .modal {
        padding: 8px;
    }

    .modal-conteudo {
        max-height: calc(100dvh - 16px);
        padding: 18px 16px;
    }

    .modal-cabecalho {
        gap: 12px;
        margin-bottom: 14px;
    }

    .modal-cabecalho h2 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #lista-adicionais h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .opcoes-bebida .opcao {
        padding: 11px 12px;
        font-size: 14px;
    }

    #observacao {
        min-height: 92px;
    }

    .carrinho-barra {

        padding: 10px;

    }


    .carrinho-barra > button {

        padding: 11px 13px;

        font-size: 14px;

    }


    .carrinho-icone {

        font-size: 26px;

    }


    .controles-quantidade {

        gap: 7px;

    }


    .controles-quantidade .botao-remover {

        padding: 7px 9px;

        font-size: 13px;

    }

}
/* Cardápio centralizado */
.botao-adicionar.produto-indisponivel { opacity:.65; cursor:not-allowed; background:#777; }

.produto-estoque-info { display:block; margin-top:6px; font-weight:600; opacity:.8; }

.rodape-privacidade {
    padding: 22px 16px 96px;
    text-align: center;
    background: #f4f1ef;
}

.rodape-privacidade a { color: #5b4b46; font-size: 13px; }
