/* RESET E GERAL */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e6cab4;
}

@media (max-width: 1000px) {
    .titulo-site {
        display: none;
    }
}

/* HEADER FIXO */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    padding: 10px 0;
    background: rgba(82, 49, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

header::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
}

/* LOGO */
.logo-central {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-central img {
    height: 100px;
    margin-top: -10px;
}

.logo-central h1 {
    font-size: 35px;
    color: #fbf9f7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
}



/* CONTAINER DE PRODUTOS */
.produtos-container {
    padding: 115px 20px 20px;
    display: grid;
    gap: 12px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(160px, auto));
}

@media (max-width: 1000px) {
    .produtos-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, auto));
    }
}

/* PRODUTOS */
.produto {
    width: 150px;
    height: 380px;
    padding: 5px;
    border: 4px solid #d4a73a;
    border-radius: 16px;
    background: linear-gradient(to bottom, #fff8e1, #fce5b5);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(212, 167, 58, 0.8);
}

.produto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1000px) {
    .produto img {
        height: 150px;
    }
}

.produto h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.produto p {
    font-size: 14px;
    margin: 5px 0;
}

.produto button,

#finalizar-whatsapp {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    margin: 5px auto;
    border-radius: 8px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.produto button:hover,
#finalizar-whatsapp:hover:not(:disabled) {
    background-color: #218838;
    transform: scale(1.05);
}

/* BOTÕES DE CARRINHO */
.botoes-carrinho button {
    margin: 5px 5px 0 0;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: transform 0.2s ease;
}

.botoes-carrinho button:hover {
    transform: scale(1.2);
}

.botao-mais {
    background-color: #28a745;
}

.botao-mais:hover {
    background-color: #218838;
}

.botao-menos {
    background-color: #dc3545;
}

.botao-menos:hover {
    background-color: #c82333;
}

.botao-remover {
    background-color: #000;
    color: #fff;
}

.botao-remover:hover {
    background-color: #333;
}

/* CARRINHO */
.carrinho {
    padding: 20px;
    background-color: #f9f9f9;
}

.carrinho ul {
    list-style: none;
    padding-left: 0;
}

#lista-carrinho {
    list-style: none !important;
    padding: 0 10px !important;
    margin: 0 !important;
}

/* PAINEL DO CARRINHO */
.painel-carrinho {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 10px 10px 20px 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    transform: translateX(100%);
}

/* PAGAMENTO */
#opcoes-pagamento {
    background-color: #fff8e1;
    border: 2px solid #d4a73a;
    border-radius: 12px;
    padding: 20px;
    max-height: 350px;
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4e342e;
    box-shadow: 0 0 8px rgba(212, 167, 58, 0.2);
    margin-left: 13px;
}

.painel-carrinho.aberto {
    transform: translateX(0);
}

.painel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.painel-header h2 {
    flex: 1;
    color: #000;
    text-align: center;
    font-size: 30px;
    margin: 0;
}

.painel-header button {
    background-color: #ffc2c8;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.painel-header button:hover {
    background-color: #c82333;
}

.painel-carrinho button[style*="red"] {
    background-color: #dc3545;
    color: white;
}

.painel-carrinho button[style*="red"]:hover {
    background-color: #c82333;
}

/* ITENS NO CARRINHO */
.item-carrinho {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.item-carrinho img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.info-carrinho p {
    margin: 4px 0;
    font-size: 25px;
    line-height: 1.2;
}

.info-carrinho p strong {
    font-size: 22px;
}

/* QUANTIDADE */
.quantidade-box {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* ÍCONES */
#contador-carrinho {
    position: absolute;
    top: 52px;
    right: 3px;
    background-color: red;
    color: white;
    border-radius: 20%;
    padding: 7px 14px;
    font-size: 20px;
}

.icone-carrinho {
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    transform: translateY(-50%);
}

/* ANIMAÇÃO */
.animacao-quantidade {
    position: fixed;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    padding: 8px 12px;
    font-weight: bold;
    z-index: 10000;
    pointer-events: none;
    transition: transform 5s cubic-bezier(0.2, 0, 0, 0.2), opacity 5s ease;
    opacity: 5;
}

/* BOTÃO MODAL */
.botao-modal {
    position: absolute;
    right: 100px;
    top: 55%;
    transform: translateY(-50%);
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to bottom, #f6d365, #fda085);
    color: #4a2c00;
    border: 2px solid #d5a253;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.botao-modal::before {
    content: "🧊🍺🧊";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    white-space: nowrap;
}

.botao-modal:hover {
    background: linear-gradient(to bottom, #ffe27a, #f6c26b);
    color: #3a2000;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* TOTAL DO CARRINHO */
#total-carrinho {
    margin-top: 0;
    font-size: 28px;
    font-weight: bold;
    color: #4a2c00;
    padding-left: 50px;
}

/* MODAL */
.modal-fundo,
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1200;
}

#modal.aberto {
    display: flex;
}

.modal-conteudo {
    background: #e6cab4;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1000px) {
    .modal-conteudo {
        width: 90%;
    }
}

.modal-conteudo h2 {
    margin-top: 0;
    text-align: center;
    font-size: 28px;
}

.modal-conteudo video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-conteudo .imagens-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-conteudo .imagens-container img {
    width: 32%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-conteudo textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* TEXTO FIXO */
.texto-fixo-modal {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    color: #000000;
}

#opcoes-pagamento label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 16px;
}

#opcoes-pagamento select,
#opcoes-pagamento input[type="text"] {
    width: 92%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #d4a73a;
    border-radius: 6px;
    background-color: #fff3cd;
    color: #5d4037;
    font-size: 15px;
}

#opcoes-pagamento input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

#finalizar-whatsapp:disabled {
    background-color: #e0c27c;
    cursor: not-allowed;
}

/* MODAL DE IMAGEM */
.modal-imagem {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;

    background-color: rgba(0, 0, 0, 0.3);
    /* Transparência mais leve */
    backdrop-filter: blur(6px);
    /* Efeito fosco */
    -webkit-backdrop-filter: blur(6px);
    /* Suporte para Safari */

    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-imagem img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.fechar-modal,
.fechar-modal-sobre {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* RESPONSIVIDADE BÁSICA */
@media (max-width: 1500px) {
    .painel-carrinho {
        width: 96%;
    }

    .produto {
        width: 90%;
    }
}

.banner-cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.banner-cookies.hide {
    opacity: 0;
    visibility: hidden;
}

.banner-cookies button {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    margin: 1px auto;
}
