/* Brand Filter Bar */

.mm-brand-filter-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.mm-brand-filter-btn {
    color: #333333;
    padding: 2px 8px 2px 8px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #E5E5E5;
    border-radius: 4px 4px 4px 4px;
}

.mm-brand-filter-btn:hover {
    border-color: #000000;
}

.mm-brand-filter-btn.active {
    color: #000000;
    border-color: #FFEB00;
}

.mm-brand-filter-btn.active.all {
    background: #ffeb00;
    border-color: #ffeb00;
    color: #000000;
    font-weight: 700;
}

.mm-brand-filter-btn span {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
}

/* Main Container */
.mm-product-grid-container {
    display: flex;
    gap: 20px;
}

/* Filters Section */
.mm-filters-section {
    width: 320px;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 8px;
    height: fit-content;
    flex-shrink: 0;
}


.mm-product-grid-container .mm-filters-section h3{
    font-size: 14px;
}
.mm-filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mm-filter-group h3 {
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    /* margin: 0 0 15px; */
    color: #333;
}

/* Search Filter */
.mm-search-filter {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mm-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mm-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.mm-search-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.mm-search-input::placeholder {
    color: #999;
}

.mm-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mm-search-clear:hover {
    color: #000;
}

.mm-search-clear i {
    font-size: 16px;
}

/* Price Filter */
.mm-price-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.mm-price-input {
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2em;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.mm-price-input span {
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    display: flex;
    align-items: center;
    color: #212529;
    border-right: 1px solid #ced4da;
}

.mm-price-input input {
    margin: 4px;
    padding: 0;
    width: 100%;
    min-height: auto;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: normal;
    border: none;
    outline: none;
    background: none;
}

/* Price Slider Styles */
#mm-price-slider {
    margin: 16px 8px !important;
    margin-bottom: 20px;
}

#mm-price-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: -6px;
    margin-left: -8px;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
}

#mm-price-slider .ui-slider-range {
    background: #ffeb00;
}

.ui-slider-horizontal {
    height: 4px;
    background: #ddd;
    border: none;
}

.ui-widget.ui-widget-content {
    border: unset !important;
    margin-top: 4px !important;
    min-width: unset !important;
    padding: initial !important;
    box-shadow: none !important;
}

/* Products Grid */
.mm-products-grid {
    flex-grow: 1;
}

.mm-products-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.mm-products-grid.columns-2 .mm-products-container { 
    grid-template-columns: repeat(2, 1fr); 
}
.mm-products-grid.columns-3 .mm-products-container { 
    grid-template-columns: repeat(3, 1fr); 
}
.mm-products-grid.columns-4 .mm-products-container { 
    grid-template-columns: repeat(4, 1fr); 
}

/* Product Item */
.mm-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 30px 10px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mm-product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mm-product-item.is-visible {
    opacity: 1;
    transform: translateY(0px);
}

.mm-product-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mm-product-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mm-product-image {
    position: relative;
    text-align: center;
}

.mm-product-image img {
    width: 75%;
    height: auto;
    border-radius: 4px;
}

/* Stock Overlay Styles */
.mm-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 8px;
    border-radius: 8px 0px 8px 0px;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
}

.mm-product-item:has(.mm-stock-outofstock) .mm-stock-outofstock{
    background-color: #D9D9D9 !important;
    border: #D9D9D9 !important;
}
.mm-product-item:has(.mm-stock-outofstock) .mm-product-image img{
    opacity: 0.6;
    /* filter: grayscale(1); */
}
.mm-product-item:has(.mm-stock-outofstock)  .mm-product-attributes .mm-attribute-tag {
    background-color: #D9D9D9 !important;
    color: #fff !important;
    border: #D9D9D9 !important;
}
.mm-product-details {
    padding: 10px 0;
    text-align: left;
    justify-content: start;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mm-product-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.mm-product-title a {
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* Product title wrapper for separate lines */
.mm-product-title-wrapper {
    padding: 0!important;
}

.mm-product-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4!important;
}
.mm-product-variations-text {
    font-size: 12px;
    font-weight: 500;
}
.mm-product-price {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.mm-product-variations {
    margin-bottom: 15px;
}

.mm-variation-group {
    position: relative;
    margin-bottom: 10px;
}

.mm-variation-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    position: relative;
}

.mm-variation-options::-webkit-scrollbar {
    display: none;
}

.mm-variation-options:active {
    cursor: grabbing;
}

/* Scroll Arrows */
button.mm-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #000;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    padding: 0;
}

button.mm-scroll-arrow:hover {
    background: #333;
}

button.mm-scroll-arrow.left {
    left: 0;
}

button.mm-scroll-arrow.right {
    right: 0;
}

.mm-variation-group:hover button.mm-scroll-arrow {
    opacity: 1;
}

button.mm-scroll-arrow i {
    font-size: 12px;
    color: #ffffff;
}

/* Hide arrows when not needed */
button.mm-scroll-arrow.hidden {
    display: none;
}

button.mm-variation-option {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    color: #5c5c5c;
    margin: 0;
    white-space: nowrap;
    user-select: none;
    border-bottom-width: 3px;
}

button.mm-variation-option:hover {
    background: #ffffff;
    color: #000;
    border-color: #000;
    border-bottom-width: 3px;
}

button.mm-variation-option.selected {
    background: #ffffff;
    color: #000;
    border-color: #000;
    border-bottom-width: 3px;
}

.mm-product-details-extended {
    margin-top: auto;
}

.mm-product-actions a.view-product{
    display: inline-block;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

a.button.select-options {
    display: inline-block;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* .select-options:hover {
    background: #444;
    color: #fff;
} */

.select-options.add-to-cart {
    background: #4CAF50;
}

.select-options.add-to-cart:hover {
    background: #45a049;
}

/* Disabled state for variation options */
.mm-variation-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

/* Loading state for button */
.select-options.loading {
    position: relative;
    color: transparent;
}

.select-options.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Loading state */
.mm-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Tags and Filters */
.mm-tag-filter, 
.mm-attribute-filter, 
.mm-stock-filter,
.mm-location-filter,
.mm-price-filter,
.mm-result-count {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mm-tag-list,
.mm-brand-list, 
.mm-attribute-list,
.mm-stock-list,
.mm-location-list {
    padding: 5px 0;
}

.mm-tag-item,
.mm-brand-item, 
.mm-attribute-item,
.mm-stock-item,
.mm-location-item,
.mm-availability-item,
.mm-stock-status-item {
    margin-bottom: 10px;
    margin-top: 5px;
}

.mm-tag-item label, 
.mm-brand-item label, 
.mm-attribute-item label,
.mm-stock-item label,
.mm-location-item label,
.mm-availability-item label,
.mm-stock-status-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mm-tag-item input[type="checkbox"], 
.mm-brand-item input[type="checkbox"], 
.mm-attribute-item input[type="checkbox"],
.mm-stock-item input[type="checkbox"],
.mm-location-item input[type="checkbox"],
.mm-availability-item input[type="checkbox"],
.mm-stock-status-item input[type="checkbox"] {
    margin-right: 10px;
}

.mm-tag-name, 
.mm-brand-name,
.mm-attribute-name,
.mm-location-name,
.mm-availability-name,
.mm-stock-status-name,
.mm-stock-name {
    font-family: "Montserrat", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.mm-tag-count,
.mm-brand-count,
.mm-attribute-count,
.mm-stock-count,
.mm-location-count,
.mm-availability-count,
.mm-stock-status-count,
.mm-stock-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
    text-transform: capitalize;
}

.mm-availability-count{
    display: none;
}

.mm-sort-label span:last-child{
    font-weight: 700!important;
}


/* Product Details */
.mm-product-item .mm-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 0 0;
    color: #000000;
    line-height: 1.4;
}

.mm-product-item .mm-product-tag {
    position: absolute;
    top: 30px;
    right: 10px;
    font-size: 10px;
    line-height: 1.1;
    color: white;
    background: black;
    padding: 3px 8px;
    border-radius: 8px;
}

/* Active Filters */
.mm-active-filters {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0px!important;
}

.mm-active-filter {
    cursor: pointer;
    position: relative;
    display: flex;
    margin-right: 8px;
    margin-bottom: 8px;
    font-family: "Montserrat", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 24px;
    background-color: #FFEB00;
    border-radius: 4px;
    padding: 2px 32px 2px 8px;
}

.mm-active-filter .remove {
    cursor: pointer;
    font-size: 18px;
    top: 5px;
    right: 7px;
    color: #FFFFFF;
    background-color: #000000;
    border-radius: 4px;
    padding: 0 4px;
    position: absolute;
    line-height: 1;
}

.mm-clear-filters {
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 8px;
    background-color: #F5F5F5;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Loading States */
.mm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.mm-loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.mm-filter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 5px;
}
.mm-no-results {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollable attribute lists only */
.mm-attribute-list {
    max-height: 138px;
    overflow-y: auto;
    transition: max-height 0.2s ease-out;
    padding-right: 8px; /* Add padding for scrollbar */
}

/* Custom scrollbar styling */
.mm-attribute-list::-webkit-scrollbar {
    width: 4px;
}

.mm-attribute-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mm-attribute-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.mm-attribute-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Show More/Less */
.mm-attribute-item.mm-collapsed {
    display: none;
}

.mm-show-more {
    color: #1b1b1b;
    font-size: 12px;
    text-decoration: underline;
    margin-top: 10px;
    cursor: pointer;
}

/* Load More Button */
.mm-load-more-container {
    text-align: center;
    margin-top: 30px;
}

.mm-load-more-button {
    padding: 12px 30px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.mm-load-more-button:hover {
    background-color: #444;
}

/* Utility Classes */
.mm-product-item.hidden-item {
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}


/* Disabled filter styles */
.mm-tag-item label.disabled,
.mm-brand-item label.disabled,
.mm-attribute-item label.disabled,
.mm-stock-item label.disabled,
.mm-location-item label.disabled,
.mm-availability-item label.disabled,
.mm-stock-status-item label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mm-tag-item label.disabled input,
.mm-brand-item label.disabled input,
.mm-attribute-item label.disabled input,
.mm-stock-item label.disabled input,
.mm-location-item label.disabled input,
.mm-availability-item label.disabled input,
.mm-stock-status-item label.disabled input {
    cursor: not-allowed;
}

/* Add transition for smooth opacity changes */
.mm-tag-item label,
.mm-brand-item label,
.mm-attribute-item label,
.mm-stock-item label,
.mm-location-item label,
.mm-availability-item label,
.mm-stock-status-item label {
    transition: opacity 0.3s ease;
}


/* SEARCH FORM */
/**
 * Styles for search form
 *
 * @package    Mm_Search_Product_Cat_Pages
 */

.mm-search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 400px;
    margin-left: auto;
}

/* Initial search icon */
.mm-search-container .mm-search-icon {
    background: none;
    border: none;
    font-size: 22px;
    color: #000;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mm-search-container .mm-search-icon:hover,
.mm-search-container .mm-search-icon:focus {
    color: #000;
    background-color: transparent;
}

/* Expanded search container */
.mm-search-container .mm-search-expanded {
    position: absolute;
    right: 40px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 4px;
    border: 1px solid #000;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    z-index: 5;
}

.mm-search-container  .mm-search-expanded.active {
    width: 100%;
    opacity: 1;
}

/* Search input */
.mm-search-container #mm-search-input {
    width: 100%;
    padding: 10px 50px 10px 16px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: #000;
    border: none;
    background: transparent;
    outline: none;
}

.mm-search-container #mm-search-input::placeholder {
    color: #999;
    opacity: 1;
}

/* Close button */
.mm-search-container .mm-search-close {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.mm-search-container .mm-search-close:hover,
.mm-search-container .mm-search-close:focus {
    color: #000;
    background-color: transparent;
}

/* Search results adjustment */
.mm-search-container #mm-search-results {
    position: absolute;
    top: 100%;
    right: 40px;
    width: 100%;
    background: white;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    border-radius: 4px;
    display: none;
}
.mm-search-container #mm-search-mobile-results {
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
}

.mm-search-container .mm-search-results.active {
    display: block !important;
}

.mm-search-results-wrapper {
    border: 1px solid #ddd;
}

.mm-search-results-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mm-search-results-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.mm-search-results-list li:hover {
    background-color: #f5f5f5;
}

.mm-search-results-list li:last-child {
    border-bottom: none;
}

.mm-search-results-list a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}

.mm-search-results-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.mm-search-item-info {
    flex-grow: 1;
}

.mm-search-item-info h4.mm-product-title {
    margin: 0 0 5px;
    font-size: 14px !important;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
}

.mm-search-item-info p.mm-product-price {
    margin: 0;
    font-size: 14px;
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
}

.mm-search-form-no-results {
    text-align: center;
    margin: 0px;
    padding: 10px;
    color: #666;
}

.mm-show-all-container {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.mm-show-all-link {
    text-transform: uppercase;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none;
    color: #333;
}

.mm-show-all-link:hover {
    text-decoration: underline !important;
}

.mm-search-error {
    margin: 10px;
    padding: 8px;
    background-color: #fff5f5;
    color: #e53e3e;
    border-radius: 4px;
    text-align: center;
}

/* Add these to your mm-search-product-cat-pages-public.css file */

/* Smooth transitions for filter options */
.mm-tag-item label,
.mm-brand-item label,
.mm-attribute-item label,
.mm-stock-item label,
.mm-location-item label,
.mm-availability-item label,
.mm-stock-status-item label,
.mm-filter-group {
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

/* When a filter group has no visible options, hide it completely */
.mm-filter-group:empty,
.mm-filter-group.mm-filter-empty {
    display: none;
    margin: 0;
    height: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Style for filter section when all filter groups are hidden */
.mm-filters-section.mm-no-visible-filters {
    /* Keep the section visible but indicate there are no filters */
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove empty state messages completely */

/* Adjust attribute list height when filters are hidden */
.mm-attribute-filter:has(label:visible) .mm-attribute-list {
    min-height: 30px;
}

.mm-attribute-filter:not(:has(label:visible)) .mm-attribute-list {
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Mobile Filter Sidebar Styles */
.mm-filter-toggle {
    display: none;
    position: sticky;
    z-index: 50;
    background-color: #ffeb00;
    border: 1px #ffeb00 solid;
    color: #000;
    width: 100%;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 25px;
}

.mm-filter-icon{
    /* filter: brightness(0) invert(1); */
    width:20px;
}


.mm-filter-toggle .mm-filter-label {
    line-height: 14px;
    font-size: 12px;
}


.mm-filter-toggle i {
    font-size: 20px;
    margin: 0;
}



/* Filters sidebar overlay */
.mm-filters-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mm-filters-sidebar-overlay.active {
    display: block;
    opacity: 1;
}


/* Mobile Search Popup Overlay - Matching mm-filters-sidebar-overlay style */
.mm-search-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%; /* Ensuring 100% width */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Same as filters overlay */
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mm-search-popup.active {
    display: block;
    opacity: 1;
}

/* Prevent body scrolling when popup is open */
body.mm-search-popup-open {
    overflow: hidden;
}

/* Mobile search container */
.mm-search-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.5s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin: 0;
    border-radius: 0;
}

/* Mobile search header */
.mm-search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.mm-search-popup-header h3 {
    margin: 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: black;
}

.mm-search-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

/* Mobile search form */
.mm-search-popup-form {
    padding: 0px;
}

.mm-search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.mm-search-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.mm-is-mobile #mm-search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 16px;
    border: 1px solid #1f1f1f;
    border-radius: 30px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mm-is-mobile #mm-search-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Fix for iPhone Safari bottom padding */
@supports (-webkit-touch-callout: none) {
    .mm-search-popup-container {
        padding-bottom: 70px;
    }
}


/* Results list styling */
.mm-search-results-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mm-search-results-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.mm-search-results-list li:hover {
    background-color: #f5f5f5;
}

.mm-search-results-list li:last-child {
    border-bottom: none;
}

.mm-search-results-list a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}

.mm-search-results-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.mm-search-item-info {
    flex-grow: 1;
}

.mm-search-item-info p.mm-product-price {
    margin: 0;
    font-size: 14px;
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
}

.mm-search-form-no-results {
    text-align: center;
    margin: 0px;
    padding: 10px;
    color: #666;
}

.mm-show-all-container {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.mm-show-all-link {
    text-transform: uppercase;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none;
    color: #333;
}

.mm-show-all-link:hover {
    text-decoration: underline !important;
}

.mm-search-error {
    margin: 10px;
    padding: 8px;
    background-color: #fff5f5;
    color: #e53e3e;
    border-radius: 4px;
    text-align: center;
}

/* Filters section that's also a sidebar on mobile */
@media (min-width: 1024px) {
    /* Desktop styles */
    .mm-filters-section.mm-filters-sidebar {
        /* Standard desktop styling for filters section */
        position: sticky;
        top: 50px;
        width: 320px;
        box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.1);
        padding: 16px;
        border-radius: 8px;
        height: fit-content;
        flex-shrink: 0;
        background-color: #ffffff;
    }
    
    /* Hide the mobile-only header on desktop */
    .mm-filters-sidebar-header {
        display: none;
    }
}

@media (max-width: 1023px) {
    /* Mobile styles */
    .mm-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        gap: 5px;
        top: 75px;
    }

    .mm-result-count{
        margin-bottom: 0px;
        padding:0px;
    }

    .mm-product-item{
        padding: 20px 4px 10px;
    }

    .mm-product-item .mm-product-title {
        margin: 0;
    }
    
    .mm-active-filters,.mm-clear-filtersr{
        margin-top: 10px;
    }
/* 
    .mm-active-filter:first-child{
        margin-top: 20px;
    } */

    .mm-result-count{
        padding:0 16px;
    }    

    /* Adjust the product grid container layout */
    .mm-product-grid-container {
        flex-direction: column;
    }
    
    /* Style for the filters section when it's also a sidebar */
    .mm-filters-section.mm-filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100%;
        height: 100dvh;
        background-color: #ffffff;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: left 0.5s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
    }
    
    /* Active state for the sidebar */
    .mm-filters-section.mm-filters-sidebar.active {
        left: 0;
    }
    
    /* Show the mobile header */
    .mm-filters-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
        background-color: #f9f9f9;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mm-filters-sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }
    
    .mm-filters-close {
        background: none;
        border: none;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        line-height: 0.8 !important;
    }
    
    /* Adjust padding for the filter groups in mobile */
    .mm-filters-section.mm-filters-sidebar .mm-filter-groups {
        padding: 15px;
    }
    
    /* Give more space to the products grid */
    .mm-products-grid {
        width: 100%;
    }

    .mm-search-item-info h4.mm-product-title {
        margin: 0 0 5px;
        font-size: 12px !important;
        font-weight: 500;
        color: #000;
        line-height: 1.3;
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    .mm-products-grid.columns-4 .mm-products-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .mm-product-grid-container {
        flex-direction: column;
    }

    .mm-filters-section {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .mm-products-grid.columns-3 .mm-products-container,
    .mm-products-grid.columns-4 .mm-products-container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Search Form */
    /* Expanded search container for mobile - starts hidden */
    .mm-search-container .mm-search-expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 0;
        background: #000000;
        border-radius: 0px;
        transition: height 0.3s ease, opacity 0.3s ease;
        z-index: 100;
        padding: 10px;
    }
    
    /* Active state for mobile search */
    .mm-search-container  .mm-search-expanded.active {
        top: 70px;
        height: 46px;
        opacity: 1;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Search input for mobile */

    /* Close button positioning for mobile */
    .mm-search-container  .mm-search-close {
        position: absolute;
        right: 10px;
        background: none;
        border: none;
        font-size: 16px;
        color: #666;
        cursor: pointer;
        padding: 8px;
    }

    .mm-variation-options {
        gap: 5px;
    }

    .mm-variation-option {
        padding: 4px 8px;
        font-size: 12px;
    }

    .select-options {
        padding: 8px 15px;
    }

    .mm-product-details{
        padding: 0px 4px;
        gap:8px;
    }
}

@media (max-width: 480px) {
    .mm-products-grid.columns-2 .mm-products-container,
    .mm-products-grid.columns-3 .mm-products-container,
    .mm-products-grid.columns-4 .mm-products-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .mm-product-item {
        padding: 20px 4px 10px;
    }


    .mm-product-image img {
        width: 100%;
    }

    .mm-products-container {
        gap: 5px;
    }
    .mm-product-grid-container {
        padding: 0px;
    }
    .mm-product-item .mm-product-title {
        font-size: 10px;
    }
    .mm-product-price{
        font-size: 10px;
        line-height: 13px;
        display: flex;
        flex-direction: column;
    }
    /* Stock Overlay Styles */
    .mm-stock-overlay {
        padding: 3px 4px;
    }

    .mm-product-name {
    font-size: 10px;
}

}

.mm-back-to-top {
    display: none;
    position: fixed;
    bottom: -50px;
    right: 20px;
    background-color: #000;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.mm-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 20px;
    border: 2px solid #fff;
    display: none;
}

.mm-back-to-top:hover {
    background-color: #181818;
    transform: translateY(-2px);
}

.mm-back-to-top i {
    font-size: 20px;
}

.mm-variation-label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-transform: capitalize;
    text-align: left;
    line-height: 1.1;
}

/* Badge Styles */
.mm-badge-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.mm-badge {
    padding: 6px 8px;
    border-radius: 0px 8px 0px 8px;
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.1;
    z-index: 2;
}
/* Sale Badge */
.mm-sale-badge {
    background-color: #ff4444;
}
/* Event Badge*/
.mm-event-badge {
    background-color: #990099;
}


.mm-view-mode-switcher {
    display: flex;
    margin-bottom: 15px;
}

/* Sort Dropdown Styles */
.mm-sort-container {
    display: flex;
    justify-content: flex-end;
}

/* Placement variants */
.mm-sort-desktop { 
    display: flex;
}

/* Top bar specific styles */
.mm-grid-top-bar{
    display: flex; 
    width: 100%;
    margin-bottom: 20px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
}

.mm-sort-mobile { display: none; }

.mm-sort-dropdown {
    position: relative;
    display: inline-block;
}

.mm-sort-dropdown .mm-sort-toggle {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: space-between;
    transition: all 0.2s ease;
    height: 30px;
}

.mm-sort-dropdown .mm-sort-toggle:hover {
    border-color: #999;
    background: #fff;
    color: #333;
}

.mm-sort-dropdown .mm-sort-toggle:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.mm-sort-dropdown .mm-sort-toggle i {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.mm-sort-dropdown:hover .mm-sort-toggle i,
.mm-sort-dropdown.active .mm-sort-toggle i {
    transform: rotate(180deg);
}

.mm-sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.mm-sort-dropdown:hover .mm-sort-options,
.mm-sort-dropdown.active .mm-sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 5px;
}

.mm-sort-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mm-sort-option:last-child {
    border-bottom: none;
}

.mm-sort-option:hover {
    background-color: #f5f5f5;
}

.mm-sort-option.selected {
    background-color: #f8f8f8;
    font-weight: 600;
}

.mm-sort-check {
    color: #000;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mm-sort-option.selected .mm-sort-check {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    .mm-sort-container {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    /* Hide desktop sort, show mobile sort inside sidebar */
    .mm-sort-desktop { display: none; }

    .mm-sort-mobile { 
        display: block;
        padding: 0 16px;
     }

    .mm-sort-mobile .mm-sort-toggle {
        display: flex!important;
    }
    
    .mm-sort-dropdown .mm-sort-toggle {
        min-width: 150px;
        width: 100%;
        font-size: 12px;
        padding: 6px 12px;
        display: none;
    }

    .mm-sort-dropdown{
         width: 100%;
    }
    
    .mm-sort-option {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* On mobile, still use click for better touch interaction */
    .mm-sort-dropdown:hover .mm-sort-options {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
    }
    
    .mm-sort-dropdown.active .mm-sort-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .mm-sort-container {
        justify-content: stretch;
    }
    
    .mm-sort-dropdown {
        width: 100%;
    }
    
    .mm-sort-dropdown .mm-sort-toggle {
        width: 100%;
        min-width: auto;
    }
    
    .mm-sort-options {
        right: 0;
        left: 0;
        width: 100%;
    }
}

/*  Toggle Switch  */

.toggleSwitch span span {
    display: none;
}  
  
.toggleSwitch {
    display: inline-block;
    height: 18px;
    position: relative;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    width: 200px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 50px;
    height: 34px;
}

.toggleSwitch * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.toggleSwitch label,
.toggleSwitch > span {
    line-height: 20px;
    height: 20px;
    vertical-align: middle;
}

.toggleSwitch input:focus ~ a,
.toggleSwitch input:focus + label {
    outline: none;
}

.toggleSwitch label {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
}

.toggleSwitch input {
    position: absolute;
    opacity: 0;
    z-index: 5;
}

.toggleSwitch > span {
    position: absolute;
    left: 0;
    width: calc(100% - 6px);
    margin: 0;
    text-align: left;
    white-space: nowrap;
    margin: 0 3px;
}

.toggleSwitch > span span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: block;
    width: 50%;
    margin-left: 50px;
    text-align: left;
    font-size: 12px;
    width: auto;
    left: 0;
    top: -1px;
    opacity: 1;
    width: 40%;
    text-align: center;
    line-height: 34px;
}

.toggleSwitch a {
    position: absolute;
    right: 50%;
    z-index: 4;
    display: block;
    top: 3px;
    bottom: 3px;
    padding: 0;
    left: 3px;
    width: 50%;
    background-color: #ffeb00;
    border-radius: 50px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toggleSwitch > span span:first-of-type {
    color: #000;
    opacity: 1;
    left: 0;
    margin: 0;
    width: 50%;
    font-weight: 700;
}

.toggleSwitch > span span:last-of-type {
    left: auto;
    right: 0;
    color: #999;
    margin: 0;
    width: 50%;
}

.toggleSwitch > span:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: -2px;
    border-radius: 30px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.toggleSwitch input:checked ~ a {
	left: 3px; /* Move it to the left when checked */
}
.toggleSwitch input:checked ~ span span:first-of-type {
	color: #000; /* Enabled label */
    font-weight: 700;
}
.toggleSwitch input:checked ~ span span:last-of-type {
	color: #999; /* Disabled label */
    font-weight: 500;
}


.toggleSwitch input:not(:checked) ~ a {
	left: calc(50% - 3px);
}
.toggleSwitch input:not(:checked) ~ span span:first-of-type {
	color: #999;
    font-weight: 500;

}
.toggleSwitch input:not(:checked) ~ span span:last-of-type {
	color: #000;
    font-weight: 700;
}

/* Switch Sizes */
.toggleSwitch.large {
    width: 60px;
    height: 27px;
}

.toggleSwitch.large a {
    width: 27px;
}

.toggleSwitch.large > span {
    height: 29px;
    line-height: 28px;
}

.toggleSwitch.large input:checked ~ a {
    left: 41px;
}

.toggleSwitch.large > span span {
    font-size: 1.1em;
}

.toggleSwitch.large > span span:first-of-type {
    left: 50%;
}

.toggleSwitch.xlarge {
    width: 80px;
    height: 36px;
}

.toggleSwitch.xlarge a {
    width: 36px;
}

.toggleSwitch.xlarge > span {
    height: 38px;
    line-height: 37px;
}

.toggleSwitch.xlarge input:checked ~ a {
    left: 52px;
}

.toggleSwitch.xlarge > span span {
    font-size: 1.4em;
}

.toggleSwitch.xlarge > span span:first-of-type {
    left: 50%;
}

/* Collapsible Filter Group Styles */
.mm-filter-group .mm-filter-group-content {
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.mm-filter-group.collapsed .mm-filter-group-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.mm-filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.mm-filter-collapse-toggle i {
  transition: transform 0.3s ease;
}

.mm-filter-group.collapsed .mm-filter-collapse-toggle i {
  transform: rotate(-180deg);
}

.mm-filter-collapse-toggle {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #333;
}

/* Testing Mode Styles */
.mm-testing-info {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 4px;
  padding: 8px 2px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  z-index: 10;
}
.mm-tags-stock{
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.mm-testing-tags{
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #000;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.mm-testing-tags{
    background-color: #000;
    color: #fff;
}

.mm-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mm-testing-locations {
  /* Location label styling */
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #000;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 500;
  color: #333;
}

/* Stock status background colors */
.mm-stock-instock {
  background-color: #000 !important; /* Green for In Stock */
  border-color: #000 !important;
  display: none;
}

.mm-stock-outofstock {
  background-color: #000 !important; /* Red for Out of Stock */
  border-color: #000 !important;
    z-index: 20;
}

.mm-stock-onbackorder {
  background-color: #000 !important; /* Yellow for On Backorder */
  border-color: #000 !important;
  z-index: 20;
}

.mm-testing-info strong {
  display: none;
}

/* Mobile responsive for testing info */
@media (max-width: 1023px) {
  .mm-testing-info {
    font-size: 9px;
    padding: 4px;
  }
}

/* Debug styles */
.mm-testing-debug {
  margin-top: 8px;
  padding: 6px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  font-size: 10px;
  color: #856404;
  word-break: break-all;
}

/* Search Filter Styles */
.mm-search-filter {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.mm-search-input-wrapper {
  position: relative;
  margin-bottom: 0;
}


.mm-filter-group .mm-search-input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #ddd !important;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Montserrat", Sans-serif;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mm-filter-group .mm-search-input:focus {
  outline: none;
  border-color: #000 !important;
}

.mm-search-input::placeholder {
  color: #999;
}

.mm-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mm-search-clear:hover {
  background-color: #f0f0f0;
  color: #333;
}

.mm-search-clear i {
  font-size: 12px;
}

/* Search filter active state */
.mm-search-filter.has-search .mm-search-input {
  border-color: #0073aa;
  background-color: #f8f9fa;
}

/* Product Attributes Tags */
.mm-product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    /* justify-content: center; */
    border-top: 1px solid #e4e4e4;
    padding-top: 8px;
}

.mm-attribute-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #000000;
    text-transform: capitalize;
}

/* Highlighted condition attribute */
.mm-attribute-tag-condition {
    color: #000;
    font-weight: 600;
    border-color: #000;
}

/* Condition-specific background colors */
.mm-attribute-tag-condition.mm-condition-new {
    background-color: #ffeb00;
}

.mm-attribute-tag-condition.mm-condition-pristine {
    background-color: #FFAB00;
}

.mm-attribute-tag-condition.mm-condition-mint {
    background-color: #004E32;
    color: #FFFFFF;
}

.mm-attribute-tag-condition.mm-condition-satisfactory {
    background-color: #BCD3EC;
}

/* Mobile responsive for attribute tags */
@media (max-width: 1023px) {
    .mm-product-attributes {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .mm-attribute-tag {
        font-size: 7px;
        padding: 2px 5px;
    }

    .mm-product-link{
        gap:8px;
    }
    

}