.nd-header {
    --nd-ink: #1d1b1a;
    --nd-muted: #665d58;
    --nd-line: #e6dfdc;
    --nd-accent: #83584e;
    --nd-gutter: clamp(20px, 3.5vw, 72px);
    position: fixed;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--nd-ink);
    font-family: Montserrat, Arial, sans-serif;
    transition: none;
}

.nd-header + #MainContent {
    padding-top: var(--nd-header-height, 102px);
}

.nd-header + #MainContent > .main--offset {
    padding-top: 0;
}

html {
    scroll-padding-top: var(--nd-header-height, 0px);
}

.nd-header .topbar {
    display: block;
}

.nd-header .topbar__container {
    padding: 7px 12px;
}

.nd-header .topbar__grid {
    display: block;
    margin: 0;
}

.nd-header .topbar__col--mid {
    width: 100%;
    padding: 0;
    margin: 0;
}

.nd-header .topbar__text {
    padding: 0;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    letter-spacing: .045em;
}

.nd-header .topbar p {
    margin: 0;
}

.nd-header__main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(126px, 1fr);
    align-items: center;
    gap: clamp(16px, 1.8vw, 36px);
    min-height: 72px;
    padding-inline: var(--nd-gutter);
    border-bottom: 1px solid var(--nd-line);
    background: #fff;
}

.nd-header__brand {
    display: inline-flex;
    align-items: center;
    width: min(100%, 244px);
    min-height: 44px;
    color: inherit;
}

.nd-header__brand img,
.nd-header__brand svg {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0);
}

.nd-header__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nd-header .header__btn,
.nd-header__menu-button,
.nd-nav__toggle,
.nd-drawer__close,
.nd-drawer__search button,
.nd-drawer__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.nd-header .header__btn:hover,
.nd-header__menu-button:hover,
.nd-drawer__close:hover,
.nd-drawer__search button:hover,
.nd-drawer__account:hover {
    background: #f5efec;
    color: var(--nd-ink);
}

.nd-header .header__btn svg,
.nd-drawer__utilities svg {
    width: 19px;
    height: 19px;
}

.nd-header .header__btn svg,
.nd-header .header__btn svg path,
.nd-drawer__utilities svg path {
    fill: currentColor;
}

.nd-header .header__btn--cart svg,
.nd-header .header__btn--cart svg path {
    fill: none !important;
    stroke: currentColor !important;
}

.nd-header .header__counter {
    top: 3px;
    right: 1px;
    background: var(--nd-ink);
    color: #fff;
}

.nd-header .header__counter:empty {
    display: none;
}

.nd-header__menu-button {
    display: none;
}

.nd-header__menu-button span,
.nd-drawer__close span {
    position: relative;
    width: 18px;
    height: 18px;
}

.nd-header__menu-button span::before,
.nd-header__menu-button span::after,
.nd-drawer__close span::before,
.nd-drawer__close span::after,
.nd-drawer__disclosure::before,
.nd-drawer__disclosure::after {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: currentColor;
    content: "";
}

.nd-header__menu-button span::before {
    transform: translateY(-3px);
}

.nd-header__menu-button span::after {
    transform: translateY(3px);
}

.nd-drawer__close span::before {
    transform: rotate(45deg);
}

.nd-drawer__close span::after {
    transform: rotate(-45deg);
}

.nd-nav,
.nd-nav__list {
    align-self: stretch;
    display: flex;
}

.nd-nav ul,
.nd-drawer__nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nd-nav .nd-nav__list {
    column-gap: clamp(14px, 1.4vw, 31px);
}

.nd-nav__list > li {
    display: flex;
    align-items: center;
    margin: 0;
}

.nd-nav__list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0;
    color: var(--nd-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nd-nav__list > li > a::after {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--nd-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.nd-nav__list > li > a:hover::after,
.nd-nav__list > li > a:focus-visible::after,
.nd-nav__item:has(> [aria-expanded="true"]) > a::after {
    transform: scaleX(1);
}

.nd-nav__toggle {
    min-width: 20px;
    width: 20px;
    color: var(--nd-muted);
}

.nd-nav__toggle span {
    width: 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-1px) rotate(45deg);
}

.nd-nav__toggle[aria-expanded="true"] span {
    transform: translateY(1px) rotate(225deg);
}

.nd-nav__panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 4;
    max-height: calc(100vh - var(--nd-header-height, 105px));
    overflow: auto;
    border-bottom: 1px solid var(--nd-line);
    box-shadow: 0 12px 22px rgb(29 27 26 / 8%);
    background: #fff;
}

.nd-nav__panel-inner {
    display: grid;
    gap: 24px;
    max-width: 1500px;
    padding: 24px var(--nd-gutter) 34px;
    margin: 0 auto;
}

.nd-nav__all {
    justify-self: end;
    align-self: center;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    color: var(--nd-accent);
    font-size: 13px;
    font-weight: 600;
}

.nd-nav__groups,
.nd-nav__links {
    display: grid;
    gap: 16px clamp(20px, 3vw, 54px);
    font-size: 13px;
    line-height: 1.45;
}

.nd-nav__groups {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nd-nav__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-nav .nd-nav__links--secondary {
    padding-top: 16px;
    border-top: 1px solid var(--nd-line);
    color: var(--nd-muted);
}

.nd-nav__groups ul {
    display: grid;
    row-gap: 13px;
    margin-top: 12px;
}

.nd-nav__groups a,
.nd-nav__links a {
    color: inherit;
}

.nd-nav__group-title {
    font-size: 14px;
    font-weight: 600;
}

.nd-nav__panel a:hover,
.nd-drawer__nav a:hover {
    color: var(--nd-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nd-menu-open {
    overflow: hidden;
}

.nd-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(390px, calc(100% - 24px));
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-right: 1px solid var(--nd-line);
    box-shadow: 14px 0 42px rgb(29 27 26 / 12%);
    background: #fff;
    color: var(--nd-ink);
    font-family: inherit;
}

.nd-drawer::backdrop {
    background: rgb(29 27 26 / 36%);
}

.nd-drawer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 17px 0 20px;
}

.nd-drawer__heading .nd-header__brand {
    width: min(100% - 49px, 211px);
}

.nd-drawer__utilities {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 17px 18px 20px;
    border-bottom: 1px solid var(--nd-line);
    background: #fff;
}

.nd-drawer__search {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--nd-line);
    background: #f9f6f4;
}

.nd-drawer__search input {
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--nd-ink);
    font: inherit;
    font-size: 14px;
}

.nd-drawer__nav {
    padding: 12px 20px 24px;
}

.nd-drawer__list > li {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
}

.nd-drawer__nav a,
.nd-drawer__nav summary,
.nd-drawer__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
    color: var(--nd-ink);
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    letter-spacing: 0;
    text-transform: none;
}

.nd-drawer__list > li > a,
.nd-drawer__list > li > details > summary {
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
}

.nd-drawer summary {
    list-style: none;
    cursor: pointer;
}

.nd-drawer summary::-webkit-details-marker {
    display: none;
}

.nd-drawer summary::marker {
    content: "";
}

.nd-drawer__disclosure {
    position: relative;
    flex: 0 0 12px;
    height: 12px;
    margin-right: 4px;
    color: var(--nd-accent);
}

.nd-drawer__disclosure::after {
    transform: rotate(90deg);
}

.nd-drawer details[open] > summary .nd-drawer__disclosure::after {
    display: none;
}

.nd-drawer__nav details > ul {
    padding-left: 13px;
    margin-bottom: 8px;
    border-left: 1px solid var(--nd-line);
}

.nd-drawer__nav .nd-drawer__all {
    justify-content: flex-start;
    color: var(--nd-accent);
    font-weight: 600;
}

.nd-header .search-popup {
    visibility: hidden;
    padding: 28px 0;
    border-bottom: 1px solid var(--nd-line);
}

.nd-header .search-popup--visible {
    visibility: visible;
}

.nd-header :focus-visible {
    outline: 2px solid var(--nd-accent);
    outline-offset: -2px;
}

@media (min-width: 1056px) and (max-width: 1250px) {
    .nd-header {
        --nd-gutter: 24px;
    }

    .nd-nav__list > li > a {
        font-size: 11px;
        letter-spacing: .025em;
    }
}

@media (max-width: 1055px) {
    .nd-header {
        --nd-gutter: 12px;
    }

    .nd-header + #MainContent {
        padding-top: var(--nd-header-height, 90px);
    }

    .nd-header__main {
        grid-template-columns: 42px minmax(0, 1fr) 84px;
        min-height: 61px;
        gap: 8px;
    }

    .nd-header__main .nd-header__brand {
        justify-self: center;
        width: min(100%, 221px);
    }

    .nd-header__menu-button {
        display: inline-flex;
    }

    .nd-nav,
    .nd-header .header__btn--account {
        display: none;
    }

    .nd-header .topbar__text {
        font-size: 10px;
    }

    .nd-header .search-popup {
        height: auto;
    }
}

@media (min-width: 896px) {
    .nd-header + #MainContent .product-sticky,
    .nd-header + #MainContent .product__sticky.is-sticky {
        top: var(--nd-header-height, 102px);
    }
}
