/* NexaCore V21: authoritative styles for the shared premium navigation only. */
.nx-premium-header .nx-v21-products-menu,
.nx-premium-header .nx-v21-products-menu *,
.nx-premium-header .nx-v21-mobile-menu,
.nx-premium-header .nx-v21-mobile-menu * { box-sizing: border-box; }

@media (min-width: 768px) {
    .nx-premium-header .nx-v21-mobile-menu { display: none; }
    .nx-premium-header .nx-v21-products-menu { position: relative; }
    .nx-premium-header .nx-v21-mega-menu {
        --nx-v21-mega-shift: 0px;
        display: block;
        position: absolute;
        inset-inline-start: 0;
        top: calc(100% + 9px);
        z-index: 1200;
        width: min(1080px, calc(100vw - 32px));
        padding: 27px 28px 20px;
        overflow: hidden;
        border: 1px solid #e7e4dd;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 22px 55px rgba(23, 23, 23, .14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(var(--nx-v21-mega-shift), -5px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }
    .nx-premium-header .nx-v21-products-menu.is-open .nx-v21-mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(var(--nx-v21-mega-shift), 0);
    }
    .nx-premium-header .nx-v21-mega-menu .nx-v8-mega-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin: 0;
        padding: 0 0 20px;
        border: 0;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-eyebrow {
        margin: 0 0 7px;
        color: #a67b35;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .15em;
        line-height: 1.2;
    }
    .nx-premium-header .nx-v21-mega-menu h2 {
        margin: 0;
        color: #171717;
        font-size: clamp(22px, 2vw, 26px);
        font-weight: 750;
        letter-spacing: -.035em;
        line-height: 1.1;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-description {
        display: block;
        max-width: 520px;
        margin-top: 7px;
        color: #707176;
        font-size: 13px;
        line-height: 1.45;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-view-all,
    .nx-premium-header .nx-v21-mega-menu .nx-mega-footer a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex: 0 0 auto;
        color: #171717;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-view-all { padding: 10px 0; border-bottom: 1px solid #c9a35e; }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-view-all i,
    .nx-premium-header .nx-v21-mega-menu .nx-mega-footer a i { color: #a67b35; transition: transform 180ms ease; }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-view-all:hover i,
    .nx-premium-header .nx-v21-mega-menu .nx-mega-footer a:hover i { transform: translateX(3px); }
    .nx-premium-header .nx-v21-mega-menu .nx-v8-mega-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 12px;
        max-height: min(46vh, 390px);
        margin: 0 -6px;
        padding: 4px 6px 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #d7c29a transparent;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        min-height: 74px;
        padding: 10px 11px;
        border: 1px solid transparent;
        border-radius: 12px;
        color: #171717;
        text-decoration: none;
        transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category:hover,
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category:focus-visible {
        border-color: #eee2ca;
        outline: 0;
        background: #fbf8f2;
        box-shadow: 0 3px 12px rgba(23, 23, 23, .035);
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category-image {
        display: grid;
        place-items: center;
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
        padding: 6px;
        overflow: hidden;
        border-radius: 12px;
        background: #f7f8fa;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category-name {
        min-width: 0;
        flex: 1 1 auto;
        color: #232323;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category-arrow {
        flex: 0 0 auto;
        color: #929292;
        font-size: 13px;
        transition: color 180ms ease, transform 180ms ease;
    }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category:hover .nx-mega-category-arrow,
    .nx-premium-header .nx-v21-mega-menu .nx-mega-category:focus-visible .nx-mega-category-arrow { color: #a67b35; transform: translate(1px, -1px); }
    .nx-premium-header .nx-v21-mega-menu .nx-mega-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        padding: 17px 3px 0;
        border-top: 1px solid #eceae5;
        color: #5d5e62;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.4;
    }
}

@media (min-width: 1200px) {
    .nx-premium-header .nx-v21-mega-menu .nx-v8-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .nx-premium-header .nx-v8-mobile-bar { position: relative; z-index: 1200; height: 64px; background: #fff; border-bottom: 1px solid #e8e7e3; }
    .nx-premium-header .nx-v8-mobile-bar > .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .nx-premium-header .nx-v21-mobile-menu { position: static; }
    .nx-premium-header .nx-v21-mobile-trigger {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid #e0dfdb;
        border-radius: 11px;
        background: #fff;
        color: #171717;
        font-size: 22px;
    }
    .nx-premium-header .nx-v21-mobile-trigger:focus-visible,
    .nx-premium-header .nx-v21-mobile-drawer :focus-visible { outline: 3px solid rgba(201, 163, 94, .42); outline-offset: 2px; }
    .nx-premium-header .nx-v21-mobile-backdrop { position: fixed; inset: 0; z-index: 1201; visibility: hidden; background: rgba(17, 17, 17, .42); opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }
    .nx-premium-header .nx-v21-mobile-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1202;
        display: flex;
        flex-direction: column;
        width: min(360px, 90vw);
        max-height: 100dvh;
        margin: 0;
        padding: 18px 16px max(18px, env(safe-area-inset-bottom));
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: 18px 0 45px rgba(0, 0, 0, .16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-102%);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }
    [dir="rtl"] .nx-premium-header .nx-v21-mobile-drawer { inset: 0 0 0 auto; transform: translateX(102%); }
    .nx-premium-header .nx-v21-mobile-menu.is-open .nx-v21-mobile-backdrop { visibility: visible; opacity: 1; }
    .nx-premium-header .nx-v21-mobile-menu.is-open .nx-v21-mobile-drawer { visibility: visible; pointer-events: auto; opacity: 1; transform: translateX(0); }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 0 2px 15px; color: #171717; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e0dfdb; border-radius: 50%; background: #fff; color: #171717; font-size: 16px; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-search { display: flex; align-items: center; flex: 0 0 46px; height: 46px; margin: 0 0 16px; overflow: hidden; border: 1px solid #dedcd7; border-radius: 12px; background: #f7f8fa; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-search > i { margin: 0 11px 0 14px; color: #737478; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #171717; font-size: 13px; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-search button { align-self: stretch; width: 45px; border: 0; background: #171717; color: #fff; font-size: 16px; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links { display: grid; flex: 1 1 auto; align-content: start; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a,
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #171717; font-size: 14px; font-weight: 650; line-height: 1.3; text-align: start; text-decoration: none; list-style: none; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a > i,
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary span > i { width: 19px; color: #a67b35; font-size: 16px; text-align: center; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary { justify-content: space-between; cursor: pointer; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary span { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary > i { color: #7a7a7a; font-size: 12px; transition: transform 180ms ease; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details > summary::-webkit-details-marker { display: none; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details[open] > summary { background: #fbf8f2; color: #171717; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-products-details[open] > summary > i { transform: rotate(180deg); color: #a67b35; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-categories { display: grid; gap: 3px; margin: 3px 0 6px 19px; padding: 5px 0 7px 13px; border-inline-start: 1px solid #e5d5b8; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-categories a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 7px 9px; border-radius: 8px; color: #48494d; font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-categories a:hover,
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-categories a:focus-visible { background: #f7f8fa; color: #171717; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-v8-mobile-categories a i { flex: 0 0 auto; color: #a67b35; font-size: 12px; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-view-all { margin-top: 4px; background: #171717; color: #fff !important; font-weight: 750; }
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-view-all i { color: #c9a35e; }
    body.nx-v21-mobile-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-premium-header .nx-v21-mega-menu,
    .nx-premium-header .nx-v21-mobile-backdrop,
    .nx-premium-header .nx-v21-mobile-drawer,
    .nx-premium-header .nx-v21-mega-menu * { transition-duration: .01ms !important; }
}

/* NexaCore premium mobile header refinement. */
@media (max-width: 767px) {
    .nx-premium-header .nx-v8-mobile-bar,
    .nx-premium-header .nx-v8-mobile-bar > .container {
        min-height: 70px;
        height: 70px;
    }

    .nx-premium-header .nx-v8-mobile-bar > .container {
        gap: 14px;
        padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    }

    .nx-premium-header .nx-mobile-logo {
        display: flex;
        align-items: center;
        min-width: 0;
        width: clamp(148px, 46vw, 176px);
    }

    .nx-premium-header .nx-v8-mobile-bar .nx-mobile-logo img {
        display: block;
        width: 100%;
        max-width: none;
        max-height: 46px;
        height: auto;
        object-fit: contain;
        object-position: left center;
    }

    .nx-premium-header .nx-v21-mobile-trigger {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        border-color: #e5e5e5;
        border-radius: 12px;
        transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
    }

    .nx-premium-header .nx-v21-mobile-trigger:hover,
    .nx-premium-header .nx-v21-mobile-trigger:focus-visible,
    .nx-premium-header .nx-v21-mobile-menu.is-open .nx-v21-mobile-trigger {
        border-color: #c9a35e;
        background: #f8f2e8;
        color: #171717;
    }

    .nx-premium-header .nx-v21-mobile-trigger:active { transform: translateY(1px); }
    .nx-premium-header .nx-v21-mobile-trigger-close { display: none; font-size: 18px; }
    .nx-premium-header .nx-v21-mobile-menu.is-open .nx-v21-mobile-trigger-open { display: none; }
    .nx-premium-header .nx-v21-mobile-menu.is-open .nx-v21-mobile-trigger-close { display: block; }

    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a {
        transition: background-color .18s ease, color .18s ease;
    }

    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a:hover,
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a:focus-visible,
    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a.is-active {
        background: #f8f2e8;
        color: #171717;
    }

    .nx-premium-header .nx-v21-mobile-drawer .nx-mobile-nav-links > a.is-active > i {
        color: #c9a35e;
    }
}

@media (max-width: 359px) {
    .nx-premium-header .nx-v8-mobile-bar > .container { gap: 10px; padding-inline: 12px; }
    .nx-premium-header .nx-mobile-logo { width: min(144px, calc(100vw - 84px)); }
}
