{% extends "base.html" %}
{% import "macros/ui.html" as ui %}

{% block title %}{{ t(key="nav-shop", lang=lang | default(value='sk')) }}{% endblock title %}

{% block content %}
<div class="space-y-8">
  <header class="space-y-2">
    <h1 class="text-3xl font-bold text-on-surface-strong dark:text-on-surface-dark-strong">{{ t(key="shop-title", lang=lang | default(value='sk')) }}</h1>
    <p class="text-on-surface/70 dark:text-on-surface-dark/70">{{ t(key="shop-subtitle", lang=lang | default(value='sk')) }}</p>
  </header>

  {% if products | length > 0 %}
  <div class="grid grid-cols-2 gap-5 sm:grid-cols-3 xl:grid-cols-4">
    {% for product in products %}
    {% include "shop/_card.html" %}
    {% endfor %}
  </div>
  {% else %}
  <div class="rounded-radius border border-outline px-6 py-16 text-center text-on-surface/70 dark:border-outline-dark dark:text-on-surface-dark/70">
    {{ t(key="shop-empty", lang=lang | default(value='sk')) }}
  </div>
  {% endif %}
</div>
{% endblock content %}
