 *
 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 }

/* Espaçamento entre o Topo (Header) e o Menu (Nav) */
header {
    margin-bottom: 1px; /* Ajuste o valor para mais ou menos espaço */
}

/* Espaçamento entre o Menu (Nav) e o Banner */
nav {
    margin-bottom: 1px; /* Geralmente o banner precisa de um destaque maior */
}

/* Adiciona o espaço entre o banner e os produtos */
.featured-section {
    margin-top: 1px; /* Ajuste o valor (50px) conforme desejar */
}

/* Garantia de que as DIVs ocupem a largura toda antes do espaço */
header, nav, .banner {
    width: 100%;
    display: block;
}

body {
    background-color: var(--cinza-claro);
    color: var(--texto-escuro);
    font-family: sans-serif;
    margin: 0;
}

:root {
    --azul-primario: #003366;    /* Azul Marinho (Confiança) */
    --azul-destaque: #007bff;    /* Azul Royal (Ação/Links) */
    --branco-puro: #ffffff;      /* Fundo principal */
    --cinza-claro: #f4f7f6;      /* Fundo secundário/suave */
    --texto-escuro: #333333;     /* Cor do texto para leitura */
}

.container {
    display: flex; /* Ativa o alinhamento flexível */
    justify-content: space-between; /* Espaça os três blocos igualmente */
    align-items: center; /* Centraliza verticalmente */
    padding: 10px 20px;
    background-color: #003366;
}
/* ================= HEADER ================= */

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #003366;
    gap: 15px;
    flex-wrap: wrap; /* ESSENCIAL */
}

header {
  background: #003366;
  color: #fff;
}

/* LOGO */
.logo img {
    height: 75px;
    max-width: 100%;
}

/* BUSCA */
.search-box {
    display: flex;
    flex-grow: 1;
    max-width: 500px; /* melhor que 40% */
    min-width: 250px;
    margin: 0 20px;
    border: 3px solid #000;
    border-radius: 8px;    
    overflow: hidden;
    background-color: #fff;
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    border: none; 
    padding: 12px;
    flex: 1;
    outline: none; 
    font-size: 16px;
}

.search-box button {
    background-color: #005eff;
    color: #ffffff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    text-transform: uppercase;
}

.search-box button:hover {
    background-color: #0044cc;
}

/* REDES */
.redes-sociais {
    display: flex;
    align-items: center;
}

.redes-sociais a {
    opacity: 0.8;
}

.redes-sociais a:hover {
    opacity: 1;
}

.redes-sociais img {
    width: 24px;
    margin-left: 5px;
}

/* ================= RESPONSIVO ================= */

@media (max-width: 768px) {

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

    .logo img {
        height: 60px;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }

    .search-box input {
        font-size: 14px;
        padding: 10px;
    }

    .search-box button {
        font-size: 12px;
        padding: 0 15px;
    }

    .redes-sociais {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 5px;
    }
}
/* Inicio Menus*/
nav {
   background-color: #003366;
   font-family: Arial, sans-serif;
   width: 100%;
   margin-bottom: 1px; /* Remova qualquer margem inferior */
}

/* Botão Mobile a esqerda */
.menu-toggle {
    display: none;
    background: #ffffff;
    color: white;
    padding: 15px;
    border: none;
    width: 100%;
    text-align: left; /* TEXTO CENTRALIZADO NO MOBILE */
    cursor: pointer;
    font-weight: bold;
}

/* Menu Principal */
nav {
    background-color: #003366;
    font-family: Arial, sans-serif;
    width: 100%;
}

.menu-toggle {
    display: none; /* Escondido no Desktop */
    background: transparent;
    color: white;
    padding: 15px 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Indicador de Seta */
.has-submenu > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s;
}

/* Submenu Desktop */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003580;
    min-width: 220px;
    list-style: none;
    padding: 0;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
}

/* Hover Desktop */
@media (min-width: 769px) {
    .has-submenu:hover .submenu {
        display: block !important;
    }
    .has-submenu:hover > a::after {
        transform: rotate(180deg);
    }
}

.submenu li a {
    padding: 12px 20px;
    font-size: 14px;
    justify-content: flex-start;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; /* Mostra botão no mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        justify-content: space-between; /* Seta para a direita */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .submenu {
        position: static;
        transform: none;
        width: 100%;
        background-color: #00254d;
    }

    .submenu li a {
        padding-left: 40px;
        background-color: #001f40;
    }

    /* Abre o submenu no mobile via JS */
    .has-submenu.open .submenu {
        display: block;
    }
    
    .has-submenu.open > a::after {
        transform: rotate(180deg);
    }
}
/* Fim menu Principal

/* Inicio CSS banner*/
.banner{
    background:#003366;
    padding:15px;
    box-sizing:border-box;
}
.banner-viewport{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    max-width:1200px;
    margin:0 auto;
}
.banner-slides{
    display:flex;
    transition:transform .55s cubic-bezier(.22,.9,.35,1);
}
.banner-slides img{
    flex:0 0 100%;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.banner-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    background:rgba(0,0,0,.45);
    color:#fff;
    border:none;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
}
.banner-btn.prev{
    left:10px;
    
} .banner-btn.next{
    right:10px;
}

/* Fim CSS dos banner*/
/* Inicio CSS dos Destaques*/
.featured-section {
    background-color: #003366;
    margin-top: 0;
    padding: 20px 10px;
    overflow: hidden;
}

.featured-section h2 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

/* AREA VISÍVEL */
.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* TRILHO */
.product-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
}

/* CARD */
.product-card {
    flex: 0 0 280px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IMAGEM - Container fixo para manter o padrão */
.product-img {
    width: 100%;           /* Ocupa a largura total do card branco */
    height: 180px;         /* Altura fixa para todos os cards ficarem iguais */
    background: #f4f4f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;      /* Garante que nada saia do arredondamento */
}

/* Garante que a foto se ajuste ao container cinza */
.product-img img {
    width: 100%;           /* Permite que a largura seja automática */
    height: 100%;          /* Permite que a altura seja automática */
    max-width: 160px;        /* Limita a 90% do container */
    max-height: 160px;       /* Limita a 90% do container */
    object-fit: contain;   /* Mantém a proporção */
    display: block;        /* Remove espaços vazios de elementos inline */
}


/* TEXTO - Centralizado */
.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;    /* Centraliza o texto */
    color: #333;           /* Cor escura para ler sobre o branco */
    flex-grow: 1;          /* Empurra o botão sempre para o rodapé */
}

/* BOTÃO - Ajuste de hover */
.btn-buy {
    background-color: #004aad;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    margin-top: auto;      /* Alinha o botão na base se o texto for curto */
}
/* Responsividade: quantos cards por view */
@media (min-width: 1200px){
    .product-card{
        width: calc((100% - 16px*3) / 4);
    }}
@media(min-width: 900px) and (max-width: 1199px){
    .product-card{width: calc((100% - 16px*2) / 3);
    }}
@media(min-width: 600px) and (max-width: 899px){
    .product-card{width: calc((100% - 16px*1) / 2);
    }}
@media(max-width: 599px){
    .product-card{width: 100%;
    }}
/* Regras de reforço para evitar empilhamento por regras globais */
#product-track{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}
#product-track .product-card{
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}
#product-track .product-img img{
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}
/* Fim CSS dos destaques */

/* INICIO RODAPÉ */
footer {
    background-color: #003366; /* Um azul marinho escuro */
    color: #ffffff;            /* Texto branco */
    padding: 10px 0;           /* Espaçamento interno para não ficar apertado */
    text-align: center;        /* Centraliza o texto do CNPJ */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 1px;
}

footer p {
    margin: 0;
    width: 100%;
    font-family: sans-serif;
    font-size: 10px; /* <--- Ajuste este valor (12px para menor, 16px para maior) */
    font-weight: normal; /* Use 'bold' se quiser em negrito */
}
/* FIM RODAPÉ */