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

  <!-- Páginas estáticas -->
  <url>
    <loc>https://anapatypaty.pt/</loc>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://anapatypaty.pt/loja</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://anapatypaty.pt/sobre</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>
  <url>
    <loc>https://anapatypaty.pt/termos</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://anapatypaty.pt/privacidade</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://anapatypaty.pt/cookies</loc>
    <changefreq>yearly</changefreq>
    <priority>0.2</priority>
  </url>

  <!--
    PÁGINAS DE PRODUTO DINÂMICAS
    Para incluir os produtos adiciona aqui as entradas no formato:

    <url>
      <loc>https://anapatypaty.pt/produto/{id}</loc>
      <changefreq>weekly</changefreq>
      <priority>0.8</priority>
    </url>

    Podes gerar esta lista automaticamente com um script Node.js:

    const { createClient } = require('@supabase/supabase-js');
    const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
    const { data } = await supabase.from('products').select('id').eq('is_visible', true);
    // gera o XML com data.map(p => `<url><loc>https://anapatypaty.pt/produto/${p.id}</loc>...`)

    Ou submete o URL da loja no Google Search Console e deixa o Googlebot descobrir por crawl.
  -->

</urlset>
