/************** header component ****************/
.topbar-info {
    gap: 48px;
    .item-single {
        + .item-single {
            position: relative;
            &::before {
                content: ''; 
                position: absolute;
                left: -24px;
                top: -8px; 
                width: 1px;
                height: calc(100% + 16px);
                background-color: var(--border-color);
            }
        }
    }
    span {
        font-size: 14px;
    }
    a {
        font-size: 14px;
    }
    & > a {
        color: var(--white-color);
        &:hover {
            color: var(--secondary-color);
        }
    }
    @include screen-1400 {
        gap: 24px;
        .item-single {
            + .item-single {
                &::before {
                    left: -12px;
                }
            }
        }
    }
}

.ur-header-right {
    gap: 48px;
    @include screen-1700 {
        gap: 32px;
    }
    @include screen-1460 {
        gap: 14px;
        .user-cart {
            .cart-btn {
                .btn-text {
                    display: none;
                }
            }
        }
    }
    @include portrait-phone {
        gap: 1px;
    }
}

.ur-header-select {
    select {
        background-color: var(--primary-color);
        color: var(--white-color);
        font-size: 14px;
    }
}

.ur-navmenu {
    text-align: center;
    & > ul {
        display: inline-block;
        & > li {
            & > a {
                text-transform: uppercase;
            }
        }
    }
    ul {
        text-align: left;
        li {
            display: inline-block;
            a {
                display: block;
                padding: 30px 25px;
                color: var(--white-color);
                font-size: 14px;
            }
            &.has-submenu {
                position: relative;
                &::after {
                    content: '\f107';
                    position: absolute;
                    font-family: 'FontAwesome';
                    right: 10px;
                    top: 32px;
                    font-size: 13px;
                    color: var(--white-color);
                    transition: var(--transition-base);
                }
                & > .submenu-wrapper {
                    position: absolute;
                    top: calc(100% + 10px);
                    left: 0;
                    min-width: 220px;
                    background-color: var(--white-color);
                    z-index: 10;
                    padding: 6px 0;
                    opacity: 0;
                    visibility: hidden;
                    transition: var(--transition-base);
                    li {
                        display: block;
                        a {
                            color: var(--primary-color);
                            padding: 10px 24px;
                            font-size: 16px;
                        }
                        &:hover {
                            & > a {
                                padding-left: 30px;
                                color: var(--secondary-color);
                            }
                        }
                        &.has-submenu {
                            &::after {
                                content: '\f105';
                                top: 10px;
                                color: var(--primary-color);
                            }
                            & > .submenu-wrapper {
                                content: '\f105';
                                position: absolute;
                                left: 100%;
                                top: 10px;
                            }
                            &:hover {
                                & > .submenu-wrapper {
                                    top: 0;
                                }
                            }
                        }
                    }
                }
                &:hover {
                    & > .submenu-wrapper {
                        top: 100%;
                        opacity: 1; 
                        visibility: visible;
                    }
                    & > .ur-megamenu {
                        opacity: 1; 
                        visibility: visible; 
                        top: 100%;
                    }
                }
            }
            &:hover {
                & > a {
                    color: var(--secondary-color);
                }
                &::after {
                    color: var(--secondary-color);
                }
            }
        }
    }
}

.ur-megamenu {
    position: absolute;
    background-color: var(--white-color);
    top: calc(100% + 10px);
    left: -500px;
    z-index: 10;
    width: 1320px;
    padding: 60px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--box-shadow);
    .megamenu-row {
        display: flex;
        gap: 60px;
        justify-content: space-between;
        .megamenu-column {
            width: 15%;
            &.border-r {
                position: relative;
                &::after {
                    content: '';
                    position: absolute;
                    right: 0px;
                    top: 0;
                    width: 1px; 
                    height: 100%;
                    background-color: var(--light-stroke);
                }
            }
            &.banner {
                width: 20%;
            }
            .column-title {
                font-size: 14px;
                text-transform: uppercase;
                margin-bottom: 15px;
            }
            .pages-list {
                li {
                    display: block;
                    a {
                        padding: 9px 0;
                        color: var(--primary-color);
                        font-weight: 300;
                        font-size: 15px;
                        &:hover {
                            color: var(--secondary-color);
                            padding-left: 6px;
                        }
                    }
                }
            }
        }
    }
    @include screen-1460 {
        left: -450px;
    }
    @include screen-1400 {
        width: 1160px;
        padding: 45px;
        left: -430px;
    }
}

.ur-user-links {
    button {
        color: var(--white-color);
        font-size: 14px;
        padding: 30px 15px;
        transition: var(--transition-base); 
        &:hover {
            color: var(--secondary-color);
        }
    }
    .user-menu {
        min-width: 220px;
        padding: 8px 0;
        background-color: var(--white-color);
        top: calc(100px + 10px);
        left: 0;
        box-shadow: var(--shadow-light);
        opacity: 0; 
        visibility: hidden;
        transition: var(--transition-base);
        z-index: 10;
        li {
            display: block;
            a {
                display: block;
                padding: 7px 24px;
                color: var(--primary-color);
                &:hover {
                    color: var(--secondary-color);
                    padding-left: 30px;
                }
            }
        }
    }   
    &:hover {
        .user-menu {
            opacity: 1;
            visibility: visible; 
            top: 100%;
        }
    }
    @include screen-1460 {
        .user-menu {
            min-width: 180px;
            max-width: 180px;
        }
    }
}

.user-cart {
    padding: 28px 0;
    .cart-btn {
        color: var(--white-color);
        font-size: 14px;
        transition: var(--transition-base);
        &:hover {
            color: var(--secondary-color);

        }
    }
    &:hover {
        .header-cart-box {
            opacity: 1;
            visibility: visible; 
            top: 100%;
        }
    }
}

.header-search {
    .search-btn {
        color: var(--white-color);
        transition: var(--transition-base);
        &:hover {
            color: var(--secondary-color);
        }
    }
    .search-form {
        min-width: 320px;
        padding: 0 12px;
        input {
            border: 1px solid var(--light-stroke);
        }
        .submit-btn {
            width: 55px;
            height: 53px;
            background-color: var(--primary-color);
            color: var(--white-color);
            flex-shrink: 0;
            transition: var(--transition-base); 
            &:hover {
                background-color: var(--secondary-color);
            }
        }
    }
}

.header-link {
    color: var(--white-color);
    padding: 24px 15px;
    &:hover {
        color: var(--secondary-color);
    }
}

.header-toggle {
    button {
        span {
            background-color: var(--white-color);
        }
    }
}

.ur-header-right {
    & > div {
        + div {
            position: relative;
            &::before {
                content: ''; 
                position: absolute;
                left: -24px;
                top: 50%;
                transform: translateY(-50%);
                width: 1px;
                height: 20px;
                background-color: var(--border-color);
            }
        }
    }
    @include screen-1460 {
        & > div {
            + div {
                &::before {
                    left: -7px;
                }
            }
        }
    }
}


/*************** header style 2 *****************/
.header-style-2 {
    .ur2-navmenu {
        & > ul {
            & > li {
                & > a {
                    color: var(--primary-color);
                }
                &.has-submenu {
                    &::after {
                        color: var(--primary-color);
                    }
                }
                &:hover {
                    & > a {
                        color: var(--secondary-color);
                    }
                    &::after {
                        color: var(--secondary-color);
                    }
                }
            }
        }
    }
    .ur-user-links {
        .user-btn {
            color: var(--primary-color);
            &:hover {
                color: var(--secondary-color);
            }
        }
    }
    .user-cart {
        .cart-btn {
            color: var(--primary-color);
            &:hover {
                color: var(--secondary-color);
            }
        }
    }
    .header-link {
        color: var(--primary-color); 
        &:hover {
            color: var(--secondary-color);
        }
    }
    .header-search {
        .search-btn {
            color: var(--primary-color);
            &:hover {
                color: var(--secondary-color);
            }
        }
    }
    .header-toggle {
        button {
            span {
                background-color: var(--primary-color);
            }
        }
    }
    .ur-header-right {
        & > div {
            + div {
                &::before {
                    background-color: var(--light-stroke);
                }
            }
        }
    }
}


/**************** header style 3 ****************/
.ur3-infobar {
    p {
        span {
            svg {
                transform: translateY(-1px);
            }
        }
    }
    .info-link {
        color: var(--white-color);
        &:hover {
            color: var(--secondary-color);
        }
    }
}

.ur3-header-select {
    .icon {
        transform: translateY(-3px);
    }
    .nice_select {
        background-color: transparent;
        border: 0;
        color: var(--primary-color);
        font-weight: 300;
        &::after {
            border-color: var(--primary-color);
            border-width: 1px;
            right: 15px;
            margin-top: -6px;
        }
        .list {
            li {
                font-weight: 300;
            }
        }
    }
    .ur3-currency-select {
        position: relative;
        &::before {
            content: ''; 
            position: absolute;
            left: -24px;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 15px;
            background-color: #CACACA;
        }
        @include portrait-phone {
            &::before {
                left: -8px;
            }
        }
    }
}

.ur3-header-middle {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-color);
    position: relative;
}

.ur3-header-search {
    .submit-btn {
        font-size: 14px;
    }
    input {
        border: 0;
        font-size: 14px;
        color: var(--primary-color);
        text-transform: uppercase;
        &::placeholder {
            color: var(--primary-color);
        }
    }
}

.ur3-header-btns {
    a {
        color: var(--primary-color);
        svg {
            path {
                transition: var(--transition-base);
            }
        }
        &:hover {
            color: var(--secondary-color);
            svg {
                path {
                    fill: var(--secondary-color);
                }
            }
        }
        + a {
            position: relative;
            &::before {
                content: ''; 
                position: absolute;
                left: -24px; 
                top: 0; 
                width: 1px;
                height: 15px;
                background-color: #CACACA;
            }
        }
    }
    @include portrait-phone {
        a {
            + a {
                &::before {
                    left: -10px;
                    top: 4px;
                }
            }
        }
    }
}

.ur3-nav-header {
    @include screen-992 {
        padding: 16px 0;
    }
}

.ur3-header-toggle {
    width: 40px;
    display: inline-block;
    span {
        width: 100%;
        height: 1px;
        background-color: var(--primary-color);
        display: block;
        transition: var(--transition-base);
        position: relative;
        z-index: 1;
        &::before {
            content: ''; 
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            z-index: -1;
            background-color: var(--secondary-color);
            transition: var(--transition-base);
        }
        + span {
            margin-top: 6px;
        }
        &:nth-child(1), 
        &:nth-child(3) {
            &::before {
                right: 0;
                left: auto;
            }
        }
    }
    &:hover {
        span {
            &::before {
                right: 0; 
                left: auto;
                width: 100%;
            }
            &:nth-child(1), 
            &:nth-child(3) {
                &::before {
                    left: 0; 
                    right: auto;
                }
            }
        }
    }
}

.ur3-nav-menu {
    & > ul {
        & > li {
            & > a {
                color: var(--primary-color);
                position: relative; 
                z-index: 1;
                &::before {
                    content: ''; 
                    position: absolute;
                    left: 6%;
                    top: 20px; 
                    width: 95px;
                    height: 40px;
                    border: 1px solid var(--secondary-color);
                    border-radius: 15%;
                    opacity: 0;
                    z-index: -1;
                    transition: var(--transition-base);
                }
                &:hover {
                    &::before {
                        opacity: 1;
                        border-radius: 50%;
                    }
                }

            }
            &.has-submenu {
                &::after {
                    color: var(--primary-color);
                }
            }
            &:hover {
                &::after {
                    color: var(--secondary-color);
                }
            }
        }
    }
    @include large-screen {
        & > ul {
            & > li {
                & > a {
                    padding: 30px 20px;
                    &::before {
                        width: 85px;
                    }
                }
                &.has-submenu {
                    &::after {
                        right: 5px;
                    }
                }
            }
        }
    }
    .ur-megamenu {
        left: -550px;
        @include screen-1400 {
            left: -470px;
        }
        @include large-screen {
            width: 960px;
            left: -375px;
            .megamenu-row {
                gap: 20px;
                .megamenu-column {
                    &.border-r {
                        &::after {
                            display: none;
                        }
                    }
                }
            }
        }
    }
}





/************ sticky header ***********/
.header-sticky {
    transition: var(--transition-base);
    &.sticky-on {
        position: fixed;
        left: 0; 
        top: 0; 
        width: 100%;
        z-index: 50;
        animation: 0.3s theme_fadeInDown;
        .topbar {
            display: none !important;
        }
        .header-style-2 {
            box-shadow: var(--box-shadow);
        }
        .ur3-infobar, .ur3-header-middle {
            display: none;
        }
        .ur3-nav-header {
            box-shadow: var(--box-shadow);
        }
    }

}

