/**
 * Shop Filter Bar Styles
 */

/* Price Filter Dropdown */
.wowmart-pro-filter-bar .price-filter-menu {
    min-width: 280px;
    padding: 20px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-input-min,
.price-input-max {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.price-input-min:focus,
.price-input-max:focus {
    outline: none;
    border-color: #007bff;
}

.price-separator {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.price-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e0e0e0 0%, #007bff 0%);
    outline: none;
    margin-bottom: 12px;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Filter Dropdown Animations */
.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 8px;
    min-width: 200px;
}

.filter-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown-toggle {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.filter-dropdown-toggle:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-dropdown-toggle.active {
    border-color: #007bff;
    color: #007bff;
    background: #f0f8ff;
}

.filter-dropdown-toggle svg {
    transition: transform 0.3s;
}

.filter-dropdown-toggle.active svg {
    transform: rotate(180deg);
}

/* Filter Options */
.filter-dropdown-menu {
    padding: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
    color: #333;
}

/* Color Filter Styles */
.color-filter-menu {
    min-width: 220px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.color-name {
    flex: 1;
}

/* Loading State */
.woocommerce ul.products {
    transition: opacity 0.3s ease;
}

/* Filter Group Positioning */
.filter-group {
    position: relative;
}

/* Results Count Animation */
.results-count strong {
    transition: all 0.3s ease;
}

/* Reset Button Hover */
.reset-filters-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        margin-top: 0;
    }
    
    .price-filter-menu {
        min-width: auto;
    }
}
