/*================*** Header Section Start Here     ***===================*/
.header {
    &__top {
        @include transition($transition);
    }
    &__bottom {
        padding-block: 22px;
        // @extend %bg-white;
        &.header-fixed {
            position: fixed;
            top: 0;
            @extend %w-100;
            z-index: 999;
            box-shadow: 0 0 3px rgba($title-color, $alpha: .2);
            .header__ellepsis {
                @extend %d-none;
            }
        }
        .area {
            @extend %flex;
            @extend %justify-between;
            @extend %align-items-center;
            .logo {
                @include breakpoint(max-sm) {
                    max-width: 140px;
                }
                @include breakpoint(xl) {
                    position: relative;
                    z-index: 99;
                }
            }
            .menu {
                @extend %flex;
                @extend %justify-between;
                
                @include breakpoint(max-xl) {
                    display: none;
                    position: absolute;
                    top: 100%;
                    width: 100%;
                    left: 0;
                    background-color: $white-color;
                    z-index: 9999;
                    padding-bottom: 30px;
                    height: 400px;
                    overflow-y: auto;
                    &.active {
                        display: inherit;
                        padding-inline: 30px;
                    }
                }
                ul {
                    li {
                        @extend %d-inline-block;
                        @extend %rel;
                        @include breakpoint(max-xl) {
                            display: block;
                            border-bottom: 1px solid rgba($white-color, $alpha: .1);
                        }
                        &:hover {
                            >ul {
                                @include breakpoint(xl) {
                                    opacity: 1;
                                    top: 100%;
                                    visibility: visible;
                                }
                            }
                        }
                        a {
                            padding: 15px 30px;
                            @extend %text-700;
                            @extend %d-block;
                            @extend %title-color;
                            @extend %text-capitalize;
                        }
                        ul {
                            background-color: $title-color;
                            @include breakpoint(max-xl) {
                                display: none;
                            }
                            @include breakpoint(xl) {
                                position: absolute;
                                width: 220px;
                                top: calc(100% + 30px);
                                left: 0;
                                @include transition($transition);
                                opacity: 0;
                                z-index: 999;
                                box-shadow: 0 0 3px rgba($theme-color, $alpha: .1);
                                visibility: hidden;
                            }
                            li {
                                @extend %d-block;
                                &:last-child {
                                    >a {
                                        // border: none;
                                    }
                                }
                                &.menu-item-has-children {
                                    a {
                                        &::after, &::before {
                                            background-color: $white-color;
                                        }
                                        
                                        &::before {
                                            right: 24px;
                                        }
                                        &::after {
                                            right: 20px;
                                        }
                                    }
                                }
                                a {
                                    font-size: 95%;
                                    padding: 15px 30px;
                                    border-bottom: 1px solid rgba($white-color, $alpha: .1);
                                    @extend %white-color;
                                    &:hover, &.active {
                                        background-color: $theme-color;
                                        color: $white-color;
                                        &::after, &::before {
                                            background-color: $white-color;
                                        }
                                    }
                                }
                                ul {
                                    @include breakpoint(xl) {
                                        left: 100%;
                                        top: 0 !important;
                                    }
                                }
                            }
                        }
                    }
                }
                .search_cart {
                    @extend %mr-30;
                    ul {
                        li {
                            padding: 10px 15px;
                            @extend %rel, %pointer;
                            &::after {
                                @extend %abs;
                                width: 1px;
                                height: 100px;
                                left: 0;
                                top: -22px;
                                border-right: 1px solid rgba($theme-color, $alpha: .1);
                            }
                            &:last-child {
                                &::before {
                                    @extend %abs;
                                    width: 1px;
                                    height: 100px;
                                    right: 0;
                                    top: -22px;
                                    border-right: 1px solid rgba($theme-color, $alpha: .1);
                                }
                            }
                            a {
                                @extend %p-0, %d-inline-block;
                            }
                            img {}
                            span {
                                top: 0px;
                                right: 10px;
                                font-size: 15px;
                                @extend %abs, %title-color, %text-700;
                            }
                        }
                    }
                }
            }
        }
    }
    &--one {
        @extend %rel;
        .container-fluid {
            @include breakpoint(xxl) {
                padding-inline: 140px;
            }
        }
        @include breakpoint(max-xl) {
            .header__bottom .area .menu ul li {
                border-bottom: 1px solid rgba($title-color, $alpha: .1);
            }
        }
        .header {
            &__top {
                border-bottom: 1px solid rgba($white-color, $alpha: .1);
                background-color: $theme-color-3;
                @include breakpoint(max-xl) {
                    display: none;
                }
                .info {
                    @include breakpoint(max-xl) {
                        border-bottom: 1px solid rgba($white-color, $alpha: .1);
                    }
                    ul {
                        @include breakpoint(max-xl) {
                            text-align: center;
                        }
                        li {
                            @extend %d-inline-block, %white-color;
                            padding: 10px 25px;
                            border-left: 1px solid rgba($white-color, $alpha: .1);
                            @include breakpoint(max-xl) {
                                &:first-child {
                                    border-left: none;
                                }
                            }
                            @include breakpoint(max-sm) {
                                border: none;
                            }
                            img {
                                @include breakpoint(md) {
                                    @include breakpoint(max-lg) {
                                        display: none;
                                    }
                                }
                                @include breakpoint(xl) {
                                    @include breakpoint(max-xxl) {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }
                }
                .social {
                    @include breakpoint(max-xl) {
                        text-align: center;
                    }
                    li {
                        @extend %d-inline-block, %white-color;
                        padding: 10px 15px;
                        border-left: 1px solid rgba($white-color, $alpha: .1);
                        @include breakpoint(xl) {
                            @include breakpoint(max-xxl) {
                                padding: 10px 14px;
                            }
                        }
                        @include breakpoint(max-xl) {
                            &:first-child {
                                border-left: none;
                            }
                        }
                        @include breakpoint(max-sm) {
                            border: none;
                        }
                        a {
                            @extend %d-inline-block;
                            i {
                                width: 24px;
                                height: 24px;
                                line-height: 24px;
                                margin-right: 3px;
                                color: $theme-color-3;
                                @include font-size(10px);
                                @include border-radius(100%);
                                @extend %d-inline-block, %bg-white, %text-center;
                                @include breakpoint(xl) {
                                    @include breakpoint(max-xxl) {
                                        display: none;
                                    }
                                }
                                @include breakpoint(md) {
                                    @include breakpoint(max-lg) {
                                        display: none;
                                    }
                                }
                            }
                            span {
                                @extend %white-color;
                            }
                        }
                    }
                }
            }
            &__bottom {
                background: $body-color;
                .menu {
                    .lab-btn {
                        @extend %mt-30;
                        @include breakpoint(xl) {
                            margin-top: 0;
                            @include breakpoint(max-xxl) {
                                display: none;
                            }
                        }
                    }
                }
            }
            
            &__bar {
                span {
                    background-color: $theme-color-2;
                }
            }
        }
    }
    &--two {
        .header {
            &__top {
                padding-block: 10px;
                .info {
                    ul {
                        @extend %flex;
                        @include breakpoint(xl) {
                            justify-content: flex-end;
                        }
                        li {
                            @extend %flex, %align-items-center;
                            padding: 15px 30px;
                        }
                    }
                    &__icon {
                        width: 36px;
                    }
                    &__content {
                        width: calc(100% - 36px);
                        @extend %pl-15;
                        p {
                            @extend %title-color, %mb-0;
                        }
                    }
                }
                .header__bar span {
                    background: $title-color;
                }
                .header__cartcount i, .header__cartcount span {
                    color: $title-color;
                }
            }
            &__bottom {
                @extend %bg-title;
                @include transition($transition);
                @include breakpoint(max-xl) {
                    padding: 0;
                    &.header-fixed {
                        position: static !important;
                    }
                }
                .area {
                    .main-menu {
                        @extend %justify-between, %w-100;
                        @include breakpoint(max-xl) {
                            position: relative;
                            .menu {
                                background: $theme-color-2;
                            }
                        }
                        .menu {
                            ul {
                                li {
                                    a {
                                        @extend %white-color;
                                        &::after, &::before {
                                            @extend %bg-white;
                                        }
                                    }
                                    ul {
                                        li {
                                            a {
                                                @extend %white-color;
                                                &::after, &::before {
                                                    @extend %bg-white;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            .lab-btn {
                                @extend %mt-30;
                                @include breakpoint(xl) {
                                    margin-top: 0;
                                }
                                &:hover {
                                    background: $theme-color-3;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    &__bararea {
        @extend %flex;
        @extend %align-items-center;
    }
    &__bar {
        @extend %rel;
        @extend %pointer;
        width: 25px;
        height: 20px;
        @extend %ml-20;
    
        span {
            @extend %abs;
            @extend %d-inline-block;
            @extend %w-100, %bg-title;
            height: 3px;
            @include transition($transition);
            background-color: $white-color;
            left: 0;
    
            &:first-child {
                top: 0;
            }
    
            &:nth-child(2) {
                top: 50%;
                transform: translateY(-50%);
            }
    
            &:last-child {
                bottom: 0;
            }
        }
    
        &.active {
            span {
                &:first-child {
                    @include transform(rotate(45deg) translate(3px, 9px));
                }
    
                &:nth-child(2) {
                    opacity: 0;
                }
    
                &:last-child {
                    @include transform(rotate(-45deg) translate(3px, -9px));
                }
            }
        }
    
        @include breakpoint(max-sm) {
            width: 15px;
            height: 16px;
    
            span {
                height: 2px;
                width: 20px;
            }
    
            &.active {
                span {
                    &:first-child {
                        @include transform(rotate(45deg) translate(4px, 6px));
                    }
    
                    &:nth-child(2) {
                        opacity: 0;
                    }
    
                    &:last-child {
                        @include transform(rotate(-45deg) translate(4px, -6px));
                    }
                }
            }
        }
    }
    &__ellepsis {
        font-size: 20px;
        margin-left: 25px;

        i {
            @extend %pointer;
            color: $theme-color-2;
        }
    }
    &__cartcount {
        @extend %p-rel;
        i {
            color: $white-color;
        }
        span {
            width: 30px;
            height: 30px;
            line-height: 30px;
            top: -20px;
            right: -10px;
            font-size: 12px;
            @include border-radius(100%);
            @extend %abs, %text-center, %text-700, %white-color, %d-inline-block;
        }
    }


}

.menu-item-has-children {
    >a {
        @extend %rel;
        &::after {
            @extend %abs;
            top: 50%;
            transform: translateY(-50%);
            right: 25px;
            width: 10px;
            height: 2px;
            background-color: $title-color;
        }

        &::before {
            @extend %abs;
            top: 50%;
            transform: translateY(-50%);
            right: 29px;
            width: 2px;
            height: 10px;
            background-color: $title-color;
            @include transition($transition);
        }

        @include breakpoint(xl) {
            &::after {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                right: 0;
                width: 10px;
                height: 2px;
                background-color: $title-color;
            }

            &::before {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                right: 4px;
                width: 2px;
                height: 10px;
                background-color: $title-color;
                @include transition($transition);
            }
        }


    }

    &:hover {
        >a {
            &:before {
                @include breakpoint(xl) {
                    transform: translate(-50%, -50%) rotate(90deg);
                    opacity: 0;
                }
            }
        }
    }

    &.open {
        >a {
            &::after, &::before {
                @extend %white-color;
            }
            &:before {
                @include breakpoint(max-xl) {
                    transform: translate(-50%, -50%) rotate(90deg);
                    opacity: 0;
                }
            }
        }
    }
}



// search
.search {
    @extend %fixed, %w-100, %h-100, %flex,  %align-items-center, %justify-center, %bg-title;
    opacity: 0;
    z-index: -1;
    @include transition(all .3s ease);
    &.active {
        opacity: 1;
        z-index: 99999;
    }
    &__close {
        @extend %abs, %white-color, %pointer;
        top: 30px;
        right: 30px;
        font-size: 30px;
    }
    &__area {
        form {
            @extend %flex, %justify-center;
            width: 280px;
            @include breakpoint(sm) {
                width: 550px
            }
            input {
                @extend %title-color;
                border-color: rgba($white-color, $alpha: .80);
                width: calc(100% - 60px);
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
                &::placeholder {
                    color: rgba($title-color, $alpha: .50);
                }
            }
            button {
                width: 60px;
                height: 60px;
                line-height: 60px;
                background: $theme-color;
                border-top-right-radius: 4px;
                border-bottom-right-radius: 4px;
                @extend %text-center, %border-none;
            }
        }
    }
}

// mrcart
.mrcart {
    @extend %fixed, %bg-theme, %p-30;
    width: 320px;
    height: 100vh;
    overflow-y: auto;
    z-index: 99999;
    left: -320px;
    @include transition(all .3s ease);
    &.active {
        left: 0;
    }
    &__area {}
    &__head {
        border-bottom: 1px solid rgba($white-color, $alpha: .30);
        @extend %flex, %justify-between, %align-items-center, %pb-20, %mb-20;
    }
    &__body {
        @extend %mb-30;
        ul {
            li {
                @extend %rel;
                padding-block: 20px;
                border-bottom: 1px solid rgba($white-color, $alpha: .30);
                &.mrcart__remove {
                    @extend %d-none;
                }
            }
        }
    }
    &__footer {
        ul {
            li {
                @extend %d-inline-block;
                &:last-child, &:hover {
                    a {
                        @extend %bg-title, %white-color;
                    }
                }
                &:last-child {
                    &:hover {
                        a {
                            @extend %bg-white, %theme-color;
                        }
                    }
                }
                a {
                    padding: 10px 25px;
                    margin: 5px;
                    font-size: 12px;
                    @include transition(all .3s ease);
                    @extend %bg-white, %theme-color, %d-inline-block, %text-700;
                }
            }
        }
    }
    &__logo {}
    &__close {
        font-size: 28px;
        @extend %white-color, %pointer;
    }
    &__thumb {
        width: 100px;
        @extend %mb-15;
        a {
            img {
                @include border-radius(4px);
                @extend %hidden;
            }
        }
    }
    &__content {
        h4 {
            a {
                @extend %white-color;
            }
        }
        h6 {
            @extend %mb-0, %white-color;
        }
    }
    &__itemclose {
        @extend %abs, %white-color, %pointer;
        right: 15px;
        top: 15px;
        font-size: 18px;
        @include transition(all .3s ease);
    }
}




// pageheader css start here
.pageheader {
    &__area {
        h2 {
            @extend %white-color;
        }
        .breadcrumb {
            li {
                @extend %white-color, %text-capitalize;
                a {
                    @extend %white-color;
                    &:hover, &.active {
                        @extend %white-color;
                    }
                }
            }
        }
    }
}
.breadcrumb-item+.breadcrumb-item::before {
    @extend %white-color;
}