.navbar{
    position: fixed;
    padding: 15px;
    width: 100%;
    display: flex;
    margin-top: 81.5px;
    background-color: #ffffffad;
    justify-content: space-between;
    z-index: 999; 
}
.img-box  {
    width: 140px;
    height: 50px;
    display: flex;  
    align-items: center;  
}
.img-box img{
    width: 100%;
    height: 100%;
    margin-top: 7px;
}

.menu-container {
    width: 65%; 
    display: flex;
    align-items: center;
    padding-right: 20px;
    justify-content: flex-end; 
}

.menu-icon {
    color: #080808;
    font-size: 24px;
    cursor: pointer;
    display: none; 
    margin-right: 20px;
    
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; 
    flex-direction: row;
    background-color: transparent;
    position: relative;
    right: 0;
    width: auto;
}

.nav-item {
    margin: 0;
}

.nav-item a {
    color: #080808; 
    text-decoration: none;
    display: block;
    padding: 14px 20px;
    font-size: 15px;
}

.nav-item a:hover {
    background-color: #009efa;
    color: black;
}

.show {
    display: block;
}

@media screen and (max-width: 768px) {
    .navbar{
    position: fixed;
    margin-top: 56px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
    .img-box  {
        width: 80px;
        height: auto;
        
    }
    .img-box img {
        width: 100%;
        height: 100%;
        margin-top: 2px;
    }
    .menu-icon {
        display: block;
    }
    
    .nav-list {
        display: none; 
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        right: 36px;
        width: 88%;
        height: auto;
        max-height: 83vh;
        overflow-y: auto;
        border: 2px solid green;
        border-radius: 5px;
        z-index: 1001;
    }
    

    .nav-item a {
        color: #fff; 
        text-align: center;
        text-decoration: none;
        display: block;
        padding: 14px 20px;
        font-size: 14px;
        float: none;
        text-align: left;
    }

    .nav-item a:hover {
        background-color: #ddd;
        color: black;
        font-size: 14px;
    }

    .nav-list.show {
        display: flex; 
    }
}




.dropdown-menu {
    display: none; 
    position: absolute;
    background-color: #333; 
    padding: 10px;
    list-style: none;
    top: 100%; 
    min-width: 200px;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 10px 0px;
   
}
.dropdown-menu a {
    border-bottom: 1px solid #ccc; 
    width: 80%;
    float: left;
}
.dropdown-menu li a { 
    text-decoration: none;
    display: block;
    font-size: 14px;
    color: rgba(228, 226, 226, 0.877);
}

.dropdown-menu li a:hover {
    background-color: #c5c2c2b6; 
    width: 80%;
    
}


.nav-item.dropdown:hover .dropdown-menu {
    display: block; 
}

@media screen and (max-width: 768px) {
    .nav-item.dropdown .dropdown-menu {
        position: static;
        width: 94%;
        background-color: #686767a4;
        
    }
    
    .dropdown-menu a {
        border-bottom: 1px solid #ccc; 
        width: 100%;
        
    }
    .dropdown-menu a {
    float: none;
    margin-bottom: -10px;
    }
    .dropdown-menu li a{
        color: #00ebfc; 
        width: 80%;   
    }
     
    .dropdown-menu li a:hover {
        background-color: #d1d1d1a1; 
        width: 80%;
    }
   

}


    .user-menu {
    position: relative;
    text-align: right;
    }
    
    .user-menu > a {
    color: rgba(255, 255, 255, 0.952); 
    text-decoration: none; 
    font-size: 1.2vw;
    }
    
    .user-menu .custom-dropdown-menu {
    display: none; /* إخفاء القائمة افتراضيًا */
    position: absolute;
    top: 100%;
    right: 10px;
    background-color: #363535;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: 50px;
    z-index: 1000;
    }
    
    .user-menu:hover .custom-dropdown-menu {
    display: block;
    }
    
    .user-menu .custom-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    text-align: left;
    font-size: 1vw;
    }
    
    .user-menu .custom-dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
    }

    @media (max-width: 768px) {
    .user-menu {
    text-align: right; 
    width: 60px;
    float: right;
    padding: 0px;
    background-color: none;
    }
    .user-menu > a {
    color: rgba(255, 255, 255, 0.952); 
    text-decoration: none; 
    font-size: 10px;
    padding: 8px;
    
    }
    .user-menu .custom-dropdown-menu {
    right: 0; 
    width: auto; 
    margin-top: 19px;
    }
    .user-menu > a:hover{
    font-size: 10px;
    background-color: black;
    color: white;
    }
    .user-menu .custom-dropdown-menu li a {
        font-size: 10px;
    }
    .store-icon{
    width: 80px;
    display: flex;
    gap: 15px;
    float: left;
    }
    
    }
    