
/* ESTILOS GERAIS (mantidos como estavam) */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}
.header {
    background-color: #04509c;
    color: #ffffff;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Adicionado para posicionamento correto do menu */
}
.logo img {
    max-height: 75px;
    width: auto;
}
.nav {
    margin-right: 20px;
}
.nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0px 2px;
    font-size: 17px;
}
.nav a:hover {
    border-top: solid 2px rgb(231, 229, 224);
}
#home {
    color: rgb(255, 196, 0);
    font-weight: bold;
    border-top: none;
}
#home:hover {
    border-bottom: solid 2px rgb(245, 191, 15);
}

/* ESTILOS DO MENU HAMBÚRGUER */
.menu-toggle {
    display: none; /* Escondido em telas maiores */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    left: 0;
    transition: all 0.3s ease;
}
.hamburger::before {
    top: -8px;
}
.hamburger::after {
    top: 8px;
}


/* Estilo do menu de navegação (padrão para telas maiores) */
.nav {
    display: flex; /* Mostra o menu em telas maiores */
    gap: 20px; /* Espaçamento entre os links */
}
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%; /* Ocupa 80% da largura da tela */
    margin: 0 auto; /* Centraliza o carrossel */
    height: auto; /* Altura automática */
}
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    min-width: 100%; /* Cada item ocupa 100% da largura do contêiner */
    box-sizing: border-box;
}
.carousel-item img {
    width: 100%; /* A imagem ocupa 100% do contêiner */
    height: 290px; /* Mantém a proporção da imagem */
    display: block;
    margin-top: 5px;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10; /* Garante que as setas fiquem acima das imagens */
}
.carousel-control.prev {
    left: 10px;
}
.carousel-control.next {
    right: 10px;
}
.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.products {
    padding: 40px 20px;
    background-color: #f4f4f4;
}
.products h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #333;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
#ajust img {
    width: 55%;
    height: 220px;
}
.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}
.product-card p {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0 15px;
}
.buy-now {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a5d8ff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.buy-now:hover {
    background-color: #74c0fc;
    transform: scale(1.05);
}


/* Seção dos Quadrados */

.categories-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4vw; /* Usando viewport width para padding responsivo */
}
.categories-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -80px;
    gap: 10vw; /* Espaçamento relativo */
}
.categories-section .col-md-6 {
    flex: 1 1 100%; /* Em telas pequenas ocupa 100% */
    max-width: 100%;
}


.categories-section {
    padding: 4vw 0;
    background-color: #f1f1f1;
}
.categories-section h2 {
    text-align: center;
    margin-bottom: 3vw;
    font-size: clamp(24px, 6vw, 30px); /* Tamanho de fonte responsivo */
}
.category-box {
    display: flex;
    align-items: center;
    padding: 1vw;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 3vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    width: 100%;
    text-decoration: none; /* Remover sublinhado do link */
}
.category-box img {
    width: 100vw;
    height: 100vw;
    max-width: 100px;
    max-height: 100px;
    margin-right: 3vw;
}
.category-box span {
    font-weight: bold;
    color: #007bff;
    font-size: clamp(16px, 4vw, 18px); /* Tamanho de fonte responsivo */
}
.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* PROPAGANDAS */
.ads-wrapper {
    width: 97.9%;
    margin-left: 1.1%;
    overflow: hidden; /* Esconde o overflow */
    position: relative;
}
.ads-carousel {
    display: flex;
    width: max-content; /* Faz o carrossel ocupar o espaço necessário */
    animation: ads-scroll 30s infinite linear; /* Animação infinita */
}
.ads h2{
color: rgb(0, 0, 0) ;
text-align: center;
font-size: 26px;
}
.ad-item {
    flex: 0 0 auto; /* Mantém o tamanho original dos itens */
    margin-right: 10px; /* Espaço entre os itens */
}
.ad-item img {
    max-width: 100%;
    height: 150px;
    border-radius: 5px;
}
@keyframes ads-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move para a esquerda até a metade do conteúdo */
}
@keyframes ads-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer {
    background-color: #064483;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
}
