:root {
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #7c3aed;
    --card: #f9fafb;
    --border: #e5e7eb;
  }
  
  /* =========================
     GLOBAL
     ========================= */
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  /* =========================
     NAVBAR
     ========================= */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
  }
  
  nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
  }
  
  nav a:hover {
    color: var(--accent);
  }
  
  /* =========================
     PAGE CONTAINER (ALIGNMENT RAIL)
     ========================= */
  .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  /* =========================
     SECTION OFFSET (FIXES NAV CUT-OFF)
     ========================= */
  .hero,
  #about,
  #discover,
  #categories {
    scroll-margin-top: 96px; /* navbar height + spacing */
  }
  
  /* =========================
     HERO / SECTIONS
     ========================= */
  .hero {
    margin: 64px 0 32px;
    max-width: 720px;
  }
  
  .hero h2 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
  }
  
  /* =========================
     FILTERS
     ========================= */
  .filters {
    display: flex;
    gap: 12px;
    margin: 0 0 40px;
  }
  
  .filters button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    font-weight: 500;
  }
  
  .filters button.active,
  .filters button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }
  
  /* =========================
     GRID
     ========================= */
  .grid {
    margin: 24px 0 56px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
  }
  
  /* =========================
     CARD
     ========================= */
  .card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  }
  
  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  
  .card-body {
    padding: 16px;
  }
  
  .card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
  }
  
  .card span {
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  /* =========================
     DETAIL PAGE
     ========================= */
  #detail img {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    border-radius: 14px;
  }
  
  /* =========================
     FOOTER
     ========================= */
  footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  footer p {
    max-width: 720px;
    margin-bottom: 8px;
  }
  
  footer span {
    font-size: 0.85rem;
  }
  