/*
Theme Name: Marketplace
Theme URI: http://example.com
Author: Your Name
Author URI: http://example.com
Description: A custom theme for a marketplace website.

Version: 1.0
*/
body{
    background-color: #f7f4ee;
    color: #1e4630;
}
.market-desktop{
    display: block;
}
.market-mobile{
    display: none;
}
.vm-radio-button.active::after, .vm-radio-button:hover::after {
    font-family: 'Font Awesome 5 Free'; /* Ensure Font Awesome is loaded */
    font-weight: 900; /* Use the solid style for Font Awesome icons */
    content: '\f111'; /* Unicode for the "solid circle" icon */
    margin-left: 8px; /* Adjust spacing between text and icon */
    color: #007bff; /* Set the color of the icon */
}

.vm-radio-button::after, .vm-radio-button.active:hover::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400; /* Regular style for Font Awesome icons */
    content: '\f10c'; /* Unicode for the "circle" icon */
    margin-left: 8px;
}

/* Close button */
.market-close{
    padding: 5px;
    width: 25px;
    height: 25px;
    text-align: center;
    margin-bottom: 10px;
    background-color: #f4f4f4 !important;
    color:#000 !important;
}

.market-close:hover,
.market-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



.marketplace-vendor-footer{
    padding-top:1rem;
    padding-bottom:1rem;
}
.marketplace-vendor-footer #contact address{
    text-align: center;
}

.marketplace-vendor-footer #contact address i{
    margin-right:5px;
}

/*header*/
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    height: 3.2rem; /* Set header height */
    z-index: 998;
    box-sizing: border-box; /* Ensures padding is included in total height */
}
.admin-bar .header{
    top:2rem;
}
.vendor-layout .header, 
.vendor-layout #marketplace-left-aside{
    display: none;
}

.header .logo {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    margin-top: 0.3rem;
}

.header .logo img{
    width: auto;
    height: 2rem;
}

.header .search-bar {
    flex: 3;
    display: flex;
    justify-content: center;
    padding-right: 1rem;
    margin-left: 0.8rem;
}

#market-ajax-search-form{
    width:100%;
}
.header .search-bar input {
    width: 100%;
    max-width: 31.25rem;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    transition: border-color 0.2s;
    height: 2rem;
    margin-bottom: 0.3rem;
  }

  .header .search-bar input:focus {
    border-color: #ccc;
  }
.market-microcopy{
    font-size: 0.5rem; 
    margin: 0; 
    display: block; 
    text-align: center;
}

.market-expand-menu img{
    width: 4rem;
    height: auto;
}
.market-expand-menu{
    position: fixed;
    z-index: 1000;
    top: 6rem;
    left: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background-color: #f4f4f4;
    padding: 0.4rem;
    display: flex;
    gap: 0.2rem;
    border-radius: 0 0.5rem 0.5rem 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.vendor-layout.vendor-bar .market-expand-menu{
    top:8rem;   
}

.admin-bar.vendor-layout .market-expand-menu{
    top: 10rem;
}

#marketplace-body{
    display: flex;
    margin-top: 3.2rem;
    
}

#marketplace-left-aside{
    display: flex;
    flex-direction: column;
    position: sticky;
    width: 3.75rem;
    min-width: 3.75rem;
    top: 3.2rem;
    height: calc(100vh - 3.2rem);
    overflow-y: auto; /* Enable vertical scrolling */
    transition: width 0.3s ease; /* Transition for the width */
    padding:10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}
#marketplace-left-aside-hidden-mobile{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
#marketplace-left-aside:hover{
    background-color: #fff;
}

body.admin-bar #marketplace-left-aside{
    height: calc(100vh - 3.2rem - 2rem);
}

#marketplace-left-aside.full, #marketplace-left-aside:hover{
    width: 20%;
    max-width: 18.75rem;
    min-width: 15rem;
}
#marketplace-left-aside #marketplace-left-aside-footer{
    display: none;
}
#marketplace-left-aside.full #marketplace-left-aside-footer, #marketplace-left-aside:hover #marketplace-left-aside-footer {
    display: block;
}
#marketplace-left-aside #marketplace-left-aside-footer{
    margin-top:auto;
    font-size: 0.8rem;
}
#marketplace-left-aside #marketplace-left-aside-footer li{
    display:inline-block;
    border-right: solid 1px #b6beb6;
    padding: 0 0.4rem;
}
#marketplace-main-wrapper {
    flex: 1;
    min-width: 0;
    transition: margin-left 1s ease, margin-right 1s ease;
}
 #marketplace-main{
    display: flex;
    flex-direction: column;
}
.market-main-content{
    flex: 1;
    max-width: 47rem;
    min-width: 0;
    padding: 20px;
}
.market-main-aside-right{
    position: sticky;
    width: 18.75rem;
    min-width: 18.75rem;
    top: 3.2rem;
    height: calc(100vh - 3.2rem);
    overflow-y: auto; /* Enable vertical scrolling */
    padding:20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.market-main-aside-right-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.market-main-aside-right-heading-undertext{
    font-size: 0.6rem;
}
/*sidebar*/
#marketplace-sidebar{
    position: fixed;
    height: 100vh;
    top:0;
    right: 0;
    width:0;
    transition: width 0.5s ease-in-out;
    overflow-y: scroll;
    z-index: 999;
    background-color: white;
    border-left: solid 1px #ccc;
    display:flex;
    flex-direction: column;
}

#marketplace-sidebar.active{
    width:100%;
    
}

body.admin-bar #marketplace-sidebar{
    top: 2rem;
    height: calc(100vh - 2rem);
}
#marketplace-sidebar-close{
    padding: 0.3rem;
    position: absolute;
}
#market-closeCart{
    padding: 5px;
    width: 25px;
    height: 25px;
    text-align: center;
    background-color: #f4f4f4 !important;
    color:#000 !important;
}
#marketplace-sidebar-wrapper{
    flex-grow:1;
}
.marketplace-sidebar-content{
    display: none;
}
.marketplace-sidebar-content.active{
    display: block;
}
.marketplace-sidebar-section-wrapper{
    padding:10px;
    padding-right:0;
}

.market-main-aside-right hr{
    border: none;
    background-color: #B6BEB6;
    height: 1px;
    margin-top: 24px;
}
.market-main-aside-right-width{
    width:300px;
}
.market-main-aside-right-height{
    position: fixed;
    top:50px;
    right:0;
    height: calc(100vh - 50px);
    overflow-y: auto;
    padding:20px;
    border-left: 1px solid #e9e9e9;
}
.admin-bar .market-main-aside-right-height{
    top:82px;
    height: calc(100vh - 82px);
}
.market-category-list{
    list-style-type: none;
}
.market-category-list li{
    margin-bottom:10px;
}
.market-category-image{
    height: 40vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.woocommerce-products-header{
    width: 1000px;
    margin-top: auto;
    padding: 0 1rem;
}
.market-product-archive-section{
    border-bottom: solid 1px #ddd;
    padding:1rem;
}
.market-product-archive-section h1{
    margin: 0;
}
.market-product-archive-section .vm-ad{
    margin:0;
}
.market-main{
    display: flex;
    justify-content: center;
}
#market-ajax-search-results {
    position: absolute;
    background: #ffffff;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 10px;
    margin-top: 10px;
}
.market-search-item{
    display:flex;
    padding: 10px;
}
#market-ajax-search-results .market-search-item-featured-image{
    padding-right:10px;
}
#market-ajax-search-results .market-search-item-featured-image img{
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.market-search-item-icon{
    font-size: 12px;
}

#market-ajax-search-results div:hover {
    background: #f0f0f0;
}
.header .profile-icon {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    font-size: 20px;
}

  .header .profile-icon .fa-comments{
    cursor: pointer;
  }
  .header .profile-icon i {
    font-size: 24px;
    transition: color 0.2s;
  }



#market-menu-sidebar a.vm-btn{
    font-size: 0.8rem; 
    display: block;
}
#market-menu-sidebar nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#market-menu-sidebar nav ul li {
    text-align: center;
}

#market-menu-sidebar nav ul li a, #market-menu-sidebar nav ul li div{
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
#market-menu-sidebar nav ul li a, #market-menu-sidebar nav ul li div, #market-menu-sidebar h1, #market-menu-sidebar h3{
    padding: 10px;
}
#marketplace-left-aside:hover h1, #marketplace-left-aside.full h1,
#marketplace-left-aside:hover h3, #marketplace-left-aside.full h3{
    padding:0;
}
.menu-item.active{
    font-weight: 600;
}
#marketplace-left-aside:hover .menu-text,
#marketplace-left-aside.full .menu-text,
#marketplace-left-aside:hover .market-subcategory p,
#marketplace-left-aside.full .market-subcategory p{
    display: inline-block; /* Show text on hover or active state */
    margin-left: 10px;
}

#marketplace-left-aside:hover h1 i,
#marketplace-left-aside.full h1 i,
#marketplace-left-aside:hover h3 i,
#marketplace-left-aside.full h3 i{
    display: none;
}
.market-menu-toggle-wrapper{
    margin-top:10px;
    display: none;
}
.market-menu-button{
    width: 100%;
    padding: 5px !important;
    margin-top: 20px;
}
#market-add{
    cursor: pointer;
}
#market-add-nav{
    display: none;
    margin-left: 10px !important;
}
#market-add-nav li{
    cursor: pointer;
}

 #market-menu-sidebar nav ul li .menu-text, #market-menu-sidebar .menu-text, #market-menu-sidebar .market-subcategory p{
    display: none; /* Hidden text when sidebar is collapsed */
}
#market-menu-sidebar .market-subcategory img{
    width:30px;
}
#market-menu-sidebar .market-subcategory a{
    padding: 0;
}
#marketplace-left-aside.full .market-subcategory a, #marketplace-left-aside:hover .market-subcategory a {
    padding-right:10px;
}
#marketplace-left-aside.full #market-menu-sidebar nav ul li a .menu-text, #marketplace-left-aside.full #market-menu-sidebar nav ul li div .menu-text{
    display: block;
}
#market-create-profile{
    display:none;
}
#marketplace-left-aside:hover #market-create-profile, #marketplace-left-aside.full #market-create-profile{
    display:block;
    padding: 1rem;
    border-radius: 0.8rem;
    margin: 1rem;
}

#market-create-profile h2{
    margin-top:0;
    margin-bottom: 1rem;
}

.archive-menu{
    list-style-type: none;
}
/* main header*/
#marketplace-section-header{
    background-color: #fff;
    color: #000;
    z-index: 2;
}
#marketplace-section-header h1{
    font-size: 16px;
    font-weight: 600;
}
#marketplace-section-header-striped{
    height:10px;
}
#marketplace-section-header nav{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
#marketplace-section-header nav ul{
    display: flex;
    gap: 0.8rem;
}
#marketplace-section-header nav ul li{
    font-size: 0.8rem;
    text-transform: uppercase;
}
#marketplace-vendor-header-hamburger{
    display: none;
}
.marketplace-back{
    margin-right:10px;
}

#market-cartIcon {
    position: relative;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000; /* Always on top */
    transition: background-color 0.3s;
}
#market-cartTotal {
    position: absolute;
    top: -8px; /* Adjust position */
    right: -8px; /* Adjust position */
    background: red; /* Badge color */
    color: white; /* Text color */
    width: 20px; /* Circle size */
    height: 20px; /* Circle size */
    border-radius: 50%; /* Makes it round */
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}
.market-cart-quantity {
    font-size:14px;
}
.market-archive-old{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
    list-style: none;
    margin: 10px !important;
    padding: 0;
}
.woocommerce .woocommerce-breadcrumb{
    margin-top: 0.3rem !important;
    margin-left: 0.6rem !important;
}
#archive-requests{
    grid-template-columns: 1fr;
}
#archive-requests .vm-add-comment, #post-requests .vm-add-comment{
    display: none;
}
.market-archive article{
    display: flex;
    flex-direction: column;
}
.market-archive .vm-comments-container{
    display: none;
}

#archive-vendor .vendors-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 10px;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}
#archive-vendor .vendors-list li .attachment-thumbnail{
    width: 100%;
    height:auto;
    border-radius: 0.8rem 0.8rem 0 0;
}

#archive-vendor .vendors-list li{
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    border-radius: 0.8rem;
}
#archive-vendor .vendors-list li .avatar{
    margin-top: -2rem;
    margin-left: 0.5rem;
}
#archive-vendor .vendors-list li h2, #archive-vendor .vendors-list li .vendor-slogan{
    font-size: 0.8rem;
}
#archive-vendor .vendors-list li .vendor-location{
    margin-top: 0px;
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
}

/*Market Feed */
.market-feed {
    margin: 20px 0;
}
.market-feed-post {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
}
.market-feed-post i {
    margin-right: 5px; 
}

.market-feed-post-excerpt ul{
    margin:0;
    padding:0;
}

.market-feed-post-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.market-feed-post-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
}

.market-feed-post-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.market-feed-post-author-info {
    font-size: 14px;
    padding-left:10px;
}
.market-feed-post-author-info i{
    margin-right:0;
}
.market-feed-post-author-info .market-feed-post-author-name{
    font-weight:600;
}
.market-feed-post-author-city {
    font-size: 14px;
    margin-right:5px;
}
.market-feed-post-text ul{
    margin-bottom: 10px;
}
.market-feed-post-text li{
    display: inline-block;
}
.market-feed-post-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.market-feed-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom:10px;
}
.market-feed-post-price{
    margin-top: 10px;
    font-weight: 600;
}
.market-feed-post-thumbnail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.market-feed-post-author-right {
    margin-left: auto;
}
.market-feed-post-footer{
    margin-top:auto;
}
/* Cart Sidebar */

.market-checkout-button{
    display: block;
    margin: 0 10px;
}

.market-cart-header{
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-radius: 10px 10px 0 0;
}
.market-cart-header h3{
    flex:1;
}
.market-cart-sidebar h2 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 400;
}


.market-cart-sidebar button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
#market-header-btn{
    text-align:right;
    margin-right:10px;
}
#market-header-btn button{
    margin-right:10px;
}
#market-header-btn .fa-brands{
    font-size: 1.5rem;
}
.marketplace-post-page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: auto;
    margin-top:20px;
    padding: 20px;
    flex-direction: row; /* Aligns the product details and sidebar side by side */
}

.post-details {
    width: 100%; /* Main product content takes up 70% of the page */
}

.related-posts {
    background-color: #fff;
}
.related-posts .woocommerce ul.products {
    grid-template-columns: repeat(1, 1fr);
}
#marketplace-section-header {
    background-color: #f4f4f4;
    min-height: 40px;
    padding: 8px;
    padding-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.admin-bar #marketplace-section-header{
    top: 82px;
}

#marketplace-section-header header{
    width: 100%;
    display: flex;                     /* Use flexbox layout */
    justify-content: space-between;    /* Space between items */
    align-items: inherit; 
    height: 30px;
    padding:5px;
}
.marketplace-contact-avatar {
    width: 30px;             /* Set width */
    height: 30px;            /* Set height */
    border-radius: 50%;      /* Make it circular */
    object-fit: cover;       /* Ensures the image covers the element without distortion */
    margin-right:10px;
}

.marketplace-contact-name{
    display: flex;
    align-items: center;
}
.marketplace-contact-name .avatar{
    margin-right:10px;
}
#marketplace-section-header .distance-vendor{
    margin-left:10px;
}
.marketplace-section-header{
    margin-bottom:10px;
}
.vendor-layout #marketplace-section-header{
    position: fixed;
    z-index: 10;
    top:0;
    right:0;
    left:0;
}
.admin-bar.vendor-layout #marketplace-section-header{
    top: 32px;
}

.marketplace-info-icon {
    margin-right: 10px;
    cursor: pointer;
}
#marketplace-page-info{
    display: none;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom:50px;
}
#marketplace-page-info-banner{
    width: 100%;  /* Set the width of the div */
    height: 50vh;
    background-size: cover; /* Ensures the image covers the entire div */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    display: none;
}
#marketplace-page-description{
    padding: 30px;
}

/* Hamburger menu styles */
#marketplace-left-aside-hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Style for the menu */
#menu {
    position: fixed; /* Fix the position relative to the viewport */
    top: 72px; /* Position the menu below the header */
    left: -300px; /* Start hidden off-screen */
    width: 300px; /* Set width to 300px */
    height: calc(100vh - 72px - 40px); /* Fill the remaining height of the viewport */
    display: block; /* Always block for width transition */
    overflow-y: auto; /* Scroll if the content overflows */
    transition: left 0.5s ease, width 0.5s ease; /* Transition for sliding effect */
}
/* Style for the menu when open */
#menu.open {
    left: 0; /* Show the menu by moving it into view */
}

/* Style for the menu when closed */
#menu.closed {
    left: -300px; /* Move the menu out of view */
}

#menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
}

#menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content-layout {
    display: flex;
    justify-content: space-between; /* Distribute space between the two columns */
    align-items: flex-start;        /* Align both sections at the top */
    width:60rem;
    max-width:80rem;
    margin:auto;
    flex-direction: column;
    margin-bottom: 50px;
    background-color: #fff;
}
.content-layout.checkout{
    width:calc(50% - 70px);
    margin:0;
    margin-top:50px;
}
.content-wrapper {
    width: 100%; 
    margin-right:10px;
}
.content-post{
    margin-top:0;
    margin-bottom:20px;
}
.content-image img{
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}
.content-info{
    padding:30px;
}
.market-feed-post .content-info{
    padding:0px;
}
.vendor-subpage-products h2, .vm-product-related h2{
    font-size: 0.9rem;
}

.vendor-subpage-products .content-info .vendor-logo, 
.vm-product-related .vendor-logo{
    margin-top: -2rem;
}
.share-facebook{
    float: right;
}
.content-info-list{
    list-style-type: none; /* Remove bullets */
    padding: 0;           /* Remove padding */
    margin: 0;            /* Remove margin */
    display: flex; 
    margin-bottom:20px;
    font-size:12px;
}

.content-info-list li{
    margin-right: 10px;
}
.market-show-more-btn{
    font-size: 0.7rem;
    font-weight: 600;
    margin: 10px 0;
    margin-bottom:30px !important; 
}
.market-show-more{
    display:none;
    margin-top:10px;
    margin-bottom: 30px;
}
.market-show-more figure{
	display: inline-block;
	width: 9.5%;
	margin-right: 0.5% !important;
}
.market-show-more hr{
    border: 1px solid #ddd;
    margin: 20px 0;
}

#marketplace-chat {
    width:100%;
}

#marketplace-chat .seller-message,
#marketplace-chat #action-buttons,
#marketplace-chat #response-section {
    margin-bottom: 20px;
}

#chat-message-wrapper{
    border-top: solid 1px #dddbdb;
    padding-top:20px;
}
.marketplace-action-button,#marketplace-add-product{
    width:calc(100% - 20px);
    margin-bottom: 10px;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
.marketplace-action-button{
    margin-left:20px;
}
#marketplace-add-product{
    margin-top:10px;
}
.marketplace-action-button::after {
    content: "\f054"; /* Unicode for Font Awesome chevron-right icon */
    font-family: "Font Awesome 5 Free"; /* Specify the font family for the icon */
    font-weight: 900; /* Font weight for solid icons */
    float: right;
}
.marketplace-stock{
    margin-bottom:20px;
}
.vm-product-additional-company{
    margin-bottom: 10px;
}
.vm-vendor-payment{
    margin-bottom:10px;
}


.inline-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    display: flex; /* Use Flexbox to display items inline */
}

.inline-list li {
    flex: 1; /* Allow items to grow equally */
    text-align: center; /* Center text inside the items */
    padding: 10px; /* Optional padding for better appearance */
    border: 1px solid #ccc; /* Optional border for visual separation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for effect */
    margin-bottom:20px;
}

.inline-list li:not(:last-child) {
    border-right: none; /* Remove border between items */
}

/*Startpage*/
.market-startpage-wrapper{
    display: flex;
    width: 100%;
    margin:30px 10px;
}
.market-startpage-left{
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 3rem;
}
.market-startpage-right{
    width:250px;
}

/*Post*/
#post-banner{
    position: relative;
    background-size: cover; /* Ensures the image covers the area */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    height: 60vh; /* Adjust the height to your needs */
    display: flex; /* Use flexbox for centering */
    justify-content: end; /* Horizontally center content */
    text-align: center; /* Ensure text is centered inside the div */
    color:#fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding:1rem;
}
/* Create the dark overlay */
#post-banner::before {
    content: ''; /* Make the pseudo-element visible */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Black overlay with 50% opacity */
    z-index: 1; /* Ensure overlay is on top of the background but behind the text */
}
#post-banner-content{
    z-index: 2;
}
#post-header-content ul{
    display: flex;
    list-style: none;
    margin-bottom:1.4rem;
    gap:0.8rem;
}
#post-header-content li, #post-header-content li a{
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
    gap:0.4rem;
}
#post-header-content li .avatar{
    width:1.3rem;
    height:1.3rem;
}

.post-main{
    position: relative;
    z-index: 2;
    width:90%;
    max-width: 56rem;
    margin: auto;
    margin-top: auto;
    margin-bottom: auto;
    margin-top: -20vh;
    margin-bottom: 23vh;
    background-color: #fff;
    border-radius: 0.8rem;
    padding: 2rem;
}

.post-content{
    border-top: 1px solid #eee;
    padding-top:20px;
    margin-top:20px;
}
.post-wrapper footer ul{
    list-style-type: none;
}
.post-wrapper footer ul li{
    display: inline-block;
    margin-right:10px;
}
.post-wrapper footer ul li i{
    margin-right:5px;
}
.post-wrapper .messenger-popup-form-button-wrapper{
    margin-top:30px;
}
.post-content .chat-message-image{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.2rem;
    margin-top:30px;
    margin-bottom:30px;
}
.post-content .chat-message-image img{
    width: 100%;
}
#footer-icons {
    display: flex;
    justify-content: space-around;
    width:100%;
    height: 40px;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
}

#footer-icons a {
    color: white;
    width: 100%;
}

#footer-icons a:hover {
    text-decoration: underline;
}
#footer-icons span{
    font-size:12px;
}
.page-wrapper{
    width: 90%;
    max-width: 46rem;
    padding: 2rem;
    background-color: #fff;
    margin: 1rem;
    border-radius: 0.8rem;
}
.page-wrapper img{
    width: 100%;
    height:auto;
}
.page-wrapper .avatar{
    width: 40px;
    height: 40px;
}
.page-wrapper-wide{
    padding: 2rem;
}

/* Woocommerce */
.market-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
#product-sidebar .market-subcategories-grid{
    display: flex;
    flex-direction: column;
    width:100%;
}
.market-subcategory a{
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease;
    padding-right: 10px;
    border-radius:30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.market-subcategory a:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* Lift effect on hover */
}

.market-subcategory img {
    width: 40px;
    height: auto;
    display: block;
    border-radius:50%;
    margin-right: 5px;
}

.market-subcategory p {
    flex: 1;
    text-align: right;
    font-size: 0.8rem;
    margin: 10px 0;
    color: #333;
    margin:0;
    font-weight:500;
    text-transform: uppercase;
}

.woocommerce-before-shop-loop{
    margin: 1rem;
}

.woocommerce-ordering .orderby{
    padding: 5px;
    border-radius: 30px;
}

/* Container for the product grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 5px; /* Spacing between grid items */
    list-style: none; /* Remove bullet points */
    margin: 10px !important;
    padding: 0;
}
.woocommerce ul.products::before {
    display: none !important;
}
/* Individual product item */
.woocommerce ul.products li.product {
    background-color: #fff; /* Add background if needed */
    border: 1px solid #eaeaea; /* Border for each product */
    border-radius: 8px; /* Optional rounded corners */
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for styling */
    transition: transform 0.2s ease-in-out; /* Hover animation */
    width: 100% !important;
    margin:0 !important;
    margin-bottom: 10px !important;
}

/* Product hover effect */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

/* Product image */
.woocommerce ul.products li.product img {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Product price */
.woocommerce ul.products li.product .price {
    font-weight: bold;
    color: #2a7ae2; /* Custom color for price */
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    background-color: #2a7ae2;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

/* Button hover effect */
.woocommerce ul.products li.product .button:hover {
    background-color: #1a5bbd;
}
/*Community archive page */
.user-search-wrapper{
    position: relative;
}
#marketplace-community-list{
    margin-top:20px;
    margin-bottom:20px;
}
#marketplace-community-list li a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1px 10px 1px 1px;
    border-radius: 30px;
    margin-bottom: 10px;
}
#marketplace-community-list li a .marketplace-community-list-follower{
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Profile page */
#market-community-profile-info{
    padding:20px;
}
#market-community-profile-info a .avatar{
    width: 130px;
    height: 130px;
}
#market-community-profile-info button{
    width: 100%;
    margin-top:1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size:0.9rem;
}
/*Dashboard */
#market-dashboard{
    display: flex;
}
#market-dashboard-menu{
    width:200px;
    padding:20px 10px;
    border-right: 2px solid #e9e9e9;
    min-height: 100vh;
}
#market-dashboard-menu ul li a, #market-dashboard-menu ul li div{
    padding: 10px;
    display: flex;
    align-items: center;
}
#market-dashboard-menu ul li.dashboard a{
    padding-left:0;
}
#market-dashboard-menu ul li div{
    cursor: pointer;
}
#market-dashboard-menu ul li .menu-text{
    margin-left:10px;
}
#market-dashboard-menu ul li h1{
    font-size: 14px;
}
.market-dashboard-menu-user{
    border-top: 1px solid #ddd;
}
.market-dashboard-menu-user .avatar{
    width: 20px;
    height: 20px;
}

#market-dashboard-content{
    flex:1;
    padding: 10px 20px;
}
.vm-dashboard-customer-order-sub-text{
    font-size: 0.6rem;
}
.vm-dashboard-product-update-wrapper{
    display: flex;
    gap: 0.5rem;
}
.vm-dashboard-product-update-wrapper div{
    display: flex;
    flex-direction: column;
}
.vm-dashboard-product-update-wrapper label, .vm-dashboard-ads-update-wrapper label{
    font-size: 0.6rem;
}
.vm-dashboard-product-update-wrapper input, .vm-dashboard-campaign-update-wrapper input{
    width: 6rem;
    height: 1rem;
    padding: 0.7rem 0.5rem;
    margin: 0;
}
.vm-dashboard-product-update-btn, .vm-dashboard-campaign-update-btn{
    font-size: 0.6rem;
    height: 1.6rem;
}
#vm-dashboard-subscription-active{
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom:2rem;
}
#vm-dashboard-subscription-active h3{
    font-size: 1.5rem;
}
#vm-dashboard-subscription-wrapper ul{
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
#vm-dashboard-subscription-wrapper ul li{
    flex-direction: column;
}
#market-main-menu-mobile{
    display: none;
}
#market-main-menu-mobile, #market-main-menu-mobile ul{
    height: 2rem;
}
#market-main-menu-mobile ul{
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3.8rem;
    display: flex;
    flex-direction: row; 
    gap: 0.5rem;
    justify-content: space-between; /* Centrera horisontellt */
    background-color: #fff;
    padding: 0.5rem 1.4rem;
}
#market-main-menu-mobile ul li a{
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrera horisontellt */
    align-items: center;
}
#market-main-menu-mobile ul li .menu-text{
    font-size: 0.7rem;
}
@media (max-width: 1024px) {
    #marketplace-left-aside-hamburger{
        display: block;
    }
    #marketplace-left-aside-hidden-mobile{
        display: none;
        position: relative;
    }
    #marketplace-left-aside{
        width:100%;
        position: relative;
        height: 2.5rem !important;
        top: auto;
        background-color: #fff;
        padding: 0.5rem;
        text-align: center;
    }
    #marketplace-left-aside.full{
        width:100%;
        min-width:100%;
        max-width:100%;
        height: auto !important;
    }
    
    #marketplace-left-aside:hover{
        width:100%;
        min-width:100%;
        max-width:100%;
    }
    #marketplace-left-aside #marketplace-left-aside-footer{
        display: block;
        margin-top:2rem;
    }
    #marketplace-body{
        flex-direction: column;
    }
    #market-main-menu-mobile{
        display: flex;
        z-index: 100;
    }
    .market-main-aside-right{
        padding: 10px;
        width: 14rem;
        min-width: 14rem;
    }
    .vm-featured-products .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #marketplace-sidebar.active {
        width: 100%;
    }
    .post-main {
        width:100%;
        max-width: 100%;
        border-radius: 0;
        padding: 0.5rem;
        margin-top:0;
        margin-bottom:0;
    }
    #post-header-content ul{
        flex-wrap: wrap;
    }
    #market-dashboard-content li{
        flex-direction: column;
    }
    .content-layout {
        width: 98%;
    }
    .content-layout .content-container.product {
        flex-direction: column;
    }
    .content-layout .content-container.product .content-image {
        width: 100% !important;
    }
    .marketplace-vendor-footer {
        padding-bottom: 5rem;
    }
}
@media (max-width: 768px) {
    body{
        margin-bottom: 2.5rem;
    }
    h1.post-title{
        font-size: 1.4rem;
    }
    .market-desktop{
        display: none;
    }
    .market-mobile{
        display: block;
    }
    
    .header .profile-icon {
        flex: none;
    }
    .market-quote-btn{
        margin: 0.5rem;
    }
    .market-quote-btn button{
        width:100%;
    }
    #market-ajax-search-results {
        left: 0;
        right: 0;
    }
    
    #marketplace-main{
        margin-bottom:3rem;
    }
    #marketplace-main-wrapper{
        padding:0;
    }

    main{
        padding: 0 0.2rem;
    }
    .market-main{
        flex-direction: column;
    }
    .page-wrapper{
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }
    .page-wrapper-wide {
        padding: 0.5rem;
    }
    #vm-checkout {
        padding: 0 !important;
    }
    
    .market-main-content {
        padding: 1rem 0;
    }
    .market-main-aside-right {
        width: 100%;
        min-width: 100%;
        position:relative;
        top: 0;
        height:auto;
    }
    .market-subcategories-grid {
        width: 100%;
    }
    .woocommerce-products-header {
        width: 100%;
        margin-top: 0;
        padding: 0 0.5rem;
        text-align: center;
        padding:10px;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        margin: 0 !important;
    }
    .market-product-archive-section {
        padding: 2rem 0;
    }
    .market-product-archive-section:first-of-type {
        padding: 0;
    }
    .marketplace-post-page {
        padding: 0;
    }
    #market-dashboard{
        flex-direction: column;
    }
    #market-dashboard-menu{
        width:100%;
        min-height: auto;
    }
    #market-dashboard-menu ul li{
        display: inline-block;
    }
    #market-dashboard-menu ul li:first-child{
        display: block;
    }
    .market-dashboard-menu-user {
        border-top: none;
    }
    
    #marketplace-section-header nav ul{
        display: none;
        position: absolute;
        z-index: 500;
        right: 0;
        width: 100%;
        flex-direction: column;
        top: 1.81rem;
        border-radius: 0 0.3rem 0.3rem 0;
    }
    #marketplace-section-header nav ul.active{
        display: block;
    }
    #marketplace-section-header nav ul li{
        border-bottom: 1px solid #fff;
        padding:0.5rem;
        width: 100%;
        cursor: pointer;
    }
    #marketplace-section-header nav ul li a{
        display: block;
        width: 100%;
    }
    #marketplace-section-header nav ul li:last-child{
        border:none;
    }
    #marketplace-vendor-header-hamburger{
        display: block;
    }
}

@keyframes cart-bounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
  
  .cart-bounce {
    animation: cart-bounce 0.4s ease forwards; /* runs once */
  }