        /* تنسيق عام للصفحة */
        body {
            background-color: #f9f9f9;
            color: #333;
        }

        /* تنسيق الأقسام */
        .category-section {
            border: 2px solid #f1f1f1;
            border-radius: 12px;
            padding: 20px;
            background-color: #f8f9fa;
            box-shadow: 0 4px 15px rgb(0 0 0 / 24%);
            margin: 30px 0;
        }

        .category-section h3 {
            text-align: center;
            font-size: 28px;
            margin-bottom: 20px;
            font-weight: bold;
            color: #333;
        }

        /* تنسيق السلايدر */
        .owl-carousel .owl-item {
            transition: transform 0.3s ease;
            padding: 20px;
        }

        .owl-item.active {
            transform: scale(1.05);
            transition: transform 0.3s ease;
        }

        .owl-item {
            width: 100%;
        }

        @media (max-width: 600px) {
            .owl-carousel .owl-item {
                padding: 0px;
            }
        }

        /* تنسيق أزرار التمرير */
        .slider-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
        }

        /* تنسيق المنتجات */
        .product-item {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
            position: relative;
        }

        .product-item:hover {
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-5px);
        }

        .product-img {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            margin-bottom: 15px;
        }

        .product-img img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 12px;
            transition: transform 0.3s ease;
        }

        /* تنسيق أيقونة القلب - تم التعديل هنا */
        .heart-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            color: #ff4757;
            transition: all 0.3s ease;
            cursor: pointer;
            z-index: 10;
            background: rgba(255,255,255,0.9);
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .heart-icon:not(.active) {
            color: #bbb;
        }

        .heart-icon.active {
            color: #ff4757;
            animation: pulse 0.5s;
        }

        .heart-icon:hover {
            transform: scale(1.2);
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        /* شريط الخصم - تمت الإضافة */
        .discount-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #ff4757;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        /* تنسيق زر "عرض المزيد" */
        .show-more-btn {
            display: block;
            width: 200px;
            margin: 20px auto;
            padding: 12px;
            text-align: center;
            color: #b00;
            border: 1px solid #b00;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s;
        }

        /* تنسيق الإشعارات */
        .cart-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #28a745;
            color: #fff;
            padding: 12px 24px;
            border-radius: 8px;
            display: none;
            z-index: 1000;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        /* ستايلات البوب أب */
        .login-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            z-index: 1001;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .popup-content {
            background-color: #fff;
            padding: 0px;
            border-radius: 10px;
            width: 90%;
            max-width: 400px;
            position: relative;
        }
        
        .close-popup {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            cursor: pointer;
            color: #333;
            z-index: 1002;
        }

        .add-to-cart {
            padding: 8px 40px;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .add-to-cart:hover {
            background-color: #e9ecef;
        }
        
        @media (max-width: 600px) {
            .add-to-cart {
                padding: 8px 15px;
            }
        }
        
        /* أنماط نافذة البوب آب */
        .login-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            background: #1a012a;
            padding: 20px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            position: relative;
        }

        .close-popup {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            cursor: pointer;
            color: rgb(17, 17, 17);
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #28a745;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            z-index: 1001;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .input-error {
            border-color: #ff6b6b !important;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }
        * {
            text-decoration: none;
        }
    
        /* تصميم الشبكة لعرض المنتجات */
        .product-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            justify-items: center;
            padding: 20px;
            margin: auto;
        }
    
        /* عندما تكون الشاشة متوسطة الحجم (من 768px إلى 1024px) */
        @media (max-width: 1024px) {
            .product-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    
        /* عندما تكون الشاشة صغيرة الحجم (أقل من 768px) */
        @media (max-width: 768px) {
            .product-container {
                grid-template-columns: repeat(2, 1fr);
            }
            .product-card img {
                width: 100px;
            }
        }
    
        /* تصميم بطاقة المنتج */
        .product-card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: transform 0.3s ease-in-out;
            text-align: center;
            padding: 15px;
            position: relative;
            width: 100%;
        }
    
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
    
        @media (max-width: 1200px) {
            /* الصورة الخاصة بالمنتج */
            .product-card img {
                object-fit: cover;
                border-radius: 10px;
                height: 200px;
                width: 100%;
            }
        }
    
        /* عنوان المنتج */
        .product-card h5 {
            font-size: 18px;
            margin: 10px 0;
            color: #333;
        }
    
        /* سعر المنتج */
        .product-card .price {
            font-size: 18px;
            color: green;
            font-weight: bold;
        }
    
        /* السعر القديم */
        .product-card .old-price {
            font-size: 16px;
            color: #999;
            text-decoration: line-through;
            margin-right: 10px;
        }
    
        /* زر التوجيه إلى التفاصيل */
        .product-card .btn {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 15px;
            background-color: #b00;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
            cursor: pointer;
        }
    
        .product-card .btn:hover {
            background-color: #6d5a3a;
        }
    
        .cart-notification {
            display: none;
            color: green;
            font-weight: bold;
            text-align: center;
            margin-top: 15px;
        }
    
        .tittle {
            width: 100%;
            text-align: center;
            margin-top: 20px;
            margin-bottom: 20px;
        }
    
        /* جعل العنصر <a> يغطي البطاقة باستثناء الزر */
        .product-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }
    
        /* أيقونة المفضلة */
        .wishlist-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: #ccc;
            cursor: pointer;
            z-index: 10;
        }
        
        .wishlist-icon.active {
            color: #ff4757;
        }
    
        /* تصميم نافذة تسجيل الدخول */
        .login-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .popup-content {
            background: white;
            padding: 20px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            position: relative;
        }
        
        .close-popup {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #000;
        }
        
        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #4CAF50;
            color: white;
            padding: 15px;
            border-radius: 5px;
            z-index: 1000;
            animation: fadeIn 0.5s, fadeOut 0.5s 2.5s;
        }
        
        @keyframes fadeIn {
            from {opacity: 0;}
            to {opacity: 1;}
        }
        
        @keyframes fadeOut {
            from {opacity: 1;}
            to {opacity: 0;}
        }