/* ================================================================
   DISEÑO MÓVIL OPTIMIZADO - SIDEBAR DESPLEGABLE
   ================================================================ */

/* MOBILE ONLY STYLES */
@media (max-width: 991px) {

    /* BOTÓN HAMBURGUESA PARA SIDEBAR */
    .mobile-filter-btn {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        background: linear-gradient(135deg, #F39C12 0%, #e67e22 100%) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4) !important;
        z-index: 999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        border: none !important;
        padding: 0 !important;
        transition: all 0.3s ease !important;
    }

    .mobile-filter-btn:active {
        transform: scale(0.95) !important;
    }

    .mobile-filter-btn i {
        font-size: 24px !important;
        color: white !important;
    }

    /* Texto del botón */
    .mobile-filter-btn::after {
        content: 'Filtros' !important;
        position: absolute !important;
        bottom: -25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 12px !important;
        color: #1a1a1a !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    /* SIDEBAR MÓVIL - OVERLAY DESLIZANTE */
    #left-column {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        z-index: 1000 !important;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        overflow-y: auto !important;
        padding: 80px 20px 30px 20px !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5) !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Sidebar abierta */
    #left-column.mobile-open {
        left: 0 !important;
    }

    /* Overlay oscuro detrás del sidebar */
    .mobile-sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    .mobile-sidebar-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Botón cerrar sidebar */
    .mobile-close-sidebar {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid #F39C12 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .mobile-close-sidebar i {
        color: #F39C12 !important;
        font-size: 20px !important;
    }

    .mobile-close-sidebar:active {
        transform: scale(0.9) !important;
        background: rgba(243, 156, 18, 0.2) !important;
    }

    /* PRODUCTOS - OCUPAR TODO EL ANCHO */
    #content,
    #content-wrapper {
        border-radius: 15px !important;
    }

    .category-title-main {
        font-size: 2rem !important;
        letter-spacing: 1px !important;
    }

    /* Breadcrumb más compacto */
    .breadcrumb {
        padding: 10px 10px !important;
        font-size: 12px !important;
    }

    /* NAVBAR MÓVIL - MEJORAR ACCESO */
    #header .header-nav {
        display: block !important;
    }

    /* Asegurar que el menú hamburguesa sea visible */
    .mobile-menu-toggle,
    #mobile_top_menu_wrapper {
        display: block !important;
    }
}

/* TABLETS - 2 COLUMNAS */
@media (min-width: 576px) and (max-width: 991px) {

    .products,
    .products.row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .category-title-main {
        font-size: 2.5rem !important;
    }
}