/* Homepage categories: hover previews the native selected artwork, click selects. */
body[data-akiwa-path="/"] .nm-services-tab__item {
  /* Swiper adds its own inline spaceBetween after measuring each slide.
     A CSS margin here was counted twice in slidesGrid, unlike the painted gap. */
  margin-right: 0;
}
body[data-akiwa-path="/"] .nm-services button.nm-services-tab__item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-akiwa-path="/"] .nm-services-tab__item:hover .nm-services-tab__icon::before {
    opacity: 1;
  }
  body[data-akiwa-path="/"] .nm-services-tab__item:hover .nm-services-tab__icon img {
    filter: brightness(0) invert(1);
  }
  body[data-akiwa-path="/"] .nm-services-tab__item:hover .nm-services-tab__name {
    color: var(--main-color-primary);
  }
  body[data-akiwa-path="/"] .nm-services-tab__item[data-slide="9"]:hover .nm-services-tab__icon img {
    content: url("/assets/content/marketplaces/store-selected.svg");
    filter: none;
  }
}

body[data-akiwa-path="/"] .nm-services-tab__item:focus-visible {
  outline: 2px solid var(--main-color-primary);
  outline-offset: 4px;
  border-radius: 24px;
}
body[data-akiwa-path="/"] .nm-services-tab__item:focus-visible .nm-services-tab__icon::before {
  opacity: 1;
}
body[data-akiwa-path="/"] .nm-services-tab__item:focus-visible .nm-services-tab__icon img {
  filter: brightness(0) invert(1);
}
body[data-akiwa-path="/"] .nm-services-tab__item:focus-visible .nm-services-tab__name {
  color: var(--main-color-primary);
}
body[data-akiwa-path="/"] .nm-services-tab__item[data-slide="9"]:focus-visible .nm-services-tab__icon img {
  content: url("/assets/content/marketplaces/store-selected.svg");
  filter: none;
}

/* Keep the responsive arrow boxes when Swiper has nothing to scroll.
   display:none shrank the header by 4px, moving every category below it. */
body[data-akiwa-path="/"] .nm-services-nav__prev.swiper-button-lock,
body[data-akiwa-path="/"] .nm-services-nav__next.swiper-button-lock {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
