<?xml version="1.0" encoding="UTF-8"?>

<!--
  ============================================================
  sitemap.xml for pricex.biz

  WHAT IS THIS FILE?
  A sitemap is a menu you hand directly to Google that lists
  every page on your site you want indexed. Without it, Google
  has to discover your pages by following links — which is slow
  and unreliable, especially for a React SPA like yours.

  HOW PRIORITY WORKS (0.0 to 1.0):
  - 1.0 = most important page (homepage)
  - 0.8 = very important (products, pricing)
  - 0.6 = supporting pages (support, login)
  - 0.4 = lower priority (register, trends)
  Google uses this as a hint, not a strict rule.

  HOW CHANGEFREQ WORKS:
  Tells Google how often to re-crawl each page.
  - daily    = check every day (live product prices change often)
  - weekly   = check once a week
  - monthly  = rarely changes

  WHERE THIS FILE GOES:
  B2B Marketplace/frontend/public/sitemap.xml
  It must be accessible at: https://pricex.biz/sitemap.xml

  IMPORTANT — PRODUCT PAGES:
  Your /products/:id pages are dynamic (loaded from your database).
  This static sitemap only covers your fixed public pages.
  In a future step (Phase 5), we will generate a dynamic sitemap
  from your backend that includes every product URL automatically.
  ============================================================
-->

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

  <!-- ========== HOMEPAGE ========== -->
  <url>
    <loc>https://pricex.biz</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <!--
      Priority 1.0 = your most important page.
      changefreq "daily" because featured products and
      price ranges on your homepage update frequently.
    -->
  </url>

  <!-- ========== PRODUCTS CATALOG ========== -->
  <url>
    <loc>https://pricex.biz/products</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
    <!--
      Second most important — this is where buyers browse.
      Daily because new products get added by sellers regularly.
    -->
  </url>

  <!-- ========== PRODUCT TRENDS ========== -->
  <url>
    <loc>https://pricex.biz/products/trends</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.7</priority>
    <!--
      Good SEO target — people search "wholesale price trends Nigeria".
      Daily because price trends update constantly.
    -->
  </url>

  <!-- ========== PRICING PAGE ========== -->
  <url>
    <loc>https://pricex.biz/pricing</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <!--
      High priority — buyers and sellers researching the platform
      will look at pricing. Monthly because plans rarely change.
    -->
  </url>

  <!-- ========== SUPPORT PAGE ========== -->
  <url>
    <loc>https://pricex.biz/support</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
    <!--
      Helps with trust signals. Google favors sites that have
      accessible support/contact pages.
    -->
  </url>

  <!-- ========== LOGIN ========== -->
  <url>
    <loc>https://pricex.biz/login</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
    <!--
      Low priority — login pages don't rank for keywords,
      but including it helps Google understand your site structure.
    -->
  </url>

  <!-- ========== REGISTER ========== -->
  <url>
    <loc>https://pricex.biz/register</loc>
    <lastmod>2026-04-21</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
    <!--
      Slightly higher than login — "sign up for B2B marketplace Nigeria"
      is a real search query that could bring in new users.
    -->
  </url>

  <!--
    ============================================================
    NOT INCLUDED (intentionally):
    - /seller/*   → requires login, Google can't access
    - /buyer/*    → requires login, Google can't access
    - /admin/*    → private, should never be indexed
    - /branch/*   → private, should never be indexed
    - /products/:id → dynamic pages, need a generated sitemap
                      (we'll build this in a later step)
    ============================================================
  -->

</urlset>