* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Montserrat", sans-serif;
}

body {
    background-image: linear-gradient(circle, #000030, #0131708a);
    background-color: #000030;
    color: #000000;
    font-size: 16px;
}

/* Estilo para o menu hambúrguer */
.hamburger-menu {
    display: none;
    /* Esconde por padrão em telas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

header {
    max-width: 100%;
    margin: 0% 5%;
    align-items: center;
    justify-content: space-between;
    display: flex;

}

header img {
    max-width: 100%;
    /* A imagem nunca vai ultrapassar 100% da largura do seu contêiner */
    width: 250px;
    height: auto;
    /* A altura se ajusta automaticamente para manter a proporção */
    display: block;

}

nav ul {
    display: flex;
    gap: 50px;
    text-decoration: none;
}

nav ul li a {
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease-in-out;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 25px;
    width: 0;
    height: 2px;
    background-color: #00f7ff;
    transition: all 0.3s ease;

}

header nav ul li a:hover {
    color: #00f7ff;
}

header nav ul li a:hover::after {
    width: 100%;

}

.container {
    display: flex;
    justify-content: center;

}

.list {
    width: 100%;
    margin: 0 1%;
}

.item {
    display: none;
}

.item.active {
    display: block;
}

img {
    max-width: 100%;
    /* A imagem nunca vai ultrapassar 100% da largura do seu contêiner */
    height: auto;
    /* A altura se ajusta automaticamente para manter a proporção */
    display: block;
    /* Opcional, mas útil para remover espaços indesejados abaixo da imagem */
    opacity: 1;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    /* Espaçamento entre as imagens */
    margin: 5% 1%;
}

/* Opcional: Para garantir que as imagens não distorçam */
.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.arrows {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    /* Adicione esta linha */
    left: 0;
    z-index: 5;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.3);
}

footer {
    margin-top: 3%;
    bottom: 0;
    max-width: 100%;
    height: 60px;
    background-color: transparent #000030;
    color: #fff;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* Media query para telas menores (smartphones e tablets) */
@media (max-width: 768px) {
    header nav {
        display: none;
        /* Oculta a navegação */
        position: fixed;
        top: 0;
        right: 0;
        width: 30%;
        /* Largura do menu quando aberto */
        height: 40%;
        background-color: #000030;
        padding-top: 60px;
        z-index: 999;
        /* Assegura que o menu fique na frente do conteúdo */
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        /* Esconde o menu para a direita */
    }

    header nav.active {
        display: flex;
        /* Exibe o menu quando a classe 'active' é adicionada */
        transform: translateX(0);
        /* Desliza o menu para a esquerda, tornando-o visível */
    }

    header nav ul {
        margin: 20px 0;
        flex-direction: column;
        /* Alinha os itens da lista verticalmente */
        align-items: flex-end;
        /* Centraliza os itens horizontalmente */
        margin-right: 60px;
        width: 100%;
        gap: 20px;
        /* Adiciona um espaço entre os links */
    }

    header nav ul li a {
        padding: 10px 0;
        /* Adiciona padding vertical aos links */
        width: 100%;
        text-align: center;
    }

    .hamburger-menu {
        display: block;
        /* Mostra o hambúrguer */
    }

    /* Opcional: Para alinhar o logo e o hambúrguer */
    header {
        justify-content: space-between;
    }

    /* ... seu código CSS existente para o menu ... */

    .product-image-container {
        width: 100%;
        position: relative;
        padding-bottom: 100%;
        /* Proporção 3:4 (4 / 3 * 100) */
        overflow: hidden;
    }

    .container .list img {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        height: 48%;
        object-fit: cover;
        /* Faz com que a imagem cubra o contêiner */
        object-position: center;
        /* Foca o centro da imagem */
        object-position: calc(50%);
    }

    .arrows {
        position: absolute;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        top: 38%;
        transform: translateY(-50%);
        /* Adicione esta linha */
        left: 0;
        z-index: 5;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}