{% extends "base.html" %}

{% block title %}{{ product.name }} | Ethio-gebeya{% endblock %}

{% block content %}
<main class="container py-4">
    <div class="row">
        <div class="col-lg-8">
            <h1 class="mb-3">{{ product.name }}</h1>
            <p class="text-muted">{{ product.description }}</p>
            <p class="h4 text-primary">Price: {{ product.price }} ETB</p>
            <p>Stock: {{ product.stock }}</p>
            
            <form method="post" action="#">
                {% csrf_token %}
                <button type="submit" class="btn btn-primary btn-lg">Add to Cart</button>
            </form>
            
            <a href="{% url 'home' %}" class="btn btn-link mt-3">Back to catalog</a>
        </div>
    </div>
</main>
{% endblock %}
