.mf-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--mf-black);
}

.mf-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 80px;
  font-size: 13px;
  font-weight: 750;
  color: var(--mf-white);
}

.mf-topbar-side,
.mf-topbar-right,
.mf-socials,
.mf-promo-strip {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mf-topbar-right {
  justify-content: flex-end;
}

.mf-socials a {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.mf-promo-arrow {
  display: none;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--mf-white);
}

.mf-promo-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mf-topbar-center {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mf-nav {
  min-height: 58px;
  background: var(--mf-gold);
  display: grid;
  grid-template-columns: 320px 1fr 180px;
  align-items: center;
  gap: 26px;
  padding: 0 80px;
}

.mf-primary-nav {
  min-width: 0;
}

.mf-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-menu a {
  display: block;
  padding: 21px 0 18px;
  border-bottom: 2px solid transparent;
  color: var(--mf-white);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.mf-menu a:hover,
.mf-menu a.is-active {
  border-color: currentColor;
}

.mf-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.mf-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--mf-white);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mf-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-cart-count {
  position: absolute;
  right: -8px;
  top: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ee3d61;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 17px;
}

.mf-menu-toggle {
  display: none;
}

.mf-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  pointer-events: none;
}

.mf-mega-panel {
  display: none;
  background: rgba(9, 8, 7, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--mf-shadow);
}

.mf-mega-panel.is-open {
  display: block;
  pointer-events: auto;
  animation: mfFadeSlide 0.18s ease both;
}

.mf-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 340px;
  gap: 34px;
  width: var(--mf-wrap);
  margin: 0 auto;
  padding: 34px 0;
}

.mf-mega-column h3 {
  margin: 0 0 14px;
  color: var(--mf-white);
  font-size: 14px;
  text-transform: uppercase;
}

.mf-mega-column a {
  display: block;
  padding: 7px 0;
  color: var(--mf-muted);
  font-size: 14px;
}

.mf-mega-column a:hover {
  color: var(--mf-white);
}

.mf-mega-feature {
  display: grid;
  gap: 10px;
  align-self: start;
  color: var(--mf-white);
}

.mf-mega-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-mega-feature span {
  color: var(--mf-muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 850;
}

.mf-mobile-panel,
.mf-search-overlay,
.mf-cart-drawer,
.mf-floating-panel,
.mf-panel-scrim {
  position: fixed;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
}

.mf-panel-scrim {
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.58);
  transition: opacity 0.2s ease;
}

.mf-panel-scrim.is-open,
.mf-search-overlay.is-open,
.mf-mobile-panel.is-open,
.mf-cart-drawer.is-open,
.mf-floating-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mf-mobile-panel {
  inset: 0 auto 0 0;
  width: min(420px, 92vw);
  background: #0d0b09;
  box-shadow: var(--mf-shadow);
  padding: 22px;
  transform: translateX(-105%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mf-mobile-panel.is-open {
  transform: translateX(0);
}

.mf-mobile-panel-head,
.mf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mf-brand-small {
  font-size: 22px;
}

.mf-mobile-search {
  display: block;
  margin: 26px 0;
}

.mf-mobile-menu-groups details {
  border-bottom: 1px solid var(--mf-border);
  padding: 12px 0;
}

.mf-mobile-menu-groups summary {
  cursor: pointer;
  color: var(--mf-white);
  font-weight: 850;
}

.mf-mobile-menu-groups a,
.mf-mobile-utility a {
  display: block;
  padding: 9px 0;
  color: var(--mf-muted);
}

.mf-mobile-utility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.mf-search-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
}

.mf-search-close {
  position: absolute;
  right: 34px;
  top: 26px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mf-search-close svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mf-search-box {
  width: min(760px, calc(100vw - 40px));
}

.mf-search-box h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.mf-search-form {
  display: flex;
  gap: 10px;
}

.mf-search-form label {
  flex: 1;
}

.mf-search-form input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--mf-border);
  background: #fff;
  color: var(--mf-ink);
  padding: 0 16px;
  font-size: 16px;
}

.mf-search-form button,
.mf-mini-form button {
  min-width: 128px;
  border: 0;
  background: var(--mf-gold);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.mf-search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--mf-muted);
}

.mf-search-suggestions a {
  padding: 8px 12px;
  border: 1px solid var(--mf-border);
}

.mf-cart-drawer {
  inset: 0 0 0 auto;
  width: min(440px, 94vw);
  background: #0d0b09;
  box-shadow: var(--mf-shadow);
  padding: 28px;
  transform: translateX(105%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mf-cart-drawer.is-open {
  transform: translateX(0);
}

.mf-drawer-head h2,
.mf-cart-empty h3,
.mf-floating-panel h2 {
  margin: 0;
  font-size: 28px;
}

.mf-cart-empty {
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 70vh;
  text-align: center;
}

.mf-cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mf-border);
}

.mf-cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-cart-summary {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.mf-cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mf-floating-panel {
  right: 24px;
  bottom: 104px;
  width: min(380px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--mf-border);
  background: #0d0b09;
  box-shadow: var(--mf-shadow);
  transform: translateY(16px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mf-floating-panel.is-open {
  transform: translateY(0);
}

.mf-mini-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mf-mini-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--mf-border);
  padding: 0 12px;
}

.mf-discount-tab {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 70;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  padding: 18px 9px;
  border: 0;
  background: var(--mf-gold);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mf-chat-button {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 70;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: #e1b77b;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: var(--mf-shadow);
  cursor: pointer;
}

.mf-chat-button span {
  position: absolute;
  right: -3px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff3c65;
  font-size: 12px;
}

@keyframes mfFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* P0-02 source lock: header, topbar, mobile search, and hero-adjacent chrome. */
.mf-topbar {
  min-height: 40px;
  padding-inline: clamp(48px, 5.55vw, 80px);
  font-size: 13px;
  line-height: 1;
}

.mf-topbar a {
  color: var(--mf-white);
}

.mf-promo-strip {
  justify-content: center;
}

.mf-topbar-center {
  font-weight: 850;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mf-currency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mf-currency svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mf-flag-us {
  display: inline-block;
  width: 16px;
  height: 11px;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(#2c4f93 0 0) 0 0 / 7px 6px no-repeat,
    repeating-linear-gradient(to bottom, #d54b45 0 1px, #fff 1px 2px);
}

.mf-nav {
  min-height: 52px;
  grid-template-columns: minmax(260px, 360px) 1fr minmax(180px, 230px);
  padding-inline: clamp(48px, 5.55vw, 80px);
}

.mf-nav .mf-brand {
  justify-self: start;
  font-size: clamp(27px, 2.25vw, 33px);
}

.mf-logo-mark img {
  display: block;
  width: 34px;
  height: 34px;
}

.mf-menu {
  gap: clamp(22px, 2.05vw, 35px);
}

.mf-menu a {
  padding-block: 18px 15px;
}

.mf-header-actions {
  gap: 17px;
}

.mf-mobile-header-search {
  display: none;
}

@media (max-width: 1280px) {
  .mf-nav {
    grid-template-columns: 44px 1fr minmax(124px, auto);
    min-height: 58px;
  }

  .mf-nav .mf-brand {
    justify-self: center;
    font-size: clamp(24px, 3vw, 30px);
  }

  .mf-header-actions {
    gap: 16px;
  }

  .mf-header-actions [data-mf-toggle="search"] {
    display: none;
  }

  .mf-mobile-header-search {
    display: block;
    padding: 0 clamp(16px, 2.4vw, 24px) 9px;
    background: var(--mf-gold);
  }

  .mf-mobile-header-search .mf-search-form {
    position: relative;
    display: flex;
    align-items: center;
    height: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  }

  .mf-mobile-header-search .mf-search-form label {
    position: relative;
    flex: 1;
    padding-left: 28px;
  }

  .mf-mobile-header-search .mf-search-form label::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
  }

  .mf-mobile-header-search .mf-search-form label::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 21px;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    transform-origin: left center;
  }

  .mf-mobile-header-search .mf-search-form input {
    width: 100%;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--mf-white);
    padding: 0;
    font-size: 16px;
  }

  .mf-mobile-header-search .mf-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.56);
  }

  .mf-mobile-header-search .mf-search-form button {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .mf-topbar {
    grid-template-columns: 1fr auto 1fr;
    min-height: 40px;
    text-align: left;
    padding-inline: 18px;
  }

  .mf-topbar-side {
    display: flex;
  }

  .mf-promo-arrow {
    display: none;
  }

  .mf-socials {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .mf-topbar {
    grid-template-columns: 1fr;
    min-height: 30px;
    padding-inline: 16px;
    text-align: center;
  }

  .mf-topbar-side {
    display: none;
  }

  .mf-promo-strip {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    width: 100%;
    gap: 0;
  }

  .mf-promo-arrow {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 24px;
    background: var(--mf-gold);
    color: var(--mf-white);
  }

  .mf-topbar-center {
    align-self: center;
    font-size: 12px;
    line-height: 1.05;
  }
}

@media (max-width: 640px) {
  .mf-nav {
    min-height: 54px;
    padding: 8px 16px;
    grid-template-columns: 34px 1fr 106px;
  }

  .mf-nav .mf-brand {
    font-size: 21px;
  }

  .mf-logo-mark img {
    width: 26px;
    height: 26px;
  }

  .mf-header-actions {
    gap: 10px;
  }

  .mf-header-actions .mf-icon-button:nth-child(2),
  .mf-header-actions .mf-icon-button:nth-child(3) {
    display: inline-grid;
  }

  .mf-icon-button svg {
    width: 20px;
    height: 20px;
  }

  .mf-mobile-header-search {
    padding-inline: 16px;
  }
}

.mf-topbar-links,
.mf-topbar-links ul,
.mf-mega-menu-list,
.mf-mega-menu-list ul,
.mf-mobile-menu-list,
.mf-mobile-menu-list ul,
.mf-mobile-utility-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mf-topbar-links li,
.mf-mega-menu-list li,
.mf-mobile-menu-list li,
.mf-mobile-utility-menu li {
  margin: 0;
}

.mf-mega-menu-list ul {
  margin-top: 4px;
  padding-left: 12px;
}

.mf-mobile-menu-list a,
.mf-mobile-utility-menu a {
  display: block;
  padding: 9px 0;
  color: var(--mf-muted);
}

.mf-mobile-utility-menu {
  display: contents;
}
