/* Mobile Filter Styles */
.mobile-filter-container {
    display: none;
    margin-bottom: 20px;
}

.mobile-filter-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.mobile-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
}

.mobile-filter-button:active {
    transform: translateY(0);
}

.filter-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-filter-button.active .filter-icon {
    transform: rotate(180deg);
}

.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-filter-sidebar.active {
    left: 0;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-mobile-filter {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-mobile-filter:hover {
    background: #e9ecef;
    color: #333;
}

.mobile-filter-content {
    padding: 20px;
}

/* Style the widgets in mobile filter */
.mobile-filter-content .widget {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.mobile-filter-content .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-filter-content .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 8px;
}

/* Overlay */
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-filter-container {
        display: block;
    }
    
    /* Hide default sidebar on mobile for shop pages */
    .woocommerce #secondary.widget-area,
    .woocommerce-page #secondary.widget-area,
    body.woocommerce #secondary,
    body.woocommerce-page #secondary {
        display: none !important;
    }
    
    /* Ensure main content takes full width on mobile */
    .woocommerce .site-main,
    .woocommerce-page .site-main {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 769px) {
    .mobile-filter-container,
    .mobile-filter-sidebar,
    .mobile-filter-overlay {
        display: none !important;
    }
}

/* Style improvements for filter widgets */
.mobile-filter-content .woocommerce-widget-layered-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-filter-content .woocommerce-widget-layered-nav li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-filter-content .woocommerce-widget-layered-nav li:last-child {
    border-bottom: none;
}

.mobile-filter-content .woocommerce-widget-layered-nav a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.mobile-filter-content .woocommerce-widget-layered-nav a:hover {
    color: #ff6b35;
}

.mobile-filter-content .woocommerce-widget-layered-nav .count {
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Price filter styles */
.mobile-filter-content .widget_price_filter .price_slider_wrapper {
    padding: 15px 0;
}

.mobile-filter-content .widget_price_filter .price_slider {
    margin-bottom: 15px;
}

.mobile-filter-content .widget_price_filter .price_slider_amount {
    text-align: left;
}

.mobile-filter-content .widget_price_filter .price_slider_amount .button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-content .widget_price_filter .price_slider_amount .button:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}