<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">

  <!--
    sitemap.xml — PREM storefront
    Phase 9: §9.1 — lists all public indexable routes.
    Generated: 2026-10-14

    STATIC ROUTES: hard-coded here (/, /shop, /about, /contact).

    DYNAMIC ROUTES (/category/:slug and /product/:slug) are NOT included
    in this static sitemap because their slugs come from the Supabase database.
    To include them, one of the following approaches should be implemented
    before launch (Phase 10 / post-launch):
      Option A: A Netlify Serverless Function at /sitemap.xml that queries
                Supabase for active categories and product slugs at request time.
      Option B: A pre-build script (e.g. scripts/generate-sitemap.mjs) that
                queries Supabase and writes public/sitemap.xml before `npm run build`.
                Run as part of the Netlify build command.
    Until then, Google Search Console URL inspection and the sitemap index can be
    supplemented with crawl-discovered URLs from internal linking.

    EXCLUDED per §9.1: /cart, /checkout, /order-success, /admin/*
  -->

  <!-- Home page -->
  <url>
    <loc>https://www.premdnt.com/</loc>
    <lastmod>2026-10-14</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.premdnt.com/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://www.premdnt.com/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.premdnt.com/"/>
  </url>

  <!-- Shop / catalog -->
  <url>
    <loc>https://www.premdnt.com/shop</loc>
    <lastmod>2026-10-14</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.premdnt.com/shop"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://www.premdnt.com/shop"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.premdnt.com/shop"/>
  </url>

  <!-- About page -->
  <url>
    <loc>https://www.premdnt.com/about</loc>
    <lastmod>2026-10-14</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.premdnt.com/about"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://www.premdnt.com/about"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.premdnt.com/about"/>
  </url>

  <!-- Contact page -->
  <url>
    <loc>https://www.premdnt.com/contact</loc>
    <lastmod>2026-10-14</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.premdnt.com/contact"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://www.premdnt.com/contact"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.premdnt.com/contact"/>
  </url>

  <!--
    TODO (Phase 10 / post-launch): Add dynamic category and product URLs here.
    Example format for categories:
      <url>
        <loc>https://www.premdnt.com/category/endo</loc>
        ...
      </url>
    Example format for products:
      <url>
        <loc>https://www.premdnt.com/product/prem-endo-normal-incisor</loc>
        ...
      </url>
  -->

</urlset>
