
/* =========================================
   LA CASA PETISCARIA & CHOPERIA
   CARDÁPIO DIGITAL - DESIGN
========================================= */

:root {
    --verde: #405746;
    --verde-escuro: #263D30;
    --caramelo: #B77B45;
    --dourado: #D5A64D;
    --creme: #F8F4EB;
    --branco: #FFFFFF;
    --texto: #292C27;
    --cinza: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--creme);
    color: var(--texto);
    padding-bottom: 90px;
}

/* CABEÇALHO */

.cabecalho {
    background: linear-gradient(
        135deg,
        var(--verde-escuro),
        var(--verde)
    );
    color: white;
    text-align: center;
    padding: 45px 20px;
    border-bottom: 5px solid var(--dourado);
}

.logo {
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 5px;
    color: var(--dourado);
}

.cabecalho h1 {
    font-size: 22px;
    font-weight: normal;
    margin-top: 8px;
}

.cabecalho p {
    font-size: 14px;
    margin-top: 15px;
    color: #E5E5E5;
}

/* CAMPO DE PESQUISA */

.pesquisa {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 20px;
}

.pesquisa input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #DDD5C8;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: white;
}

.pesquisa input:focus {
    border-color: var(--caramelo);
}

/* CATEGORIAS */

.categorias {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 20px;
    max-width: 1100px;
    margin: auto;
    scrollbar-width: thin;
}

.categorias button {
    background: white;
    color: var(--verde-escuro);
    border: 1px solid #DDD5C8;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.categorias button.ativo,
.categorias button:hover {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
}

/* ÁREA DOS PRODUTOS */

.conteudo {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.conteudo h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    color: var(--verde-escuro);
    margin-bottom: 25px;
}

.lista-produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* CARDS DOS PRODUTOS */

.card-produto {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.card-produto:hover {
    transform: translateY(-4px);
}

.card-produto img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    object-position: center;
    background: #EAE5DA;
}
.card-info {
    padding: 18px;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--verde-escuro);
}

.card-info p {
    font-size: 13px;
    color: var(--cinza);
    margin-bottom: 12px;
}

.preco {
    color: var(--caramelo);
    font-size: 22px;
    font-weight: bold;
}

.btn-adicionar {
    width: 100%;
    background: var(--verde);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px;
    margin-top: 15px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-adicionar:hover {
    background: var(--verde-escuro);
}

/* BOTÃO FIXO DO CARRINHO */

.botao-carrinho {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--verde-escuro);
    color: white;
    padding: 17px 30px;
    border: 2px solid var(--dourado);
    border-radius: 40px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

#quantidadeCarrinho {
    background: var(--dourado);
    color: var(--verde-escuro);
    border-radius: 50%;
    padding: 4px 9px;
    margin-left: 10px;
}

/* JANELA DO CARRINHO */

.janela-carrinho {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 15px;
}

.janela-carrinho[hidden] {
    display: none;
}

.carrinho-conteudo {
    background: var(--creme);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 18px;
}

#fecharCarrinho {
    float: right;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

.carrinho-conteudo h2 {
    color: var(--verde-escuro);
    margin-bottom: 20px;
}

#itensCarrinho {
    margin-bottom: 20px;
}

.carrinho-conteudo h3 {
    margin: 20px 0;
    color: var(--verde-escuro);
}

.carrinho-conteudo p {
    margin-bottom: 15px;
}

#enviarWhatsApp {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* RODAPÉ */

footer {
    background: var(--verde-escuro);
    color: white;
    text-align: center;
    padding: 35px 20px;
    margin-top: 50px;
}

footer h3 {
    color: var(--dourado);
    font-size: 26px;
    margin-bottom: 10px;
}

footer p {
    margin-top: 8px;
    font-size: 14px;
}

/* TABLETS */

@media (max-width: 900px) {
    .lista-produtos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CELULARES */

@media (max-width: 600px) {
    .logo {
        font-size: 38px;
    }

    .cabecalho {
        padding: 35px 15px;
    }

    .cabecalho h1 {
        font-size: 18px;
    }

    .lista-produtos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-produto img {
        height: 210px;
    }

    .conteudo h2 {
        font-size: 25px;
    }

    .botao-carrinho {
        width: 90%;
        bottom: 12px;
    }

}
/* ORGANIZAÇÃO DOS ACRÉSCIMOS */

#listaAcrescimos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.item-acrescimo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e1d8c8;
    border-radius: 8px;
    cursor: pointer;
}

.item-acrescimo input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #385846;
}

.item-acrescimo span {
    flex: 1;
    font-size: 15px;
    color: #263e32;
}

.item-acrescimo strong {
    white-space: nowrap;
    font-size: 14px;
    color: #385846;
}
 

/* ACRÉSCIMOS - LA CASA */

#listaAcrescimos .item-acrescimo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: #F8F6EF;
    border: 1px solid #E3DCCB;
    border-radius: 12px;
}

#listaAcrescimos .item-acrescimo > span {
    flex: 1;
    min-width: 130px;
    color: #284536;
    font-weight: 600;
}

#listaAcrescimos .item-acrescimo > strong {
    color: #96701C;
    font-size: 14px;
}

#listaAcrescimos .item-acrescimo button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #284536;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#listaAcrescimos .item-acrescimo button:hover {
    background: #B38A32;
}

#listaAcrescimos .quantidade-acrescimo {
    min-width: 24px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #284536;
}


/* =========================================
   OBSERVAÇÃO DO PRODUTO - LA CASA
========================================= */

#janelaQueijo .campo-observacao-produto {
    display: block !important;
    width: 100% !important;
    margin: 20px 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

#janelaQueijo .campo-observacao-produto label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    color: #284536;
    font-size: 14px;
    font-weight: 600;
}

#janelaQueijo .campo-observacao-produto textarea {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 90px !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #D5C9B8;
    border-radius: 10px;
    background: #FFFDF7;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

#janelaQueijo .campo-observacao-produto textarea:focus {
    outline: none;
    border-color: #385845;
    box-shadow: 0 0 0 3px rgba(56, 88, 69, 0.12);
}

/* BOTÃO FIXO NA JANELA DE PERSONALIZAÇÃO */

#janelaQueijo .rodape-personalizacao {
    position: sticky;
    bottom: 0;
    background: #F8F6EF;
    padding: 15px 0;
    border-top: 1px solid #E3DCCB;
    z-index: 10;
}

#janelaQueijo .rodape-personalizacao .btn-adicionar {
    width: 100%;
}


/* JANELA DE CONFIRMAÇÃO PARA EXCLUIR PRODUTO */

.modal-excluir[hidden] {
    display: none !important;
}

.modal-excluir {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.modal-excluir-conteudo {
    background: #F8F6EF;
    width: 100%;
    max-width: 380px;
    padding: 30px 24px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.icone-excluir {
    font-size: 38px;
    margin-bottom: 12px;
}

.modal-excluir-conteudo h3 {
    color: #284536;
    font-size: 23px;
    margin-bottom: 12px;
}

.modal-excluir-conteudo p {
    color: #53645A;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.botoes-excluir {
    display: flex;
    gap: 12px;
}

.botoes-excluir button {
    flex: 1;
    padding: 13px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#cancelarExclusao {
    background: transparent;
    color: #284536;
    border: 1px solid #D8D0C0;
}

#confirmarExclusao {
    background: #284536;
    color: white;
    border: none;
}

#confirmarExclusao:hover {
    background: #B38A32;
}


/* CAMPO NOME DO CLIENTE - LA CASA */

.campo-nome-cliente {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.campo-nome-cliente label {
    font-size: 15px;
    font-weight: 600;
    color: #284536;
}

.campo-nome-cliente input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    font-size: 16px;
    color: #284536;
    background: #FFFFFF;
    border: 1px solid #D8D0C0;
    border-radius: 10px;
    outline: none;
}

.campo-nome-cliente input:focus {
    border-color: #B38A32;
    box-shadow: 0 0 0 3px rgba(179, 138, 50, 0.15);
}

/* AVISO DE NOME OBRIGATÓRIO */

#erroNomeCliente[hidden] {
    display: none !important;
}

#erroNomeCliente {
    color: #C94A42;
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0 0;
}