<!DOCTYPE html>
<html lang="pt-BR">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="robots" content="noindex, nofollow">
  <title><%= title %> · Painel | <%= settings.nomeLoja %></title>
  <meta name="theme-color" content="#073b33">
  <link rel="icon" type="image/png" href="<%= url('/favicon.png') %>">
  <link rel="apple-touch-icon" href="<%= url('/apple-touch-icon.png') %>">
  <link rel="preload" href="<%= url('/fonts/fraunces-normal-latin.woff2') %>" as="font" type="font/woff2" crossorigin>
  <link rel="preload" href="<%= url('/fonts/manrope-normal-latin.woff2') %>" as="font" type="font/woff2" crossorigin>
  <link rel="stylesheet" href="<%= url('/fonts/fonts.css') %>">
  <link rel="stylesheet" href="<%= url('/css/main.css') %>?v=<%= assetVersion %>">
</head>
<body class="admin-page">
  <div class="admin-shell">
    <%- include('sidebar', { active: typeof active !== 'undefined' ? active : '' }) %>
    <div class="admin-sidebar__backdrop" data-admin-menu-close></div>

    <div class="admin-main">
      <header class="admin-topbar">
        <div class="admin-topbar__title">
          <button class="icon-btn admin-menu-toggle" type="button" data-admin-menu aria-label="Abrir menu do painel">
            <%- icon('menu') %>
          </button>
          <div>
            <p class="eyebrow"><%= typeof sectionLabel !== 'undefined' ? sectionLabel : 'Painel' %></p>
            <h1><%= typeof pageTitle !== 'undefined' && pageTitle ? pageTitle : title %></h1>
          </div>
        </div>
        <div class="admin-topbar__actions">
          <a class="btn btn--outline btn--sm" href="<%= url('/') %>" target="_blank" rel="noopener">
            Ver site
            <%- icon('external-link') %>
          </a>
          <span class="admin-user">
            <span class="admin-user__avatar"><%= (adminUser || 'A').charAt(0).toUpperCase() %></span>
            <%= adminUser || 'admin' %>
          </span>
        </div>
      </header>

      <main class="admin-content">
        <%- include('flash') %>
