/**
 * Fit2Fight custom header styles — paired with header-fit2fight.php only.
 * Upload: wp-content/themes/woodmart-child/header.css
 */
/* =========================================================
   CUSTOM FIT2FIGHT HEADER
   Hide WoodMart header and use custom child-theme header.
   ========================================================= */
body.f2f-custom-header-active .whb-header:not(.f2f-site-header),
body.f2f-custom-header-active header.whb-header:not(.f2f-site-header),
body.f2f-custom-header-active .website-header > .whb-header:not(.f2f-site-header),
body.f2f-custom-header-active .website-header > header:not(.f2f-site-header),
body.f2f-custom-header-active .whb-header-bottom,
body.f2f-custom-header-active .whb-mobile-header,
body.f2f-custom-header-active .whb-sticky-shadow:not(.f2f-site-header),
body.f2f-custom-header-active .whb-clone,
body.f2f-custom-header-active .whb-sticky-header:not(.f2f-site-header),
body.f2f-custom-header-active .sticky-header:not(.f2f-site-header),
body.f2f-custom-header-active .header-banner:not(.f2f-site-header),
body.f2f-custom-header-active .wd-toolbar:not(.f2f-site-header),
body.f2f-custom-header-active .wd-header-mobile-nav,
body.f2f-custom-header-active .mobile-nav-icon {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
}

/* Keep custom header visible if broad .whb-header / .whb-main-header rules exist in Additional CSS */
body.f2f-custom-header-active header.f2f-site-header.f2f-custom-header,
body.f2f-custom-header-active .f2f-site-header.whb-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  position: sticky !important;
  left: auto !important;
  top: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header .whb-main-header,
body.f2f-custom-header-active .f2f-site-header .f2f-site-header__main {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  left: auto !important;
}

@media (min-width: 1101px) {
  body.f2f-custom-header-active .website-wrapper,
  body.f2f-custom-header-active .main-page-wrapper,
  body.f2f-custom-header-active .wd-page-content,
  body.f2f-custom-header-active .site-content {
    overflow: visible !important;
  }
}

body.f2f-custom-header-active {
  --f2f-header-black: #0a0a0a;
  --f2f-header-red: #d71920;
  --f2f-header-line: #e6e6e6;
  --f2f-header-white: #ffffff;
}

body.f2f-custom-header-active .website-wrapper,
body.f2f-custom-header-active .main-page-wrapper,
body.f2f-custom-header-active .wd-page-content,
body.f2f-custom-header-active .content-layout-wrapper,
body.f2f-custom-header-active .site-main,
body.f2f-custom-header-active #primary,
body.f2f-custom-header-active .entry-content {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

body.f2f-custom-header-active.page-template-page-custom #f2fx-home {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Remove WoodMart header gap on all pages */
body.f2f-custom-header-active .website-wrapper,
body.f2f-custom-header-active .main-page-wrapper,
body.f2f-custom-header-active .wd-page-content,
body.f2f-custom-header-active .wd-content-layout,
body.f2f-custom-header-active .wd-content-area,
body.f2f-custom-header-active .site-content,
body.f2f-custom-header-active .site-main,
body.f2f-custom-header-active #primary,
body.f2f-custom-header-active .entry-content,
body.f2f-custom-header-active article.page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.f2f-custom-header-active {
  padding-top: 0 !important;
}

body.wd-header-overlap.f2f-custom-header-active .website-wrapper,
body.wd-header-overlap.f2f-custom-header-active .main-page-wrapper,
body.whb-overcontent.f2f-custom-header-active .main-page-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.f2f-custom-header-active.f2f-drawer-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

body.f2f-custom-header-active.f2f-drawer-open .f2f-mobile-drawer__panel {
  touch-action: pan-y;
}

body.f2f-custom-header-active .f2f-site-header {
  margin-bottom: 0 !important;
}

body.f2f-custom-header-active.page-template-page-custom #f2fx-home,
body.f2f-custom-header-active.page-template-page-custom #f2fx-home .f2f-hero-slider,
body.f2f-custom-header-active #f2fx-home .f2f-hero-slider {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.f2f-custom-header-active .content-layout-wrapper,
body.f2f-custom-header-active .website-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.f2f-custom-header-active .website-header:not(:has(.f2f-site-header)) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.f2f-custom-header-active.woocommerce .main-page-wrapper,
body.f2f-custom-header-active.tax-product_cat .main-page-wrapper,
body.f2f-custom-header-active.post-type-archive-product .main-page-wrapper,
body.f2f-custom-header-active .woocommerce-products-header,
body.f2f-custom-header-active .wd-page-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.f2f-site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  max-width: 100%;
  background: #fff;
  color: #111;
  border-bottom: 1px solid var(--f2f-header-line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: visible !important;
}

/* Undo legacy WoodMart homepage rules that hit .whb-header on the custom header */
body.f2f-custom-header-active.page-template-page-custom .f2f-site-header .f2f-site-header__main,
body.f2f-custom-header-active.page-template-page-custom .f2f-site-header .f2f-site-header__row {
  background: #fff !important;
  background-color: #fff !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-header__mobile-toggle {
  color: #111 !important;
}

.f2f-site-header *,
.f2f-site-header *::before,
.f2f-site-header *::after {
  box-sizing: border-box;
}

.f2f-site-header__top {
  display: none !important;
}

.f2f-site-header__top-inner,
.f2f-site-header__row {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
}

.f2f-site-header__main {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.f2f-site-header__row {
  overflow: visible;
}

.f2f-site-header__top-inner {
  min-height: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.f2f-site-header__top-spacer {
  grid-column: 1;
  min-width: 0;
}

.f2f-site-header__welcome {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  text-align: center;
  color: #fff;
  font: 700 10px/1 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.f2f-site-header__socials {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.f2f-site-header__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  opacity: 0.95;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.f2f-site-header__socials a:hover {
  color: #fff;
  border-color: var(--f2f-header-red);
  background: var(--f2f-header-red);
}

.f2f-site-header__main {
  background: #fff;
}

/* Beat WoodMart .whb-row flex-start â€” logo, nav, and cart must share one vertical center line */
body.f2f-custom-header-active .f2f-site-header.whb-header .whb-main-header {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-header__main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header.whb-header .f2f-site-header__row.whb-row {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.25fr) auto minmax(100px, 1fr) !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: stretch !important;
  column-gap: 24px !important;
  row-gap: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-header__logo,
body.f2f-custom-header-active .f2f-site-header .wd-header-logo {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav {
  grid-column: 2;
  justify-self: center;
  flex: none !important;
  width: max-content;
  max-width: 100%;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-header__actions {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-header__logo,
body.f2f-custom-header-active .f2f-site-header .wd-header-logo,
body.f2f-custom-header-active .f2f-site-header .f2f-site-header__actions {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 1101px) {
body.f2f-custom-header-active .f2f-site-header .f2f-site-nav {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__list {
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__item {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__link::before,
body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__link::after {
  display: none !important;
  content: none !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
}

.f2f-site-header__row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) auto minmax(100px, 1fr);
  align-items: center;
  column-gap: 24px;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.f2f-site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.f2f-site-header__logo .custom-logo-link,
.f2f-site-header__logo-link {
  display: block;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.f2f-site-header__logo-link--image {
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

@media (min-width: 1101px) {
  :root {
    --f2f-header-row-h: 74px;
    --f2f-logo-scale: 2.45;
  }

  .f2f-site-header__main .f2f-site-header__row {
    height: var(--f2f-header-row-h);
    min-height: var(--f2f-header-row-h);
    max-height: var(--f2f-header-row-h);
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  body.f2f-custom-header-active .f2f-site-header.whb-header .f2f-site-header__row.whb-row {
    grid-template-columns: minmax(240px, 1.25fr) auto minmax(100px, 1fr) !important;
  }

  body.f2f-custom-header-active .f2f-site-header .f2f-site-header__logo,
  body.f2f-custom-header-active .f2f-site-header .wd-header-logo {
    height: var(--f2f-header-row-h);
    align-self: center !important;
    overflow: visible;
  }

  .f2f-site-header__logo-link--image {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
  }

  .f2f-site-header__logo .custom-logo {
    display: block;
    width: auto;
    height: var(--f2f-header-row-h);
    max-height: none;
    max-width: none;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    object-position: left center;
    transform: scale(var(--f2f-logo-scale));
    transform-origin: left center;
  }
}

.f2f-site-header__logo-link--text {
  color: #111;
  font: 800 24px/1 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f2f-site-nav {
  min-width: 0;
  position: static;
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f2f-site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
}

.f2f-site-nav__item {
  position: static;
  list-style: none;
  display: flex;
  align-items: center;
}

.f2f-site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  text-decoration: none;
  color: #111;
  font: 700 13px/1.2 "Barlow", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.f2f-site-nav__caret {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.f2f-site-nav__item.is-open > .f2f-site-nav__link .f2f-site-nav__caret {
  transform: rotate(-135deg);
}

.f2f-site-nav__item.menu-item-has-children > .f2f-site-nav__link {
  cursor: pointer;
}

.f2f-site-nav__item.is-active > .f2f-site-nav__link,
.f2f-site-nav__item.is-open > .f2f-site-nav__link {
  color: var(--f2f-header-red);
}

.f2f-site-nav__item.menu-item-has-children {
  position: relative;
}

/* Desktop: full-width header + dropdown */
@media (min-width: 1101px) {
  .f2f-site-header__main {
    position: relative;
  }

  .f2f-site-nav,
  .f2f-site-nav__list {
    position: static;
  }

  .f2f-site-nav__item.menu-item-has-children {
    position: static;
  }

  .f2f-site-nav__item.menu-item-has-children > .f2f-site-nav__panel {
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .f2f-site-nav__item.f2f-site-nav__item--contact > .f2f-site-nav__panel {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .f2f-site-nav__item.menu-item-has-children::after {
    display: none;
  }
}

.f2f-site-nav__item.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 2;
}

.f2f-site-nav__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-top: 1px solid var(--f2f-header-line);
  border-bottom: 1px solid var(--f2f-header-line);
  border-left: 0;
  border-right: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100000;
}

.f2f-site-nav__item.is-open > .f2f-site-nav__panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__panel {
  z-index: 100001;
}

.f2f-site-nav__mega {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px 40px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 48px) 28px;
  align-items: start;
}

.f2f-site-nav__contact-menu {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 48px) 28px;
}

.f2f-site-nav__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 36px;
  width: 100%;
}

.f2f-site-nav__contact-item {
  border-bottom: 0;
}

.f2f-site-nav__contact-item:last-child {
  border-bottom: 0;
}

.f2f-site-nav__contact-link {
  display: block;
  padding: 12px 0;
  color: #111;
  text-decoration: none;
  font: 700 12px/1.2 "Barlow", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f2f-site-nav__contact-link:hover {
  color: var(--f2f-header-red);
}

.f2f-site-nav__contact-sublist {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 12px;
}

.f2f-site-nav__contact-sublist a {
  display: block;
  padding: 6px 0;
  color: #444;
  text-decoration: none;
  font: 500 14px/1.4 "Barlow", Arial, sans-serif;
}

.f2f-site-nav__contact-sublist a:hover {
  color: var(--f2f-header-red);
}

.f2f-site-nav__panel--contact {
  background: #fff;
}

.f2f-site-nav__promo {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: #fff;
  background: #f3f3f3;
  border: 1px solid var(--f2f-header-line);
}

.f2f-site-nav__promo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.f2f-site-nav__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.f2f-site-nav__promo-copy {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 6px;
  z-index: 1;
}

.f2f-site-nav__promo-copy strong {
  font: 800 clamp(22px, 2vw, 30px)/0.95 "Barlow Condensed", Arial, sans-serif;
  text-transform: uppercase;
  color: #fff;
}

.f2f-site-nav__promo-copy span {
  font: 700 11px/1 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.f2f-site-nav__mega-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 36px;
  align-content: start;
}

.f2f-site-nav__mega-flat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 28px;
  width: 100%;
}

.f2f-site-nav__mega-flat-link {
  display: block;
  padding: 10px 0;
  color: #111;
  text-decoration: none;
  font: 800 14px/1.25 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.f2f-site-nav__mega-flat-link:hover {
  color: var(--f2f-header-red);
  border-bottom-color: var(--f2f-header-red);
}

.f2f-site-nav__group-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  text-decoration: none;
  font: 800 14px/1.2 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f2f-site-nav__group-title:hover {
  color: var(--f2f-header-red);
}

.f2f-site-nav__group-links,
.f2f-site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f2f-site-nav__group-links a,
.f2f-site-nav__submenu a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  font: 500 14px/1.45 "Barlow", Arial, sans-serif;
}

.f2f-site-nav__group-links a:hover,
.f2f-site-nav__submenu a:hover {
  color: var(--f2f-header-red);
}

.f2f-site-nav__submenu {
  min-width: 260px;
  padding: 10px 16px;
  background: #fff;
}

.f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px 28px;
  background: #fff;
}

.f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) > .f2f-site-nav__submenu-item > a {
  min-height: auto;
  padding: 8px 0;
  font: 800 14px/1.25 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) > .f2f-site-nav__submenu-item > a:hover {
  color: var(--f2f-header-red);
}

.f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) > .f2f-site-nav__submenu-item {
  position: relative;
  padding-bottom: 4px;
}

.f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) > .f2f-site-nav__submenu-item > .f2f-site-nav__submenu.is-nested {
  top: calc(100% + 6px);
  left: 0;
}

.f2f-site-nav__submenu-item {
  position: relative;
}

.f2f-site-nav__submenu.is-nested {
  position: absolute;
  top: -10px;
  left: calc(100% + 16px);
  background: #fff;
  border: 1px solid var(--f2f-header-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100001;
}

.f2f-site-nav__submenu-item.has-children:hover > .f2f-site-nav__submenu.is-nested,
.f2f-site-nav__submenu-item.is-open > .f2f-site-nav__submenu.is-nested {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.f2f-site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

body.f2f-custom-header-active .whb-header:not(.f2f-site-header) .wd-header-cart {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.f2f-site-header__cart {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--f2f-header-line);
  color: #111;
  text-decoration: none;
  font: 700 11px/1 "Barlow", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.f2f-woo-active .f2f-site-header__cart {
  display: inline-flex;
}

.f2f-site-header__cart:hover {
  border-color: var(--f2f-header-red);
  color: var(--f2f-header-red);
}

.f2f-site-header__cart-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.f2f-site-header__cart-count {
  min-width: 18px;
  text-align: center;
}

.f2f-site-header__mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--f2f-header-line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.f2f-site-header__mobile-toggle:hover,
.f2f-site-header__mobile-toggle:focus-visible {
  border-color: var(--f2f-header-red);
  outline: none;
}

.f2f-site-header__mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111;
  transition: transform 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}

.f2f-site-header__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.f2f-site-header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.f2f-site-header__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.f2f-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.f2f-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.f2f-mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.f2f-mobile-drawer.is-open .f2f-mobile-drawer__overlay {
  opacity: 1;
}

.f2f-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 340px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  overscroll-behavior: contain;
}

.f2f-mobile-drawer.is-open .f2f-mobile-drawer__panel {
  transform: translateX(0);
}

.f2f-mobile-drawer__head,
.f2f-mobile-drawer__actions {
  padding: 18px 20px;
  border-bottom: 1px solid var(--f2f-header-line);
}

.f2f-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.f2f-mobile-drawer__logo {
  flex: 1 1 auto;
  min-width: 0;
}

.f2f-mobile-drawer__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 320px;
  height: 72px;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  transform: scale(1.65);
  transform-origin: left center;
}

.f2f-mobile-drawer__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--f2f-header-line);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.f2f-mobile-drawer__actions {
  flex-shrink: 0;
}

.f2f-mobile-nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 6px 0 20px;
}

.f2f-mobile-nav__list,
.f2f-mobile-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f2f-mobile-nav__item {
  border-bottom: 1px solid #f2f2f2;
}

.f2f-mobile-nav__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.f2f-mobile-nav__link {
  min-height: 50px;
  display: flex;
  align-items: center;
  color: #111;
  text-decoration: none;
  font: 700 12px/1.2 "Barlow", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f2f-mobile-nav__item.is-active > .f2f-mobile-nav__row .f2f-mobile-nav__link {
  color: var(--f2f-header-red);
}

.f2f-mobile-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111;
  cursor: pointer;
  flex-shrink: 0;
}

.f2f-mobile-nav__toggle:hover,
.f2f-mobile-nav__toggle:focus-visible {
  background: #f3f3f3;
  outline: none;
}

.f2f-mobile-nav__toggle span {
  display: block;
  width: 8px;
  height: 8px;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -3px;
}

.f2f-mobile-nav__toggle span::before {
  content: none;
  display: none;
}

.f2f-mobile-nav__item.is-open > .f2f-mobile-nav__row .f2f-mobile-nav__toggle span {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.f2f-mobile-nav__submenu-wrap {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, padding 0.34s ease;
}

.f2f-mobile-nav__item.is-open > .f2f-mobile-nav__submenu-wrap {
  max-height: 1200px;
  opacity: 1;
  padding: 0 20px 16px;
}

.f2f-mobile-nav__submenu .f2f-mobile-nav__row {
  padding-left: 0;
  padding-right: 0;
}

.f2f-mobile-nav__submenu .f2f-mobile-nav__submenu-wrap {
  padding-left: 0;
  padding-right: 0;
}

.f2f-mobile-nav__submenu .f2f-mobile-nav__link {
  padding-left: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.f2f-mobile-nav__submenu .f2f-mobile-nav__submenu .f2f-mobile-nav__link {
  padding-left: 28px;
}

.f2f-mobile-nav__promo {
  display: none !important;
}

.f2f-mobile-nav__promo img {
  display: none !important;
}

.f2f-mobile-nav__promo strong {
  display: block;
  font: 800 22px/0.95 "Barlow Condensed", Arial, sans-serif;
  text-transform: uppercase;
}

.f2f-mobile-nav__promo span span {
  display: block;
  margin-top: 4px;
  font: 700 11px/1 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f2f-header-red);
}

@media (max-width: 1100px) {
  body.f2f-custom-header-active .f2f-site-header {
    overflow: visible !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--f2f-header-line);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  body.f2f-custom-header-active .f2f-site-header__top {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  body.f2f-custom-header-active .f2f-site-header .f2f-site-nav__panel {
    display: none !important;
  }

  body.f2f-custom-header-active .f2f-site-header.whb-header .whb-main-header {
    border-bottom: 0 !important;
  }

  .f2f-site-nav__link {
    padding: 0 10px;
    font-size: 10px;
  }

  .f2f-site-nav__mega {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 24px;
  }

  .f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 1100px) {
  body.f2f-custom-header-active .f2f-site-header .f2f-site-nav,
  body.f2f-custom-header-active .f2f-site-header.whb-header .f2f-site-nav,
  .f2f-site-header .f2f-site-nav {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    flex: 0 0 0 !important;
  }

  body.f2f-custom-header-active .f2f-site-header .f2f-site-header__mobile-toggle,
  .f2f-site-header .f2f-site-header__mobile-toggle {
    display: inline-flex !important;
  }

  body.f2f-custom-header-active {
    overflow-x: clip !important;
  }

  body.f2f-custom-header-active .website-wrapper,
  body.f2f-custom-header-active .main-page-wrapper,
  body.f2f-custom-header-active .wd-page-content,
  body.f2f-custom-header-active .wd-content-layout,
  body.f2f-custom-header-active .site-content,
  body.f2f-custom-header-active .site-main,
  body.f2f-custom-header-active #primary,
  body.f2f-custom-header-active .entry-content,
  body.f2f-custom-header-active article.page {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.f2f-custom-header-active {
    padding-top: 0 !important;
  }

  body.f2f-custom-header-active.page-template-page-custom #f2fx-home,
  body.f2f-custom-header-active.page-template-page-custom #f2fx-home .f2f-hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.wd-header-overlap.f2f-custom-header-active .website-wrapper,
  body.wd-header-overlap.f2f-custom-header-active .main-page-wrapper,
  body.whb-overcontent.f2f-custom-header-active .main-page-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.f2f-custom-header-active #f2fx-home .f2f-hero-slider {
    margin-top: 0 !important;
  }

  body.f2f-custom-header-active .f2f-site-header .f2f-site-nav {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
  }

  body.f2f-custom-header-active .f2f-site-header__main,
  body.f2f-custom-header-active .f2f-site-header.whb-header .whb-main-header {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.f2f-custom-header-active.page-template-page-custom .f2f-site-header,
  body.f2f-custom-header-active.page-template-page-custom .f2f-site-header .f2f-site-header__main,
  body.f2f-custom-header-active.page-template-page-custom .f2f-site-header.whb-header .whb-main-header {
    background: #fff !important;
    background-color: #fff !important;
  }

  .f2f-site-header__row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  body.f2f-custom-header-active .f2f-site-header.whb-header .f2f-site-header__row.whb-row {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between !important;
  }

  body.f2f-custom-header-active .f2f-site-header .f2f-site-header__logo,
  body.f2f-custom-header-active .f2f-site-header .wd-header-logo,
  body.f2f-custom-header-active .f2f-site-header .f2f-site-nav,
  body.f2f-custom-header-active .f2f-site-header .f2f-site-header__actions {
    grid-column: auto !important;
    justify-self: auto !important;
  }

  .f2f-site-header__logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 60px);
    height: 68px;
    overflow: visible;
  }

  .f2f-site-header__logo-link--image {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
  }

  .f2f-site-header__logo .custom-logo {
    height: 68px;
    width: auto;
    max-height: none;
    max-width: none;
    min-height: 0 !important;
    transform: scale(2.1);
    transform-origin: left center;
    object-fit: contain;
  }

  .f2f-site-header__actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 8px;
    align-items: center;
  }

  body.f2f-woo-active .f2f-site-header__cart {
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
  }

  .f2f-site-header__mobile-toggle {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 991px) {
  body.f2f-custom-header-active .f2f-site-header.whb-header .f2f-site-header__row.whb-row {
    column-gap: 12px !important;
  }

  .f2f-site-nav__mega {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 24px;
  }

  .f2f-site-nav__item > .f2f-site-nav__panel > .f2f-site-nav__submenu:not(.is-nested) {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 767px) {
  .f2f-site-header__top-inner,
  .f2f-site-header__row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .f2f-site-header__top {
    display: none;
  }

  .f2f-site-header__top-inner {
    min-height: 32px;
  }

  .f2f-site-header__welcome {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .f2f-site-header__socials {
    gap: 8px;
  }

  .f2f-site-header__socials a {
    width: 26px;
    height: 26px;
  }

  .f2f-site-header__logo {
    height: 60px;
    overflow: visible;
  }

  .f2f-site-header__logo-link--image {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
  }

  .f2f-site-header__logo .custom-logo {
    height: 60px;
    width: auto;
    max-height: none;
    max-width: none;
    min-height: 0 !important;
    transform: scale(1.85);
    transform-origin: left center;
    object-fit: contain;
  }

  .f2f-site-header__row {
    min-height: 0 !important;
    height: 60px;
    max-height: 60px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .f2f-mobile-drawer__logo .custom-logo {
    min-height: 0 !important;
    height: 64px;
    max-width: none;
    transform: scale(1.55);
    transform-origin: left center;
  }

  .f2f-mobile-drawer__panel {
    width: min(100%, 320px);
  }

  .f2f-mobile-nav__link {
    min-height: 48px;
    font-size: 11px;
  }
}

/* WoodMart default header — keep hidden on mobile when custom header is active */
@media (max-width: 1100px) {
  body.f2f-custom-header-active .whb-header:not(.f2f-site-header),
  body.f2f-custom-header-active header.whb-header:not(.f2f-site-header) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .whb-header:not(.f2f-site-header) .wd-header-nav,
  .whb-header:not(.f2f-site-header) .wd-header-nav.wd-inline,
  .whb-header:not(.f2f-site-header) .wd-nav-main,
  .whb-header:not(.f2f-site-header) .whb-col-center,
  .whb-header:not(.f2f-site-header) .whb-col-right .wd-header-nav,
  .whb-header:not(.f2f-site-header) .whb-mobile-left,
  .whb-header:not(.f2f-site-header) .whb-hidden-lg,
  .whb-header:not(.f2f-site-header) .wd-header-mobile-nav,
  .whb-header:not(.f2f-site-header) .mobile-nav-icon {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html,
  body.f2f-custom-header-active {
    overflow-x: clip !important;
    max-width: 100% !important;
  }
}
