/* Scoped to: ss-sports-running-navbar */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="ss-sports-running-navbar"]');
  componentRoots.forEach(function(componentRoot) {
    var $ = function(sel) { 
      return componentRoot.querySelector(sel) || document.querySelector('[data-component-slug="ss-sports-running-navbar"] ~ ' + sel) || document.querySelector(sel);
    };
    var $$ = function(sel) { 
      var results = componentRoot.querySelectorAll(sel);
      return results.length ? results : document.querySelectorAll(sel);
    };
    var btn = document.querySelector(".mobile-menu-btn"); var menu = document.querySelector(".mobile-menu"); console.log(btn, menu); if (btn && menu) { btn.addEventListener("click", function () { console.log("Mobile menu clicked"); var isOpen = menu.classList.contains("translate-x-full"); menu.classList.toggle("translate-x-full"); if (isOpen) { document.body.classList.add("overflow-hidden"); } else { document.body.classList.remove("overflow-hidden"); } var hamburger = btn.querySelector(".hamburger-icon"); var close = btn.querySelector(".close-icon"); if (hamburger) hamburger.classList.toggle("hidden"); if (close) close.classList.toggle("hidden"); }); }
  });
})();