 .wc-subcategory-filters-container {
    margin: 20px 0;
}

.wc-subcategory-filters-container:not(:has(.subcategory-filters)) .products-grid-container {
    margin-top: 0;
}

.subcategory-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    background: #000;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-btn:hover {
    background: #fa0909;
    border-color: #fa0909;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #fa0909;
    border-color: #fa0909;
    color: white;
}

.filter-btn .count {
    font-size: 12px;
    opacity: 0.8;
}

.products-loader {
    text-align: center;
    padding: 40px;
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-item {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-info {
    padding: 20px;
}

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

.product-title a {
    color: #000;
    text-decoration: none;
}

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

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.product-actions {
    margin-top: 15px;
}

.product-actions a {
    padding: 5px 10px !important;
    line-height: 1 !important;
}

.product-actions a:hover {
    background: var(--primary-color-akhtist) !important;
    color: #fff !important; 
}

.products-pagination {
    margin-top: 40px;
    text-align: center;
}

.products-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: transparent;
    border: 1px solid #dee2e6;
    color: #fa0909;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current {
    background: #fa0909;
    border-color: #fa0909;
    color: #fff;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .subcategory-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}