:root {
  --mqf-header-base-height: 92px;
  --mqf-promo-height: 38px;
  --mqf-header-height: calc(var(--mqf-header-base-height) + var(--mqf-promo-height));
  --mqf-header-bar-height: 70px;
  --mqf-header-offset: 12px;
  --mqf-header-max-width: 1480px;
  --mqf-red: #e20917;
  --mqf-red-dark: #bd0712;
  --mqf-ink: #17191c;
  --mqf-muted: #626970;
  --mqf-line: #e2e5e8;
  --mqf-soft: #f4f6f7;
  --mqf-white: #ffffff;
}

.mqf-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: var(--mqf-header-offset) 18px 0;
  color: var(--mqf-ink);
}

.mqf-promo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: var(--mqf-promo-height);
  overflow: hidden;
  color: #ffffff;
  background: #30343a;
  text-decoration: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 180ms ease-out,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mqf-promo:hover,
.mqf-promo:focus-visible {
  background: #25282d;
}

.mqf-promo:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: -4px;
}

.mqf-promo__viewport {
  display: block;
  height: 100%;
  overflow: hidden;
}

.mqf-promo__track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  will-change: transform;
  animation: mqf-promo-scroll 42s linear infinite;
}

.mqf-promo__group {
  display: inline-flex;
  flex: 0 0 max(100vw, 720px);
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-inline: 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 540;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.mqf-promo__group:nth-child(even) {
  display: none;
}

.mqf-promo__cta {
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.mqf-promo:hover .mqf-promo__track,
.mqf-promo:focus-visible .mqf-promo__track {
  animation-play-state: paused;
}

.mqf-header.is-promo-hidden .mqf-promo {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -100%, 0);
}

.mqf-header__shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, var(--mqf-header-max-width));
  height: var(--mqf-header-bar-height);
  margin: 0 auto;
  padding: 0 14px 0 18px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(23, 25, 28, 0.065);
  border-radius: 14px;
  box-shadow: none;
  top: var(--mqf-promo-height);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    top 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mqf-header.is-scrolled .mqf-header__shell {
  border-color: rgba(23, 25, 28, 0.1);
  box-shadow: 0 8px 24px rgba(23, 25, 28, 0.08);
}

.mqf-header.is-promo-hidden .mqf-header__shell {
  top: -3px;
}

.mqf-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(154px, 13vw, 182px);
  min-width: 0;
  text-decoration: none;
  animation: mqf-item-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
}

.mqf-brand__image {
  display: block;
  width: 100%;
  height: auto;
}

.mqf-nav {
  min-width: 0;
  margin-inline: clamp(16px, 2.8vw, 44px);
}

.mqf-nav__mobile-heading,
.mqf-nav__mobile-cta {
  display: none;
}

.mqf-nav__list,
.mqf-submenu__grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mqf-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mqf-nav__item {
  position: relative;
  min-width: 0;
  animation: mqf-item-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mqf-nav__item:nth-child(1) {
  animation-delay: 80ms;
}

.mqf-nav__item:nth-child(2) {
  animation-delay: 110ms;
}

.mqf-nav__item:nth-child(3) {
  animation-delay: 140ms;
}

.mqf-nav__item:nth-child(4) {
  animation-delay: 170ms;
}

.mqf-nav__item:nth-child(5) {
  animation-delay: 200ms;
}

.mqf-nav__trigger,
.mqf-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  overflow: hidden;
  color: #2b2e32;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.mqf-nav__trigger::after,
.mqf-nav__link::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  background: var(--mqf-red);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease-out;
}

.mqf-nav__trigger:hover::after,
.mqf-nav__trigger[aria-expanded="true"]::after,
.mqf-nav__link:hover::after,
.mqf-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.mqf-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mqf-nav__chevron {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  transition: transform 180ms ease-out;
}

.mqf-nav__trigger[aria-expanded="true"] .mqf-nav__chevron {
  transform: rotate(180deg);
}

.mqf-submenu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 50%;
  width: min(560px, calc(100vw - 40px));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 160ms ease-out,
    transform 190ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 190ms;
}

.mqf-submenu--compact {
  width: min(350px, calc(100vw - 40px));
}

.mqf-nav__item.is-open > .mqf-submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.mqf-submenu__surface {
  padding: 12px;
  background: var(--mqf-white);
  border: 1px solid rgba(23, 25, 28, 0.07);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(23, 25, 28, 0.085);
}

.mqf-submenu__heading {
  display: grid;
  gap: 5px;
  padding: 0 4px 15px;
  border-bottom: 1px solid var(--mqf-line);
}

.mqf-submenu__heading strong {
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.35;
}

.mqf-submenu__eyebrow {
  color: var(--mqf-red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mqf-submenu__grid {
  display: grid;
  gap: 2px;
  padding: 0 0 8px;
}

.mqf-submenu__grid--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mqf-submenu__link {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 7px;
  color: var(--mqf-ink);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease-out;
}

.mqf-submenu__link--single {
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 48px;
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 700;
}

.mqf-submenu__link:hover,
.mqf-submenu__link:focus-visible {
  color: var(--mqf-red-dark);
  background: var(--mqf-soft);
  transform: translateX(1px);
}

.mqf-submenu__thumb {
  display: block;
  width: 68px;
  height: 50px;
  object-fit: cover;
  background: var(--mqf-soft);
  border-radius: 6px;
}

.mqf-submenu__link-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mqf-submenu__link-title {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.mqf-submenu__link-copy {
  color: var(--mqf-red-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.mqf-submenu__arrow {
  width: 17px;
  height: 17px;
  color: #8b9197;
  transition:
    color 160ms ease,
    transform 160ms ease-out;
}

.mqf-submenu__link:hover .mqf-submenu__arrow,
.mqf-submenu__link:focus-visible .mqf-submenu__arrow {
  color: var(--mqf-red-dark);
  transform: translateX(2px);
}

.mqf-submenu__all {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 9px 7px 0;
  color: var(--mqf-red-dark);
  border-top: 1px solid var(--mqf-line);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.mqf-submenu__all:hover,
.mqf-submenu__all:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mqf-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  animation: mqf-item-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

.mqf-icon-button,
.mqf-menu-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #30343a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease-out;
}

.mqf-icon-button:hover,
.mqf-menu-button:hover {
  color: var(--mqf-red-dark);
  background: var(--mqf-soft);
  border-color: transparent;
  transform: translateY(-1px);
}

.mqf-cart-badge {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e20917;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.mqf-cart-badge[hidden] {
  display: none;
}

@media (min-width: 1100px) {
  .mqf-icon-button[data-mqf-action="open-cart"] {
    margin-right: 12px;
  }
}

.mqf-header__cta,
.mqf-nav__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--mqf-white);
  background: var(--mqf-red);
  border: 1px solid var(--mqf-red);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease-out,
    box-shadow 160ms ease;
}

.mqf-header__cta:hover,
.mqf-nav__mobile-cta:hover {
  background: var(--mqf-red-dark);
  border-color: var(--mqf-red-dark);
  box-shadow: 0 8px 18px rgba(226, 9, 23, 0.18);
  transform: translateY(-1px);
}

.mqf-nav__mobile-cta {
  display: none;
}

.mqf-menu-button {
  display: none;
}

.mqf-menu-button__open,
.mqf-menu-button__close {
  position: absolute;
  transition:
    opacity 150ms ease,
    transform 180ms ease-out;
}

.mqf-menu-button__close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.8);
}

.mqf-menu-button[aria-expanded="true"] .mqf-menu-button__open {
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
}

.mqf-menu-button[aria-expanded="true"] .mqf-menu-button__close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.mqf-nav-scrim {
  display: none;
}

.mqf-nav__trigger:focus-visible,
.mqf-nav__link:focus-visible,
.mqf-submenu__link:focus-visible,
.mqf-submenu__all:focus-visible,
.mqf-icon-button:focus-visible,
.mqf-menu-button:focus-visible,
.mqf-header__cta:focus-visible,
.mqf-nav__mobile-cta:focus-visible,
.mqf-brand:focus-visible {
  outline: 3px solid rgba(226, 9, 23, 0.32);
  outline-offset: 2px;
}

@keyframes mqf-item-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mqf-promo-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 1500px) {
  .mqf-promo__group,
  .mqf-promo__group:nth-child(even) {
    display: inline-flex;
    flex-basis: clamp(880px, 56vw, 1080px);
    gap: 20px;
    padding-inline: 28px;
  }
}

@media (min-width: 1400px) {
  .mqf-header__shell {
    width: min(90%, var(--mqf-header-max-width));
  }
}

@media (max-width: 1190px) and (min-width: 1100px) {
  .mqf-brand {
    width: 150px;
  }

  .mqf-nav {
    margin-inline: 12px;
  }

  .mqf-nav__trigger,
  .mqf-nav__link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .mqf-header__cta {
    padding-inline: 13px;
    font-size: 13px;
  }
}

@media (max-width: 1099px) {
  :root {
    --mqf-header-base-height: 84px;
    --mqf-promo-height: 36px;
    --mqf-header-bar-height: 64px;
    --mqf-header-offset: 8px;
  }

  .mqf-header {
    padding-inline: 10px;
  }

  .mqf-header__shell {
    grid-template-columns: minmax(148px, 1fr) auto;
    padding-inline: 14px 10px;
    border-radius: 13px;
  }

  .mqf-brand {
    width: min(174px, 44vw);
  }

  .mqf-nav {
    position: fixed;
    z-index: 2;
    top: var(--mqf-header-height);
    right: 10px;
    bottom: 10px;
    width: min(430px, calc(100vw - 20px));
    margin: 0;
    padding: 24px 22px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mqf-white);
    border: 1px solid var(--mqf-line);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(23, 25, 28, 0.11);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity 180ms ease-out,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 260ms;
  }

  .mqf-header.is-promo-hidden .mqf-nav {
    top: var(--mqf-header-base-height);
  }

  .mqf-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .mqf-nav__mobile-heading {
    display: block;
    margin: 0 0 14px;
    color: var(--mqf-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mqf-nav__list {
    display: block;
  }

  .mqf-nav__item {
    border-bottom: 1px solid var(--mqf-line);
  }

  .mqf-nav__trigger,
  .mqf-nav__link {
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0;
    font-size: 16px;
    text-align: left;
  }

  .mqf-nav__trigger::after,
  .mqf-nav__link::after {
    display: none;
  }

  .mqf-submenu,
  .mqf-submenu--compact,
  .mqf-submenu--wide {
    position: static;
    width: 100%;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition:
      max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 160ms ease-out,
      visibility 0s linear 260ms;
  }

  .mqf-nav__item.is-open > .mqf-submenu {
    max-height: 680px;
    visibility: visible;
    padding-bottom: 12px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .mqf-submenu__surface {
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mqf-submenu__heading {
    display: none;
  }

  .mqf-submenu__grid,
  .mqf-submenu__grid--two-columns {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
  }

  .mqf-submenu__link,
  .mqf-submenu__link--single {
    min-height: 58px;
    padding: 6px 9px;
    background: var(--mqf-soft);
    border-radius: 6px;
  }

  .mqf-submenu__link--single {
    min-height: 48px;
    padding: 8px 11px;
  }

  .mqf-submenu__thumb {
    width: 58px;
    height: 42px;
  }

  .mqf-submenu__link:not(.mqf-submenu__link--single) {
    grid-template-columns: 58px minmax(0, 1fr) 18px;
  }

  .mqf-submenu__all {
    min-height: 42px;
    padding: 6px 12px 0;
  }

  .mqf-nav__mobile-cta {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
  }

  .mqf-header__actions {
    gap: 6px;
  }

  .mqf-header__cta {
    display: none;
  }

  .mqf-menu-button {
    display: inline-grid;
    color: var(--mqf-white);
    background: #30343a;
    border-color: #30343a;
  }

  .mqf-menu-button:hover {
    color: var(--mqf-white);
    background: var(--mqf-ink);
    border-color: var(--mqf-ink);
  }

  .mqf-nav-scrim {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: block;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(20, 23, 27, 0.32);
    border: 0;
    transition:
      opacity 200ms ease-out,
      visibility 0s linear 200ms;
  }

  .mqf-header.menu-open .mqf-nav-scrim {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

@media (max-width: 520px) {
  :root {
    --mqf-header-base-height: 78px;
    --mqf-header-bar-height: 60px;
    --mqf-header-offset: 7px;
  }

  .mqf-header {
    padding-inline: 7px;
  }

  .mqf-promo__track {
    animation-duration: 36s;
  }

  .mqf-promo__group {
    gap: 20px;
    padding-inline: 22px;
    font-size: 12px;
  }

  .mqf-header__shell {
    grid-template-columns: minmax(122px, 1fr) auto;
    padding-inline: 10px 7px;
    border-radius: 12px;
  }

  .mqf-brand {
    width: min(146px, 39vw);
  }

  .mqf-header__actions {
    gap: 5px;
  }

  .mqf-menu-button {
    margin-left: 5px;
  }

  .mqf-icon-button,
  .mqf-menu-button {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .mqf-nav {
    right: 7px;
    bottom: 7px;
    width: calc(100vw - 14px);
    padding: 21px 18px 28px;
  }
}

@media (max-width: 370px) {
  .mqf-brand {
    width: 126px;
  }

  .mqf-icon-button,
  .mqf-menu-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .mqf-icon {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mqf-brand,
  .mqf-nav__item,
  .mqf-header__actions {
    animation: none;
  }

  .mqf-promo__track {
    width: 100%;
    animation: none;
  }

  .mqf-promo__group {
    display: none;
  }

  .mqf-promo__group:first-child {
    display: inline-flex;
    flex-basis: 100%;
  }
}
