document.addEventListener("DOMContentLoaded",function(){const n=document.querySelector("[data-fct-menu-toggle]");if(!n)return;const o=n.parentNode,t=o.querySelector("[data-fct-offcanvas-menu]"),c=o.querySelector("[data-fct-offcanvas-menu-close]"),e=o.querySelector("[data-fct-offcanvas-menu-overlay]"),a=()=>{e&&e.classList.remove("active"),t&&t.classList.remove("open"),document.body.style.overflow=""};n.addEventListener("click",()=>{!t||!e||(e.classList.toggle("active"),t.classList.toggle("open"),document.body.style.overflow="hidden")}),c&&c.addEventListener("click",a),e&&e.addEventListener("click",a)});
