/* Add custom Js code below */ const paragraph = document.querySelector('.store-footer .max-w-sm.leading-6.mb-6'); const img = document.createElement('img'); img.src = 'https://i.postimg.cc/xTGJmz39/3.webp'; img.alt = 'Store footer image'; // تصغير حجم الصورة img.style.width = '150px'; img.style.height = 'auto'; // توسيط الصورة img.style.display = 'block'; img.style.margin = '0 auto'; // إضافة class للصورة img.classList.add('footer-zstore-image'); // إضافة CSS للموبايل const style = document.createElement('style'); style.innerHTML = ` @media (max-width: 768px) { .footer-store-image { display: block !important; margin: 0 auto !important; width: 100px !important; /* حجم أصغر في الموبايل */ } } `; document.head.appendChild(style); if (paragraph) { paragraph.appendChild(img); } // JavaScript code to add a new categories section after the photos slider document.addEventListener('DOMContentLoaded', function() { // Find the target section const targetSection = document.querySelector('section.s-block.s-block--photos-slider'); if (targetSection) { // Create the new section HTML const categoriesSection = document.createElement('section'); categoriesSection.className = 's-block s-block--categories'; categoriesSection.innerHTML = `
`; // Add CSS styles const styles = document.createElement('style'); styles.textContent = ` .s-block--categories { padding: 80px 0; position: relative; overflow: hidden; } .s-block--categories::before { content: ''; position: absolute; top: -50%; right: -30%; width: 100%; height: 200%; background: #fff; z-index: 0; } .categories-wrapper { position: relative; z-index: 1; } .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; } .category-card { background: white; border-radius: 20px; text-decoration: none; color: #333; transition: all 0.4s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.08); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 40px 30px; min-height: 120px; border: 2px solid transparent; } .category-card::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--main-color, #2859a3); transition: width 0.4s ease; } .category-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(40, 89, 163, 0.15); border-color: var(--main-color, #2859a3); } .category-card:hover::before { width: 100%; z-index: -1; } .category-card:hover .card-content h3, .category-card:hover .card-arrow { color: white; } .card-content { flex: 1; z-index: 1; } .card-content h3 { font-size: 1.8rem; margin: 0; font-weight: 700; color: var(--main-color, #2859a3); transition: color 0.4s ease; } .card-arrow { font-size: 2rem; color: var(--main-color, #2859a3); transition: all 0.4s ease; margin-left: 20px; } .category-card:hover .card-arrow { transform: translateX(10px); } @media (max-width: 768px) { .categories-grid { grid-template-columns: 1fr; gap: 20px; } .category-card { padding: 30px 20px; min-height: 100px; } .card-content h3 { font-size: 1.5rem; } } @media (max-width: 480px) { .s-block--categories { padding: 60px 0; } .category-card { padding: 25px 20px; } } `; // Add the styles to the document document.head.appendChild(styles); // Insert the new section after the target section targetSection.insertAdjacentElement('afterend', categoriesSection); } });