.vm-subcats {
  --vmsc-blue: #005bff;
  --vmsc-blue-dark: #004bd7;
  --vmsc-pink: #ff2f7d;
  --vmsc-ink: #111827;
  --vmsc-muted: #667085;
  --vmsc-line: #e5eaf2;
  --vmsc-soft: #f6f8fc;
  --vmsc-radius: 18px;
  position: relative;
  margin: -2rem 0 0rem;
  color: var(--vmsc-ink);
  font-family: inherit;
}

.vm-subcats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin: 0 0 .72rem;
}

.vm-subcats__head h2 {
  margin: 0;
  color: var(--vmsc-ink);
  font-size: clamp(1.18rem, 1.8vw, 1.72rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.vm-subcats__head p {
  margin: 0;
  color: var(--vmsc-muted);
  font-size: .95rem;
  line-height: 1.35;
}

.vm-subcats__quick {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 0 0 .55rem;
  margin: 0 0 .15rem;
  scrollbar-width: none;
}

.vm-subcats__quick::-webkit-scrollbar,
.vm-subcats__track::-webkit-scrollbar {
  display: none;
}

.vm-subcats__quick-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .72rem;
  border: 1px solid var(--vmsc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vmsc-ink);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
}

.vm-subcats__quick-link.is-active {
  border-color: rgba(0, 91, 255, .32);
  background: #eef4ff;
  color: var(--vmsc-blue);
}

.vm-subcats__shell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: .55rem;
  align-items: center;
}

.vm-subcats__track {
  display: flex;
  gap: .65rem;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: .2rem .05rem .35rem;
  scrollbar-width: none;
}

.vm-subcats__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: min(280px, 72vw);
  padding: .58rem .9rem;
  border: 1px solid var(--vmsc-line);
  border-radius: 14px;
  background: #fff;
  color: var(--vmsc-ink);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.12;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.vm-subcats__item span {
  display: block;
  white-space: normal;
}

.vm-subcats__item:hover,
.vm-subcats__item:focus-visible {
  border-color: rgba(0, 91, 255, .38);
  background: #f2f6ff;
  color: var(--vmsc-blue);
  outline: 0;
}

.vm-subcats__item.is-active {
  border-color: var(--vmsc-blue);
  background: var(--vmsc-blue);
  color: #fff;
  font-weight: 750;
}

.vm-subcats__item--all {
  gap: .45rem;
  background: #eff5ff;
  border-color: rgba(0, 91, 255, .18);
  color: var(--vmsc-blue);
}

.vm-subcats__item--all::before {
  content: "";
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 1.08rem;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.167 9.167c-.458 0-.85-.164-1.177-.49A1.604 1.604 0 0 1 2.5 7.5V4.167c0-.458.164-.851.49-1.177.326-.327.719-.49 1.177-.49H7.5c.458 0 .851.163 1.177.49.327.326.49.719.49 1.177V7.5c0 .458-.163.851-.49 1.177-.326.326-.719.49-1.177.49H4.167Zm0 8.333c-.458 0-.85-.163-1.177-.49a1.604 1.604 0 0 1-.49-1.177V12.5c0-.458.164-.851.49-1.177.326-.326.719-.49 1.177-.49H7.5c.458 0 .851.164 1.177.49.327.326.49.719.49 1.177v3.333c0 .458-.163.851-.49 1.177-.326.327-.719.49-1.177.49H4.167Zm8.333-8.333c-.458 0-.851-.164-1.177-.49a1.604 1.604 0 0 1-.49-1.177V4.167c0-.458.164-.851.49-1.177.326-.327.719-.49 1.177-.49h3.333c.458 0 .851.163 1.177.49.327.326.49.719.49 1.177V7.5c0 .458-.163.851-.49 1.177-.326.326-.719.49-1.177.49H12.5Zm0 8.333c-.458 0-.851-.163-1.177-.49a1.604 1.604 0 0 1-.49-1.177V12.5c0-.458.164-.851.49-1.177.326-.326.719-.49 1.177-.49h3.333c.458 0 .851.164 1.177.49.327.326.49.719.49 1.177v3.333c0 .458-.163.851-.49 1.177-.326.327-.719.49-1.177.49H12.5ZM4.167 7.5H7.5V4.167H4.167V7.5ZM12.5 7.5h3.333V4.167H12.5V7.5Zm0 8.333h3.333V12.5H12.5v3.333Zm-8.333 0H7.5V12.5H4.167v3.333Z' fill='black'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.167 9.167c-.458 0-.85-.164-1.177-.49A1.604 1.604 0 0 1 2.5 7.5V4.167c0-.458.164-.851.49-1.177.326-.327.719-.49 1.177-.49H7.5c.458 0 .851.163 1.177.49.327.326.49.719.49 1.177V7.5c0 .458-.163.851-.49 1.177-.326.326-.719.49-1.177.49H4.167Zm0 8.333c-.458 0-.85-.163-1.177-.49a1.604 1.604 0 0 1-.49-1.177V12.5c0-.458.164-.851.49-1.177.326-.326.719-.49 1.177-.49H7.5c.458 0 .851.164 1.177.49.327.326.49.719.49 1.177v3.333c0 .458-.163.851-.49 1.177-.326.327-.719.49-1.177.49H4.167Zm8.333-8.333c-.458 0-.851-.164-1.177-.49a1.604 1.604 0 0 1-.49-1.177V4.167c0-.458.164-.851.49-1.177.326-.327.719-.49 1.177-.49h3.333c.458 0 .851.163 1.177.49.327.326.49.719.49 1.177V7.5c0 .458-.163.851-.49 1.177-.326.326-.719.49-1.177.49H12.5Zm0 8.333c-.458 0-.851-.163-1.177-.49a1.604 1.604 0 0 1-.49-1.177V12.5c0-.458.164-.851.49-1.177.326-.326.719-.49 1.177-.49h3.333c.458 0 .851.164 1.177.49.327.326.49.719.49 1.177v3.333c0 .458-.163.851-.49 1.177-.326.327-.719.49-1.177.49H12.5ZM4.167 7.5H7.5V4.167H4.167V7.5ZM12.5 7.5h3.333V4.167H12.5V7.5Zm0 8.333h3.333V12.5H12.5v3.333Zm-8.333 0H7.5V12.5H4.167v3.333Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.vm-subcats__item--all.is-active {
  color: #fff;
}

.vm-subcats__nav {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vmsc-line);
  border-radius: 13px;
  background: #fff;
  color: var(--vmsc-ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vm-subcats__nav::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.vm-subcats__nav--prev::before {
  transform: rotate(-135deg);
}

.vm-subcats__nav--next::before {
  transform: rotate(45deg);
}

.vm-subcats__nav:hover,
.vm-subcats__nav:focus-visible {
  border-color: rgba(0, 91, 255, .35);
  background: #f2f6ff;
  color: var(--vmsc-blue);
  outline: 0;
}

.vm-subcats__nav[disabled] {
  opacity: .32;
  pointer-events: none;
}

.vm-subcats--chips .vm-subcats__item {
  border-radius: 999px;
}

.vm-subcats--dense .vm-subcats__item {
  min-height: 36px;
  padding: .44rem .72rem;
  border-radius: 12px;
  font-size: .88rem;
}

.vm-subcats--soft .vm-subcats__item {
  background: var(--vmsc-soft);
}

@media (max-width: 767px) {
  .vm-subcats {
    margin: -3rem 0 -1rem;
  }

  .vm-subcats__head {
    display: block;
    margin-bottom: .55rem;
  }

  .vm-subcats__head h2 {
    font-size: 1.08rem;
  }

  .vm-subcats__head p {
    margin-top: .2rem;
    font-size: .86rem;
  }

  .vm-subcats__shell {
    display: block;
  }

  .vm-subcats__nav {
    display: none;
  }

  .vm-subcats__track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(36px, auto));
    grid-auto-columns: max-content;
    align-items: stretch;
    gap: .48rem .5rem;
    margin: 0 -.85rem;
    padding: .1rem .85rem .4rem;
    scroll-snap-type: x mandatory;
  }

  .vm-subcats__item {
    min-height: 36px;
    max-width: 56vw;
    padding: .42rem .62rem;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
  }

  .vm-subcats__item.is-active {
    font-weight: 700;
  }

  .vm-subcats__quick {
    margin-right: -.85rem;
    padding-right: .85rem;
  }
}
