  <% 
    function getHeaderPath(auth) {
      return auth ? "./header" : "./header-landing";
    }
  %>
  <%- include(getHeaderPath(locals.auth)); -%>
    <!-- Hero Section -->
    <%- include('./hero') %>

    <!-- Featured Categories -->
    <%- include('./featured-categories') %>

    <!-- Popular Products -->
    <%- include('./popular-product') %>

    <!-- Daily Best Sells -->
    <%- include('./best-sells') %>

    <!-- footer  -->
    <%- include("./footer") -%>

    <script>
      document.addEventListener('DOMContentLoaded', function() {
      <% if (typeof flashMessage !== 'undefined' && flashMessage !== null) { %>
        toastr['<%= flashMessage.type %>']('<%= flashMessage.message %>');
      <% } %>
    });
    </script>
