.nexpro-header,
.nexpro-header * {
    box-sizing: border-box;
}

body.nexpro-header-menu-open {
    overflow: hidden;
}

.nexpro-header {
    width: 100%;
    color: var(--nexpro-text, #151515);
    background: var(--nexpro-bg, #f8f5ef);
    border-bottom: 0px solid var(--nexpro-border, #e4ddd2);
    z-index: 9999;
    font-family: inherit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.nexpro-header--sticky {
    position: sticky;
    top: 0;
}

.nexpro-header__inner {
    width: min(var(--nexpro-container-width, 1180px), calc(100% - 32px));
    min-height: var(--nexpro-header-height, 76px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr auto;
    align-items: center;
    gap: 24px;
}

.nexpro-header__brand,
.nexpro-drawer__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nexpro-header__logo,
.nexpro-header__logo--theme .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: var(--nexpro-text, #151515);
    text-decoration: none;
}

.nexpro-header__logo img,
.nexpro-header__brand img,
.nexpro-drawer__brand img {
    display: block;
    width: auto;
    max-width: var(--nexpro-logo-width, 150px);
    max-height: var(--nexpro-logo-height, 48px);
    height: auto;
    object-fit: contain;
}

.nexpro-header__site-title {
    color: var(--nexpro-text, #151515);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

.nexpro-header__nav {
    min-width: 0;
}

.nexpro-desktop-menu,
.nexpro-desktop-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nexpro-desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nexpro-desktop-menu li {
    position: relative;
    margin: 0;
}

.nexpro-desktop-menu a {
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    color: var(--nexpro-text, #151515);
    border-radius: 999px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.nexpro-desktop-menu a:hover,
.nexpro-desktop-menu a:focus {
    color: var(--nexpro-accent-hover, #2f523b);
    background: color-mix(in srgb, var(--nexpro-accent, #3f624a) 10%, transparent);
    outline: none;
}

.nexpro-desktop-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10;
    min-width: 210px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--nexpro-border, #e4ddd2);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nexpro-desktop-menu .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% + 8px);
}

.nexpro-desktop-menu li:hover > .sub-menu,
.nexpro-desktop-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nexpro-desktop-menu .sub-menu a {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    border-radius: 6px;
    color: var(--nexpro-text, #151515);
    white-space: nowrap;
}

.nexpro-header__actions,
.nexpro-drawer__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.nexpro-header__account {
    min-height: 40px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	color: #0f2f58 !important;
    background: #ffffff;
    border: 1px solid var(--nexpro-border, #e4ddd2);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nexpro-header__cart {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nexpro-accent, #3f624a);
    background: #ffffff;
    border: 1px solid var(--nexpro-border, #e4ddd2);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nexpro-header__cart:hover,
.nexpro-header__cart:focus,
.nexpro-header__account:hover,
.nexpro-header__account:focus {
    color: var(--nexpro-accent-hover, #2f523b);
    border-color: color-mix(in srgb, var(--nexpro-accent, #3f624a) 38%, var(--nexpro-border, #e4ddd2));
    transform: translateY(-1px);
    outline: none;
}

.nexpro-header__cart-count {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--nexpro-accent, #3f624a);
    border: 2px solid var(--nexpro-bg, #f8f5ef);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.nexpro-header__cart-count[data-count="0"] {
    display: none;
}

.nexpro-header__toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--nexpro-text, #151515);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nexpro-header__toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.nexpro-header__toggle:hover,
.nexpro-header__toggle:focus {
    background: color-mix(in srgb, var(--nexpro-accent, #3f624a) 10%, transparent);
    outline: none;
}

.nexpro-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nexpro-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: min(var(--nexpro-drawer-width, 407px), calc(100vw - 72px));
    height: 100vh;
    background: var(--nexpro-bg, #f8f5ef);
    border-left: 1px solid var(--nexpro-border, #e4ddd2);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
    transform: translateX(104%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nexpro-header.is-open .nexpro-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nexpro-header.is-open .nexpro-drawer {
    transform: translateX(0);
}

.nexpro-drawer__top {
    min-height: calc(var(--nexpro-mobile-header-height, 68px) + 18px);
    padding: 18px 18px 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--nexpro-border, #e4ddd2);
}

.nexpro-drawer__close {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #0f2f58;
    background: #ffffff;
    border: 1px solid var(--nexpro-border, #e4ddd2);
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.nexpro-drawer__close:hover,
.nexpro-drawer__close:focus {
    border-color: color-mix(in srgb, var(--nexpro-accent, #3f624a) 38%, var(--nexpro-border, #e4ddd2));
    outline: none;
}

.nexpro-drawer__nav {
    width: 100%;
}

.nexpro-drawer-menu,
.nexpro-drawer-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nexpro-drawer-menu > li {
    border-bottom: 1px solid var(--nexpro-border, #e4ddd2);
}

.nexpro-drawer-menu li {
    margin: 0;
}

.nexpro-drawer-menu__row {
    display: grid;
    grid-template-columns: 1fr 58px;
    align-items: stretch;
    min-height: 65px;
}

.nexpro-drawer-menu__link {
    min-height: 65px;
    padding: 20px 20px 20px 28px;
    display: flex;
    align-items: center;
    color: var(--nexpro-text, #151515);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none;
}

.nexpro-drawer-menu__link:hover,
.nexpro-drawer-menu__link:focus {
    color: var(--nexpro-accent-hover, #2f523b);
    outline: none;
}

.nexpro-drawer-menu__toggle {
    width: 58px;
    min-height: 65px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nexpro-text, #151515);
    background: transparent;
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--nexpro-border, #e4ddd2) 70%, transparent);
    cursor: pointer;
}

.nexpro-drawer-menu__toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.nexpro-drawer-menu__toggle:hover,
.nexpro-drawer-menu__toggle:focus {
    color: var(--nexpro-accent, #3f624a);
    background: color-mix(in srgb, var(--nexpro-accent, #3f624a) 8%, transparent);
    outline: none;
}

.nexpro-drawer-menu li.is-open > .nexpro-drawer-menu__row .nexpro-drawer-menu__toggle svg {
    transform: rotate(90deg);
}

.nexpro-submenu {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid color-mix(in srgb, var(--nexpro-border, #e4ddd2) 80%, transparent);
}

.nexpro-drawer-menu li.is-open > .nexpro-submenu {
    display: block;
}

.nexpro-submenu .nexpro-drawer-menu__row,
.nexpro-submenu .nexpro-drawer-menu__link,
.nexpro-submenu .nexpro-drawer-menu__toggle {
    min-height: 54px;
}

.nexpro-submenu .nexpro-drawer-menu__link {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 42px;
    font-size: 15px;
    color: var(--nexpro-muted, #706d68);
}

.nexpro-submenu .nexpro-submenu .nexpro-drawer-menu__link {
    padding-left: 58px;
}

.nexpro-submenu li {
    border-bottom: 1px solid color-mix(in srgb, var(--nexpro-border, #e4ddd2) 70%, transparent);
}

.nexpro-submenu li:last-child {
    border-bottom: 0;
}

.nexpro-drawer__actions {
    width: 100%;
    padding: 22px 28px;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid var(--nexpro-border, #e4ddd2);
}

.nexpro-drawer__actions .nexpro-header__account {
    min-height: 42px;
}

@media (max-width: 960px) {
    .nexpro-header__inner {
        min-height: var(--nexpro-mobile-header-height, 68px);
        grid-template-columns: 1fr auto;
    }

    .nexpro-header__nav {
        display: none;
    }

    .nexpro-header__account {
        display: none;
    }

    .nexpro-drawer__actions .nexpro-header__account {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .nexpro-header__inner {
        width: 100%;
        padding: 0 16px;
        gap: 14px;
    }

    .nexpro-header__actions {
        gap: 9px;
    }

    .nexpro-header__cart,
    .nexpro-header__toggle {
        width: 40px;
        height: 40px;
    }

    .nexpro-drawer {
        width: calc(100vw - 34px);
    }

    .nexpro-drawer__top,
    .nexpro-drawer__actions {
        padding-left: 22px;
    }

    .nexpro-drawer-menu__link {
        padding-left: 24px;
        font-size: 17px;
    }

    .nexpro-submenu .nexpro-drawer-menu__link {
        padding-left: 36px;
    }
}
