diff --git a/app/components/ProductCard.tsx b/app/components/ProductCard.tsx index 466323d..f2839a3 100644 --- a/app/components/ProductCard.tsx +++ b/app/components/ProductCard.tsx @@ -57,13 +57,29 @@ export function ProductCard({ className={`group bg-bg-base border border-border rounded-md overflow-hidden flex flex-col h-full transition-transform duration-300 hover:-translate-y-1 ${className}`} >
- {product.name} + {/* Link wraps only the image, not the whole header — WishlistButton + below is its own interactive element and sits as a sibling, not + nested inside this Link (nested interactive elements are both + invalid HTML and would fire navigation on a wishlist click). */} + {product.href ? ( + + {product.name} + + ) : ( + {product.name} + )} {topLeftBadge !== undefined ? ( topLeftBadge ) : fullyOutOfStock ? (