text: // filter menu highlight
  (function () {
    // Isotope
    const elem = document.querySelector('.product__list');
    const iso = new Isotope(elem, {
      itemSelector: '.product__item',
    });
  
    // product-filter
    const controls = document.querySelectorAll('.filter__link');
    const activeClass = 'filter__item--active';
    controls.forEach(function (control) {
      control.addEventListener('click', function (e) {
        e.preventDefault();
        let filterName = control.getAttribute('data-filter');
        controls.forEach(function (link) {
          link.closest('.filter__item').classList.remove(activeClass);
          //find parent for link with class ...
        });
        control.closest('.filter__item').classList.add(activeClass);
        iso.arrange({
            filter: `.${filterName}`
        })
      });
    });
  
    // product-choice filter
    const choiceControls = document.querySelectorAll('.product-choice__filter-item');
    const choiceClassActive = 'product-choice__filter-item--active';
    choiceControls.forEach(function (control) {
    control.addEventListener('click', function (e) {
      e.preventDefault();
      choiceControls.forEach(function (link) {
          link.classList.remove(choiceClassActive);
        });
        control.classList.add(choiceClassActive);
      });
    });
  })();
  