:root {
  --nq-menu-carbon: #1d1e1b;
  --nq-menu-forest: #0b2d23;
  --nq-menu-orange: #f19a3a;
  --nq-menu-sage: #dce7df;
  --nq-menu-muted: #aeb1a9;
  --nq-menu-line: #3a3b36;
}

@media (min-width: 1025px) {
  header .nq-mega-products-item { position: relative; }

  header .nq-mega-products-item > a {
    position: relative;
  }

  header .nq-mega-products-item > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -16px;
    left: 0;
    height: 2px;
    background: var(--nq-menu-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
  }

  header .nq-mega-products-item:hover > a::after,
  header .nq-mega-products-item:focus-within > a::after,
  header .nq-mega-products-item.nq-mega-open > a::after {
    transform: scaleX(1);
  }

  header .nq-products-mega-menu {
    position: absolute !important;
    top: var(--nq-mega-top, calc(100% + 16px)) !important;
    left: var(--nq-mega-left, -520px) !important;
    z-index: 80;
    display: block !important;
    visibility: hidden;
    width: min(1240px, calc(100vw - 64px)) !important;
    margin: 0 !important;
    padding: 36px 44px 40px !important;
    background: var(--nq-menu-carbon) !important;
    color: #e3e0d8;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) !important;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
    box-shadow: 0 22px 0 rgba(11, 45, 35, 0.88), 0 32px 54px rgba(7, 21, 16, 0.26) !important;
  }

  header .nq-products-mega-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 104px;
    height: 3px;
    background: var(--nq-menu-orange);
    transform: translateX(-50%);
  }

  header .nq-mega-products-item:hover > .nq-products-mega-menu,
  header .nq-mega-products-item:focus-within > .nq-products-mega-menu,
  header .nq-mega-products-item.nq-mega-open > .nq-products-mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) !important;
  }

  header .nq-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

header .nq-mega-column:first-child .nq-mega-section + .nq-mega-section {
  margin-top: 32px;
}

header .nq-mega-heading {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nq-menu-line) !important;
  color: var(--nq-menu-orange) !important;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.115em;
  line-height: 1.28;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

header .nq-mega-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

header .nq-mega-link {
  position: relative;
  display: block !important;
  padding: 0 0 0 17px !important;
  color: #e3e0d8 !important;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.34;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 140ms ease, transform 140ms ease;
}

header .nq-mega-link::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nq-menu-orange);
  transition: transform 140ms ease;
}

header .nq-mega-link:hover,
header .nq-mega-link:focus-visible {
  color: #fff !important;
  transform: translateX(4px);
}

header .nq-mega-link:hover::before,
header .nq-mega-link:focus-visible::before {
  transform: scale(1.45);
}

header .nq-mega-spec {
  color: #8f938b;
  font-size: 0.88em;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

header .nq-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--nq-menu-line);
  color: #858980;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

header .nq-mega-footer a {
  color: var(--nq-menu-sage) !important;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

header .nq-mega-footer b {
  color: var(--nq-menu-orange);
  font-weight: 700;
}

header .nq-products-mega-menu :focus-visible {
  outline: 2px solid var(--nq-menu-orange);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  header .nq-products-mega-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 26px 22px 30px !important;
    background: var(--nq-menu-carbon) !important;
    color: #e3e0d8;
    transform: none !important;
  }

  header .nq-mega-products-item.nq-mega-open > .nq-products-mega-menu {
    display: block !important;
  }

  header .nq-mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  header .nq-mega-heading { font-size: 13px; }
  header .nq-mega-link { font-size: 14px; }
  header .nq-mega-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  header .nq-products-mega-menu,
  header .nq-products-mega-menu *,
  header .nq-mega-products-item > a::after {
    transition-duration: 0.01ms !important;
  }
}
