  const tabs = {
    kitchens: 'kitchenBlock',
    tables: 'tableBlock',
    sofas: 'sofaBlock',
    custom: 'customBlock'
  };

.catalog-block {
  display: none;
}

  document.querySelectorAll('a[href^="#"]').forEach(link => {
    link.addEventListener('click', function(e) {
      e.preventDefault();
      const targetId = this.getAttribute('href').substring(1);
      Object.values(tabs).forEach(id => {
        const el = document.getElementById(id);
        if (el) el.style.display = 'none';
      });
      const toShow = document.getElementById(tabs[targetId]);
      if (toShow) toShow.style.display = 'block';
      toShow.scrollIntoView({ behavior: 'smooth' });
    });
  });




/* Убираем синюю полосу-фокус у ссылок/кнопок магазина и слайдера */
.t-store a:focus,
.t-store button:focus,
.t-store__card__wrap a:focus,
.t-slds a:focus,
.t-slds button:focus,
.t-zoom a:focus,
.t-zoom button:focus,
a[href^="#popup:product"]:focus,
*:target {
  outline: none !important;
  box-shadow: none !important;
}


/* Скругляем фото в карточках магазина */
.t-store__card__imgwrapper{
  border-radius: 15px !important;
  overflow: hidden;              /* чтобы картинка обрезалась по радиусу */
}

/* Внутренние слои у Tilda чаще как фоновые div'ы */
.t-store__card__img,
.t-store__card__bgimg{
  border-radius: inherit !important;
}
