response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> CREME DE SOIN KENTA 20.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> OIL JOHNSONS 28.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> AA TECO 110 7.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> ADVENCED CARE DOVE 30.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> GO FRESH DOVE 30.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> NIVEA CREME 13.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> PARFEM NOIR COOL GIRL 20.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> PARFEM COOL GIRL 20.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> BABY SET PLANTIL 10.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> CREAM MINISTAR 20.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> SILKY FRESH VEET 30.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية
response.json()) .then(data => { if (data.success) { isInWishlist = data.is_in_wishlist; } }) .catch(error => console.error('Error:', error)) " class="p-2 rounded-full bg-white shadow-md" :class="isInWishlist ? 'text-red-500' : 'text-gray-600'" aria-label="قائمة الرغبات"> SILKY FRESH VEET 30.00 درهم { if (!response.ok) { throw new Error('Network error: ' + response.status); } return response.json(); }) .then(data => { isAdding = false; if (data.success) { const cartCountEl = document.querySelector('[data-cart-count]'); if (cartCountEl) { const count = data.cart_count || 0; cartCountEl.textContent = count; if (count > 0) { cartCountEl.classList.remove('hidden'); } else { cartCountEl.classList.add('hidden'); } } alert(data.message || 'تمت الإضافة بنجاح'); } else { alert(data.message || 'حدث خطأ أثناء إضافة المنتج إلى السلة'); } }) .catch(error => { isAdding = false; console.error('Error:', error); alert('حدث خطأ أثناء إضافة المنتج إلى السلة. يرجى المحاولة مرة أخرى.'); }); " :disabled="isAdding || true" class="w-full h-7 sm:h-8 px-2 sm:px-3 text-xs bg-market-primary-dark text-white rounded-md hover:bg-market-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed"> أضِف إلى السلة جاري الإضافة... نفدت الكمية