{% extends "base.html" %} {% block title %}Products - Product Recommendation Engine{% endblock %} {% block content %}

Product Catalog

Discover amazing products across all categories

{% if current_search or current_category %}
Found {{ products|length }} products {% if current_search %} for "{{ current_search }}" {% endif %} {% if current_category %} in "{{ current_category }}" {% endif %}
Clear Filters
{% endif %} {% if products %}
{% for product in products %}
{% if product.image_url %} {{ product.name }} {% else %}
{% endif %}
{{ product.name }}

{{ product.description[:80] }}{% if product.description|length > 80 %}...{% endif %}

{{ product.category }}
{% set avg_rating = product.get_average_rating() %} {% if avg_rating > 0 %} {% for i in range(5) %} {% if i < avg_rating %}★{% else %}☆{% endif %} {% endfor %} ({{ product.get_rating_count() }}) {% else %} No ratings yet {% endif %}
${{ "%.2f"|format(product.price) }} View Details
{% endfor %}
{% else %}

No products found

{% if current_search or current_category %}

Try adjusting your search criteria or browse all products.

Browse All Products {% else %}

No products are currently available. Check back later!

{% endif %}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}