/* TUSCART Alpha 0.8 — desktop navigation visual refinement.
   Category hierarchy, routes and mobile offcanvas remain unchanged. */
@media (min-width: 1200px) {
  #header .box-nav-ul > .menu-item > .item-link {
    position: relative;
    transition: color .2s ease;
  }
  #header .box-nav-ul > .menu-item > .item-link::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1877e8;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  #header .box-nav-ul > .menu-item:hover > .item-link::after,
  #header .box-nav-ul > .menu-item:focus-within > .item-link::after {
    transform: scaleX(1);
  }
  #header .box-nav-ul > .menu-item:hover > .item-link,
  #header .box-nav-ul > .menu-item:focus-within > .item-link {
    color: #1877e8;
  }
  #header .box-nav-ul .mega-menu {
    padding: 27px 0 29px;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #e8edf4;
    box-shadow: 0 18px 34px rgba(22, 38, 64, .11);
    max-height: calc(100vh - 110px);
  }
  #header .box-nav-ul .mega-menu .container {
    max-width: 1200px;
  }
  #header .box-nav-ul .mega-menu .row {
    row-gap: 22px;
  }
  #header .box-nav-ul .mega-menu .mega-menu-item {
    padding: 0 8px;
  }
  #header .box-nav-ul .mega-menu .menu-heading {
    font-size: 12px;
    letter-spacing: .055em;
    line-height: 20px;
    margin-bottom: 13px;
    color: #1c293c;
  }
  #header .box-nav-ul .mega-menu .menu-list li:not(:last-child) {
    margin-bottom: 8px;
  }
  #header .box-nav-ul .mega-menu .menu-link-text {
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    color: #536074;
    transition: color .2s ease, transform .2s ease;
  }
  #header .box-nav-ul .mega-menu .menu-link-text:hover,
  #header .box-nav-ul .mega-menu .menu-link-text:focus-visible {
    color: #1877e8;
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #header .box-nav-ul > .menu-item > .item-link::after,
  #header .box-nav-ul .mega-menu .menu-link-text {
    transition: none;
  }
}

/* Alpha 0.8.1 — dynamic category columns and clean active underline */
@media (min-width: 1200px) {
  #header .box-nav-ul > .menu-item > .item-link,
  #header .box-nav-ul > .menu-item > .item-link:hover,
  #header .box-nav-ul > .menu-item:hover > .item-link,
  #header .box-nav-ul > .menu-item:focus-within > .item-link {
    text-decoration: none !important;
  }
  #header .box-nav-ul > .menu-item > .item-link::after {
    bottom: -5px;
  }
  #header .box-nav-ul .mega-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #header .box-nav-ul .mega-menu .tuscart-mega-grid {
    display: grid;
    grid-template-columns: repeat(var(--tuscart-mega-columns, 4), minmax(0, 1fr));
    gap: 24px 22px;
    align-items: start;
  }
  #header .box-nav-ul .mega-menu .tuscart-mega-group {
    min-width: 0;
    padding: 0 8px;
  }
}
