<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">

    <!-- ============================================ -->
    <!-- MAIN PAGES -->
    <!-- ============================================ -->
    
    <!-- Home Page -->
    <url>
        <loc>https://sarankhola.com/</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>
    
    <!-- Products Page -->
    <url>
        <loc>https://sarankhola.com/products.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <!-- Categories Page -->
    <url>
        <loc>https://sarankhola.com/categories.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <!-- Offers Page -->
    <url>
        <loc>https://sarankhola.com/offers.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.8</priority>
    </url>
    
    <!-- About Us Page -->
    <url>
        <loc>https://sarankhola.com/about.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.6</priority>
    </url>
    
    <!-- Contact Page -->
    <url>
        <loc>https://sarankhola.com/contact.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.6</priority>
    </url>
    
    <!-- Help Center -->
    <url>
        <loc>https://sarankhola.com/help.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.5</priority>
    </url>
    
    <!-- FAQ Page -->
    <url>
        <loc>https://sarankhola.com/faq.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.5</priority>
    </url>

    <!-- ============================================ -->
    <!-- POLICY PAGES -->
    <!-- ============================================ -->
    
    <!-- Privacy Policy -->
    <url>
        <loc>https://sarankhola.com/privacy-policy.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>
    
    <!-- Terms & Conditions -->
    <url>
        <loc>https://sarankhola.com/terms-conditions.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>
    
    <!-- Return Policy -->
    <url>
        <loc>https://sarankhola.com/return-policy.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>
    
    <!-- Shipping Policy -->
    <url>
        <loc>https://sarankhola.com/shipping-policy.php</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>

    <!-- ============================================ -->
    <!-- DYNAMIC CATEGORY PAGES (Generated by PHP) -->
    <!-- ============================================ -->
    
    <?php
    // This section will be populated by PHP when sitemap is generated
    // For static sitemap, uncomment the following lines
    
    /*
    // Get all categories
    $categories = $conn->query("SELECT id, slug, updated_at FROM categories WHERE status = 'active'");
    while($cat = $categories->fetch(PDO::FETCH_ASSOC)):
    ?>
    <url>
        <loc>https://sarankhola.com/products.php?category=<?= $cat['id'] ?></loc>
        <lastmod><?= date('Y-m-d', strtotime($cat['updated_at'] ?? 'now')) ?></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <?php endwhile; ?>
    */
    ?>
    
    <!-- Static Category Examples -->
    <url>
        <loc>https://sarankhola.com/products.php?category=1</loc>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/products.php?category=2</loc>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/products.php?category=3</loc>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/products.php?category=4</loc>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/products.php?category=5</loc>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- ============================================ -->
    <!-- DYNAMIC PRODUCT PAGES (Generated by PHP) -->
    <!-- ============================================ -->
    
    <?php
    // This section will be populated by PHP when sitemap is generated
    // For static sitemap, uncomment the following lines
    
    /*
    // Get all active products
    $products = $conn->query("SELECT id, slug, updated_at FROM products WHERE status = 'active' ORDER BY id DESC LIMIT 1000");
    while($product = $products->fetch(PDO::FETCH_ASSOC)):
    ?>
    <url>
        <loc>https://sarankhola.com/product-details.php?id=<?= $product['id'] ?></loc>
        <lastmod><?= date('Y-m-d', strtotime($product['updated_at'] ?? 'now')) ?></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
        <image:image>
            <image:loc>https://sarankhola.com/assets/images/products/<?= $product['main_image'] ?></image:loc>
            <image:title><?= htmlspecialchars($product['name']) ?></image:title>
        </image:image>
    </url>
    <?php endwhile; ?>
    */
    ?>
    
    <!-- Static Product Examples -->
    <url>
        <loc>https://sarankhola.com/product-details.php?id=1</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/product-details.php?id=2</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/product-details.php?id=3</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/product-details.php?id=4</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://sarankhola.com/product-details.php?id=5</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- ============================================ -->
    <!-- BLOG PAGES (If you have blog) -->
    <!-- ============================================ -->
    
    <!--
    <url>
        <loc>https://sarankhola.com/blog/</loc>
        <changefreq>weekly</changefreq>
        <priority>0.5</priority>
    </url>
    -->

    <!-- ============================================ -->
    <!-- STATIC PAGES -->
    <!-- ============================================ -->
    
    <url>
        <loc>https://sarankhola.com/track-order.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/wishlist.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/compare.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/cart.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.2</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/checkout.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.2</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/login.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>
    
    <url>
        <loc>https://sarankhola.com/register.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>

</urlset>