/* ============================================
   CORREÇÕES SOLICITADAS PELO USUÁRIO
   ============================================ */

/* 1. OCULTAR BOTÕES DE NAVEGAÇÃO LATERAL NO DESKTOP */
/* Manter apenas no mobile (768px ou menos) */
@media (min-width: 769px) {
    .carousel-btn {
        display: none !important;
    }
    
    /* Remover padding lateral dos carrosséis no desktop */
    .products-carousel-wrapper {
        padding: 0 !important;
    }
    
    /* Remover padding lateral dos badges no desktop */
    .trust-badges .container {
        padding: 0 20px !important;
    }
}

/* 2. AJUSTAR TAMANHO DOS BANNERS PARA DESKTOP */
/* Seguindo o padrão do site moletonia.com.br */
@media (min-width: 769px) {
    .hero-banner-slider {
        height: 360px !important; /* Altura similar ao site de referência */
        max-height: 360px !important;
        overflow: hidden;
    }
    
    .banner-slide {
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-content {
        height: 100%;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding-left: 50px;
    }
}

/* 3. CORRIGIR PROBLEMA DO MENU HAMBÚRGUER */
/* Ajustar overlay para não deixar tela completamente preta e inclicável */

/* Overlay do menu mobile - corrigido */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5) !important; /* Semi-transparente, não completamente preto */
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none; /* Não bloquear cliques quando inativo */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permitir cliques apenas quando ativo */
}

/* Menu mobile - melhorar visibilidade - APENAS NO MOBILE */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff !important; /* Fundo branco para contraste */
        z-index: 999999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        left: 0;
    }
}

/* Itens do menu mobile - garantir boa visibilidade - APENAS NO MOBILE */
@media (max-width: 768px) {
    .main-nav .nav-menu {
        list-style: none;
        padding: 20px 0;
        margin: 0;
    }

    .main-nav .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav .nav-menu li a {
        display: block;
        padding: 15px 20px;
        color: #000 !important; /* Texto preto para contraste */
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.3s;
    }

    .main-nav .nav-menu li a:hover {
        background: #f5f5f5;
    }

    /* Dropdown do menu mobile */
    .main-nav .dropdown-menu {
        background: #f9f9f9;
        padding-left: 20px;
    }

    .main-nav .dropdown-menu a {
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 400;
        color: #333 !important;
    }
}

/* 4. AJUSTES ESPECÍFICOS PARA MOBILE */
@media (max-width: 768px) {
    /* Manter botões de navegação no mobile */
    .carousel-btn {
        display: flex !important;
    }
    
    /* Ajustar altura do banner no mobile */
    .hero-banner-slider {
        height: 250px !important;
    }
    
    /* Garantir que o overlay funcione corretamente no mobile */
    .mobile-menu-overlay.active {
        background: rgba(0, 0, 0, 0.6) !important; /* Mais escuro no mobile para melhor contraste */
    }
    
    /* Ajustar posição dos botões flutuantes no mobile */
    .whatsapp-float {
        bottom: 80px !important; /* Subir o botão do WhatsApp */
    }
    
    .back-to-top {
        bottom: 140px !important; /* Subir o botão de voltar ao topo */
    }
}

/* 5. MELHORIAS GERAIS DE UX */
/* Garantir que o menu hambúrguer seja sempre visível e clicável - APENAS NO MOBILE */
@media (max-width: 768px) {
    .menu-toggle-wrapper {
        z-index: 1;
        position: relative;
    }

    .menu-toggle-link {
        display: flex;
        align-items: center;
        padding: 10px;
        cursor: pointer;
        z-index: 1;
    }
}

/* Garantir que o ícone hambúrguer seja sempre branco */
.menu-toggle-link .fa-bars {
    font-size: 32px !important;
    color: #fff !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Evitar conflitos com outros overlays */
.mobile-menu-overlay {
    z-index: 999998 !important;
}

/* 6. AJUSTES PARA BANNERS ROTATIVOS */
/* Garantir que os indicadores funcionem corretamente */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-indicator.active {
    background: rgba(255, 255, 255, 1);
}

/* 7. CORREÇÕES PARA TRUST BADGES */
/* Garantir que funcionem bem no desktop sem botões de navegação */
@media (min-width: 769px) {
    .trust-badges .badges-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        overflow: visible;
    }
    
    .badge-item {
        min-width: auto;
    }
}