.woo-complete-filter-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.filter-sidebar {
    width: 320px;
    min-width: 260px;
    max-width: 380px;
    flex: 0 0 320px;
}

.results-area {
    flex: 1 1 0;
    min-width: 320px;
    min-width: 0;
}

.category-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-tab:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-tab.active {
    background-color: #df8d9c;
    border: 2px solid #df8d9c;
}

.category-tab .tab-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
}

.category-tab.active .tab-icon {
    opacity: 0.4;
}

.category-tab .tab-count {
    opacity: 0.7;
    font-size: 12px;
}

#subcategory-tabs-area {
    margin-bottom: 20px;
}

.subcategory-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-left: 3px solid #df8d9c;
    border-radius: 4px;
}

.subcategory-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #34495e;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
}

.subcategory-tab:hover {
    background-color: #455a64;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.subcategory-tab.active {
    background-color: #df8d9c;
    border: 2px solid #df8d9c;
}

.subcategory-tabs-container[data-parent-id] {
    transition: border-color 0.25s ease;
}

.subcategory-tabs-container .subcategory-tab.active {
    box-shadow: 0 0 0 3px rgba(223,141,156,0.12);
}

.subcategory-tab.active:hover {
    background-color: #eb768b;
}

.subcategory-tabs-container .subcategory-tabs-container {
    padding-left: 30px;
    border-left-color: #df8d9c;
    border-left-width: 2px;
}

.filter-controls-wrapper {
    margin-bottom: 30px;
    background: transparent;
    padding: 0;
}

.filter-controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-box {
    width: 90%;
    margin: 25px auto;
}

label, input {
    border: none;
    display: inline-block;
    margin-right: -4px;
    vertical-align: top;
    width: 30%;
}

input {
    width: 70%;
}

.slider {
    margin: 25px 0;
}

.ui-slider {
    position: relative;
    text-align: left;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1.2em;
    height: 1.2em;
    cursor: default;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background-position: 0 0;
}

.ui-slider-horizontal {
    height: .8em;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -.3em;
    margin-left: -.6em;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

.ui-slider-vertical {
    width: .8em;
    height: 100px;
}

.ui-slider-vertical .ui-slider-handle {
    left: -.3em;
    margin-left: 0;
    margin-bottom: -.6em;
}

.ui-slider-vertical .ui-slider-range {
    left: 0;
    width: 100%;
}

.ui-slider-vertical .ui-slider-range-min {
    bottom: 0;
}

.ui-slider-vertical .ui-slider-range-max {
    top: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #555;
}

.orderby-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.orderby-select:focus {
    outline: none;
    border-color: #2c3e50;
}

.apply-filters-btn,
.reset-filters-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.apply-filters-btn {
    background: #df8d9c;
    color: #fff;
}

.apply-filters-btn:hover {
    background: #df8d9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.reset-filters-btn {
    background: #df8d9c;
    color: #fff;
}

.reset-filters-btn:hover {
    background: #df8d9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.active-filters-display {
    margin-bottom: 20px;
    display: none;
}

.active-filters-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.active-filters-label {
    font-weight: 600;
    color: #856404;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.remove-filter {
    background: none;
    border: none;
    color: #df8d9c;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background: #df8d9c;
    color: #fff;
}

.clear-all-filters {
    padding: 6px 16px;
    background: #df8d9c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clear-all-filters:hover {
    background: #df8d9c;
}

.products-container {
    margin-top: 0;
    min-height: 400px;
}

.products-container img,
.products img {
    max-width: 100%;
    height: auto;
    display: block;
}

.products-count-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.woocommerce-result-count {
    margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.products li.product {
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #df8d9c;
}


.products li.product .onsale {
    position: absolute;
    left: 0;
    top: 16px;
    background: linear-gradient(135deg, #ff3b30 0%, #d32f2f 100%);
    color: #fff;
    font-weight: 800;
    padding: 10px 20px 10px 12px;
    border-radius: 0 25px 25px 0;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.5);
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 59, 48, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 59, 48, 0.8);
    }
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #df8d9c;
}

.product-card .sale-badge {
    position: absolute;
    left: 0;
    top: 16px;
    background: linear-gradient(135deg, #ff3b30 0%, #d32f2f 100%);
    color: #fff;
    font-weight: 800;
    padding: 10px 20px 10px 12px;
    border-radius: 0 25px 25px 0;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.5);
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0;
}

.product-card .product-image img,
.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img,
.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.08);
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex-grow: 1;
    background: #fff;
}

.product-card .product-title,
.products li.product .woocommerce-loop-product__title {
    margin: 0 0 4px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #2c3e50;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
}

.product-card .product-price,
.products li.product .price {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 0;
}

.products li.product .price del {
    opacity: 0.5;
    font-size: 16px;
    margin-right: 8px;
    font-weight: 500;
}

.products li.product .price ins {
    text-decoration: none;
    color: #ff3b30;
    font-weight: 800;
}

.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.products li.product .woocommerce-loop-product__link > * {
    padding-left: 16px;
    padding-right: 16px;
}

.products li.product .woocommerce-loop-product__link img {
    padding: 0;
    margin-bottom: 12px;
}

.products li.product .woocommerce-LoopProduct-link {
    display: block;
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    margin-bottom: 16px;
    padding: 16px 16px 16px 16px;
    margin-left: 100px;;
}

.product-actions .button,
.product-actions a.button,
.product-actions .add_to_cart_button,
.products li.product .button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff !important;
    border: none;
    padding: 8px 20px 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: grid;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
    flex: 1;
    text-align: center;
    cursor: pointer;
    width: 80%;
    height:100px;
    margin-bottom: 10px;
    margin-left: 10px;
}


.product-actions .button:hover,
.product-actions a.button:hover,
.product-actions .add_to_cart_button:hover,
.products li.product .button:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.product-actions .button:active,
.products li.product .button:active {
    transform: translateY(0);
}

.product-actions .view-details-btn {
    background: transparent;
    color: #2c3e50;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid #ddd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions .view-details-btn:hover {
    border-color: #2c3e50;
    background: #f8f9fa;
}

.products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.products.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.products > .product-card,
.products > li.product {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.products li.product .out-of-stock-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.load-more-btn {
    padding: 14px 40px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.load-more-btn:hover:not(:disabled) {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-products p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.no-products-found {
    padding: 60px 20px;
    text-align: center;
}

.no-products-found .woocommerce-info {
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

@media (max-width: 1024px) {
    .products.columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woo-complete-filter-wrapper {
        display: block;
    }

    .filter-sidebar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .filter-controls-container {
        grid-template-columns: 1fr;
    }
    
    .category-tabs-container {
        justify-content: center;
    }
    
    .products.columns-3,
    .products.columns-4,
    .products.columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .category-tab {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .products.columns-2,
    .products.columns-3,
    .products.columns-4,
    .products.columns-5 {
        grid-template-columns: 1fr;
    }
    
    .active-filters-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}