/*
* author: Ants Creation (Pvt) Ltd
* email: info@ants.lk
* web: www.ants.lk
* description: header styles
*/

/***********************************
TOP HEADER
**********************************************/
.top-header {
    position: relative;
    background: #fff;
    padding: 1rem 15px;
}

/* .top-header .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
} */

/* .top-header__logo,
.top-header__icon-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
} */

.top-header__logo {
    left: 0;
}

.top-header__logo  img {
    max-width: 100%;
    width: auto;
    height: 45px;
}

.top-header__contact-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-header__contact-wrap .contact-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
}

.top-header__contact-wrap .contact-link.email::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.75rem;
    transform: translateY(-50%);
    height: 20px;
    width: 2px;
    background-color: #000;
}

.top-header__icon-wrap {
    right: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-header__icon-wrap  .cart-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    text-decoration: none;
}
.top-header__icon-wrap  .cart-nav .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--theme1);
    width: 15px;
    height: 15px;
    color: white;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

.user-loging {
    position: relative;
}

.user-loging .dropdown-menu {
    z-index: 9999;
    min-width: fit-content !important;
}


/***********************************
MENU
**********************************************/

.navbar-light .navbar-nav .nav-link{
    text-wrap: nowrap;
    color: var(--theme2);
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    position: relative;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--theme3);
    transition: all ease-in-out 0.3s;
}
.navbar-light .navbar-nav .nav-link:hover::after {
    transition: all ease-in-out 0.3s;
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #d4b14b;
    border-radius: 50%;
}

.rd-header {
    background: var(--theme1);
}

.rd-header .navbar-nav {
    justify-content: space-between;
    width: 100%;
}

.rd-header .navbar .nav-item .nav-link {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.rd-header .dropdown-menu {
    width: unset;
}

.rd-header .mega_menu{
    display: flex;

}

.rd-header .mega_menu_dropdown:hover .mega_menu{
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

.rd-header li{
    list-style: none;
}


.navbar-light .navbar-toggler{
    color: var(--theme1);
}

.rd-header .mega_menu{
    box-shadow: 0 5px 10px 0px #0000001f;
    box-shadow: none;
    bottom: auto;
    float: none;
    left: auto;
    line-height: 1.7;
    margin: 0;
    min-height: auto;
    max-height: none;
    min-width: auto;
    outline: none;
    overflow: visible;
    right: auto;
    text-align: left;
    text-decoration: none;
    text-indent: 0;
    text-transform: none;
    top: auto;
    vertical-align: baseline;
    word-wrap: break-word;
    white-space: normal;
    display: block;
    visibility: hidden;
    padding: 0px 0px 0px 0px;
    position: absolute;
    max-width: none;
    z-index: 999;
    border-radius: 0px 0px 5px 5px;
    background: linear-gradient(to bottom, #fff, #f1f1f1);
    opacity: 0;
    transform: translate(0, 10px);
    transition: opacity 200ms ease-in, transform 200ms ease-in, visibility 200ms ease-in;
}

.officef > .mega_menu {
    left: 180px !important;
}

.officef ul {
    width: 1000px !important;
}

.rd-header .mega_menu_item{
    padding: 15px;
    float: left;
    width: 33.3%;
}

.rd-header .mega_menu_item h3{
    font-size: 1rem;
    color: var(--theme4);
    font-weight: 600;
}

.rd-header .mega_menu_item a{
    color: black;
    font-size: 0.95rem;
}

.rd-header .mega_menu_item a{
    display: block;
}



.whishlist-wrapper .hart-count{
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--theme1);
    width: 15px;
    height: 15px;
    color: white;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}


.global-search{
    position: fixed;
    z-index: 9999;
    width: 100%;
    background-color: #00000075;
    top: 0;
    height: 0;
    overflow: hidden;
    transition: 0.2s ease-in-out;
    backdrop-filter: blur(10px);
}

.global-search.active{
    height: 100%;
}

#cart_items{
    position: relative;
}

#cart_items .web-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999 !important;
    border-radius: 0;
    background-color: #ffff;
    width: 0px;
    height: 100vh;
    display: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#cart_items .web-side-cart .cart-footer{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
} 
#cart_items .web-side-cart.show{
    width: 300px;
    display: block;
} 


header .search-area .q{
    border: none;
    border-radius: 0;
    background: transparent;
}

header .search-area .cat{
    border-radius: 3px 0 0 3px !important;
    background-color: #F6F6F6;
    border-radius: 0;
    border-color: #F6F6F6;
    width: 15%;
    padding-right: 10px;
    border: 1px solid var(--theme2);
}

.global-search .btn.submit{
    border-radius: 0 30px 30px 0;
    border-left: none;
    background-color: var(--theme1);
}

.global-search .btn.submit:hover{
    background-color: var(--theme1);
    color: white;
}

/* mobile nav */
.mobile-side-nav .mobile-list .mobile-dropdown .dropdown-menu.show {
    position: relative !important;
}
.mobile-side-nav{
    font-weight: 300;
    position: relative;
    /* background-image: url("../../img/sidnavbg.png");
    background-size: cover;
    background-position: center; */
}
.mobile-side-nav .mobile-list .nav-link{
    text-wrap: nowrap;
    text-transform: uppercase;
    color: var(--theme2);
    font-size: 15px;
    font-weight: 300;
    position: relative;
}
.mobile-side-nav .mobile-list .nav-link:hover{
    color: var(--theme3);
}
.mobile-side-nav .mobile-list li{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.mobile-side-nav .service-item{
    position: absolute;
    bottom: 20px;
    transform: translateX(20%);
}
.mobile-side-nav .service-item .content{
    color: var(--theme2);
}

.mobile-side-nav .header-logo {
    width: 200px;
    height: auto;
}

.global-search .btn.submit svg{
    fill: var(--white);
}

.header-megamenu__category:hover .header-megamenu__category__link{
    transform: translateY(4px);
}

.header-megamenu__container{
    text-align: left;
    z-index: -1;
    padding: 0;
    display: inline-flex;
    background: #fff;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    visibility: hidden;
    height: 0;
    overflow: hidden;
    width: 0;
}

.header-megamenu__container ul{
    list-style: none;
    padding-inline: 1rem;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.header-megamenu__category{
    margin: 0;
    z-index: 99999999;
}

.header-megamenu__subcategory-header{
    font-weight: 600;
}

.rd-header .navbar .collapse .navbar-nav .nav-item .search-button-form{
    position: relative;
}
.rd-header .navbar .collapse .navbar-nav .nav-item .search-button-form .InputBox {
    border: 1px solid #2E3192;
    display: block;
    width: 300px;
    padding: 10px 10px;
    font-size: 15px;
    border-radius: 4px;
}
.rd-header .navbar .collapse .navbar-nav .nav-item .search-button-form .search-button{
    position: absolute;
    top: 5px;
    background-color: #2E3192;
    right: 5px;
    color: var(--white);
    float: right;
    padding: 6px 25px;
}

/* mobile nav */


@media (min-width: 1199px){
    header .wishlist-nav{
        margin-left: 25px;
    }
    header .wishlist-nav i{
        border: 1px solid #000000;
        padding: 8px;
        border-radius: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px){
    .header-social-media-icons i{
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .top-navbar .list-inline-item .welcome {
        font-size: 13px;
    }

    .top-navbar .list-inline-item .welcome.phone a {
        font-size: 13px;
    }
}

@media (min-width: 992px){
    header .search-area{
        border-radius: 5px;
    }
    .nav-list-area .navbar .navbar-nav .nav-item .nav-link{
        padding-right: .8rem;
        padding-left: .8rem;
    }
    /* .nav-list-area .sidenav-close{
        display: none;
    } */

    .nav-list-area{
        z-index: 1;
    }

    /* mobile nav */
    /* .mobile-side-nav .sidenav-close{
        display: none;
    } */

    .header-megamenu__category:hover .header-megamenu__container, .header-megamenu__container:hover{
        width: auto;
        padding: 1rem;
        z-index: 999999;
        visibility: visible;
        height: calc(100vh - 8rem);
        max-height: 420px;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        column-gap: 2rem;
    }

    .header-megamenu__container .header-megamenu__mobile-subcategory{
        display: none;
    }
}

@media (max-width: 1199px){
    .nav-list-area .navbar .navbar-nav .nav-item.all-category.width-min {
        width: 210px;
    }
    .nav-list-area .navbar .navbar-nav .nav-item.all-category.width-min .icon-cat {
        margin-left: 6.7em;
    }
    .mobile-side-nav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 9999;
        top: 0;
        right: 0;
        background-color: #fafafa;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 30px;
    }
    .mobile-side-nav .mobile-list .dropdown-menu.show{
        transform: unset !important;
        background: transparent !important;
        box-shadow: none !important;
        border: unset !important;
    }
    .mobile-side-nav a {
        text-decoration: none;
        transition: 0.3s;
    }
    .mobile-side-nav a:hover {
        color: var(--theme2);
    }

    .mobile-side-nav .closebtn {
        position: absolute;
        top: -5px;
        right: 10px;
        font-size: 36px;
        margin-left: 50px;
    }
}

@media (max-width: 991px){
    /* sidenav */

    .sidenav .header-links ul{
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidenav .header-links ul li{
        border-bottom: 1px solid var(--theme_gray);
    }

    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 9999;
        top: 0;
        right: 0;
        background-color: #fff;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
    }

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 15px;
        color: var(--black);
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: var(--theme4);
    }

    .sidenav .closebtn {
        position: absolute;
        top: -5px;
        right: 10px;
        font-size: 36px;
        margin-left: 50px;
    }

    .sidenav .header-social-media-icons{
        padding-bottom: 15px;
    }

    .sidenav .header-social-media-icons li a{
        padding: 0;
    }

    .nav-list-area .header-phone{
        display: flex;
    }

    .nav-list-area .header-phone svg{
        fill: var(--theme1);
    }

    .nav-list-area .header-phone h6,
    .nav-list-area .header-phone h5{
        color: var(--theme1);
    }

    .header-megamenu__container{
        transition: transform 0.5s ease;
        transform: translateX(100%);
    }

    .header-megamenu__container.active{
        right: 0;
        left: auto;
        height: 200vh;
        top: 0;
        visibility: visible;
        position: fixed;
        /* overflow: scroll; */
        z-index: 9999;
        width: 260px;
        flex-direction: column;
        transform: translateX(0);
    }

    .mobile-disable-event{
        pointer-events: none;
        position: relative;
        width: 100%;
    }

    .header-megamenu__container .header-megamenu__subcategory,
    .header-megamenu__container .header-megamenu__mobile-subcategory{
        display: none;
    }

    .header-megamenu__container .header-megamenu__subcategory.active,
    .header-megamenu__container .header-megamenu__mobile-subcategory.active{
        display: flex;
    }

    .mobile-disable-event::after{
        content: "\f105";
        font-family: 'Line Awesome Free';
        position: absolute;
        right: 1rem;
    }

    .side-nav__sub-nav li{
        display: block;
        margin-bottom: 10px;
        text-align: initial;
    }

    .side-nav__sub-nav li{
        border-bottom: 1px solid var(--theme_hex_6);
        padding: 2px;
    }

    .side-nav__sub-nav li{
        border-bottom: 1px solid var(--theme_hex_6);
        padding: 2px;
        margin-right: 1rem;
    }





    /* end sidenav */
    .nav-list-area.sidenav .navbar .navbar-nav{
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .nav-list-area.sidenav .navbar .navbar-nav .nav-item{
        text-align: left;
    }

    .nav-list-area .navbar .navbar-nav .nav-item .nav-link{
        font-size: 14px;
        font-weight: 500;
        color: var(--font-color);
    }

    .nav-list-area .navbar .navbar-nav .nav-item .nav-link:hover{
        color: var(--theme_black);
    }

    .nav-list-area .navbar .navbar-nav .nav-item{
        margin-bottom: 10px;
    }

    .top-navbar{
        padding: 0;
    }

    .top-navbar .bx-header{
        padding: 0;
    }

    header .logo-category a{
        margin-top: 0;
        z-index: inherit;
    }

    .top-header .container {
        justify-content: space-between;
    }

    .top-header__logo {
        position: relative;
        top: unset;
        transform: unset;
    }

}


@media (min-width: 576px) and (max-width: 991px){
    .header-menu-row {
        padding: 16px 0;
    }
}

@media (min-width: 576px) and (max-width: 766px){

}

@media (max-width: 575px){
    header .search-area .advance{
        margin-right: 5px;
    }

    .site-header .header-logo{
        height: 60px;
    }

    .notifications-bar .text-center{
        font-size: 11px;
    }
}

@media (max-width: 375px){
    .top-header__logo img {
        height: 40px;
    }
}
