﻿.opensubmenu-icon svg {
    display: none;
    width: 25px;
    position: absolute;
    left: 0;
    top: 0;
}

.TopMenu {
    margin: auto;
    padding: 12px 30px;
    background: #fff;
    border-bottom: 1px solid #f2f2f5;
    position: relative;
    position: relative;
    width: 100%;
    z-index: 400;
    top: 0px;
    left: 0;
}

    .TopMenu > .j-between {
        justify-content: space-between;
    }

    .TopMenu .container {
        padding: 0;
        max-width: 1667px;
        margin: auto;
    }

.t-logo {
    margin-left: 20px;
    position: relative;
}

    .t-logo img {
        width: 125px;
    }

@media screen and (max-width:640px) {
    .t-logo img {
        padding-top: 0;
    }
}

.t-search {
    background-color: #f1f2f4;
    width: 600px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.form-search {
    width: 100%;
    padding: 0 6px;
    flex-wrap: nowrap !important;
    flex-direction: row;
}

.search-submit {
    color: #9e9fb1;
    background: transparent;
    border: none;
}

    .search-submit svg {
        width: 20px;
        height: 20px;
        display: inline-block;
    }

.search-inner-content {
    flex: 0 0 93%;
    max-width: 93%;
}

.search-query {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 2.17;
    padding: 0 8px;
    width: 100%;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    outline: none;
    margin-bottom: 0;
}

.LoginBtn, .LoggedIn {
    border: 1px solid #e0e0e6;
    background-color: transparent;
    padding: 6px 16px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.LoggedIn {
    display: none;
}

.LoginBtn {
    display: block;
}

    .LoginBtn .shopDS-svg-icon svg {
        width: 17px;
        height: 17px;
        stroke: #3f4064;
        margin-left: 8px;
    }

.line-24 {
    display: block;
    width: 1px;
    height: 24px;
    margin: 0 12px;
    background-color: #e0e0e6;
}

#BasketCount {
    position: absolute;
    right: 0;
    top: -10px;
    display: block;
    text-align: center;
    background-color: #4676ed;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 5px 5px 3px;
    line-height: 1;
    min-width: 18px;
}

.ContactUsButton {
    border: none;
    fill: #A3A3A3 !important;
}

.ContactUsButton, .menuspin {
    cursor: pointer;
    background: 0 0;
}

.UNmaeImgBox .TextLevel1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.ContactUsBox_menu {
    margin-top: 1px;
    text-align: left;
    min-width: 239px;
    right: auto;
    position: absolute;
    display: none;
    z-index: 99;
    padding: 15px 0 0;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
    border-radius: 8px;
    background: #f5f7fa;
    left: 0;
}

.ContactUsTitle {
    font-size: 14px;
    font-weight: 800;
    display: block;
    color: #3f4064;
}

.ContactUsBox_menu2 {
    border-radius: 0 0 8px 8px;
    text-align: left;
    width: 100%;
    background: #fff;
    padding: 0 15px;
    margin: 0;
    list-style: none !important;
}

.ContactUsBox_menu2, .TextLevel4, .create_login, .goToPanel {
    white-space: nowrap;
}

    .ContactUsBox_menu2 > li > a {
        display: block;
        border-bottom: 1px solid #f5f7fa;
        color: inherit;
        transition: .14s;
        font-size: 14px;
        vertical-align: middle;
        padding: 8px 0;
        text-align: right;
    }

    .ContactUsBox_menu2 li:hover a, .ContactUsBox_menu2 li:hover a:not([href]):not([class]) {
        color: #d2aa52;
        text-decoration: auto;
    }

        .ContactUsBox_menu2 li:hover a svg {
            fill: currentColor;
        }

#UserProfile_image {
    width: 25px;
    height: 25px;
    border-radius: 99px;
    margin-left: 8px;
}

.d-flx {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.j-center {
    justify-content: center;
}

.LoginBtn, .LoggedIn {
    border: 1px solid #e0e0e6;
    background-color: transparent;
    padding: 6px 16px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.LoginBtn {
    display: block;
}

.cart-icon {
    position: relative;
}

.LoginBtn .shopDS-svg-icon svg {
    width: 17px;
    height: 17px;
    stroke: #fff;
    fill: #fff;
}

.shopDS-svg-icon, #usersNames {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 2.17;
    position: relative;
}



.line-24 {
    display: block;
    width: 1px;
    height: 24px;
    margin: 0 12px;
    background-color: #e0e0e6;
}

#BasketCount {
    position: absolute;
    right: -4px;
    top: -14px;
    display: block;
    text-align: center;
    background-color: #ee0480;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 5px 5px 3px;
    line-height: 1;
    min-width: 18px;
    z-index: 1;
}

.j-between {
    justify-content: space-between;
}

.callUs svg {
    width: 17px;
    height: 17px;
    display: inline-block;
}





.navbar {
  display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    position: fixed;
    z-index: 1000;
    left: 0;
    width: 100%;
    background: #212121;
    transition: background 0.3s ease-in-out;
}

.logo-search-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    width: 70px;
    cursor: pointer;
}

.search-bar-wrapper {
    flex: 0 1 400px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .search-bar:focus {
        outline: none;
        border-color: #ff6b6b;
        box-shadow: 0 0 10px rgba(255,107,107,0.2);
    }

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}


.auth-btn {
    color: white;
    cursor: pointer;
    font-weight: 600;
    background: var(--theme-color);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 5px;
    transition: transform 0.3s;
}

    .auth-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }



.shopDS-svg-icon svg {
    width: 35px;
    height: 40px;
    display: inline-block;
}




.navbar-wrapper {
    position: relative;
}

    .navbar-wrapper a {
        text-decoration: none;
        color: inherit;
        font-size: 1rem;
    }

#hamburgerMenu {
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.navbar-wrapper nav {
    position: relative;
    width: 100%;
    z-index: 100;
}

.fly-navbar {
  display: flex;
    list-style: none;
    padding: 10px;
    gap: 30px;
    position: relative;
    justify-content: center;
    margin: 0;
    color: #fff;
}

    .fly-navbar li {
        position: relative;
        line-height: normal;
    }

.fly-nested {
    padding: 0px;
    font-size: 14px;
    width: 250px;
    position: absolute;
    list-style: none;
    border-top: 5px solid var(--theme-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px 0 #0000002e;
    background-color: #fff;
    top: 45px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

    .fly-nested li {
        display: flex;
        justify-content: space-between;
        position: relative;
        padding: 7px 10px;
        word-wrap: break-word;
        line-height: normal;
    }

    .fly-nested .fly-nested {
        top: -5px;
        right: 101%;
    }

    /* Show submenu on hover */
    .fly-navbar li:hover > .fly-nested,
    .fly-nested:hover {
        opacity: 1;
        visibility: visible;
    }

    /* Rotate icons */
    .fly-navbar span i.fa-chevron-down,
    .fly-nested span i.fa-chevron-right {
        transition: transform 0.3s ease;
    }

    /* This CSS ensures only the clicked/active item rotates its icon */
    .fly-navbar li.active > span i.fa-chevron-down,
    .fly-nested li.active > span i.fa-chevron-down {
        transform: rotate(180deg);
    }

.fly-navbar span {
    display: flex;
    align-items: center;
    width: 100%;
}

    .fly-navbar span i {
        font-size: 11px;
        margin: 0 5px;
    }


/* First level */
.fly-navbar > li:hover {
    color: var(--theme-color);
    transition: color 0.5s ease;
    border: none;
}

/* Second level and beyond */
.fly-navbar li:hover {
    transition: color 0.5s ease;
}

/* Apply border only if <li> contains nested <ul> */
.fly-nested li:hover:has(ul.fly-nested) {
    color: var(--theme-color);
    border-left: 3px solid var(--theme-color);
    transition: color 0.5s ease;
}

/* Apply color only if <li> does not contain nested <ul> */
.fly-navbar li:hover:not(:has(ul.fly-nested)) {
    color: var(--theme-color);
    transition: color 0.5s ease;
}

/* Reset colors for nested levels to ensure inherited styles don't affect them */
.fly-navbar li > .fly-nested li {
    color: initial;
    border-left: none; /* Ensure no border by default */
}




@media (max-width: 999px) {
    body {
        overflow-x: hidden;
    }

    .navbar-wrapper {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 40%;
        transition: all 0.3s ease;
        z-index: 999;
        background-color: #fff;
        overflow-y: scroll;
    }

    .navbar-open {
        right: 0;
    }

    .fly-navbar {
        flex-direction: column;
        padding: 0;
        gap: 0;
        margin-top: 30px;
        color: #1e1e1e;
    }

        .fly-navbar li {
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            padding: 20px 20px;
            border-bottom: 1px solid #d7d7d7;
        }

        .fly-navbar > li:hover {
            color: var(--theme-color);
            transition: color 0.5s ease;
            border-bottom: 1px solid #d7d7d7;
        }

    #hamburgerMenu {
        display: inline-block;
        position: fixed; /* Fixed positioning to ensure it's above the overlay */
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001; /* Higher than the overlay */
    }

    .overlay.active {
        display: block;
    }

    .fly-nested {
        display: none;
        position: static;
        display: none;
        width: 100%;
        list-style: none;
        padding: 0;
        flex-direction: column;
        box-shadow: none;
        background-color: #f5f5f5;
        overflow-y: auto;
        border: none;
        margin: 18px 0 0 0;
        opacity: 1;
        visibility: visible;
        border-radius: 10px;
    }

    .navbar-wrapper .show {
        display: flex !important;
    }

    .fly-nested li {
        display: flex;
        justify-content: space-between;
        border: none;
        position: relative;
        margin: 0;
        padding: 20px;
        word-wrap: break-word;
    }
}

@media (max-width: 600px) {
    .navbar-wrapper {
        width: 60%;
    }
}

@media (max-width: 400px) {
    .navbar-wrapper {
        width: 75%;
    }
}
