<html>
<head>
    <title>E-commerce FishStore</title>
    <link rel="stylesheet" href="/css/style.css?v=<%= Date.now() %>">
</head>
<body>
    <nav>
        <div class="container">
            <a href="/" class="logo">E-commerce FishStore</a>
            <!-- เพิ่มแถบค้นหา -->
            <form action="/search" method="GET" class="search-form">
                <input type="text" name="query" placeholder="Search for fish..." required>
                <button type="submit">Search</button>
            </form>
            <div class="nav-links">
                <a href="/order/history" class="nav-link">Order History</a>
                <a href="/cart" class="cart-link">Cart</a>
                <% if (!locals.session || !locals.session.user) { %>
                    <a href="/login">Login</a>
                    <a href="/register">Register</a>
                <% } else { %>
                    <a href="/logout" class="logout-btn">Logout</a>
                <% } %>
            </div>
        </div>
    </nav>

    
    <main class="container">