{"categories":[{"id":"208","name":"Meubelwastafel","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"361686","sku":"A41759114307505","name":"Saqu Calma\/Shell wastafel met 1 kraangat 100x48x1,5cm mat wit","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_092.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-shell-wastafel-met-1-kraangat-100x48x1-5cm-mat-wit-31231160.html","price_final":247.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361686\" data-price-box=\"product-id-361686\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361686']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361686')\"                data-price-amount=\"247.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >247,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":482,"price_discount":234.01},{"product_id":"361648","sku":"A62013277593991","name":"Saqu Calma\/Shell wastafel met 1 kraangat 100x48x1,5cm beige","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_111.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-shell-wastafel-met-1-kraangat-100x48x1-5cm-beige-31230750.html","price_final":334.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361648\" data-price-box=\"product-id-361648\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361648']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361648')\"                data-price-amount=\"334.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >334,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":651,"price_discount":316.01},{"product_id":"361706","sku":"A01916649842117","name":"Saqu Calma\/Shell wastafel zonder kraangat 100x48x1,5cm mat wit","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_104.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-shell-wastafel-zonder-kraangat-100x48x1-5cm-mat-wit-31231190.html","price_final":247.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361706\" data-price-box=\"product-id-361706\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361706']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361706')\"                data-price-amount=\"247.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >247,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":482,"price_discount":234.01},{"product_id":"361662","sku":"A76546629082864","name":"Saqu Calma\/Shell wastafel zonder kraangat 100x48x1,5cm beige","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_117.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-shell-wastafel-zonder-kraangat-100x48x1-5cm-beige-31230780.html","price_final":334.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361662\" data-price-box=\"product-id-361662\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361662']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361662')\"                data-price-amount=\"334.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >334,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":651,"price_discount":316.01}]},{"id":"926","name":"Afdekblad voor badkamermeubel","required":false,"multiple":true,"expanded":false,"single_product":true,"products":[{"product_id":"361651","sku":"A66901138449313","name":"Saqu Calma Topblad 100x48cm mat zwart","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_313.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-topblad-100x48cm-mat-zwart-31231130.html","price_final":120.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361651\" data-price-box=\"product-id-361651\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361651']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361651')\"                data-price-amount=\"120.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >120,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":202,"price_discount":81.01}]},{"id":"981","name":"Kolomkast","required":false,"multiple":true,"expanded":false,"single_product":true,"products":[{"product_id":"361663","sku":"A47808593594904","name":"Saqu Calma kolomkast 160x40x35cm mat zwart","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/K\/o\/Korver_20260618_160.jpg","url":"https:\/\/www.saniweb.nl\/saqu-calma-kolomkast-160x40x35cm-mat-zwart-31231140.html","price_final":434.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"361663\" data-price-box=\"product-id-361663\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D361663']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D361663')\"                data-price-amount=\"434.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >434,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":846,"price_discount":411.01}]},{"id":"515","name":"Afvoerplug","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"137081","sku":"A94833858269156","name":"Saqu Steady wastafelplug niet-afsluitbaar chroom","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/3\/334400.jpg","url":"https:\/\/www.saniweb.nl\/saqu-steady-wastafelplug-niet-afsluitbaar-chroom-31211690.html","price_final":14.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"137081\" data-price-box=\"product-id-137081\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D137081']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D137081')\"                data-price-amount=\"14.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >14,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"    <a class=\"rating-summary cursor-pointer flex items-center\"\n       href=\"#pdp-reviews\"\n        >\n                    <span class=\"hidden\" itemprop=\"ratingValue\">4.84<\/span>\n            <span class=\"hidden\" itemprop=\"reviewCount\">38<\/span>\n                                                        <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"fill-current w-6 h-6\" viewBox=\"3 0 20 20\"\n                     style=\"color: #FFCB01\"\n                     fill=\"currentColor\">\n                    <path\n                        d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371\n                        1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54\n                        1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1\n                        1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"\/>\n                <\/svg>\n                                            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"fill-current w-6 h-6\" viewBox=\"3 0 20 20\"\n                     style=\"color: #FFCB01\"\n                     fill=\"currentColor\">\n                    <path\n                        d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371\n                        1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54\n                        1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1\n                        1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"\/>\n                <\/svg>\n                                            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"fill-current w-6 h-6\" viewBox=\"3 0 20 20\"\n                     style=\"color: #FFCB01\"\n                     fill=\"currentColor\">\n                    <path\n                        d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371\n                        1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54\n                        1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1\n                        1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"\/>\n                <\/svg>\n                                            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"fill-current w-6 h-6\" viewBox=\"3 0 20 20\"\n                     style=\"color: #FFCB01\"\n                     fill=\"currentColor\">\n                    <path\n                        d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371\n                        1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54\n                        1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1\n                        1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"\/>\n                <\/svg>\n                                                        <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"3 0 20 20\" fill=\"currentColor\" class=\"w-6 h-6\">\n                    <defs>\n                        <linearGradient id=\"partialFill137081\">\n                            <stop offset=\"0%\" stop-color=\"#FFCB01\"\/>\n                            <stop offset=\"84%\" stop-color=\"#FFCB01\"\/>\n                            <stop offset=\"84%\" stop-color=\"#E6E6E6\"\/>\n                            <stop offset=\"100%\" stop-color=\"#E6E6E6\"\/>\n                        <\/linearGradient>\n                    <\/defs>\n                    <g fill=\"url(#partialFill137081)\">\n                        <path\n                            d=\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969\n                            0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54\n                            1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1\n                            0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\"\/>\n                    <\/g>\n                <\/svg>\n                                                \n        <span class=\"text-brand-blue ml-1 hidden sm:block\">\n                            38 reviews                    <\/span>\n        <span class=\"text-brand-blue ml-1 sm:hidden\">\n            (38)        <\/span>\n    <\/a>\n","review_summary":"96.8000","review_count":"38","price_old":28,"price_discount":13.01}],"filter_id":30},{"id":"212","name":"Spiegelpaneel","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"302352","sku":"A85296820470043","name":"Ben Sandro Spiegel 120x80 cm Geborsteld Koper","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/L\/B\/LBMG1200461L_SM22MW_TELTKGKB_SSAL82BC1_spiegel.jpg","url":"https:\/\/www.saniweb.nl\/ben-sandro-spiegel-120x80-cm-geborsteld-koper-spsanled8012bc.html","price_final":771,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"302352\" data-price-box=\"product-id-302352\"><div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D302352']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D302352')\"                data-price-amount=\"771\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >771,00<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":1102,"price_discount":331}],"filter_id":33}],"html":"\n<!-- Start Google Analytics 4 for Google Tag Manager by MagePal -->\n<script type=\"text\/javascript\">\n    (function () {\n        let globalDatalayer = window.dataLayer = window.dataLayer || [];\n\n        function init() {\n            const data = [{\"event\":\"view_item_list\",\"ecommerce\":{\"items\":[{\"item_name\":\"Saqu Calma\\\/Shell wastafel met 1 kraangat 100x48x1,5cm mat wit\",\"item_id\":\"A41759114307505\",\"price\":247.99,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":1,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":361686,\"original_price\":482,\"item_category\":\"Meubelwastafel\"},{\"item_name\":\"Saqu Calma Topblad 100x48cm mat zwart\",\"item_id\":\"A66901138449313\",\"price\":120.99,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":2,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":361651,\"original_price\":202,\"item_category\":\"Afdekblad voor badkamermeubel\"},{\"item_name\":\"Saqu Calma kolomkast 160x40x35cm mat zwart\",\"item_id\":\"A47808593594904\",\"price\":434.99,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":3,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":361663,\"original_price\":846,\"item_category\":\"Kolomkast\"},{\"item_name\":\"Saqu Steady wastafelplug niet-afsluitbaar chroom\",\"item_id\":\"A94833858269156\",\"price\":14.99,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":4,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":137081,\"original_price\":28,\"item_category\":\"Afvoerplug\"},{\"item_name\":\"Ben Sandro Spiegel 120x80 cm Geborsteld Koper\",\"item_id\":\"A85296820470043\",\"price\":771,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":5,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":302352,\"original_price\":1102,\"item_category\":\"Spiegelpaneel\"}],\"currency\":\"EUR\",\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\"},\"_clear\":true}];\n\n            const processedProductElements = [];\n            const viewItemListEvents = data.filter(item => item?.event === 'view_item_list');\n            const throttle = (callback, threshold = 200) => {\n                let last;\n                let deferTimer;\n                return (...args) => {\n                    const now = new Date().valueOf();\n                    if (last && now < last + threshold) {\n                        clearTimeout(deferTimer);\n                        deferTimer = setTimeout(() => {\n                            last = now;\n                            callback(args);\n                        }, threshold);\n                    } else {\n                        last = now;\n                        callback(args);\n                    }\n                };\n            }\n            const isElementInViewport = (el) => {\n                const rect = el.getBoundingClientRect();\n                const center = {\n                    x: (rect.right + rect.left) \/ 2,\n                    y: (rect.bottom + rect.top) \/ 2,\n                }\n                return (\n                    center.x >= 0 &&\n                    center.y >= 0 &&\n                    center.x <= (window.innerWidth || document.documentElement.clientWidth) &&\n                    center.y <= (window.innerHeight || document.documentElement.clientHeight)\n                );\n            }\n            const pushProductElements = (productElements) => {\n                const events = [];\n                const skus = productElements.map(productElement => productElement.dataset.listProductSku);\n                viewItemListEvents.forEach(viewItemsListEvent => {\n                    const eventItems = viewItemsListEvent?.ecommerce?.items?.filter(item => {\n                        return skus.includes(item.item_id)\n                    });\n                    if (eventItems && eventItems.length > 0) {\n                        const event = JSON.parse(JSON.stringify(viewItemsListEvent));\n                        event.ecommerce.items = eventItems;\n                        events.push(event);\n                    }\n                });\n\n                if (events.length) {\n                    events.forEach(event => {\n                        globalDatalayer.push(event);\n                    });\n                }\n            }\n            const checkNewProductsInViewport = () => {\n                const newProductElementsInViewport = [];\n                document.querySelectorAll(['[data-list-product-sku]']).forEach(productElement => {\n                    if (!processedProductElements.includes(productElement) && isElementInViewport(productElement)) {\n                        newProductElementsInViewport.push(productElement);\n                    }\n                });\n\n                if (newProductElementsInViewport.length) {\n                    processedProductElements.push(...newProductElementsInViewport);\n                    pushProductElements(newProductElementsInViewport);\n                }\n            };\n            if (viewItemListEvents.length > 0) {\n                window.addEventListener('DOMContentLoaded', checkNewProductsInViewport);\n                window.addEventListener('scroll', throttle(checkNewProductsInViewport));\n                window.addEventListener('resize', throttle(checkNewProductsInViewport));\n            }\n\n            if (data) {\n                let storedData = null\n\n                data.forEach((item) => {\n                    \/\/ Set category data on product detail page\n                    if (item?.event === 'view_item') {\n                        if (storedData === null) {\n                            storedData = JSON.parse(window.localStorage.getItem(\"product-click-ga4\"));\n                        }\n\n                        item?.ecommerce?.items?.forEach((product) => {\n                            if (storedData?.index) {\n                                product.index = storedData.index\n                            }\n\n                            if (storedData?.item_list_name) {\n                                product.item_list_name = storedData.item_list_name;\n                                product.item_list_id = storedData.item_list_id;\n                            }\n                        })\n                    }\n\n                    if (item?.event !== 'view_item_list') {\n                        globalDatalayer.push(item);\n                    }\n                })\n            }\n        }\n\n        init();\n\n                \/\/ Track product clicks\n        const productsList = [{\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"class_name\":\"[data-upsell-tool-category] a.product-item-link\",\"container_class\":\"[data-list-product-sku]\"}]\n        document.body.addEventListener('click', (event) => {\n            productsList.forEach((list) => {\n                if (list?.class_name) {\n                    const clickTarget = event.target;\n                    const productLink = clickTarget.closest(list?.class_name);\n                    if (productLink) {\n                        productClick(productLink, list)\n                    }\n                }\n            });\n            return;\n        });\n\n        function productClick(element, list) {\n            const container = element.closest(list?.container_class)\n\n            \/\/ Find product url\n            let productUrl = null\n            if (container && container.querySelector('a.product-item-link')) {\n                productUrl = container.querySelector('a.product-item-link').href\n            } else if (container && container.querySelector('a.product-item-photo')) {\n                productUrl = container.querySelector('a.product-item-photo').href\n            } else {\n                productUrl = element.href\n            }\n\n            const priceBox = container.querySelector(\"[data-product-id]\")\n            if (priceBox) {\n                const productId = priceBox.dataset.productId\n\n                const productCollection = globalDatalayer.filter((layer) => layer?.ecommerce?.items).reduce((collection, layer) => collection.concat(...layer.ecommerce.items), [])\n                const product = productCollection.find((product) => product.p_id == productId)\n\n                const productClickData = {\n                    pid: productId,\n                    item_id: product.item_id,\n                    item_list_name: list.item_list_name,\n                    item_list_id: list.item_list_id,\n                    index: product.index\n                }\n                window.localStorage.setItem(\"product-click-ga4\", JSON.stringify(productClickData))\n\n                globalDatalayer.push({\n                    'event': 'select_item',\n                    'ecommerce': {\n                        'items': [product]\n                    },\n                    '_clear': true\n                });\n            }\n        }\n            })();\n<\/script>\n<!-- End Google Analytics 4 for Google Tag Manager by MagePal -->\n"}