Write a SQL query to find the top 3 highest-grossing products in each category, handling potential ties gracefully.