    /**
    * Product Filter Styles
    * Matches the BLCO Products page design
    */

    /* Filter Section Container */
    .blco-product-filter-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    /* Category Tabs */
    .blco-category-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 30px;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 12px;
        flex-wrap: wrap;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    /* Tab Wrapper for Subcategory Dropdown */
    .blco-tab-wrapper {
        position: relative;
        display: inline-block;
    }

    .blco-tab {
        font-size: 15px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
        font-family: inherit;
        background: transparent;
        background-color: transparent;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        white-space: nowrap;
    }

    .blco-tab:hover {
        color: #333;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }

    .blco-tab.active {
        color: #333;
        font-weight: 600;
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .blco-tab.active:hover {
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    /* Subcategory Arrow */
    .blco-subcategory-arrow {
        font-size: 10px;
        margin-left: 5px;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .blco-tab-wrapper:hover .blco-subcategory-arrow {
        transform: rotate(180deg);
    }

    /* Subcategory Dropdown */
    .blco-subcategories-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        min-width: 220px;
        padding: 6px 0;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        max-height: 400px;
        overflow-y: auto;
    }

    .blco-tab-wrapper:hover .blco-subcategories-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .blco-subcategory-link {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none !important;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

    .blco-subcategory-link:last-child {
        border-bottom: none;
    }

    .blco-subcategory-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 2px;
        background-color: #000;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .blco-subcategory-link:hover {
        background-color: #f8f9fa;
        color: #333;
        padding-left: 25px;
        text-decoration: none !important;
    }

    .blco-subcategory-link:hover::after {
        transform: scaleX(1);
    }

    /* Filter Controls */
    .blco-filter-controls {
        display: flex;
        gap: 15px;
        margin-bottom: 30px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .blco-filter-controls-left {
        display: flex;
        gap: 15px;
        align-items: center;
        flex: 1;
        min-width: 250px;
    }

    .blco-filter-controls-right {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Filter Selects (Brand, Subcategory, Sort) */
    .blco-brand-dropdown-wrapper,
    .blco-subcategory-filter-wrapper,
    .blco-sort-wrapper {
        position: relative ;
    }

    .blco-filter-select,
    .blco-brand-dropdown {
        padding: 12px 40px 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        background-color: #fff;
        color: #333;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        min-width: 160px;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .blco-filter-select:hover,
    .blco-brand-dropdown:hover,
    .blco-filter-select:focus,
    .blco-brand-dropdown:focus {
        border-color: #C00024;
        outline: none;
        box-shadow: 0 2px 8px rgba(192, 0, 36, 0.15);
        transform: translateY(-1px);
    }

    /* Search Bar */
    .blco-search-wrapper {
        position: relative;
        flex: 1;
        max-width: 400px;
        min-width: 250px;
    }

    .blco-product-search {
        width: 100%;
        padding: 12px 50px 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        background-color: #fff;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .blco-product-search:focus {
        border-color: #C00024;
        outline: none;
        box-shadow: 0 2px 8px rgba(192, 0, 36, 0.15);
    }

    .blco-product-search::placeholder {
        color: #999;
    }

    .blco-clear-search {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 4px;
        z-index: 2;
    }

    .blco-clear-search:hover {
        color: #C00024;
        background: #f5f5f5;
    }

    .blco-clear-search svg {
        width: 16px;
        height: 16px;
    }

    /* Product Grid */
    .blco-product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 0;
    }
    
    /* Force 4 columns on Product Categories page (shortcode) */
    #blco-product-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
        margin-bottom: 0;
    }

    /* Category Page Product Grid Container */
    #blco-category-products-container {
        position: relative;
    }

    #blco-category-products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
        margin-bottom: 0;
    }
    
    /* Force 4 columns on category pages - override any other rules */
    body.woocommerce-page #blco-category-products-grid,
    body.woocommerce-shop #blco-category-products-grid,
    body.woocommerce #blco-category-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Override WooCommerce default product list styling on category pages */
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product {
        margin: 0 !important;
        width: 100% !important;
        float: none !important;
    }

    /* Pagination Container (outside grid) */
    #blco-filter-pagination {
        width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Product Card */
    .blco-product-card {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 15px;
        transition: border-color 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 320px;
    }

    .blco-product-card:hover {
        border-color: #C00024;
    }

    /* Product Image Wrapper */
    .blco-product-image-wrapper {
        margin-bottom: 12px;
        width: 100%;
        height: 220px;
        overflow: hidden;
        display: block;
        border-radius: 4px;
    }

    .blco-product-image-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        outline: none;
        overflow: hidden;
        border-radius: 4px;
    }

    .blco-product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0;
        padding: 0;
        transition: transform 0.3s ease;
        border-radius: 4px;
    }

    .blco-product-image-link:hover .blco-product-image {
        transform: scale(1.05);
    }

    /* Product Content */
    .blco-product-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .blco-product-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 8px 0;
        line-height: 1.4;
    }

    .blco-product-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .blco-product-title a:hover {
        color: #C00024;
    }

    .blco-product-description {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
        margin-bottom: 10px;
        flex-grow: 1;
        min-height: 50px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Product Footer */
    .blco-product-footer {
        margin-top: auto;
        padding-top: 8px;
    }

    .blco-learn-more {
        color: #C00024;
        text-decoration: underline;
        text-decoration-color: #C00024;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 0;
        margin: 0;
        line-height: 1.4;
        background: transparent;
        border: none;
        outline: none;
        box-shadow: none;
        cursor: pointer;
    }

    .blco-learn-more:hover {
        color: #a0001a;
        text-decoration-color: #a0001a;
        background: transparent;
    }

    .blco-learn-more-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .blco-learn-more:hover .blco-learn-more-arrow {
        transform: translateX(2px);
    }

    /* Load More Button */
    .blco-load-more-container {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
    }

    .blco-load-more-btn {
        background-color: #C00024;
        color: #fff;
        border: none;
        padding: 12px 40px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .blco-load-more-btn:hover {
        background-color: #a0001a;
    }

    .blco-load-more-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

    /* No Products Message */
    .blco-no-products {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        color: #666;
        font-size: 16px;
    }

    /* Loading Spinner */
    .blco-loading {
        text-align: center;
        padding: 40px;
    }

    .blco-spinner {
        border: 3px solid #f3f3f3;
        border-top: 3px solid #C00024;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

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

    /* Responsive Design */
    @media (max-width: 1200px) {
        .blco-product-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        /* Keep 4 columns on Product Categories page and category pages */
        #blco-product-grid,
        #blco-category-products-grid {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }

    @media (max-width: 968px) {
        .blco-product-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        /* Keep 4 columns on Product Categories page and category pages until smaller breakpoint */
        #blco-product-grid,
        #blco-category-products-grid {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }

    @media (max-width: 968px) {
        .blco-filter-controls,
        .blco-category-filter-controls {
            flex-direction: column;
            align-items: stretch;
        }

        .blco-filter-controls-left,
        .blco-category-filter-left {
            width: 100%;
            min-width: 100%;
        }

        .blco-filter-controls-right,
        .blco-category-filter-right {
            width: 100%;
            flex-wrap: wrap;
        }

        .blco-search-wrapper {
            max-width: 100%;
            width: 100%;
        }

        .blco-filter-select,
        .blco-brand-dropdown {
            flex: 1;
            min-width: 150px;
        }

        .blco-clear-filters-btn {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .blco-category-tabs {
            gap: 6px;
            padding: 6px;
        }

        .blco-tab {
            font-size: 14px;
            padding: 8px 16px;
        }

        /* Subcategory dropdown on mobile */
        .blco-subcategories-dropdown {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            border-top: 1px solid #e0e0e0;
            margin-top: 8px;
            padding: 8px 0;
            max-height: none;
            border-radius: 0;
            background: transparent;
        }

        .blco-tab-wrapper {
            width: 100%;
        }

        .blco-tab-wrapper:hover .blco-subcategories-dropdown {
            transform: none;
        }

        .blco-subcategory-link {
            padding: 10px 16px;
        }

        .blco-subcategory-link:hover {
            padding-left: 20px;
        }

        .blco-subcategory-link::after {
            left: 16px;
            right: 16px;
        }

        .blco-filter-controls,
        .blco-category-filters {
            padding: 15px;
        }

        .blco-product-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .blco-filter-select,
        .blco-brand-dropdown {
            width: 100%;
            min-width: 100%;
        }
    }

    @media (max-width: 480px) {
        .blco-product-filter-section {
            padding: 20px 15px;
        }

        .blco-category-tabs {
            gap: 10px;
            font-size: 12px;
        }

        .blco-tab {
            font-size: 12px;
            padding: 8px 0;
        }
    }

    /* Clear Filters Button */
    .blco-clear-filters-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .blco-clear-filters-btn:hover {
        background: #C00024;
        color: #fff;
        border-color: #C00024;
        box-shadow: 0 2px 8px rgba(192, 0, 36, 0.25);
        transform: translateY(-1px);
    }

    .blco-clear-filters-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Results Count */
    .blco-results-count {
        margin-bottom: 20px;
        padding: 12px 0;
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    .blco-results-count #blco-results-text {
        color: #333;
    }

    /* Category Page Filters */
    .blco-category-filters {
        margin-bottom: 30px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .blco-category-filter-controls {
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .blco-category-filter-left {
        display: flex;
        gap: 15px;
        align-items: center;
        flex: 1;
        min-width: 250px;
    }

    .blco-category-filter-right {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Hide default WooCommerce result count and ordering */
    .woocommerce-result-count,
    .woocommerce-ordering {
        display: none !important;
    }

    /* WooCommerce Result Count Styling (if needed elsewhere) */
    .blco-result-count {
        font-size: 14px;
        color: #666;
        margin: 0;
        padding: 0;
    }

    /* WooCommerce Ordering Styling (if needed elsewhere) */
    .blco-ordering {
        margin: 0;
    }

    .blco-orderby {
        padding: 12px 40px 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background-color: #fff;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        min-width: 180px;
        transition: border-color 0.3s ease;
    }

    .blco-orderby:hover,
    .blco-orderby:focus {
        border-color: #C00024;
        outline: none;
    }

    /* WooCommerce Before Shop Loop Container */
    .woocommerce-products-header {
        margin-bottom: 30px;
    }

    .woocommerce-products-header__title {
        font-size: 32px;
        font-weight: 700;
        color: #333;
        margin-bottom: 20px;
    }

    /* Before Shop Loop Wrapper */
    .woocommerce-before-shop-loop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Pagination Styling */
    .blco-pagination,
    .blco-filter-pagination {
        margin-top: 40px;
        margin-bottom: 40px;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .blco-pagination ul,
    .blco-filter-pagination ul {
        display: inline-flex;
        list-style: none;
        margin: 0 auto;
        padding: 0;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
    }

    .blco-pagination ul li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .blco-pagination ul li a,
    .blco-pagination ul li span {
        display: inline-block;
        padding: 10px 16px;
        min-width: 44px;
        text-align: center;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        color: #333 !important;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        background: #fff !important;
    }

    .blco-pagination ul li a:hover,
    .blco-pagination ul li a:focus {
        border-color: #C00024;
        color: #C00024 !important;
        background: #fff !important;
    }

    .blco-pagination ul li span.current {
        background: #C00024;
        color: #fff;
        border-color: #C00024;
        font-weight: 600;
    }

    .blco-pagination ul li span.dots {
        border: none;
        background: transparent;
        color: #666;
        padding: 10px 8px;
        min-width: auto;
    }

    .blco-pagination-arrow {
        display: inline-block;
        font-size: 16px;
        line-height: 1;
    }

    /* Responsive Design for Category Pages */
    @media (max-width: 1200px) {
        .blco-product-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        /* Keep 4 columns on Product Categories page and category pages */
        #blco-product-grid,
        #blco-category-products-grid {
            grid-template-columns: repeat(4, 1fr) !important;
        }
        
        .blco-category-filter-controls {
            width: 100%;
            justify-content: space-between;
        }
        
        .blco-search-wrapper {
            flex: 1;
            min-width: 200px;
        }
    }

    @media (max-width: 968px) {
        .blco-product-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .woocommerce-before-shop-loop {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .blco-category-filter-controls {
            width: 100%;
            flex-direction: column;
            align-items: stretch;
        }
        
        .blco-search-wrapper,
        .blco-brand-dropdown-wrapper {
            width: 100%;
        }
        
        .blco-orderby {
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .blco-product-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        /* Switch to 2 columns on mobile for Product Categories page and category pages */
        #blco-product-grid,
        #blco-category-products-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
        
        .woocommerce-products-header__title {
            font-size: 24px;
        }
        
        .blco-pagination ul,
        .blco-filter-pagination ul {
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .blco-pagination ul li a,
        .blco-pagination ul li span,
        .blco-filter-pagination ul li a,
        .blco-filter-pagination ul li span {
            padding: 8px 12px;
            min-width: 36px;
            font-size: 13px;
        }
    }

    @media (max-width: 480px) {
        .blco-category-filters {
            padding: 15px 0;
        }
        
        .blco-pagination ul li a,
        .blco-pagination ul li span,
        .blco-filter-pagination ul li a,
        .blco-filter-pagination ul li span {
            padding: 6px 10px;
            min-width: 32px;
            font-size: 12px;
        }
        
        .blco-pagination ul,
        .blco-filter-pagination ul {
            flex-wrap: nowrap;
            overflow-x: auto;
        }
        
        .blco-pagination-arrow {
            font-size: 14px;
        }
    }

