/* ========================================
   COMPONENTES DO NOVO LAYOUT
   ======================================== */
/* ========================================
   NAVEGAÇÃO DE CATEGORIAS - ESTILO LIMPO
   ======================================== */
.new-header-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: visible;
}

.new-header-nav-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #1083c6 transparent;
    flex-wrap: nowrap;
}

.new-header-nav-inner::-webkit-scrollbar {
    height: 6px;
}

.new-header-nav-inner::-webkit-scrollbar-track {
    background: transparent;
}

.new-header-nav-inner::-webkit-scrollbar-thumb {
    background: #1083c6;
    border-radius: 3px;
}

.new-header-nav-item {
    padding: 10px 20px;
    background: transparent; /* ✅ SEM COR DE FUNDO */
    color: #333; /* ✅ TEXTO PRETO */
    border: 1px solid #ddd; /* ✅ BORDA SUTIL */
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.new-header-nav-item:hover {
    background: #f8f9fa; /* ✅ HOVER CINZA CLARO */
    border-color: #1083c6;
    transform: translateY(-2px);
}

.new-header-nav-item.active {
    background: #0d6bb7; /* ✅ VERDE ESCURO QUANDO SELECIONADO */
    color: white;
    border-color: #0d6bb7;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
}

/* ========================================
   DROPDOWN "+MAIS" - FONTE LARANJA
   ======================================== */
.nav-more-container {
    position: relative;
    flex-shrink: 0;
}

.nav-more-btn {
    background: transparent; /* ✅ SEM COR DE FUNDO */
    color: #ff6600; /* ✅ LARANJA */
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700; /* ✅ NEGRITO */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
}

.nav-more-btn:hover {
    background: #fff3e0; /* ✅ HOVER LARANJA CLARO */
    border-color: #ff6600;
    transform: translateY(-2px);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 350px;
    max-height: 283px;
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.nav-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.nav-dropdown-item:hover {
    background: #0d6bb7; /* ✅ VERDE ESCURO NO HOVER */
    color: white;
}

/* Scrollbar do dropdown */
.nav-dropdown::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.nav-dropdown::-webkit-scrollbar-thumb {
    background: #1083c6;
    border-radius: 10px;
}

.nav-dropdown::-webkit-scrollbar-thumb:hover {
    background: #0d6bb7;
}
/* ========================================
   SEÇÃO DE BENEFÍCIOS
   ======================================== */
.benefits-section {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1083c6, #1083c6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.benefit-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 5px 0;
}

.benefit-content p {
    font-size: 14px;
    color: #7F8C8D;
    margin: 0;
}

/* ========================================
   CARROSSEL DE MARCAS
   ======================================== */
.carousel-section {
    max-width: 2400px;
    margin: 40px auto;
    padding: 0 20px;
}

.carousel-header {
    text-align: center;
    margin-bottom: 10px;
}

.carousel-title {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1083c6, #1083c6);
    border-radius: 2px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1083c6 #F8F9FA;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: #1083c6;
    border-radius: 4px;
}

.brand-card {
    min-width: 200px;
    padding: 0px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: #1083c6;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.brand-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
}

/* ========================================
   CARROSSEL DE AVALIAÇÕES
   ======================================== */
.review-card {
    min-width: 300px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1083c6, #1083c6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.review-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 5px 0;
}

.review-stars {
    display: flex;
    gap: 3px;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: #F39C12;
}

.review-text {
    font-size: 14px;
    color: #7F8C8D;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   POPUP DE MARCAS
   ======================================== */
.brands-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.brands-popup {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.brands-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #F8F9FA;
}

.brands-popup-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2C3E50;
}

.brands-popup-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #7F8C8D;
    transition: all 0.3s ease;
}

.brands-popup-close:hover {
    color: #1083c6;
    transform: scale(1.2);
}

.brands-popup-content {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.brand-popup-item {
    background: #F8F9FA;
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    transition: all 0.3s ease;
    text-align: center;
}

.brand-popup-item:hover {
    background: white;
    border-color: #1083c6;
    color: #1083c6;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 1023px) {
    /* Ocultar elementos desktop em mobile */
    .benefits-section,
    .carousel-section,
    .nav-more-container {
        display: none !important;
    }
    
    .new-header-nav {
        padding: 10px;
    }
    
    .new-header-nav-inner {
        gap: 8px;
    }
    
    .new-header-nav-item {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    /* Garantir que categorias não quebrem linha */
    .new-header-nav-inner {
        flex-wrap: nowrap;
    }
}

/* ========================================
   CONTADOR DE PRODUTOS
   ======================================== */
#product-counter {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo - mobile */
@media (max-width: 1023px) {
    #product-counter {
        top: auto !important;
        bottom: 80px !important;
        right: 10px !important;
        font-size: 12px !important;
        padding: 10px 16px !important;
    }
}

/* ========================================
   OCULTAR ELEMENTOS AO FILTRAR CATEGORIAS
   ======================================== */

/* ✅ Quando uma categoria está ativa, ocultar benefícios e carrosséis */
body.category-active .benefits-section,
body.category-active .carousel-section,
body.category-active #brands-carousel-section,
body.category-active #reviews-carousel-section,
body.category-active #banner-container,
body.category-active #main-banner-section {
    display: none !important;
}

/* ✅ Classe auxiliar para ocultar elementos */
.hidden-marketing {
    display: none !important;
}

/* ✅ Garantir que produtos em destaque sejam ocultados ao filtrar */
body.category-active #featured-section {
    display: none !important;
}

/* ✅ Garantir que apenas produtos normais sejam mostrados ao filtrar */
body.category-active #normal-section {
    display: block !important;
}
/* ========================================
   BANNER PRINCIPAL - AJUSTE SIMPLES
   ======================================== */



/* ✅ Ajustar altura para não cortar a imagem */
@media (min-width: 1024px) {
    #banner-container,
    #main-banner-section,
    .banner-container {
        height: 440px !important;
    }
    
    #banner-container img,
    #main-banner-section img,
    .banner-container img {
        height: 440px !important;
        object-fit: cover !important;
        object-position: center center !important;
		margin-top: 30px !important;
    }
	/* ✅ Banner ocupa 100% da largura (sem margens laterais) */
#banner-container,
#main-banner-section,
.banner-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
}
