// HEADER STYLE
.header {
    position: sticky;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    padding: 15px 0;
    margin: 0;
    width: 100%;
    top: 0;
    transition: transform 0.3s ease;
    color: $text;
    z-index: 4;
    @media screen and (min-width: 1025px) {
        margin: 20px 20px 0;
        width: calc(100vw - 40px);
        top: 20px;
        border-radius: 20px;
        min-height: 62px;
        display: flex;
        align-items: center;
    }
    &.show {
        margin-top: 0;
        transform: translateY(0);
        @media screen and (min-width: 1025px) {
            margin-top: 20px;
        }
    }
    &.menu-opened {
        position: fixed;
        top: 0;
        transform: translateY(0) !important;
    }
    &.hide {
        transform: translateY(-100px);
    }
    &::before {
        content: '';
        backdrop-filter: blur(40px);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 0 0 20px 20px;
        @media screen and (min-width: 1025px) {
            border-radius: 20px;
        }
    }
    &__row, &__first {
        position: relative;
		display: flex;
		justify-content: space-between;
        align-items: center;
        width: 100%;
	}
    &__menu {
        transition: opacity .3s ease;
        opacity: 1;
        .menu-item {
            .sub-menu.site-menu__nav-sub-list {
                padding: 20px;
                background: rgba(255, 255, 255, 0.75);
                border-radius: 20px;
                border: none;
                margin-top: 40px;
                z-index: 2;
                transform: translateX(-40px);
                &::before {
                    content: '' !important;
                    backdrop-filter: blur(80px);
                    border-radius: 20px;
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: -1;
                }
                & > li {
                    max-width: 235px;
                    width: 215px;
                    padding: 0;
                    border-bottom: 1px solid $block-color-dark;
                    &:last-of-type {
                        border-bottom: none;
                    }
                    & a { 
                        padding: 10px 0 10px 20px;
                        margin-right: 20px;
                        display: inline-block;
                        line-height: 1.25;
                    }
                }
                & .menu-item-repeater {
                    &.active-item {
                        .menu-repeater-items {
                            display: block;
                        }
                    }
                }
                & .nav-indent {
                    background: transparent;
                    height: 40px;
                    display: block;
                    margin-top: -40px;
                    position: absolute;
                    width: 100%;
                    left: 0;
                    top: 0;
                    max-width: 100%;
                    border: none;
                }
            }
            &.menu-items-repeater {
                .sub-menu.site-menu__nav-sub-list {
                    width: 595px !important;
                    min-height: 220px;
                    &::after {
                        content: '';
                        height: calc(100% - 40px);
                        width: 1px;
                        position: absolute;
                        background-color: $block-color-dark;
                        top: 20px;
                        left: 255px;
                    }
                }
                & .menu-repeater-items {
                    position: absolute;
                    max-width: 310px;
                    width: 100%;
                    list-style: none;
                    right: 10px;
                    top: 20px;
                    display: none;
                    padding-right: 10px;
                    border-radius: 5px;
                    & li {
                        padding: 0;
                    }
                    & .menu-repeater-item {
                        position: relative;
                        margin-bottom: 20px;
                        & a {
                            border: none;
                            padding: 0;
                            margin: 0;
                        }
                        &__title {
                            display: block;
                            margin: 0 0 7px;
                            font-weight: 500;
                        }
                        &__image {
                            display: flex;
                            border-radius: 10px;
                            overflow: hidden;
                            & img {
                                border-radius: 10px;
                            }
                        }
                        span.external-icon {
                            display: flex;
                            position: absolute;
                            right: 0;
                            top: 3px;
                            & svg {
                                width: 18px;
                                height: 18px;
                                path {
                                    transition: fill 0.25s ease;
                                }
                            }
                            &:hover {
                                & svg {
                                    path {
                                        fill: $orange-color;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            & .menu-licensing-item {
                display: none !important;
                align-items: center;
                position: absolute;
                bottom: 20px;
                right: 20px;
                gap: 6px;
                color: $black;
                transition: color 0.3s ease;
                padding: 0 !important;
                margin: 0 !important;
                & svg {
                    & path {
                        transition: fill 0.3s ease;
                    }
                }
                &:hover {
                    color: $dark-grey-2;
                    & svg {
                        & path {
                            fill: $dark-grey-2;
                        }
                    }
                }
            }
            &.show-licensing {
                & .menu-licensing-item {
                    display: flex !important;
                }
            }
        }
        & .menu {
            list-style: none;
            @media (max-width: 1200px) {
                display: none;
            }
            & li {
                margin: 0 35px;
                @media (max-width: 1680px) {
                    margin: 0 30px;
                }
                @media (max-width: 1600px) {
                    margin: 0 20px;
                }
                @media (max-width: 1440px) {
                    margin: 0 15px;
                }
                @media (max-width: 1200px) {
                    &.hide-menu {
                        display: none;
                    }
                }
                & a {
                    text-decoration: none;
                    color: $text;
                    transition: color .3s ease;
                    @media (min-width: 1281px) {
                        font-size: 16px;
                    }
                    &:hover {
                        opacity: 0.8;
                    }
                }
                & .sub-menu.site-menu__nav-sub-list {
                    position: absolute;
                    list-style: none;
                    font-size: inherit;
                    & li {
                        margin: 0;
                        &.divider {
                            border-bottom: 1px solid $text-grey-color-dark;
                            padding-bottom: 14px;   
                        }
                        &.styled {
                            background-color: $lite-grey;
                            padding-bottom: 14px;
                        }
                        &.sale-label {
                            & > a {
                                &::after {
                                    content: '';
                                    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI0IDEyTDIxLjY2MjcgOS40MTA4N0wyMi4zOTIzIDUuOTk5OTlMMTkuMDczNiA0LjkyNjM4TDE4IDEuNjA3N0wxNC41ODkxIDIuMzM3MjhMMTIgMEw5LjQxMDg3IDIuMzM3MjhMNS45OTk5OSAxLjYwNzdMNC45MjY0MyA0LjkyNjM4TDEuNjA3NzQgNS45OTk5NEwyLjMzNzMyIDkuNDEwODJMMCAxMkwyLjMzNzI4IDE0LjU4OTFMMS42MDc3IDE3Ljk5OTlMNC45MjYzOCAxOS4wNzM2TDUuOTk5OTkgMjIuMzkyM0w5LjQxMDg3IDIxLjY2MjdMMTIgMjRMMTQuNTg5MSAyMS42NjI3TDE3Ljk5OTkgMjIuMzkyM0wxOS4wNzM2IDE5LjA3MzZMMjIuMzkyMyAxNy45OTk5TDIxLjY2MjcgMTQuNTg5MUwyNCAxMlpNOC45MzI5MyA2LjgwOTU5QzEwLjEwMzcgNi44MDk1OSAxMS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M0M5LjY0MDcxIDguNTQyMDQgOS4zMjM4MyA4LjIyNTE1IDguOTMyOTMgOC4yMjUxNUM4LjU0MjA0IDguMjI1MTUgOC4yMjUxNSA4LjU0MjA0IDguMjI1MTUgOC45MzI5M0M4LjIyNTE1IDkuMzIzODMgOC41NDIwNCA5LjY0MDcxIDguOTMyOTMgOS42NDA3MVoiIGZpbGw9IiMyRENBMzMiLz4KPC9zdmc+Cg==');
                                    background-repeat: no-repeat;
                                    width: 24px;
                                    height: 24px;
                                    position: absolute;
                                    display: inline-flex;
                                    margin-left: 5px;
                                    top: 50%;
                                    transform: translateY(-50%);
                                }
                            }
                        }
                    }
                }
                &.menu-item-has-children {
                    &:hover > ul {
                        display: block;
                    }
                }
            }
        }
    }
	&.menu-opened{
        .header__menu {
            opacity: 0;
            visibility: hidden;
        }
	}
    @media screen and (min-width: 600px) {
        .container {
            padding: 0 30px;
        }
    }
    & .menu {
        .menu-search, #switch-theme, .menu-account {
            margin-right: 20px;
        }
        .menu-cart {
            margin-right: 5px;
            @media screen and (max-width: 1200px) {
                margin-right: 20px;
            }
        }
        .menu__btn {
            display: none;
            @media screen and (max-width: 1200px) {
                display: flex;
            }
        }
    }
}

// PROMO SLIDER STYLE
.promo {
    position: relative;
    margin: 0;
    margin-bottom: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: all .3s ease;
    height: 128px;
    @media (max-width:1200px) {
        height: 112px;
    }
    @media (max-width:1024px) {
        display: none !important;
    }
    &.show {
        opacity: 1;
    }
    & .promo__inner {
        background-color: transparent;
        padding: 15px 40px;
        font-size: 16px;
        text-align: center;
        position: relative;
        width: 100%;
        min-height: 58px;
        display: flex;
        align-items: center;
        @media (max-width:768px) {
            min-height: 60px;
        }
        &.promo-images {
            background-color: transparent;
            padding: 0;
            width: 100%;
            height: 100%;
            & .promo__list {
                width: 100%;
                height: 100%;
                & .promo__item {
                    display: flex;
                    width: 100%;
                    & img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }
                }
                &.slide {
                    & .promo__item {
                        &:not(:first-child) {
                            display: none;
                        }
                    }
                    &.slick-initialized {
                        & .promo__item {
                            display: flex;
                        }
                        & .slick-track {
                            height: 100%;
                        }
                    }
                }
            }
        }
    }
    & .promo__list {
        display: flex;
        justify-content: center;
        gap: 10px;
        & p {
            &:not(:first-child) {
                display: none;
            }
            a {
                color: $text;
                transition: all 0.25s ease;
            }
            a[href^="mailto:"] { 
                text-decoration: none;
            }
        }
        &.slick-initialized {
            opacity: 1;
            visibility: visible;
            height: 100%;
            & p {
                display: block;
                min-width: max-content;
            }
        }
        & .slick-list {
            width: 100%;
            & .slick-track {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            & .slick-slide {
                text-align: center;
            }
        }
        & .slick-arrow {
            cursor: pointer;
            display: flex !important;
            align-items: center;
            transition: opacity 0.25s ease;
            position: absolute;
            width: 32px;
            height: 32px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
            &.arrow-prev {
                left: 16px;
            }
            &.arrow-next {
                right: 16px;
            }
            & svg {
                z-index: 1;
                height: 32px;
                & .hover {
                    transition: fill-opacity 0.25s ease;
                }
            }
            &:hover {
                & svg {
                    & .hover {
                        fill-opacity: 0.12;
                    }
                }
            }
        }
    }
    .promo__close {
        width: 41px;
        height: 100%;
        position: absolute;
        right: 27px;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.25s ease;
        &::before {
            content: '';
            background-image: url('../../img/close-black.svg');
            background-repeat: no-repeat;
            background-size: contain;
            width: 15px;
            height: 15px;
            position: absolute;
            transition: transform 0.5s;
        }
        &:hover {
            &::before {
                transform: rotate(90deg);
            }
        }
    }
    & .promo__arrow {
        width: 41px;
        height: 100%;
        position: absolute;
        right: 2px;
        top: 0;
        align-items: center;
        justify-content: center;
        display: none;
        &::before {
            content: '';
            background-image: url('../../img/arrow-black-2.svg');
            background-repeat: no-repeat;
            background-size: contain;
            width: 16px;
            height: 16px;
            margin-top: -6px;
            transition: transform 0.5s;
        }
    }
}

@media (min-width:1025px) {
    .show-promo.menu-opened .promo, .show-promo.search-opened .promo {
        opacity: 0;
        margin-top: -128px;
    }
}

// BREADCRUMBS STYLES
.bx-breadcrumb {
    margin: 20px 0;
    float: none;
    display: flex;
    & .kb_sep {
        display: flex;
    }
    & svg {
        min-width: 7px;
        width: 7px;
        height: 15px;
        fill: $text-grey;
        vertical-align: middle;
        margin-right: 7px;
    }
    & .bx-breadcrumb-item {
        float:left;
        margin-bottom:0px;
        white-space:nowrap;
        line-height:1em;
        vertical-align:middle;
        margin-right:10px;
        color:$text-grey;
        @media (max-width:768px) {
            margin-right: 7px;
            &:last-child {
                text-overflow: ellipsis;
                overflow: hidden;
                min-height: 17px;
            }
        }
        span {
            white-space:normal;
            line-height:1em;
            display: inline-block;
        }
        a { 
            border-bottom:none;
            line-height:1em;
            text-decoration:none;
            display: inline-block;
            transition: color 0.3s ease;
            &:hover {
                text-decoration:none;
                color:$text-grey;
            }
            & span {
                white-space:nowrap;
            }
        }
    }
}

.woocommerce {
    .bx-breadcrumb {
        white-space: nowrap;
        vertical-align: middle;
        margin-right: 10px;
        color: $text-grey;
        line-height: 1em;
        & .bx-breadcrumb-item {
            margin-right: 0;
        }
        & a {
            border-bottom: none;
            margin-right: 10px;
            text-decoration: none;
            line-height: 1em;
            @media (max-width: 768px) {
                margin-right: 7px;
            }
        }
    }
    &.single-product {
        .bx-breadcrumb {
            a:nth-of-type(3), svg:nth-of-type(3) {
                display: none;
            } 
        }
    }
}

// SEARCH STYLE
.site-search {
    margin-top: 0;
    padding-top: 120px;
}

#error-page {
    & .wp-die-message {
        & p {
            &:last-child {
                display: none;
            }
        }
    }
}