/* Native facets and controls are retained, including their AJAX handlers. */
body.hm-doomscroll { --hmd-top: 12px; }
@media (min-width:768px) {
  body.hm-doomscroll #left-column #facets_search_wrapper {
    position:sticky!important;
    top:var(--hmd-top)!important;
    max-height:calc(100dvh - var(--hmd-top) - 16px);
    overflow-y:auto;
    /* Hide only this outer scrollbar; native facet-list scrollbars remain. */
    scrollbar-width:none!important;
    overscroll-behavior:contain;
    z-index:20;
  }
  body.hm-doomscroll #left-column #facets_search_wrapper::-webkit-scrollbar {
    display:none!important;
    width:0!important;
    height:0!important;
  }
}
@media (max-width:767.98px) {
  body.hm-doomscroll .hmd-toolbar-host,
  body.hm-doomscroll #js-product-list-top.hmd-toolbar-alone {
    position:sticky!important;
    top:var(--hmd-top)!important;
    z-index:90;
  }
  body.hm-doomscroll .hmd-toolbar-host #js-product-list-top {
    position:relative!important;
    top:auto!important;
  }
  body.hm-doomscroll #js-product-list-top {
    background:#fff;
    padding:10px 8px;
    box-shadow:0 4px 14px rgba(0,0,0,.09);
    border-bottom:1px solid rgba(165,139,74,.3);
  }
  body.hm-doomscroll #search_filter_toggler { min-height:44px; }
}
