<?xml version="1.0" encoding="UTF-8"?>
<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">

    <!-- Main Pages -->
    <url>
        <loc>https://rapidmedicare.ltd/</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/index</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/about-us</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/category</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/contact-us</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- Product Categories -->
    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medicine</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medical-devices</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/hospital-furniture</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/implants</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- Product Subcategories (Disposable Surgical) -->
    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical#cat-gloves</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical#cat-face-mask</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical#cat-gown</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical#cat-dressing</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/disposable-surgical#cat-first-aid</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Product Subcategories (Medicine) -->
    <url>
        <loc>https://rapidmedicare.ltd/medicine#cat-antibiotics</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medicine#cat-vaccines</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medicine#cat-prescription</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Product Subcategories (Medical Devices) -->
    <url>
        <loc>https://rapidmedicare.ltd/medical-devices#cat-diagnostic</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medical-devices#cat-monitoring</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/medical-devices#cat-surgical</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Product Subcategories (Hospital Furniture) -->
    <url>
        <loc>https://rapidmedicare.ltd/hospital-furniture#cat-beds</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/hospital-furniture#cat-icu</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/hospital-furniture#cat-trolleys</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Product Subcategories (Implants) -->
    <url>
        <loc>https://rapidmedicare.ltd/implants#cat-orthopedic</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/implants#cat-dental</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://rapidmedicare.ltd/implants#cat-cardiovascular</loc>
        <lastmod>2026-06-22</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Dynamic Product Pages -->
    <?php
    include 'credentials.php';
    $query = "SELECT PID, PName, PCategory, PSubcategory FROM products ORDER BY PID ASC";
    $result = mysqli_query($conn, $query);
    while ($row = mysqli_fetch_assoc($result)) {
        $pid = $row['PID'];
        $name = htmlspecialchars($row['PName']);
        $category = strtolower(str_replace(' ', '-', $row['PCategory']));
        $subcategory = strtolower(str_replace(' ', '-', $row['PSubcategory']));
    ?>
    <url>
        <loc>https://rapidmedicare.ltd/product-details?id=<?php echo $pid; ?></loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <?php } ?>

</urlset>