Vedi dettagli Per la Famiglia Dobble € 14,99 r.json()).then(data => { loading = false; done = true; $dispatch('cart-updated', { count: data.count }); $dispatch('show-toast', { msg: 'Dobble aggiunto al carrello!', type: 'success' }); setTimeout(() => done = false, 2000); }).catch(() => { loading = false; $dispatch('show-toast', { msg: 'Errore. Riprova.', type: 'error' }) }) " class="w-9 h-9 min-w-[44px] min-h-[44px] rounded-xl flex items-center justify-center transition-all duration-200" :class="done ? 'bg-green-500 text-white' : 'bg-brand-blue/10 text-brand-blue hover:bg-brand-blue hover:text-white'" :disabled="loading" aria-label="Aggiungi al carrello" >