<script>
document.addEventListener("DOMContentLoaded", function() {
  const menuItems = document.querySelectorAll(".bricks-menu-item");

  menuItems.forEach((menuItem) => {
    const subMenuToggle = menuItem.querySelector("a");
    const subMenu = menuItem.querySelector(".sub-menu");

    if (subMenuToggle && subMenu) {
      subMenuToggle.addEventListener("click", (e) => {
        e.preventDefault();
        e.stopPropagation();

        const parent = subMenuToggle.parentNode;
        const isVisible = parent.getAttribute("aria-expanded") === "true";
        parent.setAttribute("aria-expanded", !isVisible);
      });
    }
  });

  document.addEventListener("click", () => {
    closeAllSubMenus(null);
  });

  function closeAllSubMenus(excludeMenuItem) {
    menuItems.forEach((menuItem) => {
      if (menuItem !== excludeMenuItem) {
        const subMenu = menuItem.querySelector(".sub-menu");
        if (subMenu) {
          const isDirectChild = excludeMenuItem && excludeMenuItem.contains(menuItem);
          const isAncestor = menuItem.contains(excludeMenuItem);
          if (!isDirectChild && !isAncestor) {
            menuItem.setAttribute("aria-expanded", "false");
          }
        }
      }
    });
  }
});
</script>
  • Paczkomaty InPost i Orlen
  • Darmowa wysyłka od 150zł
  • Szybkie płatności BLIK
  • Kategorie

    Papier ryżowy format A4

    Papier ryżowy format  A4

    Marki: ABStudio, Arabeska, Asket, Cadence, Decoratorium, ITD Collection, Paper Design, Powertex.

    ArtBasia

    Produkty

    Filtry produktów
      1
      2
      40
      41