/* Mega menu — only affects menu items that have 3 levels of links. */
@media (min-width: 990px) {
  /* Higher specificity on purpose: bj-base.css is loaded again by later sections and
     would otherwise reset these items to position: relative (squashing the panel). */
  .bj-header .bj-nav .bj-nav__item.bj-nav__item--mega { position: static; }
  .bj-header .bj-header__col, .bj-header .bj-header__bottom, .bj-header nav, .bj-header .bj-nav { position: static; }
  .bj-header .bj-mega { position: absolute; width: auto; min-width: 0; max-width: none; left: 0; right: 0; top: 100%; background: var(--bj-header-bg, var(--bj-dark)); background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 4px 4px; border-top: 1px solid rgba(239,227,207,.18); box-shadow: 0 22px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 55; }
  .bj-mega::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; }
  .bj-header .bj-nav__item--mega:hover .bj-mega, .bj-header .bj-nav__item--mega:focus-within .bj-mega { opacity: 1; visibility: visible; transform: none; }
  .bj-nav__item--mega:hover > .bj-nav__link { color: #fff; }
  .bj-header .bj-mega__inner { display: grid; grid-template-columns: repeat(var(--mega-cols, 5), minmax(0, 1fr)); gap: 30px; padding: 36px 40px 44px; max-width: 1400px; margin: 0 auto; }
  .bj-mega__heading { display: block; white-space: normal; font-family: var(--bj-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; color: #fff; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(239,227,207,.28); }
  .bj-mega__heading:hover { color: var(--bj-orange); }
  span.bj-mega__heading:hover { color: #fff; }
  .bj-header .bj-mega__inner--auto { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 1340px; padding: 38px 40px 40px; }
  .bj-mega__inner--auto .bj-mega__heading { font-size: 15px; color: #efe3cf; padding-bottom: 15px; margin-bottom: 20px; border-bottom-color: rgba(239,227,207,.2); }
  .bj-mega__inner--auto .bj-mega__list li { margin-bottom: 8px; }
  .bj-mega__inner--auto .bj-mega__link { font-size: 17px; letter-spacing: .01em; }
  .bj-mega__inner--auto .bj-mega__promo { max-width: 186px; aspect-ratio: 186 / 285; }
  .bj-mega__list li { margin-bottom: 10px; }
  .bj-mega__link { font-family: var(--bj-label); font-weight: 500; font-size: 17px; line-height: 1.35; color: #d9cbb4; transition: color .15s; }
  .bj-mega__link:hover, .bj-mega__link.is-current { color: #fff; }
  .bj-mega__link.is-accent { color: var(--bj-orange); text-transform: uppercase; }
  .bj-mega__link.is-sale { color: #e0584a; text-transform: uppercase; }
  .bj-mega__promo { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; align-self: start; max-width: 240px; justify-self: end; width: 100%; background: var(--bj-dark-2); }
  .bj-mega__promo img, .bj-mega__promo svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  .bj-mega__promo:hover img { transform: scale(1.04); }
  .bj-mega__promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,12,8,.85) 0%, rgba(18,12,8,0) 55%); }
  .bj-mega__promo-copy { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: #fff; }
  .bj-mega__promo-eyebrow { display: block; font-family: var(--bj-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-bottom: 4px; }
  .bj-mega__promo-heading { display: block; font-family: var(--bj-display); font-weight: 600; text-transform: uppercase; font-size: 22px; line-height: 1.05; }
}
@media (max-width: 989px) {
  .bj-mega { display: none; }
  .bj-mnav__sub details { border-bottom: 0; }
  .bj-mnav__sub summary { font-size: 17px !important; padding: 8px 0 !important; color: var(--bj-light); }
  .bj-mnav__sub ul { padding: 0 0 8px 14px !important; }
  .bj-mnav__sub ul a { font-size: 15px !important; color: #d9cbb4; }
}
