/**
 * NF Site Header — .nf-site-header only (not Elementor).
 * Max width: CSS variable --nf-sh-container-max from settings (inline on header).
 * Bootstrap row gy-* vertical gutters are left as default (no margin-top overrides).
 */

/*
 * Hide the theme / Elementor header shell — but not when it wraps our NF header.
 * Many themes call wp_body_open() inside #masthead; hiding #masthead used to hide
 * .nf-site-header entirely (including the logo).
 */
body.nf-site-header-active header[data-elementor-type="header"]:not(:has(.nf-site-header)),
body.nf-site-header-active .elementor-location-header:not(:has(.nf-site-header)),
body.nf-site-header-active #masthead:not(:has(.nf-site-header)),
body.nf-site-header-active header#masthead:not(:has(.nf-site-header)),
body.nf-site-header-active #site-header:not(:has(.nf-site-header)),
body.nf-site-header-active header#site-header:not(:has(.nf-site-header)),
body.nf-site-header-active header.site-header:not(:has(.nf-site-header)),
body.nf-site-header-active .wp-site-blocks > header:not(:has(.nf-site-header)) {
    display: none !important;
}

/* When both theme branding and NF exist inside #masthead, hide the classic block (not NF). */
body.nf-site-header-active #masthead:has(.nf-site-header) .site-branding:not(:has(.nf-site-header)) {
    display: none !important;
}

.nf-site-header {
    --nf-sh-green-fallback: #2d6b4f;
    --nf-sh-text-on-top: #fff;
    --nf-sh-main-bg: #fff;
    --nf-sh-border: rgba(0, 0, 0, 0.08);
    --nf-sh-mega-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    /* Mobile mega panel starts below header (set via JS from measured height). */
    --nf-sh-mega-top: 120px;
    position: relative;
    z-index: 200;
    background: var(--nf-sh-main-bg);
    font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/*
 * Many themes style all buttons :hover / :focus (e.g. red background or link color).
 * Neutralize inside the NF header only; more specific rules below restore icons / affordances.
 */
.nf-site-header button:hover,
.nf-site-header button:focus,
.nf-site-header button:focus-visible,
.nf-site-header button:active,
.nf-site-header input[type="button"]:hover,
.nf-site-header input[type="button"]:focus,
.nf-site-header input[type="button"]:focus-visible,
.nf-site-header input[type="button"]:active,
.nf-site-header input[type="submit"]:hover,
.nf-site-header input[type="submit"]:focus,
.nf-site-header input[type="submit"]:focus-visible,
.nf-site-header input[type="submit"]:active {
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

.nf-site-header .nf-site-header__contain {
    width: 100%;
    max-width: var(--nf-sh-container-max, 1140px);
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: strip Bootstrap .row horizontal gutter only inside this header (gx-*, .row>* padding). */
@media (max-width: 991px) {
    .nf-site-header .row {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .nf-site-header .row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.nf-site-header--no-bootstrap .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

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

.nf-site-header--no-bootstrap .row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

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

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

/* Top bar: promo takes remaining space; contact stays on screen (long promos scroll). */
.nf-site-header .nf-site-header__top .row > .nf-site-header__top-promo-col {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
}

.nf-site-header--no-bootstrap .nf-site-header__top .row > .nf-site-header__top-promo-col {
    flex-shrink: 1;
}

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

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

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

.nf-site-header--no-bootstrap .order-1 { order: 1; }
.nf-site-header--no-bootstrap .order-2 { order: 2; }
.nf-site-header--no-bootstrap .order-3 { order: 3; }
.nf-site-header--no-bootstrap .text-center { text-align: center; }

.nf-site-header__top {
    background: var(--nf-sh-top-bg-custom, var(--nf-sh-green, var(--nf-sh-green-fallback)));
    color: var(--nf-sh-text-on-top);
    font-size: 14px;
    line-height: 1.4;
    padding-top: 5px;
    padding-bottom: 5px;
    overflow: hidden;
}

/* Bar 1 mobile ticker uses transform; clip the strip so the page does not gain horizontal scroll (WebKit). */
@media (max-width: 991px) {
    .nf-site-header__top {
        overflow-x: hidden;
    }

    .nf-site-header__top .nf-site-header__contain {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nf-site-header__top .row {
        max-width: 100%;
    }
}

/* Top bar 2 variant: dark text/icons only when bar_2 preset is active. */
.nf-site-header__top--bar-2 {
    color: #111;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-sep,
.nf-site-header__top--bar-2 .nf-site-header__sep {
    background: rgba(0, 0, 0, 0.3);
}

/* Bar 2: one visual baseline — ticker slices, icons, and contact share the same cross-axis center */
.nf-site-header__top--bar-2 .nf-site-header__promo-marquee {
    display: flex;
    align-items: center;
    /* Bar 2 uses a very wide flex child; keep this box strictly within the promo column (Safari/WebKit). */
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track {
    align-items: center;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-item-text a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nf-site-header__top--bar-2 .nf-site-header__contact {
    align-items: center;
    min-height: 0;
}

.nf-site-header__top--bar-2 .nf-site-header__contact-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.nf-site-header__promo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nf-site-header__promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    font-size: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.nf-site-header__promo-icon-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nf-site-header__promo-icon-image-img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

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

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

/* Continuous horizontal ticker: padding-left 100% = message enters from the right; duplicate + -50% = loop. */
.nf-site-header__promo-marquee {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

/* Edge fade: only when mask is supported (avoids blank/glitched strips on some WebViews). */
@supports ((-webkit-mask-image: linear-gradient(red, red)) or (mask-image: linear-gradient(red, red))) {
    .nf-site-header__promo-marquee {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            #000 6px,
            #000 calc(100% - 6px),
            transparent
        );
        mask-image: linear-gradient(
            to right,
            transparent,
            #000 6px,
            #000 calc(100% - 6px),
            transparent
        );
    }
}

/* Bar 2: never use edge masks (they stack badly with the bar-2 ticker + transform on iOS / WebKit). */
.nf-site-header__top--bar-2 .nf-site-header__promo-marquee {
    mask-image: none;
    -webkit-mask-image: none;
}

.nf-site-header__promo-marquee-track {
    display: flex;
    width: max-content;
    box-sizing: content-box;
    padding-left: 100%;
    will-change: transform;
}

.nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
    flex-shrink: 0;
    padding-right: 3rem;
    white-space: nowrap;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track {
    padding-left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
    padding-right: 0;
}

@media (min-width: 992px) {
    .nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track {
        animation: nf-sh-promo-marquee var(--nf-sh-top2-marquee-duration-desktop, 32s) linear infinite;
    }

    .nf-site-header__top--bar-2 .nf-site-header__promo-item {
        margin-right: var(--nf-sh-top2-ticker-item-gap-desktop, 12px);
    }
}

@media (max-width: 991px) {
    .nf-site-header__top--bar-2 .nf-site-header__promo {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nf-site-header__top--bar-2 .nf-site-header__promo-marquee {
        overflow-x: hidden;
        contain: paint;
    }

    .nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track {
        animation: nf-sh-promo-marquee var(--nf-sh-top2-marquee-duration-mobile, 32s) linear infinite;
    }

    .nf-site-header__top--bar-2 .nf-site-header__promo-item {
        margin-right: var(--nf-sh-top2-ticker-item-gap-mobile, 12px);
    }
}

.nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text:last-child .nf-site-header__promo-item {
    margin-right: 0;
}

.nf-site-header__promo-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nf-site-header__promo-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nf-site-header__promo-item-icon-img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.nf-site-header__promo-item-text {
    white-space: nowrap;
}

@keyframes nf-sh-promo-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

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

/* Top bar 1 mobile: horizontal ticker (duplicate spans + -50% loop). */
@media (max-width: 991px) {
    .nf-site-header__top--bar-1 .nf-site-header__promo {
        justify-content: flex-start;
        text-align: left;
        white-space: nowrap;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee {
        text-align: left;
        mask-image: none;
        -webkit-mask-image: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        /* Keeps transformed track from growing document scroll width in Safari. */
        contain: paint;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track {
        animation: nf-sh-promo-marquee var(--nf-sh-top1-marquee-duration-mobile, 32s) linear infinite;
        padding-left: 0;
        width: max-content;
        max-width: none;
        box-sizing: content-box;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
        flex-shrink: 0;
        padding-right: var(--nf-sh-top1-ticker-gap-mobile, 48px);
        white-space: nowrap;
        text-align: left;
    }
}

/* Top bar 1 desktop: static single line, left-aligned. */
@media (min-width: 992px) {
    .nf-site-header__top--bar-1 .nf-site-header__promo {
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
        flex-wrap: wrap;
        gap: var(--nf-sh-top1-promo-inline-gap-desktop, 8px);
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
        text-align: left;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track {
        animation: none;
        transform: none;
        padding-left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        will-change: auto;
        justify-content: flex-start;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text[aria-hidden="true"] {
        display: none;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
        padding-right: 0;
        white-space: normal;
        flex-shrink: 1;
        min-width: 0;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nf-site-header__promo-marquee {
        mask-image: none;
        -webkit-mask-image: none;
        /* Clip wrapped items to a single visible line so the top bar never blows out the viewport. */
        overflow: hidden;
        max-height: 1.4em;
    }

    .nf-site-header__promo-marquee-track {
        animation: none;
        transform: none;
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    .nf-site-header__top--bar-1 .nf-site-header__promo-marquee-track {
        animation: none;
        transform: none;
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    .nf-site-header__top--bar-2 .nf-site-header__promo-marquee-track {
        animation: none;
        transform: none;
        flex-wrap: nowrap;
        align-items: center;
        width: auto;
        max-width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    .nf-site-header__promo-marquee-track > .nf-site-header__promo-text {
        padding-right: 0;
        white-space: nowrap;
    }

    .nf-site-header__promo-marquee-track > .nf-site-header__promo-text[aria-hidden="true"] {
        display: none;
    }
}

.nf-site-header__contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 8px;
    white-space: nowrap;
}

.nf-site-header__contact-label { opacity: 0.95; }

@media (max-width: 991px) {
    .nf-site-header__top-contact-col {
        display: none !important;
    }
}

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

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

.nf-site-header__phone:hover,
.nf-site-header__phone:focus-visible {
    text-decoration: none;
    color:white;
}

.nf-site-header__phone-icon {
    display: inline-flex;
    opacity: 0.9;
}

.nf-site-header__main {
    border-bottom: 1px solid var(--nf-sh-border);
    padding-top: 25px;
    padding-bottom: 25px;
}

/* Checkout: logo left, support label + phone + icon right — no top bar, mega, search, cart */
.nf-site-header--checkout-minimal {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 20px;
}

/* Whole checkout header bar matches content width (settings max, default 1140px), centered. */
.nf-site-header--checkout-minimal .nf-site-header__checkout-main {
    background: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%!important;
    max-width:1140px;
    box-sizing: border-box;
    text-align: left !important;
}

/*
 * Row inside the bar: logo (fixed intrinsic width) + support/phone (end). Parent already caps width.
 */
.nf-site-header--checkout-minimal .nf-site-header__checkout-inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    text-align: left !important;
}

.nf-site-header--checkout-minimal .nf-site-header__checkout-brand {
    justify-self: start;
    align-self: center;
    width: max-content;
    max-width: 100%;
    /* Do not use min-width: 0 here — it lets the grid “auto” track collapse and hides the logo when paired with max-width:100% on the img. */
    min-width: min-content;
    text-align: left !important;
    box-sizing: border-box;
}

/* Beat theme rules (e.g. Hello Elementor) that center .custom-logo-link with margin: 0 auto */
.nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo {
    text-align: left !important;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
}

.nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    margin: 0 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link img,
.nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo img.custom-logo {
    display: block !important;
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

.nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .nf-site-header__logo-text {
    display: inline-block;
    text-align: left !important;
    margin: 0 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Custom / filtered logo HTML inside the brand slot */
.nf-site-header--checkout-minimal .nf-site-header__checkout-brand > :not(.nf-site-header__logo) {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.nf-site-header--checkout-minimal .nf-site-header__checkout-brand img {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.nf-site-header__checkout-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
}

.nf-site-header__checkout-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    flex: 0 0 auto;
    margin-left: 0;
}

.nf-site-header__checkout-contact-label {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    color: #444;
    font-weight: 300;
}

.nf-site-header__checkout-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
}

.nf-site-header__checkout-phone:hover,
.nf-site-header__checkout-phone:focus-visible {
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0.85;
}

.nf-site-header__checkout-phone-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.nf-site-header__checkout-phone-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nf-site-header__checkout-phone-num {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.nf-site-header__checkout-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
}

.nf-site-header__checkout-email:hover,
.nf-site-header__checkout-email:focus-visible {
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0.85;
}

.nf-site-header__checkout-email-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.nf-site-header__checkout-email-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nf-site-header__checkout-email-addr {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    word-break: break-word;
}

@media (max-width: 575px) {
    /* One row: logo left, support label + phone/email (stacked) + cart on the right */
    .nf-site-header--checkout-minimal .nf-site-header__checkout-inner {
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand {
        justify-self: start;
        min-width: min-content;
    }

    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link img,
    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo img.custom-logo {
        width: auto;
        max-width: min(160px, 46vw);
        height: auto;
    }

    .nf-site-header__checkout-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding-right: 30px;
    }

    .nf-site-header__checkout-contact {
        align-items: flex-end;
        text-align: right;
        flex-shrink: 1;
        min-width: 0;
    }
}

.nf-site-header__main-row {
    align-items: center;
}

/* Desktop: true viewport-centered logo — equal space left/right (left & right blocks differ in width) */
@media (min-width: 992px) {
    .nf-site-header__main-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 16px;
        width: 100%;
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    .nf-site-header__main-row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .nf-site-header__main-row > .col-lg-4:first-child {
        justify-self: start;
    }

    .nf-site-header__main-row > .col-lg-4:nth-child(2) {
        justify-self: center;
    }

    .nf-site-header__main-row > .col-lg-4:last-child {
        justify-self: stretch;
        width: 100% !important;
    }

    .nf-site-header__main-row > .col-lg-4:last-child .nf-site-header__right {
        justify-content: flex-end;
        width: 100%;
    }
}

.nf-site-header__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

@media (min-width: 992px) {
    .nf-site-header__left {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
}

.nf-site-header__quiz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 300;
    color: #fff !important;
    background: var(--nf-sh-quiz-bg, var(--nf-sh-green, var(--nf-sh-green-fallback))) !important;
    text-decoration: none;
    white-space: nowrap;
}

.nf-site-header__quiz:hover,
.nf-site-header__quiz:focus-visible {
    color: #fff;
    filter: brightness(1.05);
    text-decoration: none;
}

/* Shop mega: hover must survive moving from label to panel (bridge + overlap; see .nf-site-header__mega). */
@media (min-width: 992px) {
    .nf-site-header__shop-wrap {
        position: relative;
        z-index: 202;
        align-self: stretch;
        display: flex;
        align-items: center;
    }

    /* Invisible strip below the label — covers main padding + diagonal move to panel */
    .nf-site-header__shop-wrap::after {
        content: "";
        position: absolute;
        left: -12px;
        right: -12px;
        top: 100%;
        height: 48px;
    }
}

.nf-site-header__shop-trigger {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    text-align: inherit;
    cursor: pointer;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
}

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

.nf-site-header__logo { line-height: 0; }

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

.nf-site-header__logo .custom-logo-link img {
    display: block;
    max-height: 48px;
}

@media (min-width: 992px) {
    .nf-site-header__logo .custom-logo-link img 
    { 
        max-height: 52px; 
    }
}

.nf-site-header__logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.nf-site-header__logo-text:hover,
.nf-site-header__logo-text:focus-visible {
    color: var(--nf-sh-green, var(--nf-sh-green-fallback));
}

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

@media (max-width: 991px) {
    .nf-site-header__right {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .nf-site-header__right {
        gap: 14px;
        flex-wrap: nowrap;
    }
}

.nf-site-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: transparent;
    background-image: url("../../../images/header/Header-ikone_Meni-1-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    color: #1a1a1a;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.nf-site-header .nf-site-header__menu-toggle:hover,
.nf-site-header .nf-site-header__menu-toggle:focus,
.nf-site-header .nf-site-header__menu-toggle:focus-visible,
.nf-site-header .nf-site-header__menu-toggle:active,
.nf-site-header button.nf-site-header__menu-toggle:hover,
.nf-site-header button.nf-site-header__menu-toggle:focus,
.nf-site-header button.nf-site-header__menu-toggle:focus-visible,
.nf-site-header button.nf-site-header__menu-toggle:active {
    background-color: transparent !important;
    background-image: url("../../../images/header/Header-ikone_Meni-1-1.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
    color: #1a1a1a !important;
    outline: none;
    box-shadow: none;
}

@media (max-width: 991px) {
    .nf-site-header__menu-toggle {
        display: inline-flex;
    }

    .nf-site-header--mega-open .nf-site-header__menu-toggle {
        display: inline-flex !important;
        visibility: visible;
        opacity: 1;
    }

    .nf-site-header:not(.nf-site-header--checkout-minimal) .nf-site-header__logo {
        min-width: 0;
    }

    .nf-site-header:not(.nf-site-header--checkout-minimal) .nf-site-header__logo .custom-logo-link,
    .nf-site-header:not(.nf-site-header--checkout-minimal) .nf-site-header__logo .custom-logo-link img {
        max-width: min(200px, 46vw);
    }

    /* Keep checkout logo readable; avoid 100% of a zero-width grid track (collapsed logo). */
    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link,
    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link img {
        max-width: min(200px, 50vw) !important;
        min-width: 150px;
        padding-left:10px;
    }

    .nf-site-header--checkout-minimal .nf-site-header__checkout-brand .nf-site-header__logo .custom-logo-link img {
        max-height: none;
        height: auto;
    }

    .nf-site-header__left {
        display: none;
    }

    /* One row: logo (flex) + actions; hide empty shop column */
    .nf-site-header:not(.nf-site-header--mega-open) .nf-site-header__main {
        position: relative;
        z-index: 198;
    }

    /* Stay above the fixed mega sheet (z-index 250) so search/cart/menu stay visible and tappable. */
    .nf-site-header--mega-open .nf-site-header__main {
        position: relative;
        z-index: 1002;
        isolation: isolate;
    }

    .nf-site-header__main-row {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        row-gap: 0;
        margin-left: 0;
        margin-right: 0;
        min-width: 0;
    }

    .nf-site-header__main-row > [class*="col-"] {
        flex: 0 0 auto;
        width: auto !important;
        max-width: none !important;
    }

    .nf-site-header__main-row > .col-12.col-lg-4:first-child {
        display: none !important;
    }

    .nf-site-header__main-row > .col-12.order-1.order-lg-2 {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left !important;
    }

    .nf-site-header__main-row > .col-12.order-3 {
        flex: 0 0 auto;
    }

    .nf-site-header:not(.nf-site-header--checkout-minimal) .nf-site-header__logo .custom-logo-link img {
        max-height: 40px;
    }
}

.nf-site-header__search {
    position: relative;
    flex: 1 1 160px;
    min-width: 0;
    max-width: 240px;
    display: flex;
    align-items: center;
}

.nf-site-header__search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: transparent;
    background-image: url("../../../images/header/Header-ikone_Search-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.nf-site-header .nf-site-header__search-toggle:hover,
.nf-site-header .nf-site-header__search-toggle:focus,
.nf-site-header .nf-site-header__search-toggle:focus-visible,
.nf-site-header .nf-site-header__search-toggle:active,
.nf-site-header button.nf-site-header__search-toggle:hover,
.nf-site-header button.nf-site-header__search-toggle:focus,
.nf-site-header button.nf-site-header__search-toggle:focus-visible,
.nf-site-header button.nf-site-header__search-toggle:active {
    background-color: transparent !important;
    background-image: url("../../../images/header/Header-ikone_Search-1.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
    outline: none;
    box-shadow: none;
}

.nf-site-header__search-body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .nf-site-header__search-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .nf-site-header__search {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
        position: static;
    }

    .nf-site-header__search-toggle {
        display: inline-flex;
    }

    .nf-site-header__search-body {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 4px;
        padding: 12px 16px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
        z-index: 260;
        width: auto;
        flex: none;
    }

    .nf-site-header__search--open .nf-site-header__search-body {
        display: block;
    }
}

.nf-site-header__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("../../../images/header/Header-ikone_Search-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

@media (max-width: 991px) {
    .nf-site-header__search-icon {
        left: 30px;
    }
    .nf-site-header__catmega-main-link {
        padding-left:18px;
    }
}

/* Scoped + !important so global theme/Elementor input[type=search] rules (often border-radius: 3px) don't win */
.nf-site-header__search .nf-site-header__search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border: none !important;
    border-radius: 50px !important;
    font: inherit;
    font-size: 14px;
    background: #f1f1f1;
    color: #222;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.nf-site-header__search .nf-site-header__search-input:focus,
.nf-site-header__search .nf-site-header__search-input:focus-visible {
    border: none !important;
    border-color: transparent !important;
    border-radius: 50px !important;
    background: #ececec;
    outline: none !important;
    box-shadow: none !important;
}

.nf-site-header__search .nf-site-header__search-input::placeholder {
    color: transparent;
}

.nf-site-header__search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1200;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    padding: 8px;
}

.nf-site-header__suggest-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a1a !important;
}

.nf-site-header__suggest-item:hover,
.nf-site-header__suggest-item:focus-visible {
    background: #f4f4f4;
}

.nf-site-header__suggest-thumb {
    width: 44px;
    height: 44px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nf-site-header__suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nf-site-header__suggest-title {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 300;
    color: #6f6f6f;
}

.nf-site-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    -webkit-tap-highlight-color: transparent;
}

.nf-site-header__icon:hover,
.nf-site-header__icon:focus,
.nf-site-header__icon:focus-visible,
.nf-site-header__icon:active {
    border-color: transparent;
    background-color: #fff;
    filter: none;
    opacity: 1;
    outline: none;
    box-shadow: none;
}

.nf-site-header__icon--account {
    background-image: url("../../../images/header/Header-ikone_Profile-1-1.svg");
}

.nf-site-header__icon--cart {
    background-image: url("../../../images/header/Header-ikone_Cart-1-1.svg");
}

/* Keeps the link from matching :empty when the count badge is not rendered. */
.nf-site-header__cart-icon-ph {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.nf-site-header__cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--nf-sh-green, var(--nf-sh-green-fallback));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Pull up slightly so the hit area meets the shop row (bridges main padding-bottom gap). */
.nf-site-header__mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 201;
    margin-top: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--nf-sh-border);
    box-shadow: 
    0 6px 12px -4px rgba(0, 0, 0, 0.2), /* bottom shadow */
    inset 0 8px 14px -6px rgba(0, 0, 0, 0.25); /* top inner shadow */
}

/* Bottom-only shadow so it doesn't look like a top glow under the header. */
.nf-site-header__mega::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 26px;
    pointer-events: none;
    box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.34);
}

.nf-site-header:has(.nf-site-header__shop-wrap:hover) .nf-site-header__mega,
.nf-site-header:has(.nf-site-header__mega:hover) .nf-site-header__mega,
.nf-site-header:has(.nf-site-header__shop-trigger:focus-visible) .nf-site-header__mega,
.nf-site-header__mega:focus-within {
    display: block;
}

@media (max-width: 991px) {
    /* Keep promo bar above the sliding menu (__main z-index set in mobile header block). */
    .nf-site-header--mega-open .nf-site-header__top {
        position: relative;
        z-index: 1002;
        isolation: isolate;
    }

    .nf-site-header--mega-open .nf-site-header__mega {
        display: block;
    }

    .nf-site-header__mega {
        position: fixed;
        inset: var(--nf-sh-mega-top, 120px) 0 0 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        z-index: 250;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: 
    0 6px 12px -4px rgba(0, 0, 0, 0.2), /* bottom shadow */
    inset 0 8px 14px -6px rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
    }

    .nf-site-header__mega-inner {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px 10px 28px;
        box-sizing: border-box;
        overflow-x: hidden;
        min-width: 0;
    }

    .nf-site-header__mega .nf-site-header__mega-grid {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .nf-site-header__mega .nf-product-slider-mainmenu .mmpw-product-image,
    .nf-site-header__mega .hps-myswiper-product-image.mmpw-product-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        height: auto !important;
        min-height: 0;
        box-sizing: border-box;
    }

    .nf-site-header__mega .nf-product-slider-mainmenu .mmpw-product-image img {
        max-width: 100%;
        height: auto;
    }

    body.nf-site-header-mega-open {
        overflow: hidden;
        touch-action: none;
    }
}
.nf-site-header__main {
box-shadow: 0px 15px 20px -10px rgba(0, 0, 0, 0.05);
}
@media (min-width: 992px) {
    .nf-site-header__mega {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        padding: 0;
        overflow: visible;
        background: #fff;
        border-bottom: 1px solid var(--nf-sh-border);
        box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.2), inset 0 4px 20px -12px rgba(0, 0, 0, 0.25);
        z-index: 201;
    }

    body.nf-site-header-mega-open {
        overflow: visible;
        touch-action: auto;
    }
}

.nf-site-header__mega-inner {
    max-width: var(--nf-sh-container-max, 1140px);
    margin: 0 auto;
    /* Top: mega has padding-top for hover overlap; keep ~24px total above grid */
    padding: 25px 10px 28px;
}

@media (min-width: 768px) {
    .nf-site-header__mega-inner {
        padding: 50px 24px 28px;
    }
}

.nf-site-header__mega-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
    /* Nav | right stack: DNK stays at top of the right column; promo+slider fill space below (decoupled from nav height). */
    /* Same nav : (promo+slider) fr ratio as the old 3-column grid: 1.32fr | 0.70fr+1.48fr */
    .nf-site-header__mega-grid {
        grid-template-columns: minmax(350px, 1.32fr) minmax(700px, 2.18fr);
        align-items: stretch;
        column-gap: 5px;
        row-gap: 0;
    }

    .nf-site-header__mega-grid--no-promo {
        grid-template-columns: minmax(360px, 1.22fr) minmax(520px, 1.78fr);
    }

    /* Let category column match full mega height so absolute sub-lists sit inside the white sheet. */
    .nf-site-header__mega-inner {
        overflow: visible;
    }

    .nf-site-header__mega-col--nav {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        align-self: stretch;
        min-height: 0;
    }

    .nf-site-header__mega-nav-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .nf-site-header__catmega {
        flex: 1 1 auto;
        width: 100%;
    }

    .nf-site-header__mega-main-right {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        justify-content: flex-start;
        gap: 5px;
        min-width: 0;
        min-height: 0;
    }

    .nf-site-header__mega-dnk-wrap {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .nf-site-header__mega-right-row {
        display: grid;
        grid-template-columns: minmax(260px, 0.70fr) minmax(440px, 1.48fr);
        column-gap: 5px;
        flex: 1 1 auto;
        align-items: stretch;
        align-self: stretch;
        min-height: 0;
        min-width: 0;
    }

    .nf-site-header__mega-grid--no-promo .nf-site-header__mega-right-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nf-site-header__mega-col--nav {
    padding-right: 24px;
}

.nf-site-header__mega-dnk-wrap {
    min-width: 0;
}

.nf-site-header__mega-main-right {
    min-width: 0;
}

.nf-site-header__mega-right-row {
    min-width: 0;
    /* Grow with promo/slider content (old 444px cap clipped long copy). Soft viewport cap keeps the sheet on-screen. */
    max-height: min(1600px, calc(100vh - 88px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nf-site-header__mega-dnk-desktop-intro {
    display: none;
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    color: #1a1a1a;
}

/* Mobile: intro + stacked product cards (match design). Desktop: hidden. */
.nf-site-header__mega-dnk-mobile {
    display: block;
}

.nf-site-header__mega-dnk-intro {
    margin: 0 10px 12px;
    font-size: 18px;
    line-height: 1.4;
    color: #1a1a1a;
}

.nf-site-header__mega-dnk-intro strong {
    font-weight: 700;
}

.nf-site-header__mega-dnk-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nf-site-header__mega-dnk-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f4f5f5;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a !important;
    min-height: 52px;
}

.nf-site-header__mega-dnk-card:hover,
.nf-site-header__mega-dnk-card:focus-visible {
    background: #ececec;
}

.nf-site-header__mega-dnk-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

.nf-site-header__mega-dnk-card-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

/* Desktop: pill bar; mobile: hidden */
.nf-site-header__mega-dnk-desktop {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    background: #f4f5f5;
    border-radius: 12px;
    padding: 12px 16px;
    min-height: 80px;
}

.nf-site-header__mega-dnk-desktop > .nf-site-header__mega-dnk-text {
    flex: 1 1 200px;
    min-width: 0;
}

@media (min-width: 1100px) {
    .nf-site-header__mega-dnk-mobile {
        display: none !important;
    }

    .nf-site-header__mega-dnk-desktop-intro {
        display: block;
    }

    .nf-site-header__mega-dnk-desktop {
        display: flex;
    }
}

.nf-site-header__mega-dnk-media {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.nf-site-header__mega-dnk-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nf-site-header__mega-dnk-text {
    font-size: 16px;
    line-height: 1.35;
    color: #1f1f1f;
}

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

.nf-site-header__mega-dnk-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nf-site-header__mega-dnk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.nf-site-header__mega-dnk-btn--light {
    color: #4d4d4d !important;
    background: #e8e8e8;
}

.nf-site-header__mega-dnk-btn--green {
    color: #fff !important;
    background: var(--nf-sh-green, var(--nf-sh-green-fallback));
}

.nf-site-header__mega-section-title {
    margin: 0 15px 12px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #000;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nf-site-header__mega-section-title--slider {
    font-size: 28px;
    line-height: 1.2;
    padding-top: 4px;
    margin-top: 0;
    margin-bottom: 14px;
}

.nf-site-header__mega-placeholder {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.nf-site-header__mega-col--slider {
    background: var(--nf-sh-mega-slider-bg, #f3f3f3);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.nf-site-header__mega-col--promo {
    display: flex;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.nf-site-header__mega-nav-wrap {
    max-height: none;
    overflow: visible;
}

/* One real column: the old 2-col grid had only a single <ul> child, so the second `fr`
   track stayed empty — huge gap between the divider and subcategories. */
.nf-site-header__catmega {
    --nf-catmega-main-col: min(272px, 40%);
    display: block;
    position: relative;
    background: #fff;
    min-height: 360px;
    width: 100%;
}

.nf-site-header__catmega-main {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    width: var(--nf-catmega-main-col);
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 12px;
    border-right: 1px solid #e9e9e9;
}

.nf-site-header__catmega-main-item {
    border-bottom: 0;
}

.nf-site-header__catmega-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

/* Shrink-wrap highlight so the pill does not stretch across the whole main column. */
.nf-site-header__catmega-main-link {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 6px 14px 6px 12px;
    font-size: 16px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    align-self: center;
    margin-right: 0;
    box-sizing: border-box;
}

.nf-site-header__catmega-main-link:hover,
.nf-site-header__catmega-main-link:focus-visible,
.nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link.is-active {
    color: #000;
    font-weight: 500;
    background: #f7f8f8;
}

.nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link:hover::after,
.nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link:focus-visible::after,
.nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link.is-active::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: #666;
}

.nf-site-header__catmega-toggle {
    display: none;
    flex: 0 0 48px;
    align-items: center;
    justify-content: end;
    align-self: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 50px;
    -webkit-tap-highlight-color: transparent;
}

.nf-site-header__catmega-toggle:hover,
.nf-site-header__catmega-toggle:focus-visible {
    color: #000;
    background: transparent;
}

.nf-site-header__catmega-toggle:focus-visible {
    outline: 2px solid var(--nf-sh-green, var(--nf-sh-green-fallback));
    outline-offset: 2px;
}

/* SVG points right; closed = right, open = down (mobile accordion). */
.nf-site-header__catmega-toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("../../../images/header/header-catmega-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px auto;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.nf-site-header__catmega-main-item.is-open .nf-site-header__catmega-toggle-icon {
    transform: rotate(90deg);
}

.nf-site-header__top--bar-2 .nf-site-header__phone:hover {
    color:black;
}

.nf-site-header__catmega-main-item > .nf-site-header__catmega-sub-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nf-site-header__catmega-main-item > .nf-site-header__catmega-sub-list.is-active {
    display: block;
}

@media (min-width: 1100px) {
    .nf-site-header__catmega-toggle {
        display: none !important;
    }

    .nf-site-header__catmega-main-link {
        padding: 6px 28px 6px 14px;
    }

    .nf-site-header__catmega-main-item > .nf-site-header__catmega-sub-list {
        position: absolute;
        left: calc(var(--nf-catmega-main-col) + 13px);
        width: calc(100% - var(--nf-catmega-main-col) - 13px - 4px);
        top: 0;
        padding: 0;
        background: #fff;
        z-index: 2;
        box-sizing: border-box;
    }
}

.nf-site-header__catmega-sub-item a {
    display: block;
    padding: 8px 14px;
    color: #000;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.nf-site-header__catmega-sub-item a:hover,
.nf-site-header__catmega-sub-item a:focus-visible {
    color: #000;
    font-weight: 500;
}

@media (max-width: 1099px) {
    .nf-site-header__mega-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nf-site-header__mega-main-right {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nf-site-header__mega-right-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nf-site-header__mega-dnk-wrap {
        width: 100%;
    }

    .nf-site-header__mega-col--promo {
        order: unset;
    }

    .nf-site-header__mega-col--nav {
        order: 3;
        padding-right: 0;
    }

    .nf-site-header__mega-col--slider {
        order: unset;
        display: none !important;
    }

    .nf-site-header__mega-col--nav,
    .nf-site-header__mega-col--promo,
    .nf-site-header__mega-col--slider {
        grid-column: unset;
        grid-row: unset;
    }

    .nf-site-header__mega-dnk-desktop {
        display: none !important;
    }

    .nf-site-header__mega-dnk-text {
        font-size: 15px;
    }

    .nf-site-header__mega-dnk-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nf-site-header__mega-section-title {
        margin: 0 0 10px;
        font-weight: 700;
        font-size: 17px;
        padding-left:18px;
    }

    /* One row: left column = title + text + CTA; right column = image (vertically centered vs left block) */
    .nf-site-header__mega-promo-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "stack";
        align-items: start;
        column-gap: 14px;
        row-gap: 0;
        min-height: 0;
        padding: 16px 18px;
        border-radius: 14px;
    }

    .nf-site-header__mega-promo-inner:has(.nf-site-header__mega-promo-media),
    .nf-site-header__mega-promo-inner--has-media {
        grid-template-columns: minmax(0, 1fr) minmax(96px, 25%);
        grid-template-areas: "stack media";
        grid-template-rows: auto;
        align-items: center;
    }

    .nf-site-header__mega-promo-stack {
        grid-area: stack;
    }

    .nf-site-header__mega-promo-media {
        grid-area: media;
        flex: unset;
        max-width: none;
        width: 100%;
        margin: 0;
        justify-self: end;
    }

    .nf-site-header__mega-promo-inner .nf-site-header__mega-promo-img {
        max-width: 100%;
        width: auto;
        max-height: 120px;
        margin-left: auto;
        display: block;
        object-fit: contain;
    }

    .nf-site-header__mega-promo-actions {
        width: auto;
        max-width: 100%;
        text-align: left;
    }

    .nf-site-header__mega-promo-actions .nf-site-header__mega-promo-btn,
    .nf-site-header__mega-promo-actions .nf-site-header__mega-promo-btn--static {
        align-self: flex-start;
    }

    .nf-site-header__mega-promo-title {
        font-size: 18px;
        line-height: 1.25;
    }

    .nf-site-header__menu > li {
        border-bottom: 0;
        margin-bottom: 2px;
    }

    .nf-site-header__menu > li > a {
        position: relative;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 28px 12px 0;
        font-weight: 500;
    }

    .nf-site-header__menu > li > a::after {
        content: "›";
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        line-height: 1;
        color: #999;
        font-weight: 400;
    }

    .nf-site-header__catmega {
        grid-template-columns: 1fr;
    }

    .nf-site-header__catmega-main {
        width: 100%;
        max-width: none;
        padding-right: 0;
        border-right: 0;
        border-bottom: 0;
        max-height: none;
        overflow: visible;
    }

    /* Pin label left + arrow/toggle to the right (desktop used inline-block link + flex-start). */
    .nf-site-header__catmega-row {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .nf-site-header__catmega-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nf-site-header__catmega-main-link {
        padding: 6px 14px 6px 0;
        padding-left:18px;
    }

    .nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link {
        flex: 1 1 auto;
        min-width: 0;
        display: block;
    }

    .nf-site-header__catmega-main-item:not(.has-children) .nf-site-header__catmega-main-link {
        display: block;
        width: 100%;
    }

    .nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link:hover::after,
    .nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link:focus-visible::after,
    .nf-site-header__catmega-main-item.has-children .nf-site-header__catmega-main-link.is-active::after {
        content: none !important;
    }

    .nf-site-header__catmega-main-item > .nf-site-header__catmega-sub-list {
        position: static;
        left: auto;
        width: 100%;
        top: auto;
        padding: 4px 0 14px 16px;
        border-bottom: 0;
        background: transparent;
    }

    .nf-site-header__catmega-sub-item a {
        padding: 8px 12px;
        font-size: 15px;
    }
}

.nf-site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nf-site-header__menu > li {
    border-bottom: 1px solid var(--nf-sh-border);
}

@media (max-width: 1099px) {
    .nf-site-header__mega .nf-site-header__menu > li {
        border-bottom: 0;
    }
}

.nf-site-header__menu > li > a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.nf-site-header__menu > li > a:hover,
.nf-site-header__menu > li > a:focus-visible {
    color: var(--nf-sh-green, var(--nf-sh-green-fallback));
}

.nf-site-header__menu .sub-menu {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 0 12px;
}

.nf-site-header__menu .sub-menu a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
}

.nf-site-header__menu .sub-menu a:hover,
.nf-site-header__menu .sub-menu a:focus-visible {
    color: var(--nf-sh-green, var(--nf-sh-green-fallback));
}

/* Shared shell; flex column is desktop-only so max-width rules are not overridden later in this file */
.nf-site-header__mega-promo-inner {
    background: var(--nf-sh-mega-promo-bg, #e8f5ea);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    /* Flex/grid child: without min-width:0, long copy keeps min-content width and spills past the green panel. */
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 1100px) {
    .nf-site-header__mega-promo-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
        min-height: 200px;
        padding: 20px;
    }
}

.nf-site-header__mega-promo-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.nf-site-header__mega-promo-copy {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

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

.nf-site-header__mega-promo-title {
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

@media (min-width: 1100px) {
    .nf-site-header__mega-promo-title {
        font-size: 30px;
        line-height: 1.2;
    }
}

.nf-site-header__mega-promo-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

.nf-site-header__mega-promo-actions {
    text-align: center;
}

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

.nf-site-header__mega-promo-btn:hover,
.nf-site-header__mega-promo-btn:focus-visible {
    filter: brightness(1.05);
}

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

.nf-site-header__mega-product-slider.nf-product-slider-mainmenu {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    flex: 1 1 auto;
}

.nf-site-header__mega-ps-arrow {
    flex-shrink: 0;
    width: 40px;
    height: auto;
    align-self: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nf-site-header__mega-ps-arrow img {
    width: 30px;
    height: 30px;
    display: block;
    pointer-events: none;
}

.nf-site-header__mega-ps-arrow:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nf-site-header__mega-ps-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.nf-site-header__mega-ps-arrow:active {
    background: rgba(0, 0, 0, 0.06);
}

.nf-site-header__mega-ps-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nf-site-header__mega-ps-track {
    display: flex;
    gap: 0;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
}

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

.nf-site-header__mega-ps-slide {
    flex: 0 0 auto;
    max-width: none;
    box-sizing: border-box;
}
