/* أيقونة الفلترة للشاشات الصغيرة */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-filter-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-filter-btn i {
    font-size: 16px;
}

/* قائمة الفلترة الكاملة للشاشات الصغيرة */
.mobile-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-filters-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-filters-container {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-filters-overlay.active .mobile-filters-container {
    transform: translateY(0);
}

/* رأس قائمة الفلترة */
.mobile-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.mobile-filters-title i {
    font-size: 22px;
}

.mobile-filters-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filters-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-filters-close i {
    font-size: 18px;
}

/* محتوى الفلترة */
.mobile-filters-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

/* أقسام الفلترة */
.mobile-filter-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.mobile-filter-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.mobile-filter-title i {
    color: #2563eb;
    font-size: 20px;
}

/* خيارات الفلترة */
.mobile-filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-filter-option:hover {
    background: #e2e8f0;
    transform: translateX(-4px);
}

.mobile-filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
    cursor: pointer;
}

.mobile-filter-option label {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-filter-count {
    background: #2563eb;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* فلتر السعر للموبايل */
.mobile-price-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-price-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.mobile-price-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mobile-price-inputs span {
    font-weight: 600;
    color: #64748b;
}

.mobile-price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.mobile-price-slider {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.mobile-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.mobile-price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.mobile-price-value {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* أزرار الفلترة */
.mobile-filters-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-clear-btn,
.mobile-apply-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-clear-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-clear-btn.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.mobile-clear-btn:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-2px);
}

.mobile-apply-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-apply-btn.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.mobile-apply-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* استعلامات الوسائط */
@media (max-width: 991.98px) {
    .mobile-filter-btn {
        display: flex;
    }
    
    .filters-sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .mobile-filters-header {
        padding: 16px;
    }
    
    .mobile-filters-title {
        font-size: 18px;
    }
    
    .mobile-filters-content {
        padding: 16px;
    }
    
    .mobile-filter-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .mobile-filter-title {
        font-size: 16px;
    }
    
    .mobile-filter-option {
        padding: 10px;
    }
