/* NF Site Header — green promo bar + white main row (Bootstrap 5 grid optional) */

.nf-site-header {
    --nf-sh-green: #2d6b4f;
    --nf-sh-green-hover: #245a42;
    --nf-sh-text-on-green: #fff;
    --nf-sh-border: #e8e8e8;
    --nf-sh-container-max: 1685px;
    position: relative;
    z-index: 100020;
    font-family: inherit;
    box-sizing: border-box;
}

/* Hide common theme headers when NF header is active */
body.nf-site-header-active #masthead,
body.nf-site-header-active header#masthead,
body.nf-site-header-active .site-header:not(.nf-site-header),
body.nf-site-header-active header.site-header:not(.nf-site-header),
body.nf-site-header-active .elementor-location-header,
body.nf-site-header-active .ast-above-header-wrap,
body.nf-site-header-active .ast-primary-header-bar {
    display: none !important;
}

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

/* Constrained content width (default 1685px, overridable via settings → inline --nf-sh-container-max) */
.nf-site-header .nf-site-header__contain {
    max-width: min(100%, var(--nf-sh-container-max));
    margin-left: auto;
    margin-right: auto;
}

.nf-site-header__top {
    background: var(--nf-sh-top-bg-custom, var(--nf-sh-green));
    color: var(--nf-sh-text-on-green);
    font-size: 13px;
    line-height: 1.5;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nf-site-header__top .nf-site-header__contain {
    padding-top: 2px;
    padding-bottom: 2px;
}

.nf-site-header__top,
.nf-site-header__top a,
.nf-site-header__promo-text,
.nf-site-header__contact-label,
.nf-site-header__phone {
    color: #fff !important;
}

.nf-site-header__top .row {
    min-height: 28px;
    row-gap: 8px;
}

.nf-site-header__col--shrink {
    min-width: 0;
}

.nf-site-header__promo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
}

.nf-site-header__promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.nf-site-header__promo-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.nf-site-header__promo-text strong {
    font-weight: 700;
}

.nf-site-header__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 0;
    white-space: nowrap;
}

.nf-site-header__sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.nf-site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.nf-site-header__phone-icon {
    display: inline-flex;
    line-height: 0;
    opacity: 0.95;
}

.nf-site-header__phone:hover,
.nf-site-header__phone:focus {
    text-decoration: underline;
}

.nf-site-header__main {
    background: #fff;
    border-bottom: 1px solid var(--nf-sh-border);
}

.nf-site-header__main-row {
    min-height: 76px;
    align-items: center;
}

@media (min-width: 992px) {
    .nf-site-header__main-row > .col-lg-4:has(.nf-site-header__left) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nf-site-header__main-row > .col-lg-4:has(.nf-site-header__logo) {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nf-site-header__main-row > .col-lg-4:has(.nf-site-header__right) {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

.nf-site-header__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

/* Quiz pill: theme/Elementor often forces link color — beat it with specificity + text-fill */
body.nf-site-header-active .nf-site-header a.nf-site-header__quiz,
.nf-site-header a.nf-site-header__quiz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--nf-sh-green) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

body.nf-site-header-active .nf-site-header a.nf-site-header__quiz:hover,
body.nf-site-header-active .nf-site-header a.nf-site-header__quiz:focus,
body.nf-site-header-active .nf-site-header a.nf-site-header__quiz:focus-visible,
.nf-site-header a.nf-site-header__quiz:hover,
.nf-site-header a.nf-site-header__quiz:focus,
.nf-site-header a.nf-site-header__quiz:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    filter: brightness(0.92);
}

.nf-site-header__shop-wrap {
    flex-shrink: 0;
}

.nf-site-header__shop-trigger {
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nf-site-header__shop-trigger:hover,
.nf-site-header__shop-trigger:focus {
    color: var(--nf-sh-green);
}

/* Full-width mega: sibling of main bar, under entire header */
.nf-site-header__mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--nf-sh-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 100019;
}

.nf-site-header:has(.nf-site-header__shop-wrap:hover) .nf-site-header__mega,
.nf-site-header:has(.nf-site-header__shop-wrap:focus-within) .nf-site-header__mega,
.nf-site-header:has(.nf-site-header__mega:hover) .nf-site-header__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nf-site-header__mega-inner {
    position: relative;
    width: 100%;
    max-width: min(100%, var(--nf-sh-container-max));
    margin-left: auto;
    margin-right: auto;
    padding: 28px clamp(16px, 4vw, 48px) 32px;
}

.nf-site-header__mega-grid {
    display: grid;
    /* Column 1 wide enough for category list + flyout sub-menu before promo */
    grid-template-columns: minmax(460px, 40%) minmax(200px, 1.1fr) minmax(280px, 1fr);
    gap: 28px 32px;
    align-items: start;
}

.nf-site-header__mega-grid--no-promo {
    grid-template-columns: minmax(460px, 44%) minmax(300px, 1fr);
}

.nf-site-header__mega-section-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.nf-site-header__mega-nav-wrap {
    position: relative;
    min-height: 120px;
}

.nf-site-header__mega-col--promo {
    border-radius: 12px;
    padding: 20px 22px;
    min-height: 160px;
}

.nf-site-header__mega-promo-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nf-site-header__mega-promo-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
}

.nf-site-header__mega-promo-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.nf-site-header__mega-promo-copy {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
}

.nf-site-header__mega-promo-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.nf-site-header__mega-promo-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.nf-site-header__mega-promo-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    flex: 0 0 auto;
}

.nf-site-header__mega-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--nf-sh-green) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 15px;
    font-weight: 300;
    text-decoration: none !important;
}

.nf-site-header__mega-promo-btn:hover,
.nf-site-header__mega-promo-btn:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    filter: brightness(0.95);
}

.nf-site-header__mega-promo-btn--static {
    cursor: default;
    pointer-events: none;
}

/* Mega nav: sub-menus align to parent row, stay left of promo */
.nf-site-header__mega-col--nav .nf-site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 240px;
}

.nf-site-header__mega-col--nav .nf-site-header__menu > li {
    margin: 0;
    padding: 0;
}

.nf-site-header__mega-col--nav .nf-site-header__menu > li > a {
    display: block;
    padding: 6px 0;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nf-site-header__mega-col--nav .nf-site-header__menu > li > a:hover,
.nf-site-header__mega-col--nav .nf-site-header__menu > li > a:focus {
    text-decoration: underline;
}

/* Plain sub-category text column: same top for every parent, no panel chrome */
.nf-site-header__mega-col--nav .nf-site-header__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: calc(240px + 12px);
    top: 0;
    right: 0;
    max-width: none;
    display: none;
    z-index: 5;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.nf-site-header__mega-col--nav .nf-site-header__menu > li.menu-item-has-children:hover > .sub-menu,
.nf-site-header__mega-col--nav .nf-site-header__menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.nf-site-header__mega-col--nav .nf-site-header__menu .sub-menu a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
}

.nf-site-header__mega-col--nav .nf-site-header__menu .sub-menu a:hover,
.nf-site-header__mega-col--nav .nf-site-header__menu .sub-menu a:focus {
    text-decoration: underline;
    background: transparent;
}

/* Mega product slider — matches NF Product Slider (mainmenu), 2 slides visible */
.nf-site-header .nf-site-header__mega-product-slider.nf-product-slider-mainmenu {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    position: relative;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-site-header__mega-ps-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-site-header__mega-ps-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-site-header__mega-ps-track::-webkit-scrollbar {
    display: none;
}

.nf-site-header .nf-site-header__mega-product-slider .mmpw-swiper-container[data-slides="2"] .swiper-slide {
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0 1%;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-myswiper-product-image,
.nf-site-header .nf-site-header__mega-product-slider .mmpw-product-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-myswiper-product-image img,
.nf-site-header .nf-site-header__mega-product-slider .mmpw-product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.nf-site-header .nf-site-header__mega-product-slider .mmpw-product-title,
.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-product-title {
    color: #282828;
    font-size: 15px;
    font-family: "Fira Sans", sans-serif;
    font-weight: 600;
    margin: 10px 0 6px;
    text-align: center;
    line-height: 1.35;
    text-decoration: none;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-product-description {
    color: #000;
    font-size: 14px;
    font-family: "Fira Sans", sans-serif;
    line-height: 18px;
    font-weight: 300;
    margin: 4px 0 8px;
    padding: 0 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-price-and-cart,
.nf-site-header .nf-site-header__mega-product-slider .mmpw-price-and-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 4px 0 0;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-price-wrapper,
.nf-site-header .nf-site-header__mega-product-slider .mmpw-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-price-wrapper ins,
.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-price-wrapper ins * {
    font-size: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-price-wrapper del,
.nf-site-header .nf-site-header__mega-product-slider .hps-swiper-price-wrapper del * {
    font-size: 14px !important;
    font-weight: 300 !important;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn .nf-icon-hover,
.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn .nf-icon-active {
    display: none;
    position: absolute;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn:hover .nf-icon-default,
.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn:focus .nf-icon-default {
    display: none;
}

.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn:hover .nf-icon-hover,
.nf-site-header .nf-site-header__mega-product-slider .nf-cart-btn:focus .nf-icon-hover {
    display: block;
}

.nf-site-header .nf-site-header__mega-product-slider .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nf-site-header .nf-site-header__mega-ps-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--nf-sh-border);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nf-site-header .nf-site-header__mega-ps-arrow:hover {
    background: #f5f5f5;
}

.nf-site-header .nf-site-header__mega-ps-arrow img {
    display: block;
}

.nf-site-header__mega-placeholder {
    margin: 0;
    max-width: 420px;
    color: #555;
    font-size: 14px;
}

.nf-site-header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.nf-site-header__logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.nf-site-header__logo .custom-logo-link img {
    max-height: 56px;
    width: auto;
    height: auto;
}

.nf-site-header__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.nf-site-header__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
}

@media (min-width: 992px) {
    .nf-site-header__right {
        justify-content: flex-end;
    }
}

.nf-site-header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f0f0f0;
    border: 1px solid transparent;
}

.nf-site-header__search:focus-within {
    border-color: var(--nf-sh-border);
    background: #fff;
}

.nf-site-header__search-icon {
    flex-shrink: 0;
    opacity: 0.45;
    font-size: 18px;
    line-height: 1;
}

.nf-site-header__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.nf-site-header__icon {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #111;
}

.nf-site-header__icon--account::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 8px 0 -5px currentColor;
}

.nf-site-header__icon--cart::before {
    content: "";
    width: 18px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 2px 2px 5px 5px;
}

body.nf-site-header-active .nf-site-header .nf-site-header__cart-badge,
.nf-site-header .nf-site-header__cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--nf-sh-green) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* --- Fallback when Bootstrap grid CDN is disabled --- */
.nf-site-header.nf-site-header--no-bootstrap .container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .nf-site-header.nf-site-header--no-bootstrap .container-fluid {
        padding-right: 24px;
        padding-left: 24px;
    }
}

.nf-site-header.nf-site-header--no-bootstrap .row {
    --nf-sh-gutter-x: 12px;
    --nf-sh-gutter-y: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: calc(-1 * var(--nf-sh-gutter-y));
    margin-right: calc(-0.5 * var(--nf-sh-gutter-x));
    margin-left: calc(-0.5 * var(--nf-sh-gutter-x));
}

.nf-site-header.nf-site-header--no-bootstrap .row > * {
    padding-right: calc(var(--nf-sh-gutter-x) * 0.5);
    padding-left: calc(var(--nf-sh-gutter-x) * 0.5);
    margin-top: var(--nf-sh-gutter-y);
}

.nf-site-header.nf-site-header--no-bootstrap .align-items-center {
    align-items: center;
}

.nf-site-header.nf-site-header--no-bootstrap .justify-content-between {
    justify-content: space-between;
}

.nf-site-header.nf-site-header--no-bootstrap .justify-content-lg-between {
    justify-content: space-between;
}

.nf-site-header.nf-site-header--no-bootstrap .flex-nowrap {
    flex-wrap: nowrap;
}

.nf-site-header.nf-site-header--no-bootstrap .text-center {
    text-align: center;
}

.nf-site-header.nf-site-header--no-bootstrap .col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.nf-site-header.nf-site-header--no-bootstrap .col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .nf-site-header.nf-site-header--no-bootstrap .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .nf-site-header.nf-site-header--no-bootstrap .justify-content-lg-between {
        justify-content: space-between;
    }
}

.nf-site-header.nf-site-header--no-bootstrap .order-1 {
    order: 1;
}

.nf-site-header.nf-site-header--no-bootstrap .order-2 {
    order: 2;
}

.nf-site-header.nf-site-header--no-bootstrap .order-3 {
    order: 3;
}

@media (min-width: 992px) {
    .nf-site-header.nf-site-header--no-bootstrap .order-lg-1 {
        order: 1;
    }

    .nf-site-header.nf-site-header--no-bootstrap .order-lg-2 {
        order: 2;
    }

    .nf-site-header.nf-site-header--no-bootstrap .order-lg-3 {
        order: 3;
    }
}

@media screen and (max-width: 991px) {
    .nf-site-header__mega-inner {
        padding: 20px 16px 24px;
    }

    .nf-site-header__mega-grid,
    .nf-site-header__mega-grid--no-promo {
        grid-template-columns: 1fr;
    }

    .nf-site-header__mega-col--nav .nf-site-header__menu .sub-menu {
        position: static;
        display: block;
        padding: 4px 0 0 12px;
        margin: 0;
        left: auto;
        right: auto;
    }

    .nf-site-header__mega-col--nav .nf-site-header__menu > li.menu-item-has-children:hover > .sub-menu,
    .nf-site-header__mega-col--nav .nf-site-header__menu > li.menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }

    .nf-site-header__search {
        max-width: none;
    }
}
