{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}GiftShop Polska - Authentic Polish Gifts{% endblock %}</title>
    
    {% if project_description %}
    <meta name="description" content="{{ project_description }}">
    <meta property="og:description" content="{{ project_description }}">
    <meta property="twitter:description" content="{{ project_description }}">
    {% endif %}
    {% if project_image_url %}
    <meta property="og:image" content="{{ project_image_url }}">
    <meta property="twitter:image" content="{{ project_image_url }}">
    {% endif %}

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap" rel="stylesheet">

    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    
    <!-- Custom CSS -->
    <link rel="stylesheet" href="{% static 'css/custom.css' %}?v=1.3">
    
    {% block head %}{% endblock %}
</head>
<body>

    <nav class="navbar navbar-expand-lg sticky-top">
        <div class="container">
            <a class="navbar-brand" href="{% url 'home' %}">GiftShop Polska</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto align-items-center">
                    <li class="nav-item"><a class="nav-link" href="{% url 'home' %}">Home</a></li>
                    <li class="nav-item"><a class="nav-link" href="{% url 'catalog' %}">Shop</a></li>
                    <li class="nav-item"><a class="nav-link" href="{% url 'constructor' %}">Constructor</a></li>
                    <li class="nav-item"><a class="nav-link" href="{% url 'blog' %}">Blog</a></li>
                    <li class="nav-item ms-lg-3 d-none d-lg-block">
                        <a class="nav-link py-1" href="{% url 'favorites' %}" title="Favorites">
                            <i class="bi bi-heart fs-5"></i>
                        </a>
                    </li>
                    <li class="nav-item ms-lg-1 d-none d-lg-block">
                        <a class="nav-link py-1 position-relative" href="{% url 'cart' %}" title="Cart">
                            <i class="bi bi-cart3 fs-5"></i>
                        </a>
                    </li>
                    <!-- Mobile only Favorites/Cart -->
                    <li class="nav-item d-lg-none"><a class="nav-link" href="{% url 'favorites' %}">Favorites</a></li>
                    <li class="nav-item d-lg-none"><a class="nav-link" href="{% url 'cart' %}">Cart</a></li>
                    
                    <li class="nav-item ms-lg-3">
                        <a href="/admin/" class="btn btn-outline-dark btn-sm px-3 rounded-pill">Admin</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <main>
        {% block content %}{% endblock %}
    </main>

    <footer class="footer">
        <div class="container text-center">
            <div class="row text-start text-md-center">
                <div class="col-md-4 mb-4">
                    <h5 class="mb-3">GiftShop Polska</h5>
                    <p class="text-muted">Curated gifts from the heart of Poland. Candles, books, and memories in a box.</p>
                </div>
                <div class="col-md-4 mb-4">
                    <h5 class="mb-3">Quick Links</h5>
                    <ul class="list-unstyled">
                        <li><a href="{% url 'catalog' %}" class="text-decoration-none text-muted">All Products</a></li>
                        <li><a href="{% url 'constructor' %}" class="text-decoration-none text-muted">Box Constructor</a></li>
                        <li><a href="{% url 'blog' %}" class="text-decoration-none text-muted">Gift Shop Blog</a></li>
                    </ul>
                </div>
                <div class="col-md-4 mb-4">
                    <h5 class="mb-3">Contact</h5>
                    <p class="text-muted">Warsaw, Poland<br>hello@giftshop.pl</p>
                </div>
            </div>
            <hr class="my-4 opacity-25">
            <p class="text-muted small">&copy; 2026 GiftShop Polska. All rights reserved.</p>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>