﻿/* Styling all the elements in nav as a whole */
nav {
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    height: 70px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: height .600s ease;
}


.logo {
    transition: all 0.65s ease;
}

.cart-badge {
    transition: all 0.65s ease;
}

#cart-i {
    transition: all 0.65s ease;
}

#user-i {
    transition: all 0.65s ease;
}

#search-i {
    transition: all 0.65s ease;
}
#main-mini-logo {
    position: absolute;
    padding-top: 30px !important;
}
#main-logo {
    transition: all 0.65s ease;
    width: 290px;
    height:45px;
}
#nav-items {
    transition: all 0.65s ease;
}
/* Styling all the nav items as a whole */
nav .nav-items {
    display: flex;
    flex: 1;
    float: right;
    position: absolute;
    right: 20px;
    top: -15px;
}
.ln-button-container {
    position: relative;
    top: 33px;
    right: 5px;
    width: 70px;
    max-width: 70px;
    transition: all 0.65s ease;
}

.ln-button {
    position: relative;
    top: 18px;
    transition: all 0.65s ease;
    font-size: 24px;
    width: 35px;
    height: 35px;
    line-height: 17px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    opacity: 0.75;
    box-shadow: 0 0 3px #888;
}

.ln-button-small-screen {
    left: 50px;
    transition: all 0.65s ease;
    position: relative;
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 17px;
    display: inline-block;
    text-align: center;
    border-radius: 100%;
    opacity: 0.75;
    box-shadow: 0 0 3px #888;
    color: #292929;
}

.iran-flag:hover {
    background-image: url('/front/assets/img/icons/flag/iran.png');
    width: 35px;
    height: 35px;
}

.en-flag:hover {
    background-image: url('/front/assets/img/icons/flag/tt.png');
    width: 35px;
    height: 35px;
}
    /* Styling the list items in the nav tag */
    nav .nav-items li {
        list-style: none;
        padding: 0 5px;
    }

        /* Styling each list items */
        nav .nav-items li a {
            color: #000;
            font-size: 12px;
            text-transform: uppercase !important;
            border: none !important;
            font-weight: 300;
            text-decoration: none;
        }

            nav .nav-items li a:active {
                background-color: #157af6;
                color: white !important;
            }

/* Setting the hover colour on the list items*/



nav .searchbar {
    position: relative;
}

    /* Styling the search box where the 
            input would be given */
    nav .searchbar input[type="text"] {
        font-family: 'Raleway', sans-serif !important;
        padding: 0;
        width: 0px;
        height: 35px;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Styling the search bar icon */
    nav .searchbar .icon {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        width: 35px;
        height: 100%;
        background: none;
        border-radius: 3px;
        transition: all 0.5s 0.3s ease;
    }

        nav .searchbar .icon i {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            cursor: pointer;
        }

        nav .searchbar .icon.active {
            background: #062333;
            transition: all 0.3s ease;
        }

    nav .searchbar input[type="text"].active {
        width: 200px;
        padding: 0 10px;
        transition: all 0.5s 0.2s ease;
    }

nav .licon li {
    list-style: none;
    display: flex;
}

    nav .licon li a {
        padding: 0 20px;
    }

/* Changing the colour of the login 
            icon when hovered over*/

.fa-user-circle:hover {
    color: #999 !important;
}

.nav-user-margin {
    margin-top: 29px;
}

.nav-cart-margin {
    margin-top: 27px;
}

.searchbar {
    margin-top: 4px;
}
/* Dropdown Button */
.dropbtn {
    background-color: transparent;
    padding: 10px;
    border: none;
    height: 86px;
    font-style: normal;
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size: 14px;
    color: #292929;
    margin-top: 10px;
    font-family: 'Raleway', sans-serif !important;
}

    .dropbtn:active {
        background-color: #9fcef5 !important;
        color: white !important;
    }
/* The container <div> - needed to position the dropdown content */
.dropdown2 {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background: #292929;
    min-width: 210px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 85px;
}


.dropdown-item__hover:hover {
    background-color: rgb(30,115,190) !important;
}

.icon-user-hover:hover {
    color: #2B7DC0;
    background-color: white;
}
/* Links inside the dropdown */
.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

    /* Change color of dropdown links on hover */
    .dropdown-content a:hover {
        background-color: rgb(30,115,190) !important;
        color: white !important;
    }

/* Show the dropdown menu on hover */
.dropdown2:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown2:active .dropbtn {
    color: #2B7DC0 !important;
    background-color: white !important;
}

.menu-left {
    right: 0 !important;
}

.selected-header {
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    color: #2B7DC0;
}

.search-box {
    position: absolute;
    top: 60px;
    right: 80px;
    transition: all 0.5s 0.2s ease;
}

.button__in-expand-mode {
    border: 1px solid;
    margin: 8px;
    color: white;
    display: inline-block;
    padding: 12px;
    font-size: 0.8rem;
    background-color: rgb(30,115,190) !important;
}

.cart-badge {
    position: absolute;
    height: 20px;
    width: 20px;
    max-height: 20px;
    max-width: 20px;
    top: 19px;
    right: 2px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #075294;
    z-index: 100;
}

.cart-badge-number {
    right: 6px;
    position: absolute;
}

.cart-badge-app {
    position: absolute;
    height: 20px;
    width: 20px;
    max-height: 20px;
    max-width: 20px;
    top: -10px;
    right: 2px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #075294;
    z-index: 100;
}

.cart-badge-number-app {
    right: 4px;
    position: absolute;
    top: -3px;
}
.cart-img-app {
    height: 35px;
    width: 35px;
    cursor: pointer;
}
.cart-img {
    height: 35px;
    width: 35px;
    margin-top: 4px;
}
   
    .user-img {
        height: 35px;
        width: 35px;
        margin-top: -8px;
    }
.user-img-app {
    height: 35px;
    width: 35px;
}
#small-screen-en-logo {
    height: 50px;
    width: 150px;
    position: absolute;
    left: -105%;
    top: -5px;
}