var canRunClickFunc=!0;function makeTouchstartWithClick(e){if(!canRunClickFunc)return!1;setTimeout(function(){canRunClickFunc=!0},700);var t=e.target,r=t.closest(".close-drawer");if(t.classList.contains("close-drawer")||r){document.querySelector("body").classList.remove("filter-open"),document.querySelector("body").classList.remove("mobile-toggled");return}var r=t.closest(".menu-toggle");if(t.classList.contains("menu-toggle")||r){e.stopPropagation(),e.preventDefault(),document.querySelector("body").classList.add("mobile-toggled");return}if(t.classList.contains("mobile-overlay")){document.querySelector("body").classList.remove("filter-open"),document.querySelector("body").classList.remove("mobile-toggled");return}var r=t.closest(".add_to_cart_button");t.classList.contains("add_to_cart_button")&&document.querySelector("body").classList.remove("mobile-toggled")}function makeOnTouchTapped(){992 a");i&&i.forEach(function(e){"#"===e.getAttribute("href")&&e.addEventListener("click",function(e){e.target.closest("li").classList.toggle("dropdown-open"),e.preventDefault()})});var s=document.querySelector(".logo-mark a");s&&s.addEventListener("click",function(e){e.target,e.preventDefault(),window.scroll({behavior:"smooth",left:0,top:0})});var a=document.querySelectorAll("a.variable-grouped-sticky");a&&a.forEach(function(e){"#"!==e.getAttribute("href")&&e.addEventListener("click",function(t){var r=document.querySelector(e.getAttribute("href"));r&&(t.preventDefault(),window.scroll({behavior:"smooth",left:0,top:r.offsetTop-80}))})});var l=[].slice.call(document.querySelectorAll("img.lazy")),c=!1;let u=function(){!1===c&&(c=!0,setTimeout(function(){l.forEach(function(e){e.getBoundingClientRect().top<=window.innerHeight&&0<=e.getBoundingClientRect().bottom&&"none"!==getComputedStyle(e).display&&(e.src=e.dataset.src,e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.classList.remove("lazy"),0===(l=l.filter(function(t){return t!==e})).length&&(document.removeEventListener("scroll",u),window.removeEventListener("resize",u),window.removeEventListener("orientationchange",u)))}),c=!1},200))};document.addEventListener("scroll",u),window.addEventListener("resize",u),window.addEventListener("orientationchange",u)});