/* Scoped to: home-appliances-template-navbar */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="home-appliances-template-navbar"]');
  componentRoots.forEach(function(componentRoot) {
    // Helper to query within component, with fallback to document for sibling elements
    var $ = function(sel) { 
      return componentRoot.querySelector(sel) || document.querySelector('[data-component-slug="home-appliances-template-navbar"] ~ ' + sel) || document.querySelector(sel);
    };
    var $$ = function(sel) { 
      var results = componentRoot.querySelectorAll(sel);
      return results.length ? results : document.querySelectorAll(sel);
    };
    // Original component JS runs in this scope
    (function () { var btn = document.querySelector(".mobile-menu-btn"); var menu = document.querySelector(".mobile-menu"); if (btn && menu) { btn.addEventListener("click", function () { 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"); }); } })();
  });
})();