Appearance
Sticky add-to-cart
The buy button follows the shopper down the product page.
Once someone has scrolled past the real add-to-cart button, this section brings it back — as a bar across the bottom of a phone, or a small floating dock on a very wide screen. Both carry the product's photo, its name, the live price, and a button that adds the variant they have selected.
- It only appears when it is needed — while the page's own buy button is on screen, there is nothing there.
- It follows the page — switch variant and the price in the bar changes with it; a sold-out variant disables the button and relabels it.
- It gets out of the way — both surfaces step aside while the cart drawer is open, and the desktop dock can be dismissed.
Try it
Switch between the phone and desktop icons in the preview header to see each surface, turn the quantity stepper off, and turn the whole section off to see that it renders nothing at all.
Storefront preview
Both surfaces are pinned to the bottom of the real page. Here they sit inside the frame so you can see them — everything else, down to the quantity stepper and the dock's close control, is the shipped component.