
        /* ===== إعدادات عامة ===== */
        :root {
            --primary-color: #1a237e;
            --secondary-color: #3949ab;
            --accent-color: #00897b;
            --danger-color: #e53935;
            --warning-color: #fb8c00;
            --info-color: #039be5;
            --purple-color: #8e24aa;
            --pink-color: #d81b60;
            --dark-color: #263238;
            --light-color: #f5f7fa;
            --gray-color: #78909c;
            --border-color: #e0e6ed;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
            --shadow-xl: 0 12px 36px rgba(0,0,0,0.20);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --radius: 8px;
            --radius-sm: 6px;
            --radius-lg: 12px;
            --radius-full: 50px;
            --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            --gradient-accent: linear-gradient(135deg, var(--accent-color), #00695c);
            --gradient-danger: linear-gradient(135deg, var(--danger-color), #c62828);
            --gradient-warning: linear-gradient(135deg, var(--warning-color), #e65100);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        

        
        body {
            font-family: 'Cairo', sans-serif;
            background-color: #ffffff;
            color: var(--dark-color);
            direction: rtl;
            line-height: 1.6;
            padding-top: 140px;
        }
        
        html {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }
        
        body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        @media (min-width: 1200px) {
            .container {
                max-width: 1320px;
                padding: 0 40px;
            }
        }
        
        @media (min-width: 1400px) {
            .container {
                max-width: 1500px;
                padding: 0 60px;
            }
        }
        

        
        /* ===== صفحة المنتجات ===== */
        .products-page {
            padding: 60px 0 80px;
            background: #f8fafc;
            min-height: 100vh;
            margin-top: 20px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .page-title {
            font-size: 48px;
            font-weight: 800;
            color: #1f2937;
            margin-bottom: 16px;
            position: relative;
            display: inline-block;
        }
        
        .page-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            right: 50%;
            transform: translateX(50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #1e40af);
            border-radius: 2px;
        }
        
        .page-subtitle {
            font-size: 18px;
            color: #6b7280;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .products-layout {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        /* ===== الفلاتر الجانبية ===== */
        .filters-sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(59, 130, 246, 0.1);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 180px;
            height: fit-content;
            overflow-y: visible;
        }
        
        .filter-section {
            margin-bottom: 20px;
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
        }
        
        .filter-title {
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .filter-title i {
            color: #3b82f6;
            font-size: 14px;
        }
        
        .filter-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .filter-option {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: var(--transition);
            padding: 6px 10px;
            border-radius: 8px;
        }
        
        .filter-option:hover {
            background: #f3f4f6;
        }
        
        .filter-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #3b82f6;
            cursor: pointer;
        }
        
        .filter-option label {
            cursor: pointer;
            font-size: 14px;
            color: #4b5563;
            user-select: none;
            flex: 1;
        }
        
        .filter-count {
            background: #e5e7eb;
            color: #6b7280;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
        }
        
        .price-filter {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .price-inputs {
            display: flex;
            gap: 8px;
            align-items: center;
            width: 100%;
        }
        
        .price-input {
            width: 70px;
            padding: 8px 10px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            box-sizing: border-box;
        }
        
        .price-inputs span {
            font-size: 12px;
            color: #6b7280;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .price-input:focus {
            outline: none;
            border-color: #3b82f6;
        }
        
        .price-range {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }
        
        .price-range input[type="range"] {
            flex: 1;
            height: 6px;
            background: #e5e7eb;
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
        }
        
        .price-range input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .price-value {
            font-weight: 600;
            color: #3b82f6;
            min-width: 60px;
            text-align: center;
        }
        
        .apply-filter-btn {
            width: 100%;
            background: white;
            color: #3b82f6;
            border: 2px solid #3b82f6;
            padding: 12px 20px;
            border-radius: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
            display: none !important;
            align-items: center;
            justify-content: center;
            gap: 8px;
            opacity: 0;
            visibility: hidden;
        }
        
        .apply-filter-btn.show {
            display: flex !important;
            opacity: 1;
            visibility: visible;
        }
        
        .apply-filter-btn:hover {
            background: #3b82f6;
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }
        
        /* ===== المحتوى الرئيسي ===== */
        .products-content {
            flex: 1;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            box-sizing: border-box;
        }
        
        .products-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
            width: 100%;
            position: relative;
        }
        
        .products-count {
            font-size: 16px;
            color: #6b7280;
            font-weight: 600;
        }
        
        .products-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-shrink: 0;
            min-width: fit-content;
            position: relative;
            z-index: 1;
        }
        
        .products-actions * {
            box-sizing: border-box;
        }
        
        /* ===== رأس الفلاتر ===== */
        .filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f3f4f6;
        }
        
        .filters-main-title {
            font-size: 18px;
            font-weight: 800;
            color: #1f2937;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }
        
        .filters-main-title i {
            color: #3b82f6;
            font-size: 16px;
        }
        
        .clear-filters-btn {
            background: #f3f4f6;
            color: #6b7280;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none !important;
            align-items: center;
            gap: 6px;
            opacity: 0;
            visibility: hidden;
        }
        
        .clear-filters-btn.show {
            display: flex !important;
            opacity: 1;
            visibility: visible;
        }
        
        .clear-filters-btn:hover {
            background: #e5e7eb;
            color: #374151;
        }
        
        /* ===== أزرار الفلاتر ===== */
        .filters-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 18px;
            padding-top: 15px;
            border-top: 2px solid #f3f4f6;
        }
        
        .reset-filter-btn {
            width: 100%;
            background: white;
            color: #6b7280;
            border: 2px solid #e5e7eb;
            padding: 10px 20px;
            border-radius: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none !important;
            align-items: center;
            justify-content: center;
            gap: 8px;
            opacity: 0;
            visibility: hidden;
        }
        
        .reset-filter-btn.show {
            display: flex !important;
            opacity: 1;
            visibility: visible;
        }
        
        .reset-filter-btn:hover {
            background: #6b7280;
            color: white;
            border-color: #6b7280;
            box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
        }
        
        .apply-filter-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .view-toggle {
            display: flex;
            gap: 8px;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            padding: 4px;
        }
        
        .view-btn {
            width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            color: #6b7280;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .view-btn.active {
            background: #3b82f6;
            color: white;
        }
        
        .sort-dropdown {
            position: relative;
        }
        
        .sort-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            color: #4b5563;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .sort-btn:hover {
            border-color: #3b82f6;
            color: #3b82f6;
        }
        
        .sort-options {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            min-width: 200px;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }
        
        .sort-options.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .sort-option {
            padding: 12px 20px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
            color: #4b5563;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
        }
        
        .sort-option:hover {
            background: #f3f4f6;
            color: #3b82f6;
        }
        
        .sort-option i {
            font-size: 12px;
            color: #6b7280;
            transition: var(--transition);
        }
        
        .sort-option:hover i {
            color: #3b82f6;
        }
        
        /* ===== شبكة المنتجات ===== */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-bottom: 40px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
        }
        
        .product-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            position: relative;
            border: 1px solid #e5e7eb;
            display: block;
            opacity: 1;
            visibility: visible;
            width: 100%;
            box-sizing: border-box;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .product-card:hover {
            box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
            border-color: #3b82f6;
        }
        
        .product-image {
            height: 250px;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
            pointer-events: none;
        }
        
        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
            pointer-events: none;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-badge {
            position: absolute;
            top: 16px;
            left: 16px;
            background: #ef4444;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            z-index: 2;
            text-transform: uppercase;
        }
        
        .product-badge.new {
            background: #10b981;
        }
        
        .product-badge.hot {
            background: #f59e0b;
        }
        
        .product-favorite {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2;
            font-size: 16px;
            color: #6b7280;
        }
        
        .product-favorite:hover {
            background: #f472b6;
            border-color: #f472b6;
            color: white;
            transform: scale(1.15);
            box-shadow: 0 8px 24px rgba(244, 114, 182, 0.4);
        }
        
        .product-favorite.active {
            background: #f472b6 !important;
            border-color: #f472b6 !important;
            color: white !important;
            box-shadow: 0 8px 24px rgba(244, 114, 182, 0.4) !important;
        }
        
        .product-info {
            padding: 25px;
        }
        
        .product-category {
            color: #3b82f6;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .product-name {
            font-size: 18px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 12px;
            line-height: 1.3;
        }
        
        .product-desc {
            color: #6b7280;
            font-size: 14px;
            margin-bottom: 16px;
            line-height: 1.5;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .stars {
            color: #f59e0b;
            font-size: 14px;
        }
        
        .rating-count {
            color: #6b7280;
            font-size: 13px;
            font-weight: 600;
        }
        
        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .product-price {
            display: flex;
            align-items: baseline;
            gap: 8px;
        }
        
        .price-current {
            font-size: 24px;
            font-weight: 800;
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .price-old {
            font-size: 16px;
            color: #9ca3af;
            text-decoration: line-through;
            font-weight: 600;
        }
        
        .add-to-cart {
            background: white;
            color: #3b82f6;
            border: 2px solid #3b82f6;
            width: 50px;
            height: 50px;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
            font-size: 18px;
            position: relative;
            overflow: hidden;
        }
        
        .add-to-cart:hover {
            color: white;
            border-color: #3b82f6;
            background: #3b82f6;
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
        }
        
        .add-to-cart.in-cart {
            background: linear-gradient(135deg, #10b981, #059669) !important;
            border-color: #10b981 !important;
            color: white !important;
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
        }
        

        /* ===== أيقونة التحميل ===== */
        .loading-spinner {
            grid-column: 1 / -1;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            gap: 15px;
        }
        
        .spinner {
            width: 60px;
            height: 60px;
            border: 5px solid #f3f4f6;
            border-top: 5px solid #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        .spinner-text {
            font-size: 14px;
            color: #6b7280;
            font-weight: 500;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        

        
        /* ===== الترقيم ===== */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 40px;
            padding: 20px 0;
        }
        
        .page-btn {
            width: 45px;
            height: 45px;
            border: 2px solid #e5e7eb;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 700;
            color: #4b5563;
            font-size: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .page-btn:hover {
            border-color: #3b82f6;
            color: #3b82f6;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }
        
        .page-btn.active {
            background: linear-gradient(135deg, #3b82f6, #1e40af);
            color: white;
            border-color: #3b82f6;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
        }
        
        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .page-btn:disabled:hover {
            border-color: #e5e7eb;
            color: #4b5563;
            transform: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .page-dots {
            color: #9ca3af;
            font-weight: 700;
            font-size: 18px;
            padding: 0 5px;
            user-select: none;
        }
        
        /* ===== تصميم متجاوب ===== */
        @media (max-width: 1200px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
        }
        
        @media (max-width: 992px) {
            .products-layout {
                flex-direction: column;
            }
            
            .filters-sidebar {
                display: none;
            }
            
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .page-title {
                font-size: 36px;
            }
            
            .page-subtitle {
                display: none;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 18px;
            }
            
            .list-item {
                flex-direction: column;
            }
            
            .list-image {
                width: 100%;
                height: 200px;
            }
        }
        
        @media (max-width: 480px) {
            .products-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .products-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            
            .products-actions {
                justify-content: center;
                width: 100%;
            }
            
            .products-count {
                text-align: center;
                width: 100%;
            }
            
            .list-image {
                height: 150px;
            }
        }
        
        /* للشاشات الصغيرة جداً */
        @media (max-width: 656px) {
            .products-grid {
                grid-template-columns: 1fr !important;
                gap: 15px;
            }
            
            .products-actions {
                flex-wrap: wrap !important;
                justify-content: center !important;
                gap: 12px !important;
                width: 100% !important;
                overflow: visible !important;
                position: relative !important;
                z-index: 1 !important;
            }
            
            .mobile-filter-btn {
                order: -1;
                width: 100%;
                justify-content: center;
                margin-bottom: 10px;
            }
            
            .sort-dropdown {
                flex: 1;
                min-width: 140px;
                max-width: 200px;
            }
            
            .view-toggle {
                flex-shrink: 0;
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
            }
            
            .view-btn {
                width: 32px !important;
                height: 32px !important;
                font-size: 14px !important;
            }
        }
        
        @media (max-width: 400px) {
            .products-grid {
                grid-template-columns: 1fr !important;
                gap: 12px;
                padding: 0 5px;
            }
            
            .product-card {
                max-width: 100%;
                margin: 0 auto;
            }
            
            .container {
                padding: 0 10px;
            }
            
            .products-content {
                padding: 0 5px;
            }
            
            .products-actions {
                flex-direction: column !important;
                align-items: center !important;
                gap: 15px !important;
            }
            
            .sort-dropdown {
                width: 100%;
            }
            
            .sort-btn {
                width: 100%;
                justify-content: center;
            }
            
            .view-toggle {
                width: 100%;
                justify-content: center;
            }
        }
        
        /* إصلاحات إضافية للشاشات الصغيرة جداً */
        @media (max-width: 656px) {
            .product-card {
                min-width: 0 !important;
                max-width: 100% !important;
                width: 100% !important;
                margin: 0 !important;
            }
            
            .products-grid {
                grid-template-columns: 1fr !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow: visible !important;
            }
            
            .products-content {
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: hidden !important;
            }
        }
        
        @media (max-width: 480px) {
            .product-card {
                border-radius: 15px;
            }
            
            .product-image {
                height: 200px;
            }
            
            .product-info {
                padding: 20px;
            }
            
            .product-name {
                font-size: 16px;
            }
            
            .price-current {
                font-size: 20px;
            }
        }
        
        @media (max-width: 350px) {
            .products-grid {
                gap: 10px;
                padding: 0;
            }
            
            .container {
                padding: 0 5px;
            }
            
            .product-info {
                padding: 15px;
            }
            
            .product-name {
                font-size: 16px;
            }
            
            .price-current {
                font-size: 20px;
            }
        }
 
        
        /* ===== الإشعارات ===== */
        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            z-index: 10000;
            transform: translateX(350px);
            opacity: 0;
            display: none;
            transition: all 0.4s ease;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border: 1px solid;
            width: 280px;
            text-align: right;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border-color: #10b981;
        }
        
        .notification.show {
            transform: translateX(0);
            opacity: 1;
        }
        
        .notification.hide {
            transform: translateX(400px) scale(0.8);
            opacity: 0;
        }
        
        .notification-icon {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 30px;
            height: 30px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #10b981;
            font-size: 16px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        }
        
        .notification-content {
            text-align: right;
        }
        
        .notification-title {
            margin: 0 0 3px 0;
            font-size: 15px;
        }
        
        .notification-message {
            margin: 0;
            font-size: 13px;
            opacity: 0.9;
        }
        
        .notification-close {
            position: absolute;
            top: 10px;
            left: 10px;
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s;
        }
        
        .notification-close:hover {
            opacity: 1;
        }
        
        /* ===== إشعار الفلترة ===== */
        .filter-notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 0;
            border-radius: 16px;
            font-weight: 600;
            font-size: 14px;
            z-index: 10000;
            transform: translateX(350px);
            opacity: 0;
            display: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
            border: none;
            width: 320px;
            text-align: right;
            background: white;
            color: #1f2937;
            overflow: hidden;
        }
        
        .filter-notification::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #1e40af, #6366f1);
        }
        
        .filter-notification.show {
            transform: translateX(0);
            opacity: 1;
        }
        
        .filter-notification .notification-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #3b82f6, #1e40af);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        
        .filter-notification .notification-content {
            text-align: right;
            padding: 20px 80px 20px 60px;
        }
        
        .filter-notification .notification-title {
            margin: 0 0 6px 0;
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
        }
        
        .filter-notification .notification-message {
            margin: 0;
            font-size: 14px;
            color: #6b7280;
            font-weight: 500;
        }
        
        .filter-notification .notification-close {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #f3f4f6;
            border: none;
            color: #6b7280;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .filter-notification .notification-close:hover {
            background: #e5e7eb;
            color: #374151;
            transform: scale(1.1);
        }
        
        .filter-notification.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        
        .filter-notification.hide {
            transform: translateX(400px) scale(0.9);
            opacity: 0;
        }
        
        /* ===== نافذة التأكيد ===== */
        .confirm-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 15000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .confirm-modal.show {
            opacity: 1;
            visibility: visible;
        }
        
        .confirm-content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }
        
        .confirm-modal.show .confirm-content {
            transform: scale(1);
        }
        
        .confirm-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 36px;
        }
        
        .confirm-title {
            font-size: 24px;
            font-weight: 800;
            color: #1f2937;
            margin-bottom: 10px;
        }
        
        .confirm-message {
            font-size: 16px;
            color: #6b7280;
            margin-bottom: 30px;
            line-height: 1.5;
        }
        
        .confirm-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        
        .confirm-btn {
            padding: 12px 30px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 16px;
        }
        
        .confirm-btn.cancel {
            background: #e5e7eb;
            color: #374151;
        }
        
        .confirm-btn.cancel:hover {
            background: #d1d5db;
        }
        
        .confirm-btn.confirm {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            color: white;
        }
        
        .confirm-btn.confirm:hover {
            background: linear-gradient(135deg, #b91c1c, #991b1b);
        }
        

        

        



/* السعر شفاف لما ينفد المخزون - نفس index.php */
.product-card.out-of-stock .product-price {
    opacity: 0.5 !important;
}

.product-card.out-of-stock .price-current,
.product-card.out-of-stock .price-old {
    opacity: 1 !important;
}


/* ===== تحسين Pagination للشاشات الصغيرة ===== */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .page-dots {
        font-size: 16px;
        padding: 0 3px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
        padding: 12px 0;
        margin-top: 25px;
        flex-wrap: wrap;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    .page-dots {
        font-size: 14px;
        padding: 0 2px;
    }
}

@media (max-width: 360px) {
    .pagination {
        gap: 3px;
        padding: 10px 0;
        margin-top: 20px;
    }
    
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .page-dots {
        font-size: 12px;
        padding: 0 1px;
    }
}
