
    <style>
        /* الحل السحري هنا: flex و nowrap */
        #cooling, #heating, #cooking, #steal, #more {
            display: inline-flex !important; /* يخليهم في سطر واحد */
            flex-direction: row;    /* عشان السهم يبقى على اليمين في العربي */
            align-items: center !important;
            justify-content: center;
            cursor: pointer;
            white-space: nowrap !important; /* يمنع الكلام ينزل سطر جديد مهما حصل */
            gap: 5px;                       /* مسافة ثابتة بين النص والسهم */
            min-width: max-content;         /* يخلي الـ div يوسع على قد الكلام */
        }

        /* إخفاء القوائم بشكل افتراضي */
        #cooling_menu, #cooking_menu, #heating_menu, #steal_menu, #more_menu {
            display: none;
            position: absolute;
            z-index: 9999;
            top: 50px; /* ينزل تحت الزرار بالظبط */
            background: white;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            min-width: 150px;
        }

        .arrow-rotate {
            transform: rotate(180deg) !important;
        }
    </style>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const menuPairs = [
                { id: 'cooling', menu: 'cooling_menu' },
                { id: 'cooking', menu: 'cooking_menu' },
                { id: 'heating', menu: 'heating_menu' },
                { id: 'steal',   menu: 'steal_menu' },
                { id: 'more',    menu: 'more_menu' }
            ];

            const arrowSvg = '<svg class="menu-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transition: transform 0.3s; margin-right: 5px; flex-shrink: 0; display: inline-block;">        <path d="M7 10L12 15L17 10" stroke="#793B2F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>    </svg>';

            menuPairs.forEach(pair => {
                const btn = document.getElementById(pair.id);
                const menu = document.getElementById(pair.menu);

                if (btn && menu) {
                    // حقن السهم
                    btn.insertAdjacentHTML('beforeend', arrowSvg);
                    const arrow = btn.querySelector('.menu-arrow');

                    btn.addEventListener('click', function(e) {
                        e.stopPropagation();
                        const isOpen = menu.style.display === 'block';
                        closeAllMenus();

                        if (!isOpen) {
                            menu.style.display = 'block';
                            arrow.classList.add('arrow-rotate');
                        }
                    });

                    menu.addEventListener('mouseleave', function() {
                        menu.style.display = 'none';
                        arrow.classList.remove('arrow-rotate');
                    });
                }
            });

            function closeAllMenus() {
                menuPairs.forEach(p => {
                    const m = document.getElementById(p.menu);
                    const b = document.getElementById(p.id);
                    if (m) m.style.display = 'none';
                    if (b) {
                        const a = b.querySelector('.menu-arrow');
                        if (a) a.classList.remove('arrow-rotate');
                    }
                });
            }
            document.addEventListener('click', closeAllMenus);
        });
    </script>
    <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://ebdaashamel.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://ebdaashamel.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-posts-equipments-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://ebdaashamel.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
