Refactored search functionality for Products by Category.