/* Mobile category fix. No desktop, homepage, shop or search overrides. */
body.tax-product_cat .sf-category-filter-fallback,
body.tax-product_cat .sf-category-filter-header { display: none; }
@media (max-width: 767px) {
    body.tax-product_cat .sf-category-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000000;
        background: rgba(0,0,0,.4);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    body.tax-product_cat .sf-category-filter-backdrop.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    :root body.tax-product_cat .woostify-sorting {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 8px 0 0 !important;
        border: 0 !important;
        box-sizing: border-box !important;
    }
    :root body.tax-product_cat .woostify-toolbar-left {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    :root body.tax-product_cat #toggle-sidebar-mobile-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 1px solid #16a34a !important;
        border-radius: 8px !important;
        background: #f0fdf4 !important;
        color: #15803d !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    :root body.tax-product_cat .woocommerce-result-count {
        display: block !important;
        flex: 1 1 auto !important;
        height: auto !important;
        min-width: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: right !important;
    }
    :root body.tax-product_cat .woocommerce-ordering,
    :root body.tax-product_cat .woocommerce-ordering select.orderby {
        width: 100% !important;
        max-width: 100% !important;
        height: 44px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    :root body.tax-product_cat #page #secondary.shop-widget {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(320px, 85vw) !important;
        max-width: 85vw !important;
        height: auto !important;
        margin: 0 !important;
        padding: 18px 16px !important;
        border: 0 !important;
        border-radius: 0 12px 12px 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 1000001 !important;
        box-shadow: 8px 0 24px rgba(0,0,0,.15) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-110%) !important;
        box-sizing: border-box !important;
    }
    :root body.tax-product_cat #page #secondary.shop-widget.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }
    :root body.tax-product_cat.admin-bar #page #secondary.shop-widget { top: 46px !important; }
    :root.sidebar-mobile-open body.tax-product_cat #woostify-overlay {
        z-index: 1000000 !important;
        background: rgba(0,0,0,.4) !important;
    }
    :root body.tax-product_cat #page #secondary > .sf-category-filter-fallback { display: block; }
    :root body.tax-product_cat #page #secondary .sf-category-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e2e8f0;
    }
    :root body.tax-product_cat .sf-category-filter-close {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        color: #334155;
        font-size: 28px;
        line-height: 1;
    }
    :root body.tax-product_cat #page #secondary .widget_price_filter .price_slider.ui-slider {
        flex: 0 0 auto !important;
        width: calc(100% - 18px) !important;
        min-width: 0 !important;
        margin: 12px 9px !important;
    }
    :root body.tax-product_cat #page #secondary .widget-title { white-space: normal !important; }
    :root body.tax-product_cat #page #secondary .price_slider_amount { flex-wrap: wrap !important; gap: 8px !important; }
:root body.tax-product_cat #main ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 10px 12px 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 56, 57, 0.22), 0 2px 6px rgba(1, 138, 0, 0.18) !important;
    border: 1.5px solid rgba(0, 56, 57, 0.18) !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
:root body.tax-product_cat #main ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(0, 56, 57, 0.38), 0 6px 16px rgba(1, 138, 0, 0.32) !important;
    border-color: #018a00 !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-image-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-image-wrapper > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product .tinv-wraper.tinv-wishlist,
:root body.tax-product_cat #main ul.products li.product .yith-wcwl-add-to-wishlist {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
:root body.tax-product_cat #main ul.products li.product img {
    border-radius: 8px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background: #f8fafc !important;
    padding: 2px !important;
    margin: 0 !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    display: block !important;
}
:root body.tax-product_cat #main ul.products li.product:hover img {
    transform: scale(1.04) !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 0 0 !important;
}
:root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title {
    font-size: 16.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    white-space: normal !important;
    text-align: left !important;
}
:root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title a,
:root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title a.woocommerce-LoopProduct-link {
    font-size: 16.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    display: inline !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}
:root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title a:hover {
    color: #018a00 !important;
}
:root body.tax-product_cat #main ul.products li.product .star-rating {
    margin: 3px 0 5px 0 !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}
:root body.tax-product_cat #main ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #018a00 !important;
    margin-top: 3px !important;
    margin-bottom: 8px !important;
    min-height: 28px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: left !important;
    position: static !important;
    line-height: 1.2 !important;
}
:root body.tax-product_cat #main ul.products li.product .price bdi,
:root body.tax-product_cat #main ul.products li.product .price .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #018a00 !important;
}
:root body.tax-product_cat #main ul.products li.product .price del,
:root body.tax-product_cat #main ul.products li.product .price del bdi,
:root body.tax-product_cat #main ul.products li.product .price del .woocommerce-Price-amount {
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-right: 2px !important;
    margin-bottom: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product .price ins,
:root body.tax-product_cat #main ul.products li.product .price ins bdi,
:root body.tax-product_cat #main ul.products li.product .price ins .woocommerce-Price-amount {
    text-decoration: none !important;
    color: #018a00 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-content > *:last-child {
    margin-bottom: 6px !important;
}
:root body.tax-product_cat #main ul.products li.product .product-loop-meta {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product .animated-meta {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    padding: 0 !important;
}
:root body.tax-product_cat #main ul.products li.product a.button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]),
:root body.tax-product_cat #main ul.products li.product .button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]),
:root body.tax-product_cat #main ul.products li.product a.add_to_cart_button,
:root body.tax-product_cat #main ul.products li.product a.product_type_simple,
:root body.tax-product_cat #main ul.products li.product a.product_type_variable {
    background: #033935 !important;
    background-color: #033935 !important;
    color: #76f7a4 !important;
    border: 1.5px solid #033935 !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 14px !important;
    height: 40px !important;
    line-height: 38px !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
    position: static !important;
    margin-top: auto !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(3, 57, 53, 0.25) !important;
    cursor: pointer !important;
    transform: none !important;
}
:root body.tax-product_cat #main ul.products li.product a.button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]) *,
:root body.tax-product_cat #main ul.products li.product .button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]) *,
:root body.tax-product_cat #main ul.products li.product a.add_to_cart_button * {
    color: #76f7a4 !important;
    fill: #76f7a4 !important;
    transition: all 0.25s ease !important;
}
:root body.tax-product_cat #main ul.products li.product a.button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]):hover,
:root body.tax-product_cat #main ul.products li.product .button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]):hover,
:root body.tax-product_cat #main ul.products li.product a.add_to_cart_button:hover,
:root body.tax-product_cat #main ul.products li.product a.product_type_simple:hover,
:root body.tax-product_cat #main ul.products li.product a.product_type_variable:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #033935 !important;
    border-color: #22c55e !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
    transform: translateY(-1px) !important;
}
:root body.tax-product_cat #main ul.products li.product a.button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]):hover *,
:root body.tax-product_cat #main ul.products li.product .button:not(.yith-wcqv-button):not([class*="quick-view"]):not([class*="quickview"]):hover *,
:root body.tax-product_cat #main ul.products li.product a.add_to_cart_button:hover * {
    color: #033935 !important;
    fill: #033935 !important;
}
:root body.tax-product_cat #main ul.products li.product .yith-wcqv-button,
:root body.tax-product_cat #main ul.products li.product a.yith-wcqv-button,
:root body.tax-product_cat #main ul.products li.product button.yith-wcqv-button,
:root body.tax-product_cat #main ul.products li.product .quick-view-with-icon,
:root body.tax-product_cat #main ul.products li.product .woostify-quick-view-btn,
:root body.tax-product_cat #main ul.products li.product .product-quick-view-btn,
:root body.tax-product_cat #main ul.products li.product .shopengine-quick-view-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #033935 !important;
    border: 1.5px solid #22c55e !important;
    border-radius: 50px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
    height: 38px !important;
    line-height: 36px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    transform: none !important;
}
:root body.tax-product_cat #main ul.products li.product .yith-wcqv-button *,
:root body.tax-product_cat #main ul.products li.product a.yith-wcqv-button *,
:root body.tax-product_cat #main ul.products li.product button.yith-wcqv-button *,
:root body.tax-product_cat #main ul.products li.product .quick-view-with-icon *,
:root body.tax-product_cat #main ul.products li.product .woostify-quick-view-btn *,
:root body.tax-product_cat #main ul.products li.product .product-quick-view-btn *,
:root body.tax-product_cat #main ul.products li.product .shopengine-quick-view-btn * {
    color: #033935 !important;
    fill: #033935 !important;
}
:root body.tax-product_cat #main ul.products li.product .yith-wcqv-button:hover,
:root body.tax-product_cat #main ul.products li.product a.yith-wcqv-button:hover,
:root body.tax-product_cat #main ul.products li.product button.yith-wcqv-button:hover,
:root body.tax-product_cat #main ul.products li.product .quick-view-with-icon:hover,
:root body.tax-product_cat #main ul.products li.product .woostify-quick-view-btn:hover,
:root body.tax-product_cat #main ul.products li.product .product-quick-view-btn:hover,
:root body.tax-product_cat #main ul.products li.product .shopengine-quick-view-btn:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #033935 !important;
    border-color: #16a34a !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}
:root body.tax-product_cat #main ul.products li.product .yith-wcqv-button:hover *,
:root body.tax-product_cat #main ul.products li.product a.yith-wcqv-button:hover *,
:root body.tax-product_cat #main ul.products li.product button.yith-wcqv-button:hover *,
:root body.tax-product_cat #main ul.products li.product .quick-view-with-icon:hover *,
:root body.tax-product_cat #main ul.products li.product .woostify-quick-view-btn:hover *,
:root body.tax-product_cat #main ul.products li.product .product-quick-view-btn:hover *,
:root body.tax-product_cat #main ul.products li.product .shopengine-quick-view-btn:hover * {
    color: #033935 !important;
    fill: #033935 !important;
}
    /* Shared rules for all WooCommerce product layers, including related items.
       Titles remain complete: no truncation, fixed card height or hidden data. */
    :root body.tax-product_cat #main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }
    :root body.tax-product_cat #main ul.products li.product {
        padding: 8px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        align-self: stretch !important;
    }
    :root body.tax-product_cat #main ul.products li.product .product-loop-wrapper {
        height: auto !important;
        min-width: 0 !important;
    }
    :root body.tax-product_cat #main ul.products li.product .product-loop-content {
        padding-top: 4px !important;
        min-width: 0 !important;
    }
    :root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title,
    :root body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title a {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 0 3px !important;
        min-height: 0 !important;
        overflow-wrap: anywhere;
    }
    :root body.tax-product_cat #main ul.products li.product .price {
        margin: 2px 0 4px !important;
        min-height: 0 !important;
        gap: 3px !important;
        line-height: 1.25 !important;
    }
    :root body.tax-product_cat #main ul.products li.product .price,
    :root body.tax-product_cat #main ul.products li.product .price :is(ins, bdi, .woocommerce-Price-amount) {
        font-size: 15px !important;
    }
    :root body.tax-product_cat #main ul.products li.product .price del,
    :root body.tax-product_cat #main ul.products li.product .price del :is(bdi, .woocommerce-Price-amount) {
        font-size: 12px !important;
    }
    :root:root:root:root body.tax-product_cat #main ul.products li.product :is(.button, .yith-wcqv-button, .quick-view-with-icon, .woostify-quick-view-btn, .product-quick-view-btn, .shopengine-quick-view-btn) {
        font-size: 12px !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 6px !important;
        margin-bottom: 4px !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }
    :root:root:root:root body.tax-product_cat #main ul.products li.product :is(.button, .yith-wcqv-button, .quick-view-with-icon, .woostify-quick-view-btn, .product-quick-view-btn, .shopengine-quick-view-btn) :is(span, i, svg) {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    :root body.tax-product_cat #main ul.products li.product .star-rating {
        font-size: 12px !important;
        margin: 2px 0 3px !important;
    }


    :root body.tax-product_cat #main ul.products { width: 100% !important; max-width: 100% !important; }
    :root body.tax-product_cat #main ul.products::before,
    :root body.tax-product_cat #main ul.products::after { content: none !important; }
    :root body.tax-product_cat #main ul.products li.product { float: none !important; max-width: 100% !important; }
}
