StealThis .dev
Pages Hard

Shop — Product Detail (PDP)

A complete e-commerce product detail page with a gradient and SVG image gallery, thumbnail switching, color swatches and capacity chips that drive price, image, and stock state, a quantity stepper, working add-to-cart and wishlist toasts, expandable shipping and returns accordions, a rating breakdown with verified reviews, and a horizontal you-may-also-like rail with quick-add buttons.

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

Code

Product Detail (PDP)

A polished, self-contained product detail page for a fictional outdoor-gear storefront. The two-column layout pairs a sticky gallery — a CSS-gradient and inline-SVG product silhouette with four switchable thumbnail views — against a full buy box: eyebrow, title, star rating with review count, a sale price showing compare-at and savings, and a stock chip. Color swatches and capacity chips are real radio groups; choosing one updates the brand tone, the live price, and the per-variant stock state.

The quantity stepper clamps between one and twelve and keeps the add-to-cart button’s total in sync. Add-to-cart, Buy it now, wishlist, and the quick-add buttons on the “you may also like” rail all push animated toasts and bump the header cart badge. Shipping, returns, and details collapse into accessible accordions, and the reviews block renders a rating-distribution breakdown alongside verified customer reviews with toggleable “helpful” votes.

Everything is keyboard-operable — arrow keys rove across swatches and chips, controls expose aria state, and focus-visible rings stay sharp. The layout collapses to a single column on tablets and reflows the action row at phone widths, with a reduced-motion fallback.

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