/* =========================================================
   ND GLOBAL HEADER
========================================================= */

.nd-new-header {
    --nd-font: "Inter", sans-serif;
    --nd-black: #000000;
    --nd-white: #ffffff;
    --nd-orange: #f36f32;
    position: relative;
    z-index: 999;
    background: var(--nd-white);
    font-family: var(--nd-font);
}

.nd-new-header .nd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 15px 24px;
    border: 0;
    border-radius: 99px;
    background: var(--nd-black);
    color: var(--nd-white);
    font-size: 14px;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.25s ease;
}

.nd-new-header .nd-btn.m-c {
    background: var(--nd-orange);
}

.nd-new-header .nd-btn.m-c:hover,
.nd-new-header .nd-btn.m-c:focus {
    background: var(--nd-black);
    color: var(--nd-white);
}


/* =========================================================
   New Header Preview
========================================================= */

.nd-new-header {
    position: relative;
    z-index: 999;
    background: var(--nd-white);
    font-family: var(--nd-font);
}


/* =========================================================
   Top Bar
========================================================= */

.nd-header-top {
    padding: 12px 0;
    background: var(--nd-black);
}

.nd-header-top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 38px;
}

.nd-header-top-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--nd-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.nd-header-top-links a:hover,
.nd-header-top-links a:focus {
    color: var(--nd-orange);
    text-decoration: none;
}

.nd-header-cart .cart-totals:empty {
    display: none;
}


/* =========================================================
   Main Header
========================================================= */

.nd-new-header .site-header>.container>.row {
    min-height: 108px;
    flex-wrap: nowrap;
}

.nd-new-header .site-title {
    margin: 18px 0;
    text-align: left;
}

.nd-new-header .site-title a {
    display: block;
    width: max-content;
}

.nd-new-header .site-title img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 72px;
}


/* =========================================================
   Desktop Navigation
========================================================= */

.nd-new-header .site-header #site-navigation {
    position: static;
    text-align: center;
}

.nd-header-drawer {
    width: 100%;
}

.nd-new-header .site-header #site-navigation .menu-main-menu-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nd-new-header .site-header #primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(18px, 1.6vw, 30px);
    width: 100%;
    margin: 0;
    padding: 0;
}

.nd-new-header .site-header #primary-menu>.menu-item {
    float: none;
    margin: 0;
}

.nd-new-header .site-header #primary-menu>.menu-item>a {
    padding: 24px 0;
    color: var(--nd-black);
    font-size: 18px;
    letter-spacing: 0;
    white-space: nowrap;
}

.nd-new-header .site-header #primary-menu>.menu-item>a:hover,
.nd-new-header .site-header #primary-menu>.current-menu-item>a,
.nd-new-header .site-header #primary-menu>.current-menu-ancestor>a,
.nd-new-header .site-header #primary-menu .sub-menu .current-menu-ancestor.current-menu-parent>a,
.nd-new-header .site-header #primary-menu .sub-menu .current-menu-ancestor.current-menu-parent .current-menu-item a {
    color: var(--nd-orange);
    text-decoration: none;
}

.nd-new-header .site-header #primary-menu .sub-menu a:hover {
    color: var(--nd-orange);
    text-decoration: none;
}


/* Responsive-only controls hidden on desktop */

.nd-header-menu-toggle,
.nd-header-drawer-head,
.nd-header-drawer-account,
.nd-header-drawer-overlay,
.nd-submenu-toggle {
    display: none;
}


/* =========================================================
   Desktop Account
========================================================= */

.nd-header-account {
    justify-content: flex-end;
}

.nd-header-account .nd-btn {
    white-space: nowrap;
}


/* =========================================================
   Existing Search
========================================================= */

.nd-new-header .site-search {
    padding: 0 0 10px;
    background: var(--nd-white);
}

.nd-new-header .site-search .search-form {
    border-radius: 50px;
    overflow: hidden;
}

.nd-new-header .site-search .search-field {
    border: 1px solid #cccccc;
    border-radius: 50px 0 0 50px;
    background: var(--nd-white);
    text-align: center;
}

.searchwp-live-search-result .searchwp-live-search-result--title a {
    color: var(--nd-orange);
    text-decoration: none;
}


/* =========================================================
   Responsive Drawer: 991px and Below
========================================================= */

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .nd-new-header .site-header #primary-menu {
        gap: 15px;
    }
    .nd-new-header .site-header #primary-menu>.menu-item>a {
        font-size: 16px;
    }
}

@media screen and (max-width: 991px) {
    body.nd-header-drawer-open {
        overflow: hidden;
    }
    .nd-new-header .site-header>.container>.row {
        min-height: 86px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .nd-new-header .site-title {
        margin: 0;
    }
    .nd-new-header .site-title img {
        max-width: 210px;
        max-height: 64px;
    }
    .nd-new-header .site-header #site-navigation {
        position: static;
        text-align: right;
    }
    /* Hamburger */
    .nd-new-header .nd-header-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 46px;
        height: 46px;
        margin: 0 0 0 auto;
        padding: 0;
        border-radius: 50%;
        background-color: var(--nd-orange) !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        transition: background-color 0.18s ease, transform 0.18s ease;
        z-index: 3;
    }
    .nd-new-header .nd-header-menu-toggle:before,
    .nd-new-header .nd-header-menu-toggle:after {
        content: unset;
    }
    .nd-new-header .main-navigation.toggled {
        text-align: right !important;
    }
    .nd-menu-line {
        display: block;
        width: 21px;
        height: 2px;
        margin: 0;
        background: var(--nd-white);
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    /* Drawer Overlay */
    .nd-new-header .nd-header-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
        z-index: 99998;
    }
    .nd-new-header .main-navigation.toggled .nd-header-drawer-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s ease, visibility 0s linear 0s;
    }
    /* Right Drawer */
    .nd-new-header .nd-header-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(390px, 88vw);
        background: var(--nd-white);
        box-shadow: -10px 0 28px rgba(0, 0, 0, 0.16);
        overflow: hidden;
        text-align: left;
        visibility: hidden;
        transform: translate3d(102%, 0, 0);
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.26s;
        z-index: 99999;
    }
    .nd-new-header .main-navigation.toggled .nd-header-drawer {
        visibility: visible;
        transform: translate3d(0, 0, 0);
        transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    }
    /* Drawer Heading */
    .nd-header-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        min-height: 76px;
        padding: 16px 22px;
        border-bottom: 1px solid #e8e8e8;
        background: var(--nd-white);
    }
    .nd-header-drawer-title {
        position: relative;
        padding-left: 16px;
        color: var(--nd-black);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.2;
    }
    .nd-header-drawer-title::before {
        content: "";
        position: absolute;
        top: 2px;
        bottom: 2px;
        left: 0;
        width: 4px;
        border-radius: 10px;
        background: var(--nd-orange);
    }
    .nd-new-header .nd-header-drawer-close {
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--nd-orange);
        color: var(--nd-white);
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .nd-new-header .nd-header-drawer-close:hover,
    .nd-new-header .nd-header-drawer-close:focus {
        outline: none;
    }
    .nd-new-header .nd-header-drawer-close span {
        line-height: 1;
        position: absolute;
        top: 8%;
        left: 4%;
        transform: translate(50%, 0%);
    }
    /* Drawer Menu Container */
    .nd-new-header #site-navigation .menu-main-menu-container {
        display: block !important;
        flex: 1 1 auto;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .nd-new-header .site-header #primary-menu {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 10px 20px 24px;
    }
    .nd-new-header .site-header #primary-menu .menu-item {
        display: block;
        position: relative;
        float: none;
        width: 100%;
        margin: 0;
    }
    .nd-new-header .site-header #primary-menu>.menu-item {
        border-bottom: 1px solid #ededed;
    }
    .nd-new-header .site-header #primary-menu .menu-item>a {
        display: block;
        width: 100%;
        padding: 17px 54px 17px 6px !important;
        color: var(--nd-black);
        font-size: 17px;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: 0;
        white-space: normal;
        text-align: left;
        text-decoration: none;
    }
    .nd-new-header .site-header #primary-menu .menu-item>a:hover,
    .nd-new-header .site-header #primary-menu .current-menu-item>a,
    .nd-new-header .site-header #primary-menu .current-menu-ancestor>a {
        color: var(--nd-orange);
        text-decoration: none;
    }
    /* Hide arrows inserted by the old theme JavaScript */
    .nd-new-header #primary-menu .menu-item-has-children>a>.fa {
        display: none !important;
    }
    /* Submenu Control */
    .nd-new-header .nd-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 8px;
        right: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #f3f3f3;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
        z-index: 2;
    }
    .nd-new-header .nd-submenu-toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--nd-black);
        border-bottom: 2px solid var(--nd-black);
        transform: translateY(-2px) rotate(45deg);
        transition: border-color 0.2s ease, transform 0.25s ease;
    }
    .nd-new-header .menu-item.open>.nd-submenu-toggle::before {
        transform: translateY(2px) rotate(225deg);
    }
    .nd-new-header .nd-submenu-toggle:hover,
    .nd-new-header .nd-submenu-toggle:focus {
        background: var(--nd-orange);
        outline: none;
    }
    .nd-new-header .nd-submenu-toggle:hover::before,
    .nd-new-header .nd-submenu-toggle:focus::before {
        border-color: var(--nd-white);
    }
    /* Animated Submenus */
    .nd-new-header .site-header #primary-menu .sub-menu,
    .nd-new-header .main-navigation.toggled #primary-menu .sub-menu {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 0;
        margin: 0 !important;
        padding: 0 0 0 12px !important;
        border: 0 !important;
        border-left: 2px solid var(--nd-orange) !important;
        border-radius: 0;
        background: unset;
        box-shadow: none;
        overflow: hidden;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: none !important;
        transition: max-height 0.4s ease, opacity 0.25s ease, visibility 0.25s ease;
    }
    .nd-new-header .site-header #primary-menu .menu-item.open>.sub-menu {
        max-height: 1800px;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .nd-new-header .site-header #primary-menu .sub-menu .menu-item>a {
        min-width: 0;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
        font-size: 15px;
        font-weight: 500;
    }
    /* Drawer Account Action */
    .nd-header-drawer-account {
        display: block;
        flex: 0 0 auto;
        padding: 20px 22px;
        border-top: 1px solid #e8e8e8;
        background: var(--nd-white);
    }
    .nd-header-drawer-account .nd-btn {
        justify-content: center;
        width: 100%;
        min-width: 0;
    }
    /* WordPress Admin Bar */
    body.admin-bar .nd-header-drawer,
    body.admin-bar .nd-header-drawer-overlay {
        top: 32px;
    }
}


/* WordPress changes the admin-bar height below 783px */

@media screen and (max-width: 782px) {
    body.admin-bar .nd-header-drawer,
    body.admin-bar .nd-header-drawer-overlay {
        top: 46px;
    }
}


/* Small Mobile */

@media screen and (max-width: 575px) {
    .nd-header-top-links {
        justify-content: center;
        gap: 18px;
    }
    .nd-header-top-links a {
        font-size: 14px;
    }
    .nd-new-header .nd-header-drawer {
        width: min(360px, 92vw);
    }
}

@media screen and (max-width: 390px) {
    .nd-header-top-links {
        gap: 12px;
    }
    .nd-header-top-links a {
        font-size: 13px;
    }
}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .nd-new-header .nd-header-drawer,
    .nd-new-header .nd-header-drawer-overlay,
    .nd-new-header .nd-header-menu-toggle,
    .nd-new-header .nd-header-drawer-close,
    .nd-new-header .nd-submenu-toggle,
    .nd-new-header .nd-submenu-toggle::before {
        transition: none;
    }
}