Sticky Sidebar By Pure CSS

Add the following code to your sidebar style to do sticky.

.sidebar{
    --offset: 2rem;
    flex-grow: 1;
    align-self: start;
    position: sticky;
    top: var(--offset);
}
Shopping Cart