/* Keep every product category on one swipeable row. */
.elm-header .elm-category-inner {
  align-items: stretch;
}

.elm-header .elm-category-all {
  display: flex;
  align-items: stretch;
}

.elm-header .elm-category-all > summary {
  width: 100%;
  height: 100%;
}

.elm-header .elm-category-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.elm-header .elm-category-links > a {
  flex: 0 0 auto;
  min-width: 148px;
  padding-inline: 18px;
  text-align: center;
  white-space: nowrap;
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  .elm-header .elm-category-links > a {
    min-width: 128px;
    padding-inline: 14px;
  }
}
