StealThis .dev

Shop — Wishlist / Saved Items

A polished e-commerce wishlist component rendering saved products as a responsive grid of cards, each with a gradient product tile, inline-SVG silhouette, brand, title, star rating with review count, prominent price, and a colour-coded stock chip. Per-item heart-remove and move-to-cart buttons, a select-all plus bulk move and remove bar, undo toasts, price-drop badges, a live cart counter, and a built-in empty state. Selections and saved items persist to localStorage.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Wishlist / Saved Items

A clean white, ink, and single-accent saved-items grid. Each card pairs a soft tinted gradient tile and an inline-SVG product silhouette with the brand, title, a partial-fill star rating and review count, a prominent price (with strike-through original on discounted items), and a colour-coded stock chip — in stock, only a few left, or out of stock. A floating select checkbox and heart sit over the tile, with optional price-drop and new badges in the corner.

A bulk-actions bar above the grid offers a tri-state select-all checkbox that reflects partial and full selection, a live “N selected” label, and bulk move-to-cart and remove buttons that enable only when something is checked. Every card also has its own move-to-cart CTA and a heart that removes the item with a quick pop animation.

All interactions are real and self-contained in vanilla JS. Moving an item to cart bumps the header cart counter and offers an undo toast; removing surfaces undo too; out-of-stock items are skipped on move. Saved items and the cart count persist to localStorage, so the list survives a reload, and clearing everything reveals a dedicated empty state with a one-tap restore. Money is formatted as $1,299.00.

Illustrative storefront UI only — fictional products, prices, and reviews. No real checkout.