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="قائمة الرغبات"> grand lion 100g 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="قائمة الرغبات"> GRAND LION 200G 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="قائمة الرغبات"> BELLARE 200G 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="قائمة الرغبات"> TAGINE SARDINE ALA SAUCE TAGINE 9.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="قائمة الرغبات"> JOLY MIETTE DE MAQUEREAUX 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="قائمة الرغبات"> MILO FILETS DE MAQYUREAUX 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="قائمة الرغبات"> GARCIA MORCEAUX SE THON A LA SAUCE TOMATE 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="قائمة الرغبات"> JOLY THEN ENTIER A LA SAUCE TOMATE 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="قائمة الرغبات"> DELFY THON ENTIER A LHUIL VEGETAL 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="قائمة الرغبات"> JOLY A LA SAUCE TOMATE 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="قائمة الرغبات"> GARCIA THON ENTIER 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="قائمة الرغبات"> ISABEL EN SALSA DE TOMATE 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"> أضِف إلى السلة جاري الإضافة... نفدت الكمية