/* Product Filter Styles */
.product-filters {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.product-filters h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="range"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(51, 51, 51, 0.2);
}

.price-range-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range-group input {
    width: 80px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.apply-filters {
    background-color: #333;
    color: white;
}

.apply-filters:hover {
    background-color: #555;
}

.clear-filters {
    background-color: #ccc;
    color: #333;
}

.clear-filters:hover {
    background-color: #bbb;
}

/* Hide products that don't match filters */
.twbb-posts-item.filter-hidden {
    display: none !important;
}

.no-products-message {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
}

/* Price range slider styling */
.price-slider {
    width: 100%;
    margin: 10px 0;
}

.price-display {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .price-range-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .price-range-group input {
        width: 100%;
    }
}