/* Homepage and header refinement, September 2026. Loaded last on purpose. */

:root {
  --muf-commerce-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", sans-serif;
}

.muf-primary-nav,
.muf-shop-trigger,
.muf-nav-flyout,
.muf-mega,
.muf-mobile-drawer,
.muf-header__search,
.muf-header__actions {
  font-family: var(--muf-commerce-font) !important;
}

@media (min-width: 901px) {
  .muf-header > .muf-header__core.muf-shell {
    width: 100%;
    max-width: none;
    min-height: 88px !important;
    grid-template-columns: 180px minmax(420px, 760px) minmax(250px, 1fr) !important;
    gap: clamp(24px, 3vw, 58px) !important;
    padding-inline: clamp(22px, 3vw, 58px);
  }

  .muf-header__core > .muf-logo {
    width: 176px;
    justify-self: start !important;
  }

  .muf-header__core > .muf-header__search {
    width: 100%;
    max-width: 760px;
    justify-self: stretch !important;
  }

  .muf-header__core > .muf-header__actions {
    justify-self: end !important;
  }

  .muf-header__navrow .muf-primary-nav.muf-shell {
    width: 100%;
    max-width: none;
    min-height: 52px;
    justify-content: center !important;
    gap: clamp(34px, 4vw, 72px) !important;
    margin: 0 !important;
    padding-inline: clamp(22px, 3vw, 58px);
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: -.006em !important;
  }

  .muf-header__navrow .muf-primary-nav > a,
  .muf-header__navrow .muf-primary-nav > .muf-nav-flyout > a,
  .muf-header__navrow .muf-shop-trigger {
    padding: 16px 0 !important;
  }
}

.muf-cart-action svg {
  color: #c97800 !important;
  stroke: #c97800 !important;
}

body.muf-modern ul.products li.product .button.muf-card-cart,
body.muf-modern ul.products li.product > a.button {
  color: #171914 !important;
  background: var(--muf-mustard, #f8b83e) !important;
  border-color: var(--muf-mustard, #f8b83e) !important;
}

body.muf-modern ul.products li.product .button.muf-card-cart:hover,
body.muf-modern ul.products li.product > a.button:hover {
  color: var(--muf-mustard, #f8b83e) !important;
  background: #171914 !important;
  border-color: #171914 !important;
}

.muf-home-v7__needs {
  padding-top: clamp(76px, 7vw, 118px) !important;
  padding-bottom: clamp(76px, 7vw, 118px) !important;
}

.muf-home-v7__needs .muf-home-v7__needs-grid {
  display: grid;
  gap: 0 !important;
}

.muf-home-v7__needs .muf-home-v7__trust {
  margin-top: clamp(70px, 7vw, 120px);
}

.muf-home-video {
  padding: clamp(76px, 8vw, 128px) 0 !important;
  background: #fff !important;
}

.muf-home-video__story {
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.muf-home-video__copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.muf-home-video__copy h2 {
  max-width: 12ch;
  margin: 10px 0 23px;
  font-size: clamp(39px, 4.5vw, 67px);
  line-height: .94;
  letter-spacing: -.055em;
}

.muf-home-video__copy > p:not(.muf-eyebrow) {
  max-width: 56ch;
  margin: 0 0 15px;
  color: #5f635b;
  font-size: 14px;
  line-height: 1.65;
}

.muf-home-video__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 28px;
  padding: 0;
  list-style: none;
}

.muf-home-video__copy li {
  padding: 8px 10px;
  border: 1px solid #dedfd9;
  border-radius: 99px;
  background: #f7f5ef;
  font-size: 10px;
  font-weight: 760;
}

.muf-home-video__story > .muf-home-proof__video {
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #171914;
  box-shadow: 0 24px 58px rgba(20, 22, 18, .16);
}

.muf-home-video__story > .muf-home-proof__video > :where(img, iframe) {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.muf-home-ebay {
  padding: clamp(76px, 8vw, 126px) 0;
  background: #f4f2ec;
}

.muf-home-ebay__panel {
  overflow: hidden;
  border: 1px solid #dddcd6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 22, 18, .08);
}

.muf-home-ebay__banner {
  display: block;
  border-bottom: 1px solid #e5e3dc;
  background: #f8f7f3;
}

.muf-home-ebay__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.muf-home-ebay__copy {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr) auto;
  gap: clamp(26px, 4vw, 66px);
  align-items: end;
  padding: clamp(30px, 4.5vw, 66px);
}

.muf-home-ebay__copy h2 {
  max-width: 12ch;
  margin: 9px 0 0;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: .96;
  letter-spacing: -.05em;
}

.muf-home-ebay__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.muf-home-ebay__notes p {
  margin: 0;
  padding: 0 20px;
  border-left: 1px solid #dddcd6;
  color: #5f635b;
  font-size: 12px;
  line-height: 1.6;
}

.muf-home-ebay__copy > .muf-button {
  white-space: nowrap;
}

.muf-home-proof {
  padding-top: clamp(76px, 8vw, 120px) !important;
  padding-bottom: clamp(76px, 8vw, 120px) !important;
}

.muf-home-featured {
  padding: clamp(80px, 8vw, 132px) 0 !important;
}

.muf-home-featured__card {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr) !important;
  min-height: 560px;
  border-radius: 18px !important;
  color: #fff;
  background: #171914 !important;
}

.muf-home-featured__image {
  min-height: 560px !important;
  margin: 0;
  background: #ecebe6 !important;
}

.muf-home-featured__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.muf-home-featured__card > div {
  padding: clamp(38px, 5vw, 74px) !important;
}

.muf-home-featured__card .muf-eyebrow {
  color: var(--muf-mustard, #f8b83e);
}

.muf-home-featured__card h2 {
  color: #fff;
  font-size: clamp(39px, 4.4vw, 64px) !important;
}

.muf-home-featured__card p:not(.muf-eyebrow) {
  color: #cdd0c8 !important;
}

.muf-home-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px !important;
  margin-top: 27px;
}

.muf-home-featured__actions > a:last-child {
  border: 1px solid #6b6f66 !important;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

.muf-home-featured__actions > a:last-child:hover {
  color: #171914 !important;
  background: #fff !important;
  border-color: #fff !important;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .muf-header > .muf-header__core.muf-shell {
    grid-template-columns: 160px minmax(410px, 1fr) auto !important;
    gap: 20px !important;
    padding-inline: 24px;
  }

  .muf-header__core > .muf-logo { width: 156px; }
  .muf-header__actions .muf-delivery-action,
  .muf-header__actions .muf-saved-action { display: none !important; }
  .muf-header__navrow .muf-primary-nav.muf-shell { gap: clamp(28px, 4vw, 52px) !important; }
  .muf-home-ebay__copy { grid-template-columns: .8fr 1.2fr; }
  .muf-home-ebay__copy > .muf-button { justify-self: start; }
}

@media (max-width: 900px) {
  .muf-header > .muf-header__core.muf-shell {
    position: relative;
    width: 100%;
    max-width: none;
    grid-template-columns: 44px 1fr auto !important;
    padding-inline: 14px;
  }

  .muf-header__core > .muf-logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 154px;
    justify-self: auto;
    transform: translate(-50%, -50%);
  }

  .muf-mobile-toggle,
  .muf-header__actions { position: relative; z-index: 2; }
  .muf-home-video__story,
  .muf-home-featured__card { grid-template-columns: 1fr !important; }
  .muf-home-video__copy { padding-inline: clamp(0px, 4vw, 28px); }
  .muf-home-video__story > .muf-home-proof__video { aspect-ratio: 16 / 9; }
  .muf-home-ebay__copy { grid-template-columns: 1fr; align-items: start; }
  .muf-home-ebay__notes { grid-template-columns: repeat(3, 1fr); }
  .muf-home-ebay__copy > .muf-button { justify-self: start; }
  .muf-home-featured__image { min-height: 430px !important; }
}

@media (max-width: 620px) {
  .muf-header__core > .muf-logo { width: 138px; }
  .muf-header__actions .muf-header-action:not(.muf-cart-action) { display: none !important; }
  .muf-home-v7__needs { padding-block: 62px !important; }
  .muf-home-v7__needs .muf-home-v7__trust { margin-top: 58px; }
  .muf-home-video { padding-block: 66px !important; }
  .muf-home-video .muf-home-video__story.muf-shell { width: var(--muf-shell); }
  .muf-home-video__story { gap: 34px; }
  .muf-home-video__copy h2 { font-size: 37px; }
  .muf-home-video__story > .muf-home-proof__video { aspect-ratio: 4 / 3; border-radius: 10px; }
  .muf-home-ebay { padding-block: 64px; }
  .muf-home-ebay__panel { border-radius: 11px; }
  .muf-home-ebay__copy { gap: 27px; padding: 29px 22px 32px; }
  .muf-home-ebay__copy h2 { max-width: 14ch; font-size: 36px; }
  .muf-home-ebay__notes { grid-template-columns: 1fr; }
  .muf-home-ebay__notes p { padding: 14px 0; border-top: 1px solid #dddcd6; border-left: 0; }
  .muf-home-featured { padding-block: 66px !important; }
  .muf-home-featured__card { min-height: 0; border-radius: 11px !important; }
  .muf-home-featured__image { min-height: 315px !important; }
  .muf-home-featured__card > div { padding: 31px 23px 35px !important; }
  .muf-home-featured__card h2 { font-size: 37px !important; }
  .muf-home-featured__actions { flex-direction: column; align-items: stretch !important; }
  .muf-home-featured__actions .muf-button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .muf-home-featured__image img { transition: none !important; }
}
