Here’s some styling to make the search box of a collection sticky. Be sure to name the class of the collection “sticky-search” so that it matches the CSS below:
.sticky-search [class*="needs-search-only"] {
position: sticky;
top:0;
z-index: 9999;
backdrop-filter: blur(10px);
padding: 0 0 10px 0;
}