/* ============================================================
   Virtual Mart Clean Mobile Reset v1
   Loaded after custom.css
   Goal: stable mobile layout before advanced redesign
   ============================================================ */

@media (max-width: 767px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
        background: #f5f6f8;
    }

    .page-wrapper,
    .page-main,
    .columns,
    .column.main {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .page-main {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .columns,
    .column.main,
    .sidebar,
    .sidebar-main,
    .sidebar-additional {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        display: block !important;
    }

    /* Header */
    .page-header,
    .header.content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .logo {
        max-width: 165px !important;
        margin: 6px auto 8px auto !important;
        display: block !important;
        float: none !important;
        text-align: center !important;
    }

    .logo img {
        max-width: 165px !important;
        height: auto !important;
    }

    .minicart-wrapper {
        right: 12px !important;
    }

    .block-search {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        padding: 0 8px !important;
        margin: 8px 0 10px 0 !important;
        box-sizing: border-box !important;
    }

    .block-search input {
        width: 100% !important;
        height: 40px !important;
        border: 1px solid #cfcfcf !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        padding-left: 10px !important;
        box-sizing: border-box !important;
    }

    /* Toolbar and filter */
    .toolbar,
    .toolbar-products {
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 10px 0 !important;
        padding: 8px !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        box-sizing: border-box !important;
    }

    .toolbar .toolbar-amount {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    .filter,
    .sidebar-main {
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        margin-bottom: 10px !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }

    /* Category/search product grid */
    body.catalog-category-view .products-grid .product-items,
    body.catalogsearch-result-index .products-grid .product-items,
    body.page-products .products-grid .product-items {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
        padding: 0 !important;
    }

    body.catalog-category-view .products-grid .product-item,
    body.catalogsearch-result-index .products-grid .product-item,
    body.page-products .products-grid .product-item {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 4px !important;
        margin: 0 0 8px 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    .products-grid .product-item-info,
    .product-items .product-item-info {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 360px !important;
        padding: 8px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .products-grid .product-item-photo,
    .product-items .product-item-photo,
    .products-grid .product-image-container,
    .product-items .product-image-container {
        width: 100% !important;
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
        margin: 0 auto 8px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .products-grid .product-image-wrapper,
    .product-items .product-image-wrapper {
        width: 100% !important;
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .products-grid .product-image-photo,
    .product-items .product-image-photo {
        position: static !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 122px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* Simple mobile badges: small, horizontal, not circular */
    .vm-delivery-badge,
    .vm-card-badge,
    .vm-product-badge {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 4px 7px !important;
        margin: 0 0 6px 0 !important;
        border-radius: 6px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        text-align: left !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .vm-delivery-badge:before,
    .vm-card-badge:before,
    .vm-product-badge:before {
        display: none !important;
        content: "" !important;
    }

    .vm-badge-available {
        background: #e7f8ee !important;
        color: #137a38 !important;
        border: 1px solid #b9ebcc !important;
    }

    .vm-badge-out {
        background: #fdeaea !important;
        color: #c62828 !important;
        border: 1px solid #f5b6b6 !important;
    }

    .vm-badge-special {
        background: #fff1df !important;
        color: #b95d00 !important;
        border: 1px solid #ffd3a3 !important;
    }

    .products-grid .product-item-details,
    .product-items .product-item-details {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .products-grid .product-item-name,
    .product-items .product-item-name,
    .products-grid .product.name.product-item-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        min-height: 38px !important;
        max-height: 40px !important;
        overflow: hidden !important;
        margin: 0 0 6px 0 !important;
        color: #222 !important;
    }

    .products-grid .product-item-name a,
    .product-items .product-item-name a {
        color: #222 !important;
        text-decoration: none !important;
    }

    .products-grid .price-box,
    .product-items .price-box {
        margin: 0 0 6px 0 !important;
        min-height: 44px !important;
        max-height: 50px !important;
        overflow: hidden !important;
        line-height: 1.2 !important;
    }

    .products-grid .price,
    .product-items .price,
    .price-box .price {
        font-size: 13px !important;
        line-height: 1.2 !important;
        color: #e53935 !important;
        font-weight: 900 !important;
    }

    .old-price,
    .old.price,
    .price-box .old-price .price {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    /* Quantity: keep horizontal */
    .product-item .field.qty,
    .product-item .control.qty,
    .product-item .qty-wrapper,
    .product-item .qty-changer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        margin: 0 0 7px 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .product-item .field.qty .label,
    .product-item label.label {
        display: none !important;
    }

    .product-item input.qty,
    .product-item .input-text.qty,
    .product-item .qty {
        width: 34px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        font-size: 12px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .product-item .qty-btn,
    .product-item .add1,
    .product-item .minus1,
    .product-item .increase,
    .product-item .decrease {
        width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        line-height: 28px !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .products-grid .product-item-actions,
    .product-items .product-item-actions {
        width: 100% !important;
        margin-top: auto !important;
        display: block !important;
    }

    .products-grid .action.tocart,
    .product-items .action.tocart {
        width: 100% !important;
        max-width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        padding: 0 8px !important;
        margin: 0 !important;
        border-radius: 7px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Trive Revo product slider - leave Slick positioning alone */
    .block-product-slider,
    .block-product-slider .product-slider-wrapper,
    .block-product-slider .slick-list {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .block-product-slider .product-item-info,
    .block-product-slider [class*="product-item-info"] {
        min-height: 345px !important;
        height: auto !important;
    }

    /* Product detail mobile */
    .catalog-product-view .product.media,
    .catalog-product-view .product-info-main {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 0 14px 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        background: #fff !important;
    }

    .catalog-product-view .box-tocart .action.tocart {
        width: 100% !important;
        min-height: 44px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }
}



/* ============================================================
   End Virtual Mart Clean Mobile Reset v1
   ============================================================ */


/* ============================================================
   Virtual Mart Desktop Slider Add Button Fix v1
   Fixes clipped Add to Cart buttons in Trive Revo desktop sliders
   ============================================================ */

@media (min-width: 768px) {

    .block-product-slider .product-item-info,
    .block-product-slider [class*="product-item-info"] {
        overflow: hidden !important;
        padding-bottom: 14px !important;
        box-sizing: border-box !important;
    }

    .block-product-slider .product-item-details {
        display: flex !important;
        flex-direction: column !important;
        min-height: 210px !important;
    }

    .block-product-slider .product-item-inner {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .block-product-slider .product-item-actions {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .block-product-slider .actions-primary {
        position: static !important;
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .block-product-slider .action.tocart,
    .block-product-slider button.action.tocart,
    .block-product-slider button.action.tocart.primary,
    .block-product-slider .actions-primary .action.tocart {
        position: static !important;
        display: flex !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        line-height: 38px !important;
        margin: 8px 0 0 0 !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        background: #e53935 !important;
        border: 1px solid #e53935 !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        transform: none !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
    }

    .block-product-slider .action.tocart:hover,
    .block-product-slider button.action.tocart:hover,
    .block-product-slider button.action.tocart.primary:hover {
        background: #c62828 !important;
        border-color: #c62828 !important;
    }

    /* Keep qty controls above the button */
    .block-product-slider .field.qty,
    .block-product-slider .control.qty,
    .block-product-slider .qty-wrapper,
    .block-product-slider .qty-changer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        max-width: 100% !important;
        margin: 0 0 6px 0 !important;
        overflow: visible !important;
    }
}

/* ============================================================
   End Virtual Mart Desktop Slider Add Button Fix v1
   ============================================================ */



/* ============================================================
   Virtual Mart Fresh-In Slider Button Fix v2
   Targets old custom.css rules for Whats New / Trending / Ordered
   ============================================================ */

/* Desktop and mobile */
.fresh-in .whats-new .product-item-inner,
.fresh-in .trending .product-item-inner,
.fresh-in .ordered .product-item-inner,
.fresh-in .whats-new .product-item-actions,
.fresh-in .trending .product-item-actions,
.fresh-in .ordered .product-item-actions,
.fresh-in .whats-new .actions-primary,
.fresh-in .trending .actions-primary,
.fresh-in .ordered .actions-primary {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.fresh-in .whats-new .actions-primary button.action.tocart.primary,
.fresh-in .trending .actions-primary button.action.tocart.primary,
.fresh-in .ordered .actions-primary button.action.tocart.primary,
.fresh-in .whats-new button.action.tocart.primary,
.fresh-in .trending button.action.tocart.primary,
.fresh-in .ordered button.action.tocart.primary {
    position: static !important;
    display: flex !important;
    float: none !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;

    margin: 8px 0 0 0 !important;
    padding: 0 10px !important;

    border-radius: 8px !important;
    background: #e53935 !important;
    border: 1px solid #e53935 !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: nowrap !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.fresh-in .whats-new .actions-primary button.action.tocart.primary span,
.fresh-in .trending .actions-primary button.action.tocart.primary span,
.fresh-in .ordered .actions-primary button.action.tocart.primary span {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 38px !important;
}

/* Keep qty row compact */
.fresh-in .whats-new .product-item-inner .sl-qa,
.fresh-in .trending .product-item-inner .sl-qa,
.fresh-in .ordered .product-item-inner .sl-qa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 30px !important;
    box-sizing: border-box !important;
}

.fresh-in .whats-new .product-item-inner input.qty,
.fresh-in .trending .product-item-inner input.qty,
.fresh-in .ordered .product-item-inner input.qty,
.fresh-in .whats-new .product-item-inner input#qty,
.fresh-in .trending .product-item-inner input#qty,
.fresh-in .ordered .product-item-inner input#qty {
    display: inline-block !important;
    width: 42px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 30px !important;
    box-sizing: border-box !important;
}

/* ============================================================
   End Virtual Mart Fresh-In Slider Button Fix v2
   ============================================================ */



/* ============================================================
   Virtual Mart Homepage Mobile Cleanup v1
   Fixes homepage width, hero, and tall blank slider areas
   ============================================================ */

@media (max-width: 767px) {

    /* Homepage main container */
    .cms-index-index .page-main,
    .cms-index-index .columns,
    .cms-index-index .column.main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Main homepage white sections */
    .cms-index-index .vm-widget-section,
    .cms-index-index .vm-whats-new-top,
    .cms-index-index .vm-home-section,
    .cms-index-index .fresh-in,
    .cms-index-index .block-product-slider,
    .cms-index-index .brands-sources,
    .cms-index-index .choose-store,
    .cms-index-index .category-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Hero/intro card */
    .cms-index-index .vm-gateway,
    .cms-index-index .vm-home-gateway,
    .cms-index-index .vm-intro,
    .cms-index-index .vm-hero-card,
    .cms-index-index .vm-home-hero,
    .cms-index-index .hero,
    .cms-index-index .banner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        margin: 10px auto 14px auto !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .cms-index-index .vm-gateway img,
    .cms-index-index .vm-home-gateway img,
    .cms-index-index .vm-intro img,
    .cms-index-index .vm-hero-card img,
    .cms-index-index .vm-home-hero img,
    .cms-index-index .hero img,
    .cms-index-index .banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .cms-index-index h1,
    .cms-index-index .page-title,
    .cms-index-index .vm-widget-title,
    .cms-index-index .block-title,
    .cms-index-index .title {
        font-size: 18px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        margin: 10px 0 8px 0 !important;
    }

    .cms-index-index p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* Fix large blank space in What's New / product sliders */
    .cms-index-index .vm-whats-new-top,
    .cms-index-index .vm-whats-new-top .fresh-in,
    .cms-index-index .vm-whats-new-top .whats-new,
    .cms-index-index .vm-whats-new-top .product-slider-wrapper,
    .cms-index-index .vm-whats-new-top .block-product-slider {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 18px !important;
        overflow: hidden !important;
    }

    .cms-index-index .block-product-slider .slick-list,
    .cms-index-index .block-product-slider .slick-track,
    .cms-index-index .block-product-slider .slick-slide {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    .cms-index-index .block-product-slider .product-item-info,
    .cms-index-index .block-product-slider [class*="product-item-info"] {
        min-height: 330px !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Product slider should not create huge empty areas */
    .cms-index-index .block-product-slider .product-item-photo,
    .cms-index-index .block-product-slider .product-image-container,
    .cms-index-index .block-product-slider .product-image-wrapper {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }

    .cms-index-index .block-product-slider .product-image-photo {
        max-height: 118px !important;
    }

    /* Store cards and category cards */
    .cms-index-index .vm-store-grid,
    .cms-index-index .store-grid,
    .cms-index-index .vm-category-grid,
    .cms-index-index .category-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cms-index-index .vm-store-card,
    .cms-index-index .store-card,
    .cms-index-index .vm-category-card,
    .cms-index-index .category-card,
    .cms-index-index .cat-item,
    .cms-index-index .cat-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .cms-index-index .vm-store-card img,
    .cms-index-index .store-card img,
    .cms-index-index .vm-category-card img,
    .cms-index-index .category-card img,
    .cms-index-index .cat-item img,
    .cms-index-index .cat-box img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Footer categories should not overflow */
    .cms-index-index .footer,
    .cms-index-index .page-footer,
    .cms-index-index .footer.content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   End Virtual Mart Homepage Mobile Cleanup v1
   ============================================================ */



/* ============================================================
   Virtual Mart Category Mobile 2-Column Force Fix v1
   ============================================================ */

@media (max-width: 767px) {
    body.catalog-category-view .products-grid .product-items,
    body.catalogsearch-result-index .products-grid .product-items,
    body.page-products .products-grid .product-items {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    body.catalog-category-view .products-grid .product-item,
    body.catalogsearch-result-index .products-grid .product-item,
    body.page-products .products-grid .product-item {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 4px !important;
        margin: 0 0 8px 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   End Virtual Mart Category Mobile 2-Column Force Fix v1
   ============================================================ */



/* ============================================================
   Virtual Mart Final Mobile Badge Flatten Fix v5
   Makes badges small horizontal labels instead of round circles
   ============================================================ */

@media (max-width: 767px) {
    .products-grid .vm-delivery-badge,
    .product-items .vm-delivery-badge,
    .block-product-slider .vm-delivery-badge,
    .products-grid .vm-card-badge,
    .product-items .vm-card-badge,
    .products-grid .vm-product-badge,
    .product-items .vm-product-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: 64px !important;
        max-width: 96px !important;

        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;

        padding: 0 8px !important;
        margin: 0 0 6px 0 !important;

        border-radius: 6px !important;
        box-shadow: none !important;

        font-size: 0 !important;
        line-height: 24px !important;
        text-align: center !important;

        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .products-grid .vm-delivery-badge *,
    .product-items .vm-delivery-badge *,
    .block-product-slider .vm-delivery-badge * {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .products-grid .vm-delivery-badge:before,
    .product-items .vm-delivery-badge:before,
    .block-product-slider .vm-delivery-badge:before {
        display: none !important;
        content: "" !important;
    }

    .products-grid .vm-badge-available:after,
    .product-items .vm-badge-available:after,
    .block-product-slider .vm-badge-available:after {
        content: "Available" !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 24px !important;
        color: #137a38 !important;
    }

    .products-grid .vm-badge-out:after,
    .product-items .vm-badge-out:after,
    .block-product-slider .vm-badge-out:after {
        content: "Out" !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 24px !important;
        color: #c62828 !important;
    }

    .products-grid .vm-badge-special:after,
    .product-items .vm-badge-special:after,
    .block-product-slider .vm-badge-special:after {
        content: "Special" !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 24px !important;
        color: #b95d00 !important;
    }

    .products-grid .vm-badge-available,
    .product-items .vm-badge-available,
    .block-product-slider .vm-badge-available {
        background: #e7f8ee !important;
        border: 1px solid #b9ebcc !important;
        color: #137a38 !important;
    }

    .products-grid .vm-badge-out,
    .product-items .vm-badge-out,
    .block-product-slider .vm-badge-out {
        background: #fdeaea !important;
        border: 1px solid #f5b6b6 !important;
        color: #c62828 !important;
    }

    .products-grid .vm-badge-special,
    .product-items .vm-badge-special,
    .block-product-slider .vm-badge-special {
        background: #fff1df !important;
        border: 1px solid #ffd3a3 !important;
        color: #b95d00 !important;
    }
}

/* ============================================================
   End Virtual Mart Final Mobile Badge Flatten Fix v5
   ============================================================ */



/* ============================================================
   Virtual Mart Category Card Height Fix v1
   ============================================================ */

@media (max-width: 767px) {
    body.catalog-category-view .products-grid .product-item-info,
    body.catalogsearch-result-index .products-grid .product-item-info,
    body.page-products .products-grid .product-item-info {
        min-height: 320px !important;
        height: auto !important;
        padding: 8px !important;
    }

    body.catalog-category-view .products-grid .product-item-photo,
    body.catalog-category-view .products-grid .product-image-container,
    body.catalog-category-view .products-grid .product-image-wrapper,
    body.catalogsearch-result-index .products-grid .product-item-photo,
    body.catalogsearch-result-index .products-grid .product-image-container,
    body.catalogsearch-result-index .products-grid .product-image-wrapper {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        padding-bottom: 0 !important;
    }

    body.catalog-category-view .products-grid .product-image-photo,
    body.catalogsearch-result-index .products-grid .product-image-photo {
        max-height: 112px !important;
    }
}

/* ============================================================
   End Virtual Mart Category Card Height Fix v1
   ============================================================ */

