{# Shared storefront search box + results region, used by the shop index and every category page. One form drives the listing: htmx re-runs /search and swaps only #shop-results; the toolbar keeps its own DOM state. Triggers: live (debounced) typing in the search box, immediate on a sort change, and submit (Enter). Degrades to a plain GET form without JS. Category is chosen from the sidebar (carried here as a hidden field so it survives a search / re-sort). The grid/list view toggle lives next to sort; its `view` state is held in Alpine on this wrapper so both the toggle and the swapped-in product grid (and `_card.html`) share it. Expects: query, selected_category, sort, plus the result vars consumed by _results.html. #} {% set L = lang | default(value='sk') %}