{"id":63,"date":"2025-09-25T20:35:41","date_gmt":"2025-09-25T20:35:41","guid":{"rendered":"https:\/\/dev-wooditure.pantheonsite.io\/?page_id=63"},"modified":"2025-10-14T15:03:25","modified_gmt":"2025-10-14T15:03:25","slug":"furniture","status":"publish","type":"page","link":"https:\/\/www.d-deals.com\/en\/furniture\/","title":{"rendered":"Furniture"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"63\" class=\"elementor elementor-63\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9ab9a6d e-flex e-con-boxed e-con e-parent\" data-id=\"9ab9a6d\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-043996f e-con-full e-flex e-con e-child\" data-id=\"043996f\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-db8c82a elementor-widget__width-initial elementor-widget elementor-widget-image\" data-id=\"db8c82a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"936\" height=\"195\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/2025\/10\/Center_Table_EN_1.jpg\" class=\"attachment-full size-full wp-image-266\" alt=\"\" srcset=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/2025\/10\/Center_Table_EN_1.jpg 936w, https:\/\/www.d-deals.com\/wp-content\/uploads\/2025\/10\/Center_Table_EN_1-300x63.jpg 300w, https:\/\/www.d-deals.com\/wp-content\/uploads\/2025\/10\/Center_Table_EN_1-768x160.jpg 768w, https:\/\/www.d-deals.com\/wp-content\/uploads\/2025\/10\/Center_Table_EN_1-600x125.jpg 600w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d9d2cf elementor-hidden-tablet elementor-hidden-mobile elementor-widget__width-initial elementor-widget elementor-widget-image-carousel\" data-id=\"1d9d2cf\" data-element_type=\"widget\" data-settings=\"{&quot;slides_to_show&quot;:&quot;5&quot;,&quot;slides_to_scroll&quot;:&quot;5&quot;,&quot;slides_to_show_mobile&quot;:&quot;4&quot;,&quot;navigation&quot;:&quot;none&quot;,&quot;speed&quot;:500}\" data-widget_type=\"image-carousel.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-image-carousel-wrapper swiper\" role=\"region\" aria-roledescription=\"carousel\" aria-label=\"Image Carousel\" dir=\"ltr\">\n\t\t\t<div class=\"elementor-image-carousel swiper-wrapper\" aria-live=\"polite\">\n\t\t\t\t\t\t\t\t<div class=\"swiper-slide\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"1 of 5\"><a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1d9d2cf\" data-elementor-lightbox-title=\"s4_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjYxLCJ1cmwiOiJodHRwczpcL1wvd3d3LmQtZGVhbHMuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8xMFwvczRfMS5wbmciLCJzbGlkZXNob3ciOiIxZDlkMmNmIn0%3D\" href=\"https:\/\/www.d-deals.com\/furniture\/\"><figure class=\"swiper-slide-inner\"><img decoding=\"async\" class=\"swiper-slide-image\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/elementor\/thumbs\/s4_1-rcl0r17hhmnfwkzdau7sjnujm626nwf6x8vielneow.png\" alt=\"Sofa Beds\" \/><figcaption class=\"elementor-image-carousel-caption\">Sofa Beds<\/figcaption><\/figure><\/a><\/div><div class=\"swiper-slide\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"2 of 5\"><a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1d9d2cf\" data-elementor-lightbox-title=\"s3_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjYyLCJ1cmwiOiJodHRwczpcL1wvd3d3LmQtZGVhbHMuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8xMFwvczNfMS5wbmciLCJzbGlkZXNob3ciOiIxZDlkMmNmIn0%3D\" href=\"https:\/\/www.d-deals.com\/furniture\/\"><figure class=\"swiper-slide-inner\"><img decoding=\"async\" class=\"swiper-slide-image\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/elementor\/thumbs\/s3_1-rcl0r17hhmnfwkzdau7sjnujm626nwf6x8vielneow.png\" alt=\"2 Seater Sofas\" \/><figcaption class=\"elementor-image-carousel-caption\">2 Seater Sofas<\/figcaption><\/figure><\/a><\/div><div class=\"swiper-slide\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"3 of 5\"><a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1d9d2cf\" data-elementor-lightbox-title=\"s2_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjYzLCJ1cmwiOiJodHRwczpcL1wvd3d3LmQtZGVhbHMuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8xMFwvczJfMS5wbmciLCJzbGlkZXNob3ciOiIxZDlkMmNmIn0%3D\" href=\"https:\/\/www.d-deals.com\/furniture\/\"><figure class=\"swiper-slide-inner\"><img decoding=\"async\" class=\"swiper-slide-image\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/elementor\/thumbs\/s2_1-rcl0r335vaq0jswmzv11ondgsxsx3amnli6hd5kmcg.png\" alt=\"U Shaped Sofas\" \/><figcaption class=\"elementor-image-carousel-caption\">U Shaped Sofas<\/figcaption><\/figure><\/a><\/div><div class=\"swiper-slide\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"4 of 5\"><a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1d9d2cf\" data-elementor-lightbox-title=\"s1_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjY0LCJ1cmwiOiJodHRwczpcL1wvd3d3LmQtZGVhbHMuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8xMFwvczFfMS5wbmciLCJzbGlkZXNob3ciOiIxZDlkMmNmIn0%3D\" href=\"https:\/\/www.d-deals.com\/furniture\/\"><figure class=\"swiper-slide-inner\"><img decoding=\"async\" class=\"swiper-slide-image\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/elementor\/thumbs\/s1_1-rcl0r335vaq0jswmzv11ondgsxsx3amnli6hd5kmcg.png\" alt=\"3 Seater Sofas\" \/><figcaption class=\"elementor-image-carousel-caption\">3 Seater Sofas<\/figcaption><\/figure><\/a><\/div><div class=\"swiper-slide\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"5 of 5\"><a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1d9d2cf\" data-elementor-lightbox-title=\"s5_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjY1LCJ1cmwiOiJodHRwczpcL1wvd3d3LmQtZGVhbHMuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8xMFwvczVfMS5wbmciLCJzbGlkZXNob3ciOiIxZDlkMmNmIn0%3D\" href=\"https:\/\/www.d-deals.com\/furniture\/\"><figure class=\"swiper-slide-inner\"><img decoding=\"async\" class=\"swiper-slide-image\" src=\"https:\/\/www.d-deals.com\/wp-content\/uploads\/elementor\/thumbs\/s5_1-rcl0r335vaq0jswmzv11ondgsxsx3amnli6hd5kmcg.png\" alt=\"L Shaped Sofas\" \/><figcaption class=\"elementor-image-carousel-caption\">L Shaped Sofas<\/figcaption><\/figure><\/a><\/div>\t\t\t<\/div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-e7fea98 e-flex e-con-boxed e-con e-parent\" data-id=\"e7fea98\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a194c7d elementor-widget__width-initial elementor-widget elementor-widget-shortcode\" data-id=\"a194c7d\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">            <div class=\"wcmod-container\">\r\n                <button id=\"wcmod-mobile-filter-toggle\" class=\"wcmod-mobile-filter-toggle\">\u062a\u0635\u0641\u064a\u0629 \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a<\/button>\r\n                <main class=\"wcmod-catalog-layout\">\r\n                    <aside id=\"wcmod-filters\" class=\"wcmod-filters\">\r\n                        <button id=\"wcmod-close-filters\" class=\"wcmod-close-filters\">&times;<\/button>\r\n                        <div class=\"filter-group\">\r\n                            <h3>\u0627\u0644\u0633\u0639\u0631<\/h3>\r\n                            <div class=\"wcmod-price-slider-container\">\r\n                                <label for=\"wcmod-price-range-min\">\u0645\u0646<\/label>\r\n                                <input type=\"range\" id=\"wcmod-price-range-min\" min=\"0\" max=\"35000\" value=\"0\" step=\"1\">\r\n                                <label for=\"wcmod-price-range-max\">\u0625\u0644\u0649<\/label>\r\n                                <input type=\"range\" id=\"wcmod-price-range-max\" min=\"0\" max=\"35000\" value=\"35000\" step=\"1\">\r\n                            <\/div>\r\n                            <span id=\"wcmod-price-value\" class=\"wcmod-price-display\">\r\n                                0 EGP - 35,000 EGP                            <\/span>\r\n                        <\/div>\r\n                                                <div class=\"filter-group\">\r\n                            <h3>\u0627\u0644\u0641\u0626\u0629<\/h3>\r\n                            <div class=\"wcmod-category-filters\">\r\n                                <button class=\"wcmod-category-btn active\" data-category=\"all\">\u0627\u0644\u0643\u0644<\/button>\r\n                                                                    <button class=\"wcmod-category-btn\" data-category=\"livingroom\">Living Room<\/button>\r\n                                                            <\/div>\r\n                        <\/div>\r\n                                                                        <div class=\"filter-group\">\r\n                            <h3>\u0627\u0644\u0623\u0644\u0648\u0627\u0646<\/h3>\r\n                            <div class=\"wcmod-color-filters\">\r\n                                <button class=\"wcmod-color-btn active\" data-color=\"all\">\u0627\u0644\u0643\u0644<\/button>\r\n                                                            <\/div>\r\n                        <\/div>\r\n                        <div class=\"filter-group\">\r\n                            <h3>\u0627\u0644\u062e\u0635\u0648\u0645\u0627\u062a<\/h3>\r\n                            <div><input type=\"checkbox\" id=\"wcmod-on-sale-checkbox\"><label for=\"wcmod-on-sale-checkbox\">\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a \u0627\u0644\u0645\u062e\u0641\u0636\u0629 \u0641\u0642\u0637<\/label><\/div>\r\n                        <\/div>\r\n                    <\/aside>\r\n                    <section id=\"wcmod-product-grid\" class=\"wcmod-product-grid\"><\/section>\r\n                <\/main>\r\n            <\/div>\r\n            <style>\r\n            @import url('https:\/\/fonts.googleapis.com\/css2?family=Cairo:wght@400;600;700&display=swap');\r\n            body.filters-open { overflow: hidden; }\r\n            .wcmod-container { font-family: 'Cairo', sans-serif; color:#212529; max-width:1400px; margin:0 auto; padding:20px; }\r\n            .wcmod-catalog-layout { display: flex; gap: 30px; align-items: flex-start; }\r\n            .wcmod-filters { flex: 0 0 280px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); position: sticky; top: 20px; }\r\n            .wcmod-filters h3 { font-size: 1.1rem; margin-bottom: 15px; border-bottom: 2px solid #dee2e6; padding-bottom: 8px; }\r\n            .filter-group { margin-top: 18px; }\r\n            .filter-group:first-child { margin-top: 0; }\r\n            .wcmod-product-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }\r\n            .wcmod-price-slider-container { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }\r\n            .wcmod-price-slider-container label { font-size: 0.85rem; color: #6c757d; }\r\n            .wcmod-price-slider-container input[type=\"range\"] { width: 100%; margin: 0; }\r\n            .wcmod-price-display { display: block; text-align: center; font-weight: 600; margin-top: 10px; background: #f8f9fa; padding: 5px; border-radius: 4px; }\r\n            .wcmod-product-card { background:#fff; border-radius:8px; box-shadow:0 4px 8px rgba(0,0,0,0.1); overflow:hidden; display:flex; flex-direction:column; transition:transform .3s ease,box-shadow .3s ease; position:relative; text-decoration: none; color: inherit; }\r\n            .wcmod-product-card:hover { transform:translateY(-5px); box-shadow:0 8px 16px rgba(0,0,0,0.15); }\r\n            .wcmod-product-image { width:100%; height:250px; object-fit:cover; display:block; }\r\n            .wcmod-discount-badge { position:absolute; top:10px; left:10px; background:#dc3545; color:#fff; padding:4px 8px; border-radius:4px; font-size:.8rem; font-weight:600; z-index: 2; }\r\n            .wcmod-product-info { padding:20px; display:flex; flex-direction:column; flex-grow:1; text-align: center; }\r\n            .wcmod-product-category { font-size: 0.8rem; color: #6c757d; margin: 0 0 5px; text-transform: uppercase; letter-spacing: 0.5px; }\r\n            .wcmod-product-info h4 { font-size:1.2rem; margin: 0 0 10px; }\r\n            .wcmod-buy-button { width:100%; padding:12px; background:#F15A1F; \/* MODIFIED: New background color *\/ color:#fff !important; border:none; border-radius:5px; cursor:pointer; font-weight:600; margin-top:auto; display:inline-block; text-align:center; transition: background-color 0.3s; }\r\n            .wcmod-product-card:hover .wcmod-buy-button { background:#e04a0f; \/* MODIFIED: Darker hover color *\/ }\r\n            .wcmod-category-btn, .wcmod-color-btn, .wcmod-brand-btn { padding:8px 12px; border:1px solid #dee2e6; background:transparent; color:#6c757d; border-radius:20px; cursor:pointer; font-size:0.9rem; transition: all 0.3s; }\r\n            .wcmod-category-filters, .wcmod-color-filters, .wcmod-brand-filters { display: flex; flex-wrap: wrap; gap: 8px; }\r\n            .wcmod-category-btn:hover, .wcmod-color-btn:hover, .wcmod-brand-btn:hover { background-color: #f0f0f0; border-color: #ccc; }\r\n            .wcmod-category-btn.active, .wcmod-color-btn.active, .wcmod-brand-btn.active { background-color: #F15A1F; \/* MODIFIED: New background color *\/ color: #fff; border-color: #F15A1F; \/* MODIFIED: New border color *\/ }\r\n            .wcmod-product-price { margin-bottom: 15px; display: flex; justify-content: center; align-items: baseline; gap: 15px; }\r\n            .price-wrapper { display: flex; gap: 0.3em; align-items: baseline; }\r\n            .price-wrapper .price-amount { font-size: 1.4rem; font-weight: 700; }\r\n            .price-wrapper .price-currency { font-size: 1rem; }\r\n            .sale-price-wrapper { color: #1F2A4A; }\r\n            .regular-price-wrapper { color: #6c757d; }\r\n            .regular-price-wrapper .price-amount { text-decoration: line-through; font-size: 1.2rem; font-weight: normal; }\r\n            .wcmod-mobile-filter-toggle { display: none; }\r\n            .wcmod-close-filters { display: none; }\r\n            @media (max-width: 992px) { \r\n                .wcmod-catalog-layout { flex-direction: column; } \r\n                .wcmod-mobile-filter-toggle { display: block; width: 100%; padding: 12px; margin-bottom: 20px; font-size: 1rem; font-weight: 600; background: #F15A1F; \/* MODIFIED: New background color *\/ color: #fff; border: none; border-radius: 5px; cursor: pointer; } \r\n                .wcmod-filters { display: none; position: fixed; top: 0; left: 0; width: 320px; height: 100%; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease-in-out; overflow-y: auto; box-shadow: 0 0 20px rgba(0,0,0,0.2); max-width: 90%; } \r\n                body.filters-open .wcmod-filters { display: block; transform: translateX(0); } \r\n                body.filters-open::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; } \r\n                .wcmod-close-filters { display: block; position: absolute; top: 10px; right: 15px; font-size: 2.5rem; color: #333; background: none; border: none; cursor: pointer; line-height: 1; } \r\n            }\r\n            @media (max-width: 767px) { \r\n                .wcmod-product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } \r\n                .wcmod-product-info h4 { font-size: 1rem; } \r\n                .price-wrapper { flex-direction: column; align-items: center; gap: 0; line-height: 1.2; } \r\n                .price-wrapper .price-amount { font-size: 1.3rem; } \r\n                .price-wrapper .price-currency { font-size: 0.8rem; } \r\n                .regular-price-wrapper .price-amount { font-size: 1rem; } \r\n            }\r\n            \r\n                        <\/style>\r\n                        <script>\r\n            \/\/ ... (The Javascript from the previous answer remains exactly the same) ...\r\n            (function(){\r\n                const i18n = {\"noMatches\":\"\\u0644\\u0627 \\u062a\\u0648\\u062c\\u062f \\u0645\\u0646\\u062a\\u062c\\u0627\\u062a \\u0645\\u0637\\u0627\\u0628\\u0642\\u0629 \\u0644\\u0645\\u0639\\u0627\\u064a\\u064a\\u0631\\u0643.\",\"buyNow\":\"\\u0627\\u0634\\u062a\\u0631\\u064a \\u0627\\u0644\\u0622\\u0646\",\"allButton\":\"\\u0627\\u0644\\u0643\\u0644\"};\r\n                const products = [{\"id\":164,\"name\":\"Red Beech Wood, Musky and Velvet Living Room 3 Pieces - White and Pink\",\"price\":1300,\"regular\":1300,\"categories\":[\"livingroom\"],\"category_name\":\"Living Room\",\"colors\":[\"all\"],\"brand\":\"no-brand\",\"image\":\"https:\\\/\\\/www.d-deals.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/ELT3535-1-300x300.jpg\",\"onSale\":false,\"discount\":0,\"permalink\":\"https:\\\/\\\/www.d-deals.com\\\/en\\\/product\\\/red-beech-wood-musky-and-velvet-living-room-3-pieces-white-and-pink-4\\\/\"},{\"id\":163,\"name\":\"Red Beech Wood, Musky and Velvet Living Room 3 Pieces - White and Pink\",\"price\":35000,\"regular\":35000,\"categories\":[\"livingroom\"],\"category_name\":\"Living Room\",\"colors\":[\"all\"],\"brand\":\"no-brand\",\"image\":\"https:\\\/\\\/www.d-deals.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/ELOFU9-1-300x300.jpg\",\"onSale\":false,\"discount\":0,\"permalink\":\"https:\\\/\\\/www.d-deals.com\\\/en\\\/product\\\/red-beech-wood-musky-and-velvet-living-room-3-pieces-white-and-pink-3\\\/\"},{\"id\":162,\"name\":\"Red Beech Wood, Musky and Velvet Living Room 3 Pieces - White and Pink\",\"price\":35000,\"regular\":35000,\"categories\":[\"livingroom\"],\"category_name\":\"Living Room\",\"colors\":[\"all\"],\"brand\":\"no-brand\",\"image\":\"https:\\\/\\\/www.d-deals.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/adam18_2-300x300.jpg\",\"onSale\":false,\"discount\":0,\"permalink\":\"https:\\\/\\\/www.d-deals.com\\\/en\\\/product\\\/red-beech-wood-musky-and-velvet-living-room-3-pieces-white-and-pink-2\\\/\"},{\"id\":161,\"name\":\"Red Beech Wood, Musky and Velvet Living Room 3 Pieces - White and Pink\",\"price\":35000,\"regular\":35000,\"categories\":[\"livingroom\"],\"category_name\":\"Living Room\",\"colors\":[\"all\"],\"brand\":\"no-brand\",\"image\":\"https:\\\/\\\/www.d-deals.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/ELOFU7-1-300x300.jpg\",\"onSale\":false,\"discount\":0,\"permalink\":\"https:\\\/\\\/www.d-deals.com\\\/en\\\/product\\\/red-beech-wood-musky-and-velvet-living-room-3-pieces-white-and-pink\\\/\"},{\"id\":155,\"name\":\"Red Beech Wood, Musky and Velvet Living Room 4 Pieces \u2013 White and Pink\",\"price\":35000,\"regular\":35000,\"categories\":[\"livingroom\"],\"category_name\":\"Living Room\",\"colors\":[\"all\"],\"brand\":\"no-brand\",\"image\":\"https:\\\/\\\/www.d-deals.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/ELOFU6-1-300x300.jpg\",\"onSale\":false,\"discount\":0,\"permalink\":\"https:\\\/\\\/www.d-deals.com\\\/en\\\/product\\\/beech-wood-and-velvet-living-room-4-pieces-beige\\\/\"}];\r\n                const brandMap = [];\r\n                const maxPrice = 35000;\r\n                const ns = 'wcmod';\r\n                const currencySymbol = 'EGP';\r\n                const productGrid = document.getElementById(ns + '-product-grid');\r\n                const filtersPanel = document.getElementById(ns + '-filters');\r\n                let filters = { minPrice: 0, maxPrice: maxPrice, category: 'all', color: 'all', brand: 'all', onSale: false };\r\n                function escapeHtml(str){ if(!str) return ''; return String(str).replace(\/[&<>\"'`=\\\/]\/g, s => ({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#39;','\/':'&#x2F;','`':'&#x60;','=':'&#x3D;'})[s]); }\r\n                function renderProducts(list){\r\n                    productGrid.innerHTML = '';\r\n                    if (!list || list.length === 0){ productGrid.innerHTML = `<p style=\"grid-column: 1 \/ -1;\">${i18n.noMatches}<\/p>`; return; }\r\n                    list.forEach(function(prod){\r\n                        const card = document.createElement('a');\r\n                        card.className = ns + '-product-card';\r\n                        card.href = prod.permalink;\r\n                        let discountBadge = prod.onSale && prod.discount > 0 ? `<div class=\"${ns}-discount-badge\">-${prod.discount}%<\/div>` : '';\r\n                        let priceHtml = '';\r\n                        if (prod.onSale && prod.regular > prod.price) {\r\n                            priceHtml = `<div class=\"${ns}-product-price has-sale\"><div class=\"price-wrapper sale-price-wrapper\"><span class=\"price-amount\">${Number(prod.price).toLocaleString()}<\/span><span class=\"price-currency\">${currencySymbol}<\/span><\/div><div class=\"price-wrapper regular-price-wrapper\"><del class=\"price-amount\">${Number(prod.regular).toLocaleString()}<\/del><span class=\"price-currency\">${currencySymbol}<\/span><\/div><\/div>`;\r\n                        } else {\r\n                            priceHtml = `<div class=\"${ns}-product-price\"><div class=\"price-wrapper sale-price-wrapper\"><span class=\"price-amount\">${Number(prod.price).toLocaleString()}<\/span><span class=\"price-currency\">${currencySymbol}<\/span><\/div><\/div>`;\r\n                        }\r\n                        const html = `${discountBadge}<img decoding=\"async\" src=\"${prod.image}\" alt=\"${escapeHtml(prod.name)}\" class=\"${ns}-product-image\"><div class=\"${ns}-product-info\"><p class=\"${ns}-product-category\">${escapeHtml(prod.category_name)}<\/p><h4>${escapeHtml(prod.name)}<\/h4>${priceHtml}<span class=\"${ns}-buy-button\">${i18n.buyNow}<\/span><\/div>`;\r\n                        card.innerHTML = html;\r\n                        productGrid.appendChild(card);\r\n                    });\r\n                }\r\n                function applyFilters(){\r\n                    const filtered = products.filter(function(p){\r\n                        const passPrice = (Number(p.price) >= Number(filters.minPrice)) && (Number(p.price) <= Number(filters.maxPrice));\r\n                        const passCategory = (filters.category === 'all') || (p.categories && p.categories.includes(filters.category));\r\n                        const passColor = (filters.color === 'all') || (p.colors.includes(filters.color));\r\n                        const passBrand = (filters.brand === 'all') || (p.brand === filters.brand);\r\n                        const passSale = (!filters.onSale) || (p.onSale === true);\r\n                        return passPrice && passCategory && passColor && passBrand && passSale;\r\n                    });\r\n                    renderProducts(filtered);\r\n                }\r\n                function updateBrandFilters(categorySlug) {\r\n                    const brandsFilterGroup = document.getElementById(ns + '-brands-filter-group');\r\n                    const brandFiltersContainer = document.getElementById(ns + '-brand-filters-container');\r\n                    if (!brandsFilterGroup || !brandFiltersContainer) return;\r\n                    filters.brand = 'all';\r\n                    if (categorySlug === 'all') {\r\n                        brandsFilterGroup.style.display = 'none';\r\n                        brandFiltersContainer.innerHTML = '';\r\n                        return;\r\n                    }\r\n                    const productsInCategory = products.filter(p => p.categories.includes(categorySlug));\r\n                    const brandsInCategory = [...new Set(productsInCategory.map(p => p.brand))];\r\n                    const relevantBrands = brandsInCategory.filter(slug => slug && slug !== 'no-brand' && brandMap[slug]);\r\n                    if (relevantBrands.length > 0) {\r\n                        let buttonsHtml = `<button class=\"${ns}-brand-btn active\" data-brand=\"all\">${i18n.allButton || '\u0627\u0644\u0643\u0644'}<\/button>`;\r\n                        relevantBrands.forEach(brandSlug => {\r\n                            const brandName = brandMap[brandSlug] || brandSlug;\r\n                            buttonsHtml += `<button class=\"${ns}-brand-btn\" data-brand=\"${escapeHtml(brandSlug)}\">${escapeHtml(brandName)}<\/button>`;\r\n                        });\r\n                        brandFiltersContainer.innerHTML = buttonsHtml;\r\n                        brandsFilterGroup.style.display = 'block';\r\n                        const newBrandButtons = brandFiltersContainer.querySelectorAll('.' + ns + '-brand-btn');\r\n                        setupFilterButtons(newBrandButtons, 'brand');\r\n                    } else {\r\n                        brandsFilterGroup.style.display = 'none';\r\n                        brandFiltersContainer.innerHTML = '';\r\n                    }\r\n                }\r\n                if (filtersPanel) {\r\n                    const priceRangeMin = document.getElementById(ns + '-price-range-min');\r\n                    const priceRangeMax = document.getElementById(ns + '-price-range-max');\r\n                    const priceValue = document.getElementById(ns + '-price-value');\r\n                    const categoryButtons = document.querySelectorAll('.' + ns + '-category-btn');\r\n                    const colorButtons = document.querySelectorAll('.' + ns + '-color-btn');\r\n                    const initialBrandButtons = document.querySelectorAll('.' + ns + '-brand-btn');\r\n                    const onSaleCheckbox = document.getElementById(ns + '-on-sale-checkbox');\r\n                    const mobileFilterToggle = document.getElementById(ns + '-mobile-filter-toggle');\r\n                    const closeFiltersBtn = document.getElementById(ns + '-close-filters');\r\n                    function openMobileFilters() { document.body.classList.add('filters-open'); }\r\n                    function closeMobileFilters() { document.body.classList.remove('filters-open'); }\r\n                    if (mobileFilterToggle) mobileFilterToggle.addEventListener('click', openMobileFilters);\r\n                    if (closeFiltersBtn) closeFiltersBtn.addEventListener('click', closeMobileFilters);\r\n                    document.body.addEventListener('click', function(e) { if (e.target === document.body && document.body.classList.contains('filters-open')) { closeMobileFilters(); } });\r\n                    function handlePriceChange() {\r\n                        if (Number(priceRangeMin.value) > Number(priceRangeMax.value)) { priceRangeMax.value = priceRangeMin.value; }\r\n                        filters.minPrice = Number(priceRangeMin.value);\r\n                        filters.maxPrice = Number(priceRangeMax.value);\r\n                        if (priceValue) { priceValue.innerHTML = `${Number(filters.minPrice).toLocaleString()} ${currencySymbol} - ${Number(filters.maxPrice).toLocaleString()} ${currencySymbol}`; }\r\n                    }\r\n                    if (priceRangeMin && priceRangeMax) {\r\n                        priceRangeMin.addEventListener('input', handlePriceChange);\r\n                        priceRangeMax.addEventListener('input', handlePriceChange);\r\n                        priceRangeMin.addEventListener('change', () => { applyFilters(); if (window.innerWidth <= 992) closeMobileFilters(); });\r\n                        priceRangeMax.addEventListener('change', () => { applyFilters(); if (window.innerWidth <= 992) closeMobileFilters(); });\r\n                    }\r\n                    function setupFilterButtons(buttons, filterKey) {\r\n                        if (buttons && buttons.length > 0) {\r\n                            buttons.forEach(function(btn){\r\n                                btn.addEventListener('click', function(e){\r\n                                    e.preventDefault(); e.stopPropagation();\r\n                                    const parentContainer = btn.closest('.' + ns + '-category-filters, .' + ns + '-color-filters, .' + ns + '-brand-filters');\r\n                                    if(parentContainer) { parentContainer.querySelectorAll('button').forEach(b => b.classList.remove('active'));\r\n                                    } else { buttons.forEach(b => b.classList.remove('active')); }\r\n                                    btn.classList.add('active');\r\n                                    const selectedValue = btn.dataset[filterKey] || 'all';\r\n                                    filters[filterKey] = selectedValue;\r\n                                    if (filterKey === 'category') { updateBrandFilters(selectedValue); }\r\n                                    applyFilters();\r\n                                    if (window.innerWidth <= 992) closeMobileFilters();\r\n                                });\r\n                            });\r\n                        }\r\n                    }\r\n                    setupFilterButtons(categoryButtons, 'category');\r\n                    setupFilterButtons(colorButtons, 'color');\r\n                    setupFilterButtons(initialBrandButtons, 'brand');\r\n                    if (onSaleCheckbox) { onSaleCheckbox.addEventListener('change', function(e){ filters.onSale = e.target.checked; applyFilters(); if (window.innerWidth <= 992) closeMobileFilters(); }); }\r\n                }\r\n                renderProducts(products);\r\n            })();\r\n            <\/script>\r\n            <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Sofa Beds 2 Seater Sofas U Shaped Sofas 3 Seater Sofas L Shaped Sofas<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-63","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/pages\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":78,"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/pages\/63\/revisions"}],"predecessor-version":[{"id":523,"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/pages\/63\/revisions\/523"}],"wp:attachment":[{"href":"https:\/\/www.d-deals.com\/en\/wp-json\/wp\/v2\/media?parent=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}