/* Estilos globais */
:root {
    --cor-principal: #357670;
    --cor-secundaria: #fff;
    --cor-escura: #2c2c2c;
    --cor-hover: #286b58;
    --fonte-principal: 'Rockwell', serif;
    --fonte-secundaria: Arial, sans-serif;
    --cor-link: #8bc34a;
    --cor-link-hover: #689f38;
    --largura-maxima: 1200px;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--fonte-secundaria);
    background-color: var(--cor-secundaria);
    color: var(--cor-escura);
    line-height: 1.6;
    padding-top: 150px; /* Adicionado para compensar o cabeçalho fixo */
}

/* Estilos do cabeçalho */
.cabecalho {
    font-family: var(--fonte-principal);
    font-size: 1.875rem; 
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--cor-principal);
    top: 0; 
    z-index: 1000;
    position: fixed;
    left: 0;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Esconde o cabeçalho quando necessário */
.cabecalho.escondido {
    top: -150px;
}

/* Container para a imagem do cabeçalho */
.header-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Estilos da imagem do cabeçalho */
.header-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo */
h1 {
    font-family: var(--fonte-principal);
    color: var(--cor-secundaria);
    font-size: 1.5rem;
    padding: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo {
    color: var(--cor-secundaria);
    font-weight: bold;
}

/* Navegação */
nav {
    margin-left: auto;
    display: flex;
    position: relative;
    z-index: 1;
}

nav ul {
    display: flex; 
    list-style: none;
    font-size: 1rem;
    padding: 0;
}

nav li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    color: var(--cor-secundaria);
    text-transform: uppercase;
}

nav li:hover {
    transform: scale(1.1);
    color: var(--cor-link-hover);
}

/* Ícone da logo */
.icone {
    display: flex;
    align-items: center;
}

.icone img {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.icone img:hover {
    transform: scale(1.1);
}

/* Estilo para o hambúrguer */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px; 
    background-color: var(--cor-secundaria);
    transition: all 0.3s ease;
}

/* Animações para o hambúrguer quando ativado */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    bottom: 8px;
}

/* Menu no mobile */
#menu {
    display: none;
    list-style-type: none;
    padding: 0;
}

#menu.active {
    display: block;
}

/* Estilos para telas pequenas (mobile) */
@media (max-width: 800px) {
    body {
        padding-top: 120px; /* Ajustado para o cabeçalho menor no mobile */
    }

    .cabecalho {
        height: 120px;
    }
    
    .icone img {
        width: 150px;
    }

    nav {
        position: absolute;
        background-color: var(--cor-principal);
        width: 100%;
        top: 120px;
        display: none;
        left: 0;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    nav ul li {
        padding: 1rem;
        border-bottom: 1px solid var(--cor-escura);
    }

    .hamburger {
        display: flex;
    }
}

.menumodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.menu-content {
    background-color: var(--cor-principal);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: var(--cor-secundaria);
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

.menumodal ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.menumodal li {
    font-size: 1.2rem;
    color: var(--cor-secundaria);
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menumodal li:last-child {
    border-bottom: none;
}

.menumodal li:hover {
    transform: scale(1.05);
}

/* Estilos para telas grandes (desktop) */
@media (min-width: 801px) {
    nav {
        display: flex;
    }

    nav ul {
        flex-direction: row;
    }
}

/* Estilos para os produtos */
.produtos {
    font-family: var(--fonte-secundaria);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    margin-top: 2rem; /* Adicionado espaço extra no topo */
}

/* Estilos para os produtos com imagens */
.produtos2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    justify-items: center;
    width: 100%;
    max-width: var(--largura-maxima);
    margin: 0 auto;
}

/* Ajustes nas imagens dentro da grid */
.produtos2 img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover nas imagens */
.produtos2 img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Novo contêiner para o texto */
.produtos2 .descricao {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
    color: var(--cor-escura);
    font-size: 1rem;
    line-height: 1.5;
}

/* Melhorando a responsividade */
@media (max-width: 800px) {
    .produtos2 {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }

    .menumodal.active {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Estilos da barra de oferta */
.barra-oferta {
    background-color: var(--cor-principal);
    color: var(--cor-secundaria);
    padding: 1rem;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Inicialmente escondido */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 80%;
    text-align: center;
}

.barra-oferta p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.barra-oferta .btn-oferta {
    background-color: var(--cor-link);
    color: var(--cor-secundaria);
    padding: 0.5rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.barra-oferta .btn-oferta:hover {
    background-color: var(--cor-link-hover);
}

/* Estilos do modal */
.modal {
    display: none; /* Inicialmente escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-conteudo {
    background-color: var(--cor-secundaria);
    color: var(--cor-escura);
    padding: 2rem;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal p {
    font-size: 1rem;
    line-height: 1.5;
}

.fechar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cor-escura);
}

.fechar:hover {
    color: var(--cor-link);
}
