.filter_bar_controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem 0;
}

.controls_top_row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* --- search --- */

.search_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.search_wrapper .search_icon {
    position: absolute;
    left: 1rem;
    color: var(--text_secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search_wrapper input[type="search"],
.search_wrapper input[type="text"] {
    width: 100%;
    background-color: var(--background_panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text_primary);
    font-family: var(--text_font);
    font-size: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search_wrapper input[type="search"]:hover,
.search_wrapper input[type="text"]:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.search_wrapper input[type="search"]:focus,
.search_wrapper input[type="text"]:focus {
    border-color: var(--accent);
    background-color: var(--background_hover);
}

.search_wrapper input[type="search"]:focus ~ .search_icon,
.search_wrapper input[type="text"]:focus ~ .search_icon {
    color: var(--accent);
}

.search_wrapper input::placeholder {
    color: var(--text_secondary);
    opacity: 1;
}

.search_wrapper input[type="search"]::-webkit-search-decoration,
.search_wrapper input[type="search"]::-webkit-search-cancel-button,
.search_wrapper input[type="search"]::-webkit-search-results-button,
.search_wrapper input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* --- filter groups (price, and any future groups) --- */

.filter_group_row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter_group {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: var(--background_panel);
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter_group_btn {
    font-family: var(--header_font);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    color: var(--text_secondary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter_group_btn:hover {
    color: var(--text_primary);
}

.filter_group_btn.is_active {
    background-color: var(--accent);
    color: var(--background_main);
}

/* --- category tiles --- */

.category_tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category_tile {
    background-color: var(--background_panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text_secondary);
    padding: 0.65rem 1rem;
    font-family: var(--text_font);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.category_tile i,
.category_tile svg {
    color: var(--accent);
    width: 14px;
    height: 14px;
}

.category_tile:hover {
    border-color: var(--accent);
    color: var(--text_primary);
}

.category_tile.is_active {
    background-color: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.category_tile.is_active i,
.category_tile.is_active svg {
    color: #111;
}

.tile_count {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .controls_top_row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}