/* Scoped to: interior-product-showcase-template-header */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="interior-product-showcase-template-header"]');
  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="interior-product-showcase-template-header"] ~ ' + 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 () { const toggle = document.getElementById("interiorMenuToggle"); const innerToggle = document.getElementById("interiorMenuToggleInner"); const menu = document.getElementById("interiorMobileMenu"); const icon = document.getElementById("interiorMenuIcon"); const header = document.querySelector("header"); function toggleMenu() { menu.classList.toggle("open"); icon.classList.toggle("open"); } toggle?.addEventListener("click", toggleMenu); innerToggle?.addEventListener("click", toggleMenu); const currentPath = window.location.pathname.replace(/\/$/, "").split("/").pop(); document.querySelectorAll(".interior-nav-link").forEach((link) => { if (link.getAttribute("href") === currentPath) { link.classList.add("active"); } }); })();
  });
})();