Enhance add-to-cart toast

Styled the added-to-cart toast with bold green/brand background and white text, including a green visual emphasis and a persistent View Cart action button.

X-Lovable-Edit-ID: edt-940666bd-9011-493b-a9fb-b671b45a4e4e
Co-authored-by: CyberTechDroid <229118619+CyberTechDroid@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-03-12 22:57:04 +00:00
commit a2fdf596dd

View file

@ -24,8 +24,9 @@ export function ProductCard({ product }: ProductCardProps) {
toast({
title: '✓ Added to cart',
description: product.name,
className: 'bg-green-600 text-white border-green-700 [&>div]:text-white',
action: (
<Button size="sm" variant="outline" onClick={() => setIsCartOpen(true)}>
<Button size="sm" variant="outline" className="border-white text-white hover:bg-white/20 hover:text-white" onClick={() => setIsCartOpen(true)}>
View Cart
</Button>
),