body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #000;
}

.logo img {
    max-width: 130%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #e60000;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e60000;
}

.search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: 100px;   
}

header .search-bar button {
    margin-left: 5px; /* Adiciona espaçamento à direita do botão de busca */
}

.search-bar input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    width: 300px;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: #e60000;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background-color: #b30000;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: auto;
    width: 75%;
    border-top: none;
    background-color: #151515;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #1a1a1a;
}


/* */
.filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #db0000;
}

.filter-bar .filter-btn {
    background-color: #db0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 15px;
}

.filter-bar .filter-btn:hover,
.dropdown-content .filter-btn:hover {
    background-color: #a70000;
    color: #fff;
}

.filter-bar .filter-btn.active,
.dropdown-content .filter-btn.active {
    background-color: #db0000;
    color: #fff;
}

/* Estilos para a primeira filter-bar */
.filter-bar-primary {
    background-color: #e60000;
    padding: 3px;
    overflow: visible;
}

/* Estilos para os botões da primeira filter-bar */
.filter-bar-primary .filter-btn {
    color: #fff;
    background-color: #e60000;
}


/* Estilos específicos para o dropdown na primeira filter-bar */
.filter-bar-primary .dropdown-content {
    background-color: #e60000; /* Fundo vermelho */
    padding: 10px 0;
    width: 100%; /* Garante que o dropdown ocupe a largura total */
    gap: 2px;
    overflow: visible;
    border-radius: 5px;
}

.filter-bar-primary .dropdown-content .filter-btn {
    display: block; /* Define cada botão como um bloco */
    color: #fff;
    background-color: #e60000;
    padding: 5px 5px;
    text-align: left;
    border: none;
    width: 100%; /* Cada botão ocupa 100% da largura do dropdown */
    text-indent: 10px; /* ajuste o valor conforme necessário */
}

.filter-bar-primary .dropdown-content .filter-btn:hover {
    background-color: #b30000; /* Fundo ao passar o mouse */
}




/* Início Section */
#home {
    background-image: url('images/background-home.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.home-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.home-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.whatsapp-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #1da851;
}

.whatsapp-button i {
    margin-right: 10px;
}

/* Sobre Section */
#sobre {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    color: #fff;
}

.content {
    position: relative;
    z-index: 1;
}



#sobre .gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 30px auto;
}

#sobre .gallery img {
    width: calc(25.00% - 10px);
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#sobre .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.maps-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4285F4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.maps-link:hover {
    background-color: #357ae8;
}


/* Produtos Section */
#products {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

#products h2 {
    position: relative;
    z-index: 1;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo com transparência */
    min-width: 160px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    z-index: 20;
    padding: 10px; /* Espaço interno */
    max-height: 250px; /* Limite de altura */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Ajuste automático de colunas */
    gap: 10px; /* Espaço entre os itens */
    overflow-y: auto;
    white-space: nowrap; /* Evita quebra de linha nos itens */
    z-index: 2;
}

.dropdown-content .filter-btn {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: #e60000; /* Cor de fundo suave para os botões */
    color: #fff;
    margin: 2px 0; /* Margem entre os itens */
    border-radius: 0px; /* Bordas arredondadas */
    width: 100%; /* Faz com que o botão ocupe toda a largura do grid */
    box-sizing: border-box; /* Inclui padding e border no tamanho total */
}

.dropdown-content .filter-btn:hover {
    background-color: #b30000; /* Cor de fundo ao passar o mouse */
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown:focus-within .dropdown-content {
    display: grid;
}


.filter-btn {
    background-color: #e60000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #b30000;
}

.subcategories {
    margin-left: 20px;
}


.products-grid {
    display: flex;
    justify-content: flex-start; /* Alinha os produtos no início */
    flex-wrap: wrap;
    position: relative;
    margin: 0 auto; /* Centraliza a grid na página */
    margin-top: 20px;
    max-width: 1300px; /* Define uma largura máxima para a grid */
    z-index: 0;
}

.product-card {
    background: linear-gradient(135deg, #444 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: calc(25.00% - 20px);
    max-width: 20em;
    height: 100%;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: border-box;
    display: flex;
    z-index: 1
}

.product-card.show {
    display: block;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(51, 51, 51, 0.6);
}

.product-card img {
    width: 100%;
    max-width: 300px; 
    max-height: 300px; 
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card h3 {
    height: 4.5em; /* Tamanho para nome do produto */
    overflow: hidden; 
    margin-bottom: 10px;
}

.product-card p {
    min-height: 3em;
    margin-bottom: 10px;
    color: #ddd;
}

.product-info {
    flex-grow: 1;
    text-align: center;
}

.product-card .price {
    display: none;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-card .price::before {
    content: 'R$';
    margin-right: 2px;
    font-size: 0.8em;
}

.whatsapp-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 15px 30px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold; 
    transition: background-color 0.3s;
}

.whatsapp-product-button:hover {
    background-color: #1da851;
}

.whatsapp-product-button i {
    margin-right: 7px;
}

#load-less,
#load-more {
    display: block;
    margin: 20px auto;
    width: 120px;
    padding: 10px 20px;
    background-color: #e60000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
}

#load-less:hover,
#load-more:hover {
    background-color: #b30000;
}

/* Contato Section */
#contact {
    position: relative;
    padding: 60px 20px;
    text-align: center;
}

#contact h2,
#contact p {
    position: relative;
    z-index: 1;
}

#contact .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 24px;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon:hover {
    background-color: #e60000;
    transform: scale(1.1);
}

.social-icon i {
    margin: 0;
    padding: 0;
}

/* Footer */


footer {
    background-color: #000000;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.footer-section {
    flex: 1;
    margin: 30px 180px
}

.footer-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    font-size: 13px;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section ul li i {
    margin-right: 10px;
    font-size: 18px;
    color: #e60000;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #e60000;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #000000;
}


@media (max-width: 1024px) {

    #sobre .gallery img {
        width: 45%; /* Imagens ocupam 50% da largura */
    }

    .product-card {
        width: calc(33.33% - 20px); 
    }
}

@media (max-width: 768px) {

    #sobre .gallery img {
        width: 45%; /* Imagens ocupam 50% da largura */
    }
    
    .product-card {
        width: calc(50% - 20px); 
    }

    .filter-buttons {
        flex-wrap: wrap; 
        justify-content: center; 
        margin-bottom: 10px;
    }

    .filter-btn {
        margin: 5px; 
        font-size: 0.875rem; 
    }

    #load-more, #load-less {
        width: 100%; 
        margin: 10px 0; 
        font-size: 1rem; 
    }

    .product-card {
        width: calc(50% - 20px); 
    }

    .product-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limita a 2 linhas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .filter-buttons {
        flex-wrap: wrap; 
        justify-content: center; 
    }

    .filter-btn {
        margin: 5px; 
        font-size: 0.875rem; 
    }

    #load-more, #load-less {
        width: 100%; 
        margin: 10px 0; 
        font-size: 1rem; 
    }

    .whatsapp-product-button {
        padding: 10px 20px; /* Reduz o padding */
        margin: 5px;
        font-size: 12px; /* Fonte menor */
    }


    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    header nav {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    header .search-bar {
        width: 100%;
        padding: 0 10px;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        margin-left: 10px;
    }

    header .search-bar input[type="text"] {
        width: 80%;
        margin-right: 5px;
        border-radius: 4px;
    }

    header .search-bar button {
        width: auto;
        border-radius: 4px;
    }

    header nav ul {
        flex-direction: row; 
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    header nav ul li {
        margin: 0 10px; 
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 20px 0;
        text-align: center;
    }

    .footer-section ul li {
        justify-content: center;
    }

    .filter-bar {
        white-space: nowrap;
        overflow-x: auto; 
        justify-content: flex-start; /* Alinha os botões ao início da barra em telas menores */
        padding: 0 10px; /* Adiciona espaçamento nas laterais */
    }

    .filter-button {
        flex-shrink: 0; /* Impede que os botões encolham */
    }
}


@media (max-width: 480px) {
    .product-card {
        width: calc(50% - 10px); 
        margin: 5px;
        padding: 5px; 
    }

    .product-card h3 {
        font-size: 0.875rem; 
    }

    .product-card p {
        font-size: 0.75rem; 
    }

    .product-card .price {
        font-size: 0.875rem; 
    }

    .footer-section ul li {
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul li i {
        margin-right: 0;
        margin-bottom: 5px;
    }

}
