:root {
    --fundo: #fff8e1;
    --fundo2: #fef8f2;
    --botao: #D35400;
    --hover--botao: #A04000;
    --texto: #2E2E2E;
    --texto2: #cfcfcf;
    --destaque--preco: #F4B400;
}

@media screen and (max-width: 768px) {

    .logo img {
        transform: scale(2.5);
    }

    .navbar .nav--links {
        z-index: 10;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .hero--conteudo h1 {
        font-size: 25px;
        text-align: center;
    }

    .hero--conteudo p {
        font-size: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--fundo);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 100px;
    height: 100px;
}

.logo img:hover {
    transform: scale(2.5);
}

.nav--links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav--links a {
    text-decoration: none;
    color: var(--texto);
}

.nav--links a:hover {
    color: var(--botao);
}

.carrinho {
    position: relative;
    cursor: pointer;
}

.carrinho:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contador {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.hero {
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)), url('../images/Fundo.png') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fundo2);
    color: var(--texto2);
}

.hero--conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero--conteudo h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero--conteudo p {
    font-size: 24px;
    margin-bottom: 40px;
}

.btn {
    cursor: pointer;
    border: none;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--botao);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--hover--botao);
}

.sobre {
    padding: 80px 0;
    background-color: var(--fundo);
    color: var(--texto);
    text-align: center;
}

.sobre h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--texto);
}

.sobre p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--texto);
}

.produtos {
    padding: 80px 0;
    background-color: var(--fundo2);
    color: var(--texto);
}

.produtos h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--texto);
    text-align: center;
}

.produtos--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.produto--card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--texto);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.produto--card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.produto--imagem img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.produto--card h3 {
    font-size: 24px;
    margin-top: 10px;
    color: var(--texto);
}

.produto--card p {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--texto);
}

.produto--card span {
    font-size: 18px;
    font-weight: bold;
    color: var(--destaque--preco);
}

.localizacao {
    padding: 80px 0;
    background-color: var(--fundo);
    color: var(--texto);
}

.localizacao h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--texto);
    text-align: center;
}

.contato--info {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--texto);
    text-align: center;
}

.mapa--localizacao {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
}

.mapa--localizacao iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

footer {
    padding: 20px 0;
    background-color: var(--fundo);
    color: var(--texto);
    text-align: center;
}

/* Código para abrir o MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fundo escuro */
}

.modal.ativo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal--conteudo {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.fechar {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Estilo dos itens no carrinho */
.carrinho--item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.btn-remover {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: red;
}

/* Notificação */

/* 1. O CONTAINER DEVE SER INVISÍVEL */
#notificacao-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: transparent;
    pointer-events: none;
    /* Deixa clicar no que estiver atrás dele */
}

/* 2. APENAS A MENSAGEM TEM COR */
.notificacao {
    pointer-events: auto;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: surgindo 0.3s ease-out;
    transition: opacity 0.3s ease;
    /* Para o sumiço suave */
}

@keyframes surgindo {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* modal footer */

.modal--footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#btnFinalizar {
    width: 100%;
    /* Ocupa a largura total do modal */
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #28a745;
    /* Verde para destacar a conclusão */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#btnFinalizar:hover {
    background-color: #218838;
}

/* Deixa o valor total um pouco maior */
#valorTotal {
    font-size: 22px;
    color: var(--destaque--preco);
}

/* Visuais para botão adicionar e remover */

/* Estilo dos botões de quantidade (+ e -) */
.qtd--controles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-qtd {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-qtd:hover {
    background-color: var(--destaque--preco);
    color: white;
    border-color: var(--destaque--preco);
}

/* Estilo do botão X (agora para excluir a linha toda) */
.btn-excluir-item {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}