.mega-menu-v5 {
  max-height: 60dvh;
  --width: 6px;
  --scrollbar-thumb-color: rgba(var(--color-foreground), 0.08);
  --scrollbar-thumb-color-hover: rgba(var(--color-foreground), 0.1);
}

.mega-menu-v5__column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mega-menu-v5__title {
  font-size: calc(var(--font-heading-scale) * var(--font-body-scale) * 1.5rem);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
  position: relative;
}
.mega-menu-v5__title::after {
  content: "";
  position: absolute;
  bottom: 0rem;
  background-color: rgba(var(--color-foreground), 0.15);
  width: 4rem;
  height: 0.1rem;
}
[dir=ltr] .mega-menu-v5__title::after {
  left: 0;
}
[dir=rtl] .mega-menu-v5__title::after {
  right: 0;
}

.mega-menu-v5__item {
  padding: 0.25rem 0;
}

.mega-menu-v5__link {
  position: relative;
  transition: 0.3s;
}
.mega-menu-v5__link:hover {
  padding-inline-start: 0.5rem;
}

.mega-menu-v5__link:hover .mega-menu-v5__label {
  color: rgba(var(--color-foreground));
}

.mega-menu-v5__label {
  font-size: calc(var(--font-body-scale) * 1.5rem);
  line-height: calc(1 + 0.6 / var(--font-heading-scale));
  color: rgba(var(--color-foreground), 0.5);
  font-weight: 500;
  transition: 0.3s;
}

.mega-menu-v5__label-filter {
  position: absolute;
  top: 50%;
  transform: translate(25%, -50%);
  border-radius: 3rem;
  font-size: calc(var(--font-body-scale) * 0.8rem);
  text-transform: uppercase;
  padding: 0 0.6rem;
  font-weight: 500;
  line-height: calc(1 + 1 / var(--font-heading-scale));
  color: #fff;
  background-color: var(--bg-color);
}
[dir=ltr] .mega-menu-v5__label-filter {
  left: 100%;
}
[dir=rtl] .mega-menu-v5__label-filter {
  right: 100%;
}