StealThis .dev
Pages Hard

Shop — Category / PLP

A flagship e-commerce category and product-listing page with a faceted filter rail (category, price range, color swatches, fit, rating, in-stock), a sort dropdown, removable active-filter chips, and a responsive product grid. Every facet filters the grid live and instantly, updating the result count and chip row, while sort reorders and clear-all resets state. Includes working add-to-cart, wishlist, price slider, and a mobile filter drawer. Vanilla JS, no libraries.

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

Code

Category / PLP

A complete storefront category page built around fast, real faceted filtering. A sticky left rail exposes the facets shoppers expect — category checkboxes with counts, a dual price range (number inputs plus a slider), tappable color swatches, fit chips, a star-rating filter, and an in-stock toggle. The results area pairs a live result count with a sort dropdown (Featured, Price low/high, Top rated, Newest) and a row of removable active-filter chips, above a responsive grid of product cards rendered with inline-SVG “product photography” on soft tinted tiles.

Every interaction actually works and feels instant. Toggling any facet re-filters the grid in place, updates the “Showing X of Y” count, and adds or removes the matching chip — and each chip’s × removes just that filter, while Clear all resets everything. Cards carry brand, star rating with review count, color dots, sale/new/sold-out badges, low-stock warnings, a working add-to-cart with a count badge that bumps, and a wishlist heart. Load more pages through the catalog, and an empty state appears when nothing matches.

On narrow screens the rail collapses into a slide-in drawer behind a Filters button (closable via overlay tap or Escape), the grid steps down from three columns to two to one, and the layout stays usable down to about 360px. Built with semantic landmarks, ARIA on the custom controls, visible focus rings, and keyboard-operable facets.

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