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

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

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

.mega-menu-v3__link:hover .mega-menu-v3__label {
  color: rgba(var(--color-foreground));
}

.mega-menu-v3__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-v3__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-v3__label-filter {
  left: 100%;
}
[dir=rtl] .mega-menu-v3__label-filter {
  right: 100%;
}

.mega-menu-v3__grid-wrap {
  max-height: 60dvh;
  --width: 6px;
  --scrollbar-thumb-color: rgba(var(--color-foreground), 0.08);
  --scrollbar-thumb-color-hover: rgba(var(--color-foreground), 0.1);
}
@media (max-width: 1199px) {
  .mega-menu-v3__grid-wrap xo-grid[style*="--col-width"] {
    grid-template-columns: repeat(auto-fill, minmax(min(var(--col-width-mobile, 0), 100%), 1fr));
  }
}