/* Filter & Sort Section */
.filter-sort-bar {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}
.flex-three-style {
    text-indent: -2em;
}

.search-filter-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box-container {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #000;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.sort-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-toggle-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.filter-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    color: #3b82f6;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option:hover {
    padding-left: 5px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.filter-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.price-range-slider {
    padding: 20px 0;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price-value {
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #1e293b;
}

.clear-filters-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.clear-filters-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.results-count {
    font-size: 16px;
    color: #64748b;
}

.results-count strong {
    color: #1e293b;
    font-size: 18px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.view-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    background: #3b82f6;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag-remove {
    cursor: pointer;
    font-weight: 700;
}

/* Mobile Filters */
@media (max-width: 991px) {
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 320px;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .filters-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }
    
    .filters-overlay.active {
        display: block;
    }
    
    .close-filters {
        display: block;
        text-align: right;
        margin-bottom: 20px;
    }
    
    .close-filters-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #64748b;
    }
}

@media (min-width: 992px) {
    .close-filters {
        display: none;
    }
}

