<?php
session_start();
if (empty($_SESSION['is_admin'])) {
    header('Location: login.php'); exit;
}
?>
<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Admin Dashboard - Esa's Fashion</title>
  <link rel="stylesheet" href="/ecom/styles.css">
</head>
<body>
<?php include __DIR__ . '/../header.php'; ?>
<main class="container">
  <h1>Admin Dashboard</h1>
  <p><a href="products.php" class="btn">Manage Products</a> <a href="logout.php" class="btn" style="background:#999;">Logout</a></p>
</main>
<?php include __DIR__ . '/../footer.php'; ?>
</body>
</html>
