<div class="card__actions ">
    <a href="/products/<%= product.id %>" class="btn">Details</a>
    <form action="/cart" method="POST">
        <button class="btn" type="submit">Add to Card</button>
        <input type='hidden' name='productId' value='<%= product.id %>'>
    </form>
</div>