
        :root {
            --primary-color: #caaa3f;
            --secondary-color: #48133f;
        }

        [data-theme="dark"] {
            --bg-color: #1a1a1a;
            --text-color: #ffffff;
            --header-bg: #2d2d2d;
            --primary-color: #caaa3f;
            --border-color: #3d3d3d;
            --alert-bg: #2d2d2d;
            --alert-border: #3d3d3d;
            --alert-text: #caaa3f;
            --discount-price-color: #888888;
        }

        [data-theme="light"] {
            --bg-color: #ffffff;
            --text-color: #333333;
            --header-bg: #ffffff;
            --primary-color: #48133f;
            --border-color: #eaeaea;
            --alert-bg: #fff8e6;
            --alert-border: #caaa3f;
            --alert-text: #48133f;
            --discount-price-color: #6c757d;
        }

        * {
            font-family: 'Tajawal', sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: all 0.3s ease;
        }

        /* تحديث ستايلات السلة */
        .cart-wrapper {
            background: var(--header-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 25px;
            margin: 20px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            max-height: 500px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) var(--border-color);
        }

        /* ستايلات السكرول للمتصفحات الحديثة */
        .cart-wrapper::-webkit-scrollbar {
            width: 8px;
        }

        .cart-wrapper::-webkit-scrollbar-track {
            background: var(--bg-color);
            border-radius: 10px;
        }

        .cart-wrapper::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        .cart-wrapper::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
        }

        .cart-item {
            position: relative;
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 25px;
            padding: 20px;
            margin-bottom: 15px;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            align-items: center;
            transition: all 0.3s ease;
        }

        .cart-item:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }

        .cart-item-image {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }

        .item-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .item-info-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            width: 100%;
            gap: 15px;
        }

        .item-left-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .item-right-section {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-item-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0;
            line-height: 1.4;
        }

        .cart-item-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
            margin: 5px 0;
        }

        .item-quantity {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--header-bg);
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .quantity-value {
            min-width: 35px;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-color);
        }

        .quantity-btn {
            width: 35px;
            height: 35px;
            border-radius: 8px;
            font-size: 1.2rem;
            background: var(--primary-color);
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quantity-btn:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }

        .remove-item-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
            border: none;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .remove-item-btn:hover {
            background: rgba(220, 53, 69, 0.2);
            transform: scale(1.1);
        }

        .cart-summary {
            background: var(--header-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .cart-summary .total-section {
            border-top: 1px solid var(--border-color);
            margin-top: 15px;
            padding-top: 15px;
        }

        .cart-summary .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: var(--text-color);
        }

        .cart-summary .final-total {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-top: 10px;
            padding-top: 10px;
            border-top: 2px solid var(--border-color);
        }

        .free-delivery {
            color: #28a745;
            font-weight: 500;
        }

        /* تحديث ستايلات زر تفريغ السلة في الأعلى */
        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .clear-cart-btn {
            padding: 8px 15px;
            border: 1px solid var(--border-color);
            background: transparent;
            color: #dc3545;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .clear-cart-btn:hover {
            background: rgba(220, 53, 69, 0.1);
            border-color: #dc3545;
        }

        .checkout-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .checkout-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        /* تحديث ستايلات الرسائل */
        .empty-cart {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-color);
        }

        .empty-cart i {
            color: var(--primary-color);
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .btn-primary {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-primary:hover {
            background: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        /* ستايلات السلة */
        .cart-wrapper {
            padding: 20px;
            background: var(--bg-color);
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
        }

        .cart-item {
            position: relative;
            display: grid;
            grid-template-columns: 100px 1fr;
            gap: 20px;
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
            align-items: center;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-image {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 10px;
        }

        .item-quantity {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-color);
            padding: 5px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .quantity-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 6px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cart-summary {
            position: sticky;
            top: 20px;
            background: var(--header-bg);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid var(--border-color);
        }

        /* إخفاء أزرار الهيدر وإضافة زر الرجوع */
        .cart-page .theme-toggle,
        .cart-page .cart-icon-wrapper {
            display: none !important;
        }

        .back-button {
            background: var(--bg-color);
            border: 1.5px solid var(--border-color);
            color: var(--primary-color);
            padding: 8px 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            color: var(--primary-color);
        }

        /* إضافة ستايل للمسافة بين الهيدر والمحتوى */
        .cart-container {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        @media (max-width: 768px) {
            .cart-container {
                padding-top: 25px;
                padding-bottom: 25px;
            }

            .cart-wrapper {
                padding: 15px;
                max-height: 400px;
            }

            .item-info-wrapper {
                flex-direction: column;
                gap: 10px;
            }

            .item-left-section {
                width: 100%;
                justify-content: space-between;
            }

            .cart-item-price {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .cart-wrapper {
                padding: 10px;
            }

            .cart-item {
                grid-template-columns: 80px 1fr;
                padding: 15px;
                gap: 12px;
            }

            .cart-item-image {
                width: 80px;
                height: 80px;
            }

            .item-info-wrapper {
                gap: 8px;
            }

            .item-left-section {
                flex-direction: row;
                align-items: center;
                gap: 8px;
            }

            .cart-item-name {
                font-size: 0.95rem;
                line-height: 1.3;
            }

            .cart-item-price {
                font-size: 1rem;
                margin: 2px 0;
            }

            .item-quantity {
                padding: 5px;
                gap: 8px;
            }

            .quantity-btn {
                width: 26px;
                height: 26px;
                font-size: 1rem;
            }

            .quantity-value {
                min-width: 30px;
                font-size: 1rem;
            }

            .remove-item-btn {
                top: 8px;
                left: 8px;
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(-10px);
            }
        }

        /* ستايلات نموذج معلومات العميل */
        .customer-form {
            background: var(--header-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
        }

        .customer-form h4 {
            margin-bottom: 20px;
            color: var(--text-color);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 10px;
            }
        }

        .form-control {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 10px 15px;
            border-radius: 8px;
            width: 100%;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .form-control {
            background: #2d2d2d;
            color: #ffffff;
            border-color: #3d3d3d;
        }

        [data-theme="dark"] .form-control:focus {
            background: #363636;
            border-color: var(--primary-color);
        }

        [data-theme="dark"] .form-control::placeholder {
            color: #888888;
        }

        [data-theme="dark"] select.form-control option {
            background: #2d2d2d;
            color: #ffffff;
        }

        .submit-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            margin-top: 10px;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .loader-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        .loader-wrapper.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loader-text {
            color: var(--primary-color);
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .loader-bar {
            width: 200px;
            height: 4px;
            background: rgba(202, 170, 63, 0.2);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .loader-bar::after {
            content: '';
            position: absolute;
            width: 40%;
            height: 100%;
            background: var(--primary-color);
            border-radius: 4px;
            left: -40%;
            animation: loading 1.5s ease-in-out infinite;
        }

        @keyframes loading {
            0% {
                left: -40%;
            }

            50% {
                left: 100%;
            }

            100% {
                left: -40%;
            }
        }