/* WooCommerce AJAX Category Filter Styles */

.woo-ajax-filter-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    justify-content: center;
}

.filter-btn {
    background: #1E163E;
    border: 1px solid #FF3FCE;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
}

.filter-btn:hover {
    border-color: #FF3FCE;
    background: linear-gradient(135deg, #FF3FCE 0%, #7f2066 100%);
    color: #ffffff;
    border: 1px solid #FF3FCE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #ff3fce24;
}

.filter-btn.active {
    background: linear-gradient(135deg, #FF3FCE 0%, #7f2066 100%);
    border-color: #FF3FCE;
    color: #ffffff;
    box-shadow: 0 4px 15px #ff3fce24;
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

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

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    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); }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    transition: opacity 0.3s ease;
}

.products-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.products-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.products-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.products-grid[data-columns="5"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Product Item */
.product-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

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

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.08);
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Product Info */
.product-info {
    padding: 20px;
}

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

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

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

.product-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: #ff4757;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: block;
    width: 100%;
    background: #0073aa;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.add-to-cart-btn.loading {
    background: #999;
    cursor: not-allowed;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .filter-tabs {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 8px 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .products-grid[data-columns="2"],
    .products-grid[data-columns="3"],
    .products-grid[data-columns="4"],
    .products-grid[data-columns="5"] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 6px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 7px 15px;
    }
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeIn 0.4s ease-out forwards;
}
