Compact Cart
A condensed cart panel listing items, quantities, and a running total in tight space. Fits a header dropdown or a narrow column without crowding the layout.
A condensed cart panel listing items, quantities, and a running total in tight space. Fits a header dropdown or a narrow column without crowding the layout.
Search blocks by description or jump to a page.
Compact Cart opens as a slide-in sheet panel triggered by a cart icon button that shows a live item count badge. Inside the panel a header names the sheet and states how many items are present. Below it each cart item renders as a card with a square product thumbnail on the left and, on the right, the product name, a color and size note, a trash button, a plus/minus quantity stepper capped to available stock, the running line total, and a struck-through original price when a discount exists. An Order Summary card below the item list shows subtotal, shipping, and total, a free shipping threshold note, and a full-width checkout button.
Each piece is independently editable. You can swap product names, images, variant labels, prices, and stock limits without touching the panel structure. The shipping cost and free-shipping threshold are plain constants, so adjusting them takes a one-line change. Items can be added or removed from the initial list freely, and the item count badge and all totals update automatically.
Reach for this block when you need a cart that lives inside a header or a narrow sidebar column rather than taking over the full page. For an AI assistant product that sells usage plans, add-on credits, or tool packs, this panel lets a customer review their selections and adjust quantities without leaving the pricing or feature page they were reading. It fits better than a full cart page in contexts where the primary goal is a quick review before committing, and better than a floating overlay when you want the panel anchored to one side of the viewport.
A natural flow around it on an Ecommerce page:
Before
After
The panel is built from three separable parts, each of which you can edit in isolation:
Tip: cap your demo item list at three or four entries so the panel stays scannable without requiring the user to scroll before they reach the checkout button.