.admin-bar.vendor-layout.vendor-bar #marketplace-sidebar {
    top: 64px;
    height: calc(100vh - 64px);
}
.vendor-layout.vendor-bar #marketplace-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}
.vm-vendor-bar{
    display: flex;
    background-color: #202020;
    color: #fff;
    height: 32px;
    padding:0.5rem;
    font-size: 0.8rem;
}
.vendor-layout .vm-vendor-bar{
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 0;
    right: 0;   
}

.vendor-layout.admin-bar .vm-vendor-bar{
    top: 32px;
}
.vendor-layout.admin-bar.vendor-bar #marketplace-section-header{
    top: 64px
}
.vendor-layout.vendor-bar #marketplace-section-header{
    top: 32px
}
.vendor-layout.vendor-bar #marketplace-main {
    margin-top: 32px;
}
.vm-vendor-bar-nav{
    display: flex;
    gap: 1rem;
    flex:1;
}
.vm-vendor-bar-nav li{
    cursor: pointer;
}
.vm-vendor-bar .avatar {
    width: 30px;
    height: 30px;
}
.vm-vendor-bar .current-user-entity {
    padding: 0;
}
.vm-vendor-bar .user-entity-dropdown, .vm-vendor-bar .user-entity-dropdown ul.vm-current-user {
    background-color: #202020;
}
.vm-vendor-bar .user-entity-selector{
    display: none;
}
.vendor-layout .vm-vendor-bar .user-entity-selector{
    display: flex;
}
/*menu*/
#vm-vendor-header-menu li{
    cursor: pointer;
}
.vm-vendor-header-menu-slug-notice{
    display:none;
}

/*popup*/
#vendor-setting-popup{
    position: fixed;
    top:0;
    right:0;
    left:0;
    z-index: 1000;
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: row;
    height: 100vh;
}
#vendor-setting-popup h2{
    display: block;
    position: relative;
    font-size: 1rem;
}

#vendor-setting-popup hr{
    border: solid 1px #ddd;
    margin: 0.7rem 0;
}

#vm-vendor-setting-menu li{
    padding:1rem;
    border-bottom: solid 1px #ddd;
}
#vendor-setting-popup .vm-form-group-content{
    display: none;
}
#vendor-setting-popup-sidebar, #vendor-setting-popup-right{
    height: 100%;
    overflow: scroll;
}

#vendor-setting-popup-sidebar{
    width: 40%;
    padding: 1rem;
    border-right: 1px solid #ddd;
}
#vendor-setting-popup-right #marketplace-section-header{
    position: relative;
    top: inherit;
}
#vm-vendor-page-settings.active{
    width: 30%;
    position: fixed;
    left:0;
    z-index: 1000;
    background-color: #fff;
    overflow: scroll;
    height: calc(100vh - 50px);
    padding: 1rem;
}
.vendor-bar #vm-vendor-page-settings.active{
    top: 82px;
    height: calc(100vh - 50px - 32px);
}
.admin-bar #vm-vendor-page-settings.active{
    top: 114px;
    height: calc(100vh - 32px - 32px - 50px);
}
#marketplace-main.vm-vendor-page-settings-active{
    margin-left:30%;
}

.vm-vendor-subpage-listings li{
    display: flex;
    justify-content: space-between;
    margin-bottom:0.8rem;
    padding-bottom:0.8rem;
    border-bottom: solid 1px #ddd;
    position: relative;
}
.vm-vendor-subpage-listings li::after {
    content: "\f054"; /* FontAwesome down chevron */
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    position: absolute;
    right: 10px;
    transition: transform 0.3s;
}

/*header*/
.marketplace-contact-name .avatar{
    width: 80px;
    height: 80px;
    margin-top: 3rem;
}

/*front page*/
.vm-vendor-page-front-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff; 
    padding: 2rem;
    margin: 1rem; 
    border-radius: 1rem;
}

#vendor-page h1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}
#vendor-page #vendor-banner{
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    
}
#vm-hub-page-front #vendor-page #vendor-banner{
    height: 50vh;
}
.vendor-banner-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
#vendor-page .vendor-slogan{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    font-weight: 500;
    text-transform: uppercase;

}
#vendor-page .vendor-main {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 56rem;
    margin: auto;
      margin-top: auto;
      margin-bottom: auto;
    margin-top: auto;
    margin-bottom: auto;
    margin-bottom: 23vh;
    background-color: #fff;
    border-radius: 0.8rem;
    padding: 2rem;
  }
#vendor-page .market-subcategories-grid{
    width:auto;
    margin-top: 1rem;
}
#vendor-layout #vendor-footer{
    display: flex;
    flex-direction: column;
    padding: 3rem;
    padding-bottom: 5rem;
    justify-content: center; /* horizontal centering */
    align-items: center;
}
#vendor-footer .avatar {
    width: 100px;
    height: 100px;
}
#vendor-footer .messenger-popup-form-button-wrapper{
    background-color: transparent;
}

.vm-vendor-page-front-post-wrapper{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 700px;
    min-height: 100vh;
    justify-content: center; /* horizontal center */
    align-items: center;
    
}
.vm-vendor-page-front-post-header{
    
}
.vm-vendor-page-front-post-wrapper .market-feed-post{
    margin:0;
}
#vm-vendor-page-front-event-upcoming{
    width: 50rem;
    color: #000;
}
#vm-vendor-page-front-event-right{
   
}

#vm-vendor-page-front .post-main, #vm-hub-page-front .post-main {
    margin: auto;
    background-color: transparent;
}
#vm-vendor-page-front .post-content, #vm-hub-page-front .post-content{
    width: 100%;
}
/*product*/
#vendor-subpage-product .product .content-layout {
    background-color: transparent;
}
#vm-product-archive{
    display: flex;
    flex-direction: column;
}
#vm-product-archive .vm-product-archive-header{
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;
    gap: 1rem;
    margin-left: 4rem;
    padding: 0 1rem;
}
#vm-product-archive .market-subcategories-grid{
    width: 100%;
    margin:auto;
}
#vm-product-archive aside #featured-image{
    width:100%;
}
.vendor-subpage-products-wrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
}
.vendor-subpage-products-wrapper h2{
    text-align: center;
}
.vendor-subpage-products{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
    gap: 0.4rem;
    padding:1rem;
    
}

.vendor-subpage-products .product, #vendor-subpage-product .product{
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
}
#vendor-subpage-product-content{
    margin: 3rem auto;
}
#vendor-subpage-product .vendor-subpage-products{
    background-color: #dfe1df;
}
#vendor-footer{
    padding: 3rem 0;
}
#market-vendor-footer-about{
    width: 50rem;
    margin: auto;
    margin-top: auto;
    margin-bottom: auto;
    margin-bottom: 0;
    margin-top: 2rem;
}
@media (max-width: 1024px) {
    #vm-vendor-page-front-event-wrapper {
        width: 100%;
        flex-direction: column;
    }
    .vm-vendor-page-front-section {
        min-height: auto;
    }
    #vm-vendor-page-front-event-upcoming {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .vendor-layout.vendor-bar #marketplace-main {
        margin-top: 0;
    }
    .vendor-layout .vm-vendor-bar {
        position: relative;
    }
    .vendor-layout.admin-bar .vm-vendor-bar {
        top: 0;
    }
    .vm-vendor-bar{
        height: auto;
    }
    .vendor-bar .vm-vendor-bar-nav {
        flex-direction: column;
    }
    .vendor-layout #marketplace-section-header {
        position: sticky;
        top: 0;
    }
    .vendor-layout.vendor-bar #marketplace-section-header {
        position: sticky;
        top: 0;
    }
    .vendor-layout.admin-bar.vendor-bar #marketplace-section-header {
        position: sticky;
        top: 0;
      }
    .vendor-layout .header, .vendor-layout #marketplace-left-aside{
        display: flex;
    }
    .vendor-layout .header{
        position: relative;
    }
    .vendor-layout .market-expand-menu{
        display:none;
    }
    #vendor-page #vendor-banner, #vm-hub-page-front #vendor-page #vendor-banner{
        height: 60vh;
    }
    .vm-vendor-page-front-section .market-subcategories-grid{
        width: 100%;
    }
    #vendor-page .vendor-slogan {
        font-size: 1.3rem;
    }
    .vm-vendor-page-front-section{
        margin: 0;
        margin-bottom: 1rem;
        border-radius: 0;
        padding:0.5rem;
    }
    .vm-vendor-page-front-post-wrapper{
        width: 100%;
        min-height: auto;
    }
    .vendor-subpage-products{
        padding:0.5rem;
    }
    .vm-vendor-more-products-button{
        width: 100%;
        display: block;
        margin-bottom: 1rem;
    }
    #vm-vendor-page-front .post-content {
        padding-top: 0;
        margin-top: 0;
    }
    #vendor-subpage-product .vendor-subpage-products{
        padding: 1rem;
    }
    #market-vendor-footer-about {
        width: 90%;
    }
}