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="قائمة الرغبات"> ELBARAKA FIGUES 15.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="قائمة الرغبات"> ELBARAKA ORANGE 14.90 درهم { 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="قائمة الرغبات"> EL BARAKA FRAISE 240 8.90 درهم { 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="قائمة الرغبات"> DELICIA FRAISE 240g 9.90 درهم { 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="قائمة الرغبات"> DELICIA FRAISE 830 G 27.90 درهم { 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="قائمة الرغبات"> DELICIA FRAISE 430g 16.90 درهم { 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 || false" 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="قائمة الرغبات"> DELICIA ABRICOT 430g 14.90 درهم { 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 || false" 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="قائمة الرغبات"> CONFITURE DELICIA 240G 9.90 درهم { 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="قائمة الرغبات"> AICHE CONFIYURE CITRON 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 || false" 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="قائمة الرغبات"> AICHA CONFIYURE DE FIGUES 12.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="قائمة الرغبات"> AICHA FIGUES 430G 17.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="قائمة الرغبات"> AICHA FRAISE 430g 15.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"> أضِف إلى السلة جاري الإضافة... نفدت الكمية