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