{# templates/storefront/account.html #}
{% extends "base.html" %}
{% block content %}
<div class="auth-card" lang="en" dir="ltr">
  <div class="card p-4 shadow-sm mm-glass">
    <h1 class="h4 auth-title mb-3">My Account</h1>
    <p class="mb-4">Hi {{ request.user.get_full_name|default:request.user.username }} 👋</p>

    <div class="row g-3">
      <div class="col-md-6">
        <div class="mm-card p-3">
          <div class="fw-bold mb-2">Sign-in info</div>
          <div class="small text-muted">Username: {{ request.user.username }}</div>
          <div class="small text-muted">Email: {{ request.user.email|default:"—" }}</div>
          <div class="mt-3 d-flex gap-2">
            <a class="btn btn-outline-secondary btn-sm" href="{% url 'password_change' %}">Change password</a>
            <a class="btn btn-light btn-sm" href="{% url 'logout' %}">Sign out</a>
          </div>
        </div>
      </div>

      <div class="col-md-6">
        <div class="mm-card p-3">
          <div class="fw-bold mb-2">Orders</div>
          <div class="small text-muted">No orders yet.</div>
          <div class="mt-2">
            <a class="mm-btn btn-sm" href="/store/">Go to Store</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{% endblock %}
