/* Add custom Js code below */ document.addEventListener("DOMContentLoaded", function () { const observer = new MutationObserver(() => { const featuresBlock = document.querySelector(".s-block.s-block--features.container"); if (featuresBlock && !document.querySelector(".custom-dual-images")) { const wrapper = document.createElement("div"); wrapper.className = "custom-dual-images"; wrapper.innerHTML = ` عرض 1 عرض 2 `; // إدراج الصور قبل بلوك المزايا featuresBlock.parentNode.insertBefore(wrapper, featuresBlock); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true, }); }); document.addEventListener("DOMContentLoaded", function () { const observer = new MutationObserver(() => { // العنصر اللي عايزين نحط فوقه دليل المقاسات const targetSection = document.querySelector(".flex.bg-white.p-5.sm\\:pb-0.rounded-md.rounded-b-none"); if (targetSection && !document.querySelector(".custom-size-guide")) { const sizeGuideDiv = document.createElement("div"); sizeGuideDiv.className = "custom-size-guide"; sizeGuideDiv.style.marginBottom = "15px"; // مسافة تحت دليل المقاسات sizeGuideDiv.innerHTML = ` دليل المقاسات`; targetSection.parentNode.insertBefore(sizeGuideDiv, targetSection); observer.disconnect(); // وقف المراقبة بعد الإضافة } }); observer.observe(document.body, { childList: true, subtree: true, }); }); document.addEventListener("DOMContentLoaded", function () { // إنشاء سكشن الأسئلة الشائعة const faqSection = document.createElement("section"); faqSection.className = "faq-section"; faqSection.innerHTML = `

الأسئلة الشائعة

إجابات على أسئلتكم المتكررة لمساعدتكم في الحصول على تجربة تسوق أفضل

يمكنك تتبع طلبك من خلال صفحة تتبع الطلبات في حسابك أو عبر الرابط الذي يصلك عبر الرسائل.
نوفر عدة طرق مثل الدفع الإلكتروني، مدى، آبل باي.
لا يمكن وخصوصاً انه يتم تفصيل العبايه على حسب طلب العميل يمكن أرجعها إذا كانت المشكله في جوده الخياط فقط.
عادة من 2 إلى 5 أيام عمل حسب المدينة.
ننصح بالغسيل اليدوي أو استخدام مغسلة متخصصة للحفاظ على الجودة.
نعم نحن لدينا متجر ، ونوفر شحن سريع لجميع مناطق المملكة.
`; // إدراج السكشن بعد سكشن آراء العملاء بناءً على الكلاس المحدد const featuresSection = document.querySelector(".s-block.s-block--features.container"); if (featuresSection) { featuresSection.insertAdjacentElement("afterend", faqSection); } // تفعيل فتح/إغلاق الأسئلة faqSection.addEventListener("click", function (e) { if (e.target.classList.contains("faq-question")) { const item = e.target.closest(".faq-item"); item.classList.toggle("active"); } }); }); document.addEventListener("DOMContentLoaded", function () { // ====== إعدادات ====== const MAP_LINK = "https://maps.app.goo.gl/GC7rXi2cwmKr9LuH7"; const MAP_EMBED_SRC = "https://www.google.com/maps?q=Saudi%20Arabia&hl=ar&z=6&output=embed"; const WHATSAPP_NUMBER = "966534852688"; // ====== إخفاء الفوتر الأصلي ====== const originalFooter = document.querySelector(".store-footer__inner"); if (originalFooter) originalFooter.style.display = "none"; // ====== إنشاء الفوتر الجديد ====== const newFooter = document.createElement("div"); newFooter.className = "footer-container"; newFooter.innerHTML = ` `; // إدراج الفوتر const storeFooter = document.querySelector(".store-footer"); if (storeFooter) { storeFooter.insertAdjacentElement("beforebegin", newFooter); } else { document.body.appendChild(newFooter); } // ====== إضافة زر الواتساب ====== if (!document.querySelector(".floating-whatsapp")) { const btn = document.createElement("a"); btn.href = `https://wa.me/${WHATSAPP_NUMBER}`; btn.className = "floating-whatsapp"; btn.target = "_blank"; btn.innerHTML = `WhatsApp`; document.body.appendChild(btn); } // ====== استايل بسيط ====== const style = document.createElement("style"); style.textContent = ` .footer-container { background:#111; color:#fff; padding:40px 0; margin-top:40px; } .footer-columns { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; max-width:1200px; margin:0 auto; } .footer-column h4 { margin-bottom:10px; font-size:16px; color:#fff; } .footer-column a { color:#bbb; text-decoration:none; } .footer-column a:hover { color:#fff; } @media(max-width:992px){ .footer-columns { grid-template-columns:repeat(2,1fr); } } @media(max-width:600px){ .footer-columns { grid-template-columns:1fr; } } .floating-whatsapp { position:fixed; right:15px; bottom:15px; width:55px; height:55px; background:#25d366; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(0,0,0,.3); z-index:9999; } `; document.head.appendChild(style); });