/* ---------------- Header Redesign ---------------- */

.sd-header .custom-logo {
    max-width: 95px;
    height: auto;
}

.sd-header {
    position: fixed;
    top: var(--sd-top-offset, 0px);
    left: 0;
    right: 0;
    z-index: 3000;
    background: transparent;
    transform: translateY(-110%);
    transition: transform 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease;
    will-change: transform;
}

.sd-header.is-visible {
    transform: translateY(0);
}

.sd-header.is-at-top {
    transform: translateY(0);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sd-header.is-visible:not(.is-at-top) {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sd-header:has(.sd-nav > li:hover .sub-menu),
.sd-header:has(.sd-nav > li:hover) {
    background: black !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 220ms ease, backdrop-filter 220ms ease;
}

.sd-header__nav {
    display: flex;
    justify-content: center;
}

.sd-header__promo {
    background: linear-gradient(90deg, #4a2fff, #7a48ff);
    color: #fff;
    font-size: 14px;
}

.sd-header__promo-inner {
    margin: 0 auto;
    padding: 24px 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sd-header__promo-link {
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.sd-header__bar {
    background: transparent;
    position: relative;
    z-index: 3001;
    transition: background-color 220ms ease;
}

.sd-header__bar:has(.sd-header__mobile[open]) {
    background: #000;
}

.sd-header__inner {
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 2fr minmax(500px, 1fr);
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 3001;
}

.sd-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.sd-header__logo img {
    display: block;
    height: 32px;
    width: auto;
}

.sd-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}
.sd-header li {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 18px;
    font-weight: 400;
}
.sd-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.sd-nav a:hover {
    color: #fff;
}

.sd-header__nav .sd-nav .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.sd-header__icon,
.sd-header__lang {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
}

.sd-header__cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 10px 22px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(45deg, #8B5CF6 0%, #4F8DF7 50%, #2BB7DA 100%);
}

.sd-header__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(45deg, #2BB7DA 0%, #4F8DF7 50%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 380ms ease;
}

.sd-header__cta:hover::before {
    opacity: 1;
}

/* Mobile drawer without JS */
.sd-header__mobile {
    display: none;
}
.sd-header__burger {
    cursor: pointer;
    color: #fff;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.sd-header__burger::-webkit-details-marker {
    display: none;
}
.sd-header__burger-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 999px;
    transform-origin: center;
    transition:
            background-color 180ms ease,
            transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sd-header__burger-icon::before,
.sd-header__burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 999px;
    transform-origin: center;
    transition:
            top 320ms cubic-bezier(0.4, 0, 0.2, 1),
            transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
            opacity 180ms ease,
            background-color 180ms ease;
}
.sd-header__burger-icon::before {
    top: -8px;
}
.sd-header__burger-icon::after {
    top: 8px;
}

.sd-header__burger:hover .sd-header__burger-icon,
.sd-header__burger:hover .sd-header__burger-icon::before,
.sd-header__burger:hover .sd-header__burger-icon::after {
    background: rgba(255,255,255,0.92);
}

.sd-header__mobile[open] .sd-header__burger-icon {
    background-color: transparent;
    transform: rotate(180deg);
}
.sd-header__mobile[open] .sd-header__burger-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.sd-header__mobile[open] .sd-header__burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.sd-header__drawer {
    position: fixed;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 16px;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
}
.sd-nav--mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.sd-nav--mobile > li {
    width: 100%;
}

.sd-nav--mobile .sub-menu {
    display: none;
    padding-left: 0;
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sd-nav--mobile .sub-menu > li {
    width: 100%;
}

.sd-nav--mobile .sub-menu > li > a {
    display: block;
    width: 100%;
    padding: 6px 0;
}

.sd-nav--mobile .menu-item-has-children > a {
    display: flex;
    align-items: center;
    width: 100%;
}

.sd-nav--mobile .menu-item-tag {
    margin-left: 8px;
}

.sd-nav--mobile .menu-item-has-children > a::after {
    content: "›";
    font-size: 24px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sd-nav--mobile .menu-item-has-children.is-open > a::after {
    transform: rotate(90deg);
}

.sd-nav--mobile .menu-item-has-children.is-open > .sub-menu {
    display: flex;
}
.sd-header__burger {
    list-style: none;
}
.sd-header__burger::-webkit-details-marker {
    display: none;
}

body.sd-header-enabled #header-outer,
body.sd-header-enabled #mobile-menu {
    display: none !important;
}

body.sd-header-enabled .sd-header {
    display: block;
}

/*Form*/

.sd-search__form {
    display: block;
    max-width: 0;
    opacity: 0;
    transform: translateX(6px);
    overflow: hidden;
    pointer-events: none;
    transition: max-width 180ms ease, opacity 140ms ease, transform 180ms ease;
    will-change: max-width, opacity, transform;
}

.sd-search__form.is-open {
    max-width: 166px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sd-search__form input[type="search"] {
    width: 166px;
    background-color: rgba(0, 0, 0, 0.035);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    color: #fff;
    padding: 10px 12px;
    outline: none;
}

.sd-search__form input[type="search"]:focus {
    border-color: #5441ef;
}

.sd-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
}

.sd-search__toggle:hover {
    color: #fff;
}

/* Salient/Nectar skip link: hide visually, show on keyboard focus */
.nectar-skip-to-content-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999;
}

.nectar-skip-to-content {
    position: absolute;
    left: -9999px;
    top: 12px;
    padding: 10px 12px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    text-decoration: none;
}

.nectar-skip-to-content:focus {
    left: 12px;
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

/*Tag new*/

.sd-header .menu-item-tag {
    position: relative;
    bottom: 2px;
    background-color: #d6320e;
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
}

/* Account link */
.sd-header__account-link {
    display: grid;
    width: 40px;
    height: 53px;
}

.sd-header__account-text {
    display: none;
}

/*Switcher currency*/

.languagePopup .currency-selector{
    width: 100%;
    padding: 13px !important;
    border: 1px solid #5441EF !important;
    border-radius: 8px !important;
    cursor: pointer;
    color: #ffffff !important;
    line-height: 1.2;
    min-height: 52px;
}

.languagePopup .currency-selector option{
    color: #000000;
    background: #ffffff;
}

.languagePopup .currency-selector:focus{
    border-color: #5441EF !important;
}

.languageCurrencyForm button[type="submit"] {
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1458px) {
    /*.sd-header {*/
    /*    padding-top: 8px;*/
    /*}*/
    .sd-header__cta {
        text-align: center;
    }
    .sd-header__inner{
        grid-template-columns: 1fr auto;
        padding: 8px 16px 0;
    }
    .sd-header__nav,
    .sd-header__actions{
        display: none;
    }
    .navbar-right-wrapper:not(.navbar-right-wrapper--mobile) {
        display: none;
    }
    .navbar-right-wrapper--mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .sd-header__mobile{
        display: block;
    }

    .sd-search--mobile {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .sd-search--mobile .sd-search__toggle {
        flex: 0 0 40px;
        justify-content: flex-start;
    }

    .sd-search__form--mobile {
        max-width: none;
        opacity: 1;
        transform: none;
        overflow: visible;
        pointer-events: auto;
        flex: 1 1 auto;
    }
    .sd-search__form.is-open {
        max-width: 100%;
    }

    .sd-search__form--mobile input[type="search"] {
        width: 100%;
        max-width: none;
    }

    .sd-header__account-link {
        display: flex !important;
        align-items: center;
        gap: 3px;
        width: auto !important;
        height: auto !important;
        margin-left: -11px;
    }

    .sd-header__account-text {
        display: inline !important;
        color: rgba(255,255,255,0.9);
        font-size: 18px;
    }
    .sd-header .languageButton {
        padding-top: 10px;
    }
}

/*Right nav*/

.navbar-right-wrapper {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

@media (min-width: 1459px) {
    #sd-search-form-mobile {
        max-width: 100%;
    }
    .navbar-right-wrapper {
        align-items: center;
    }
    .sd-header__nav{
        position: relative;
    }

    .sd-header__nav .sd-nav > li{
        position: static;
        padding: 20px 0;
    }

    .sd-header__nav .sd-nav > li > .sub-menu{
        position: fixed;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 2000;
        background: black;
        display: grid;
        grid-template-columns: auto auto;
        gap: 12px 300px;
        justify-content: center;
        padding: 30px 48px 28px 48px;
        box-sizing: border-box;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
    }

    .sd-header__nav .sd-nav > li:hover > .sub-menu,
    .sd-header__nav .sd-nav > li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sd-header__nav .sd-nav > li > .sub-menu > li > a {
        display: block;
        padding: 8px 0;
        color: rgba(255,255,255,0.9);
        font-weight: 500;
        transition: color 180ms ease, opacity 180ms ease;
    }

    .sd-header__nav .sd-nav > li > .sub-menu > li > a:hover {
        color: #ffffff;
        opacity: 0.85;
    }
}

/*@media (max-width: 782px) {*/
/*    .sd-header {*/
/*        top: var(--sd-top-offset, 36px);*/
/*    }*/
/*}*/