<script>
document.addEventListener('DOMContentLoaded', function() {
    function initSlider() {
        var scrollContainer = document.getElementById('sp-recommended-scroll');
        if (!scrollContainer) return;
        
        var track = scrollContainer.querySelector('.sp-scroll-track');
        var slides = scrollContainer.querySelectorAll('.sp-scroll-slide');
        var wrapper = scrollContainer.closest('.sp-recommended-scroll-wrapper');
        var dotsContainer = wrapper ? wrapper.querySelector('.sp-slider-dots') : document.querySelector('.sp-slider-dots');
        var prevBtn = document.querySelector('.sp-slider-prev');
        var nextBtn = document.querySelector('.sp-slider-next');
        
        if (slides.length > 0 && dotsContainer) {
            // Clear existing dots
            dotsContainer.innerHTML = '';
            
            slides.forEach(function(slide, index) {
                var dot = document.createElement('button');
                dot.className = 'sp-dot';
                if (index === 0) dot.classList.add('active');
                dot.setAttribute('data-index', index);
                dot.addEventListener('click', function() {
                    var slideWidth = slides[0].offsetWidth + 16;
                    track.scrollTo({
                        left: index * slideWidth,
                        behavior: 'smooth'
                    });
                });
                dotsContainer.appendChild(dot);
            });
            
            var dots = dotsContainer.querySelectorAll('.sp-dot');
            if (dots.length === 1) {
                dots[0].style.cursor = 'default';
                dots[0].style.pointerEvents = 'none';
            }
            
            track.addEventListener('scroll', function() {
                var scrollLeft = track.scrollLeft;
                var slideWidth = slides[0].offsetWidth + 16;
                var activeIndex = Math.round(scrollLeft / slideWidth);
                activeIndex = Math.min(activeIndex, slides.length - 1);
                
                dots.forEach(function(dot, index) {
                    dot.classList.toggle('active', index === activeIndex);
                });
            });
            
            if (prevBtn && nextBtn && dots.length > 1) {
                prevBtn.addEventListener('click', function() {
                    var slideWidth = slides[0].offsetWidth + 16;
                    track.scrollBy({ left: -slideWidth, behavior: 'smooth' });
                });
                nextBtn.addEventListener('click', function() {
                    var slideWidth = slides[0].offsetWidth + 16;
                    track.scrollBy({ left: slideWidth, behavior: 'smooth' });
                });
            }
        }
    }
    
    // راه‌اندازی اولیه اسلایدر
    initSlider();
    
    // راه‌اندازی مجدد بعد از بارگذاری AJAX (با MutationObserver)
    var observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if (mutation.type === 'childList' && mutation.target.id === 'sp-dynamic-content') {
                setTimeout(initSlider, 100);
            }
        });
    });
    var container = document.getElementById('sp-dynamic-content');
    if (container) {
        observer.observe(container, { childList: true, subtree: true });
    }
});
</script><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//shopipersia.de/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://shopipersia.de/post-sitemap.xml</loc>
		<lastmod>2025-09-22T12:13:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/page-sitemap.xml</loc>
		<lastmod>2026-07-07T11:12:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap.xml</loc>
		<lastmod>2026-07-06T08:33:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap2.xml</loc>
		<lastmod>2026-07-05T09:42:42+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap3.xml</loc>
		<lastmod>2026-07-05T09:47:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap4.xml</loc>
		<lastmod>2026-07-05T09:55:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap5.xml</loc>
		<lastmod>2026-07-05T09:58:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap6.xml</loc>
		<lastmod>2026-07-05T10:02:41+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap7.xml</loc>
		<lastmod>2026-07-05T10:07:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap8.xml</loc>
		<lastmod>2026-07-05T10:14:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap9.xml</loc>
		<lastmod>2026-07-05T10:19:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap10.xml</loc>
		<lastmod>2026-07-05T10:24:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap11.xml</loc>
		<lastmod>2026-07-05T10:30:38+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap12.xml</loc>
		<lastmod>2026-07-05T10:37:01+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap13.xml</loc>
		<lastmod>2026-07-05T10:43:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap14.xml</loc>
		<lastmod>2026-07-05T10:51:06+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap15.xml</loc>
		<lastmod>2026-07-05T10:59:19+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap16.xml</loc>
		<lastmod>2026-07-05T11:06:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap17.xml</loc>
		<lastmod>2026-07-05T11:13:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap18.xml</loc>
		<lastmod>2026-07-05T11:20:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap19.xml</loc>
		<lastmod>2026-07-05T11:26:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap20.xml</loc>
		<lastmod>2026-07-05T11:32:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap21.xml</loc>
		<lastmod>2026-07-05T11:45:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap22.xml</loc>
		<lastmod>2026-07-05T11:56:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap23.xml</loc>
		<lastmod>2026-07-05T12:07:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap24.xml</loc>
		<lastmod>2026-07-05T12:19:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap25.xml</loc>
		<lastmod>2026-07-05T12:28:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap26.xml</loc>
		<lastmod>2026-07-05T12:36:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product-sitemap27.xml</loc>
		<lastmod>2026-07-06T08:33:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product_brand-sitemap.xml</loc>
		<lastmod>2026-07-06T08:33:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product_cat-sitemap.xml</loc>
		<lastmod>2026-07-06T08:33:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shopipersia.de/product_tag-sitemap.xml</loc>
		<lastmod>2026-07-06T08:33:27+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->