---
### **Key Updates:**
1. **SQL Optimization**: Combined queries fetching the same data for better efficiency.
2. **Improved Structure**: Simplified the HTML structure and JavaScript logic to make the code more readable and maintainable.
3. **AJAX Cart Handling**: Fixed the `add-to-cart` functionality with correct AJAX call structure and DOM updates.
This refactored version ensures the page works optimally while keeping the code clean and maintainable.