




        .basket {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Cairo', sans-serif;
        
            min-height: 100vh;
          
            display: flex;
            justify-content: center;
            align-items: center;
        }



        .app-container {
        
            width: 100%;
            height: 90vh;
            display: flex;
            gap: 25px;
          
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
         
            padding: 25px;
          
          
        }

        /* النصف الأيسر - المنتجات */
        .products-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--glass-effect);
            backdrop-filter: blur(10px);
            border-radius: 28px;
            padding: 20px;
            border: 1px solid var(--card-border);
            overflow: hidden;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.06);
            flex-wrap: wrap;
            gap: 10px;
        }

        .section-header h2 {
            color: var(--text-primary);
            font-weight: 800;
            font-size: 1.6rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-header h2 i {
            color:var( --accent);
        }

        .filter-section {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

        .filter-btn {
            background: var(--bg-secondary);
            border: 1px solid rgba(0, 0, 0, 0.06);
            color: var(--text-primary);
            padding: 6px 16px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            font-size: 0.85rem;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background:var(--button);
            border-color: var(--border-color);
            color: #fff;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
            transform: scale(1.02);
        }

        .filter-btn.active {
            background: var(--button);
            color: #fff;
        }

        .products-scroll {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
        }

        .products-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .products-scroll::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.03);
            border-radius: 10px;
        }

        .products-scroll::-webkit-scrollbar-thumb {
            background: #ff6b35;
            border-radius: 10px;
        }

        .products-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* بطاقة المنتج */
        .product-card {
            background: var(--bg-card);
            color: var(--text-primary);
            border-radius: 20px;
            padding: 16px 20px;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20px;
            position: relative;
        }

        .product-card:hover {
            background: var( --bg-card-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            border-color: rgba(255, 107, 53, 0.15);
        }

        .product-image {
            width: 80px;
            height: 80px;
            min-width: 70px;
            border-radius: 16px;
            overflow: hidden;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-image .no-image {
            font-size: 2.5rem;
            color: #adb5bd;
        }

        .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 150px;
        }

        .product-name {
            color: var(--text-primary);
            font-weight: 700;
            font-size: 1.1rem;
        }

        .product-category {
            color: #6c757d;
            font-size: 0.75rem;
            background: rgba(0, 0, 0, 0.04);
            padding: 2px 12px;
            border-radius: 40px;
            display: inline-block;
            width: fit-content;
        }

        .product-price {
            color:var(--price-color);
            font-weight: 800;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .product-price .free {
            color: #28a745;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .product-details {
            color: #6c757d;
            font-size: 0.8rem;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .product-details span {
            background: rgba(0, 0, 0, 0.03);
            padding: 2px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .product-details i {
            font-size: 0.7rem;
           color:var(--price-color);
        }

        .product-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-end;
            min-width: 120px;
        }

        .card-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: flex-end;
            width: 100%;
        }

        .btn-remove {
            background: var(--bg-primary);
            border: 1px solid rgba(220, 53, 69, 0.15);
            color: var(--text-primary);
            padding: 6px 14px;
            border-radius: 40px;
            font-weight: 700;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-remove:hover {
            background: var(--button);
            color: #fff;
            border-color: var(--border-color);
            box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
        }

        .btn-remove-selected {
            background: var(--button);
            border: 1px solid var(--border-color);
            color: var(--bs-white);
            padding: 6px 14px;
            border-radius: 40px;
            font-weight: 700;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-remove-selected:hover {
            background: var(--price-color);
            color: #fff;
            border-color:  var(--border-color);
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
        }

        .checkbox-wrap {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 0.8rem;
        }

        .checkbox-wrap input[type="checkbox"] {
            accent-color: var(--accent);
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        /* النصف الأيمن - الإحصائيات */
        .stats-section {
            width: 380px;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            background: var(--glass-effect);
            backdrop-filter: blur(10px);
            border-radius: 28px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.6);
            overflow: hidden;
        }

        .stats-title {
            color: var(--text-primary);
            font-weight: 800;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.06);
            flex-shrink: 0;
        }

        .stats-title i {
            color: var(--accent);
        }

        .stats-scroll {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
            margin-top: 15px;
        }

        .stats-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .stats-scroll::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.03);
            border-radius: 10px;
        }

        .stats-scroll::-webkit-scrollbar-thumb {
            background: var( --scrollbar-thumb);
            border-radius: 10px;
        }

        .stats-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .totals-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .total-all-section {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            border-radius: 16px;
            padding: 16px 24px;
            color: #fff;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .total-all-section .stat-label {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 2px;
        }

        .total-all-section .stat-value {
            color: #fff;
            font-size: 1.8rem;
            font-weight: 800;
        }

        .total-all-section .stat-value .currency {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .total-selected-section {
            background: var(--button);
            border-radius: 16px;
            padding: 16px 24px;
            color: #fff;
            box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
        }

        .total-selected-section .stat-label {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 2px;
        }

        .total-selected-section .stat-value {
            color: #fff;
            font-size: 1.8rem;
            font-weight: 800;
        }

        .total-selected-section .stat-value .currency {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .bulk-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .btn-bulk-remove {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 8px 20px;
            border-radius: 60px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            justify-content: center;
        }

        .btn-bulk-remove:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .btn-bulk-remove:disabled {
            opacity: 0.4;
            pointer-events: none;
            filter: grayscale(0.6);
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 16px 20px;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            transition: all 0.2s;
        }

        .stat-card:hover {
            transform: translateX(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-value {
            color: var(--text-primary);
            font-weight: 800;
            font-size: 1.6rem;
        }

        .category-stats {
            margin-top: 5px;
        }

        .category-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        }

        .category-item:last-child {
            border-bottom: none;
        }

        .category-name {
            color: #495057;
            font-weight: 600;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .category-count {
            background: var(--accent);
            color: var(--text-primary);
            font-weight: 700;
            padding: 2px 12px;
            border-radius: 40px;
            font-size: 0.8rem;
        }

        /* حالات خاصة */
        .empty-cart {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
        }

        .empty-cart i {
            font-size: 3rem;
            color: var(--text-primary);
            opacity: 0.4;
            margin-bottom: 12px;
            display: block;
        }

        .loading-shimmer {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.6s infinite;
            border-radius: 16px;
            height: 100px;
            width: 100%;
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        .error-message {
            text-align: center;
            padding: 40px 20px;
            color: #dc3545;
        }

        .error-message i {
            font-size: 3rem;
            margin-bottom: 12px;
            display: block;
        }

        /* responsive */
        @media (max-width: 1200px) {
            .app-container {
                flex-direction: column;
                height: auto;
                padding: 20px;
            }
            .stats-section {
                width: 100%;
                min-width: unset;
                max-height: 500px;
            }
            .products-section {
                max-height: 60vh;
            }
        }

        @media (max-width: 768px) {
            .app-container {
                padding: 15px;
                border-radius: 28px;
                gap: 15px;
            }
            .products-section {
                padding: 15px;
            }
            .stats-section {
                padding: 18px;
                max-height: 400px;
            }
            .product-card {
                flex-direction: column;
                align-items: stretch;
                padding: 14px;
            }
            .product-image {
                width: 100%;
                height: 120px;
            }
            .product-actions {
                align-items: stretch;
            }
            .card-actions {
                justify-content: center;
            }
            .checkbox-wrap {
                justify-content: center;
            }
            .section-header {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .filter-section {
                justify-content: center;
            }
            .total-all-section .stat-value,
            .total-selected-section .stat-value {
                font-size: 1.5rem;
            }
            .stat-value {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            .app-container {
                padding: 10px;
                border-radius: 20px;
            }
            .products-section {
                padding: 10px;
            }
            .stats-section {
                padding: 14px;
                max-height: 350px;
            }
            .product-image {
                height: 90px;
            }
            .product-name {
                font-size: 0.95rem;
            }
            .product-price {
                font-size: 1rem;
            }
            .total-all-section .stat-value,
            .total-selected-section .stat-value {
                font-size: 1.2rem;
            }
            .stat-value {
                font-size: 1.1rem;
            }
        }