جاري تحميل المنتجات...

حسابي طلباتي
تسجيل الدخول
0
0

GEAR UP YOUR GAME

جميع المنتجات

اكتشف أفضل منتجات الألعاب والإكسسوارات في مكان واحد

شحن سريعلجميع المحافظات
منتجات أصليةجودة مضمونة
دعم مستمرنحن معك دائمًا

جميع المنتجات

استكشف تشكيلتنا الواسعة من المنتجات المميزة بأفضل الأسعار

0 منتج
0 تصنيف
سريع توصيل
فلترة أسرع حسب السعر والتصنيف
أضف للمفضلة وارجع للمنتج لاحقاً
متابعة الطلبات من نفس التجربة
ترتيب حسب:

فلترة حسب السعر

د.أ
د.أ
عرض 1 - 10 من 0 منتج
// Global helpers window.openProductModal = function (product) { if (window.store && typeof window.store.openProductModal === 'function') { window.store.openProductModal(product); // Dispatch event for products page document.dispatchEvent(new CustomEvent('productModalOpened', { detail: { product: product } })); } else { window.location.href = `/products?id=${encodeURIComponent(product._id)}`; } }; window.showNotification = function (message, type = 'info') { const container = document.getElementById('notificationContainer'); if (!container) return; const notification = document.createElement('div'); notification.className = `notification ${type}`; const icons = { success: 'fa-check-circle', error: 'fa-times-circle', warning: 'fa-exclamation-triangle', info: 'fa-info-circle' }; const titles = { success: 'نجاح', error: 'خطأ', warning: 'تنبيه', info: 'معلومة' }; notification.innerHTML = `
${titles[type] || 'إشعار'}
${message}
`; container.appendChild(notification); setTimeout(() => { notification.classList.add('hiding'); setTimeout(() => notification.remove(), 300); }, 3000); notification.querySelector('.notification-close').addEventListener('click', () => { notification.classList.add('hiding'); setTimeout(() => notification.remove(), 300); }); }; // ===== دوال قائمة المستخدم العامة ===== function toggleUserMenu(event) { if (event) { event.stopPropagation(); event.preventDefault(); } const dropdown = document.getElementById('userDropdown'); const btn = document.getElementById('userBtn'); if (dropdown && btn) { const isOpen = dropdown.classList.contains('active'); if (isOpen) { dropdown.classList.remove('active'); btn.classList.remove('active'); btn.setAttribute('aria-expanded', 'false'); } else { dropdown.classList.add('active'); btn.classList.add('active'); btn.setAttribute('aria-expanded', 'true'); } } } // إغلاق القائمة عند النقر خارجها document.addEventListener('click', function (e) { const menu = document.getElementById('userMenu'); const dropdown = document.getElementById('userDropdown'); const btn = document.getElementById('userBtn'); if (menu && dropdown && btn) { if (!menu.contains(e.target)) { dropdown.classList.remove('active'); btn.classList.remove('active'); btn.setAttribute('aria-expanded', 'false'); } } }); // إغلاق القائمة بالضغط على Escape document.addEventListener('keydown', function (e) { if (e.key === 'Escape') { const dropdown = document.getElementById('userDropdown'); const btn = document.getElementById('userBtn'); if (dropdown && btn) { dropdown.classList.remove('active'); btn.classList.remove('active'); btn.setAttribute('aria-expanded', 'false'); } } }); // معالجة تسجيل الخروج function handleLogout() { if (confirm('هل أنت متأكد من رغبتك في تسجيل الخروج؟')) { localStorage.removeItem('userInfo'); localStorage.removeItem('token'); window.location.reload(); } } // ===== دوال المنتجات العامة ===== window.openProductModal = function (product) { if (window.store && typeof window.store.openProductModal === 'function') { window.store.openProductModal(product); document.dispatchEvent(new CustomEvent('productModalOpened', { detail: { product: product } })); } else { window.location.href = `/products?id=${encodeURIComponent(product._id)}`; } }; window.showNotification = function (message, type = 'info') { const container = document.getElementById('notificationContainer'); if (!container) return; const notification = document.createElement('div'); notification.className = `notification ${type}`; const icons = { success: 'fa-check-circle', error: 'fa-times-circle', warning: 'fa-exclamation-triangle', info: 'fa-info-circle' }; const titles = { success: 'نجاح', error: 'خطأ', warning: 'تنبيه', info: 'معلومة' }; notification.innerHTML = `
${titles[type] || 'إشعار'}
${message}
`; container.appendChild(notification); setTimeout(() => { notification.classList.add('hiding'); setTimeout(() => notification.remove(), 300); }, 3000); notification.querySelector('.notification-close').addEventListener('click', () => { notification.classList.add('hiding'); setTimeout(() => notification.remove(), 300); }); };