{"id":5595,"date":"2026-08-26T10:47:35","date_gmt":"2026-08-26T10:47:35","guid":{"rendered":"https:\/\/getbestdealtoday.com\/index.php\/uk\/best-coffee-machines-on-amazon-co-uk\/"},"modified":"2026-08-26T10:47:35","modified_gmt":"2026-08-26T10:47:35","slug":"best-coffee-machines-on-amazon-co-uk","status":"publish","type":"post","link":"https:\/\/getbestdealtoday.com\/index.php\/uk\/best-coffee-machines-on-amazon-co-uk\/","title":{"rendered":"Best coffee machines on Amazon.co.uk"},"content":{"rendered":"<div class=\"cegg5-container\">\n    <div class=\"percentage-dropdown\">\n        <!-- Max Percentage Saved -->\n        <div class=\"max-percentage-saved bg-gray-100 rounded-8\">\n            <span class=\"sub2 text-gray-1100 font-500\">Save up to <span\n                    class=\"text-error-500\">0% Off<\/span><\/span>\n        <\/div>\n\n        <!-- Dropdown Filter -->\n        <div class=\"dropdown-wrapper\">\n            <button class=\"dropdown-button\" onclick=\"toggleDropdown(this)\">\n                <span class=\"selected-value\">\n                    <span class='sort-text' style=\"color: rgb(114, 125, 135); font-weight:300;\"> Sort:\n                    <\/span>\n                    Editor's Choice\n                <\/span>\n                <span>\u25be<\/span>\n            <\/button>\n            <div class=\"dropdown-options\">\n                                    <div class=\"dropdown-option\" data-sort=\"default\">\n                        Editor&#039;s Choice                    <\/div>\n                                    <div class=\"dropdown-option\" data-sort=\"discount\">\n                        Discount                    <\/div>\n                                    <div class=\"dropdown-option\" data-sort=\"price-lowest-first\">\n                        Price (Low to High)                    <\/div>\n                                    <div class=\"dropdown-option\" data-sort=\"price-highest-first\">\n                        Price (High to Low)                    <\/div>\n                            <\/div>\n        <\/div>\n    <\/div>\n\n\n    <!-- Products container -->\n    <div id=\"productCards\"><\/div>\n\n    <!-- Store items in JSON for JS rendering -->\n    <script>\n        const originalItems = [{\"title\":\"Tassimo by Bosch Suny 'Special Edition' Pod Coffee Machine, TAS3102GB, Black\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a Tassimo by Bosch Suny 'Special Edition' pod coffee machine in black.<\\\/li><li>The Amazon listing highlights one-button operation, Intellibrew barcode technology, and access to over 50 hot drinks.<\\\/li><li>Its automatic self-cleaning function brings real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Tassimo by Bosch Suny 'Special Edition' pod coffee machine (model TAS3102GB) in black.<\\\/li><li>Useful detail: Intellibrew technology reads each T-Disc barcode to prepare drinks without requiring heat-up time.<\\\/li><li>Material or design: sleek and compact worktop-friendly design in a special edition black finish.<\\\/li><li>Everyday use: press start to prepare branded beverages such as Costa Lattes, cappuccinos, and Cadbury hot chocolate.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":10,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B081CYDZC1?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/61Ad57LGaqL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":0,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a Tassimo by Bosch Suny 'Special Edition' pod coffee machine in black.<\\\/li><li>The Amazon listing highlights one-button operation, Intellibrew barcode technology, and access to over 50 hot drinks.<\\\/li><li>Its automatic self-cleaning function brings real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Tassimo by Bosch Suny 'Special Edition' pod coffee machine (model TAS3102GB) in black.<\\\/li><li>Useful detail: Intellibrew technology reads each T-Disc barcode to prepare drinks without requiring heat-up time.<\\\/li><li>Material or design: sleek and compact worktop-friendly design in a special edition black finish.<\\\/li><li>Everyday use: press start to prepare branded beverages such as Costa Lattes, cappuccinos, and Cadbury hot chocolate.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Breville One-Touch CoffeeHouse Coffee Machine | EspressoCappuccino & Latte Maker | 19 Bar Italian Pump | Automatic Milk Frother | ESE Pod Compatible | Black [VCF107]\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a Breville One-Touch CoffeeHouse espresso, cappuccino, and latte maker in black.<\\\/li><li>The Amazon listing highlights a 19-bar Italian pump, simple one-touch controls, and compatibility with ESE pods.<\\\/li><li>Its removable milk reservoir brings real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Breville One-Touch CoffeeHouse coffee machine (VCF107) in black.<\\\/li><li>Useful detail: 19-bar Italian pump extracts rich flavours, accompanied by single and double shot filters.<\\\/li><li>Material or design: black finish with a height-adjustable cup tray to fit different mug sizes.<\\\/li><li>Everyday use: simple one-button controls and an adjustable frother create a variety of caf\\u00e9-style drinks.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":9.800000000000000710542735760100185871124267578125,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B08BZL7FQR?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/71rFVxLsnsL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":1,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a Breville One-Touch CoffeeHouse espresso, cappuccino, and latte maker in black.<\\\/li><li>The Amazon listing highlights a 19-bar Italian pump, simple one-touch controls, and compatibility with ESE pods.<\\\/li><li>Its removable milk reservoir brings real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Breville One-Touch CoffeeHouse coffee machine (VCF107) in black.<\\\/li><li>Useful detail: 19-bar Italian pump extracts rich flavours, accompanied by single and double shot filters.<\\\/li><li>Material or design: black finish with a height-adjustable cup tray to fit different mug sizes.<\\\/li><li>Everyday use: simple one-button controls and an adjustable frother create a variety of caf\\u00e9-style drinks.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Swan Retro Pump Espresso Coffee Machine, Digital Smart Touch Display, 5 Pre-Sets, 20 Bar Pressure, Milk Frother for Latte and Cappuccino Drinks, 1 & 2-Shot Filters, 1.5 Litre, Black, SK22113BLK\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a Swan Retro digital pump espresso machine featuring 20-bar pressure and a 1.5-litre capacity.<\\\/li><li>The Amazon listing highlights a smart touch display with 5 pre-set drink options, a variable steam milk frother, and 1 and 2-shot filters.<\\\/li><li>Its powerful 20-bar pressure pump brings real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Swan Retro digital espresso coffee machine (SK22113BLK) with 1.5-litre capacity.<\\\/li><li>Useful detail: 20-bar pressure pump for bold flavour extraction, supplied with a measuring spoon and tamper.<\\\/li><li>Material or design: black retro aesthetic combined with a modern digital smart touch display.<\\\/li><li>Everyday use: select from 5 pre-set options or use the variable steam frother for lattes, cappuccinos, and hot chocolates.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":9.5999999999999996447286321199499070644378662109375,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B0FJMR35MT?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/71upRYqxK2L._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":2,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a Swan Retro digital pump espresso machine featuring 20-bar pressure and a 1.5-litre capacity.<\\\/li><li>The Amazon listing highlights a smart touch display with 5 pre-set drink options, a variable steam milk frother, and 1 and 2-shot filters.<\\\/li><li>Its powerful 20-bar pressure pump brings real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Swan Retro digital espresso coffee machine (SK22113BLK) with 1.5-litre capacity.<\\\/li><li>Useful detail: 20-bar pressure pump for bold flavour extraction, supplied with a measuring spoon and tamper.<\\\/li><li>Material or design: black retro aesthetic combined with a modern digital smart touch display.<\\\/li><li>Everyday use: select from 5 pre-set options or use the variable steam frother for lattes, cappuccinos, and hot chocolates.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Tassimo by Bosch, Finesse Classic Friendly, Pod Coffee Machine, TAS1620GB, Black\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a Tassimo by Bosch Finesse Classic Friendly pod coffee machine in black.<\\\/li><li>The Amazon listing highlights Intellibrew barcode scanning technology, simple one-touch operation, and single-serve drinks.<\\\/li><li>Its energy-efficient operation brings real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Tassimo by Bosch Finesse Classic Friendly single-serve pod coffee machine (TAS1620GB) in black.<\\\/li><li>Useful detail: Intellibrew system scans T-Disc barcodes to automatically adjust brewing time, water, and temperature.<\\\/li><li>Material or design: compact black casing made from 58% recycled plastic with an A+ energy efficiency rating.<\\\/li><li>Everyday use: one-button preparation for over 50 hot drinks from popular brands, including Costa and Cadbury.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":9.4000000000000003552713678800500929355621337890625,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B0G3Y7LW1T?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/61iTpXyA5QL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":3,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a Tassimo by Bosch Finesse Classic Friendly pod coffee machine in black.<\\\/li><li>The Amazon listing highlights Intellibrew barcode scanning technology, simple one-touch operation, and single-serve drinks.<\\\/li><li>Its energy-efficient operation brings real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Tassimo by Bosch Finesse Classic Friendly single-serve pod coffee machine (TAS1620GB) in black.<\\\/li><li>Useful detail: Intellibrew system scans T-Disc barcodes to automatically adjust brewing time, water, and temperature.<\\\/li><li>Material or design: compact black casing made from 58% recycled plastic with an A+ energy efficiency rating.<\\\/li><li>Everyday use: one-button preparation for over 50 hot drinks from popular brands, including Costa and Cadbury.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Nespresso Vertuo Pop Coffee Pod Machine Black by De'Longhi | Compact machine brews up to 6 cup sizes for Vertuo coffee pods, 12 pod discovery box included. ENV90.B\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a Nespresso Vertuo Pop coffee pod machine by De'Longhi in black.<\\\/li><li>The Amazon listing highlights smart barcode pod reading, a fast 30-second heat-up time, and brewing options for 6 cup sizes.<\\\/li><li>Its compact, space-saving design brings real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Nespresso Vertuo Pop pod coffee machine by De'Longhi (ENV90.B) in black, including a 12-pod welcome set.<\\\/li><li>Useful detail: automatically reads pod barcodes to brew 6 cup sizes from Ristretto (40ml) to Large Mug (355ml).<\\\/li><li>Material or design: compact machine made from 35% recycled plastic, designed for Nespresso Vertuo pods.<\\\/li><li>Everyday use: fast 30-second heat-up with single-button operation and automatic pod ejection.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":9.199999999999999289457264239899814128875732421875,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B0BB7KK5Y6?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/61ahAAOT9wL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":4,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a Nespresso Vertuo Pop coffee pod machine by De'Longhi in black.<\\\/li><li>The Amazon listing highlights smart barcode pod reading, a fast 30-second heat-up time, and brewing options for 6 cup sizes.<\\\/li><li>Its compact, space-saving design brings real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Nespresso Vertuo Pop pod coffee machine by De'Longhi (ENV90.B) in black, including a 12-pod welcome set.<\\\/li><li>Useful detail: automatically reads pod barcodes to brew 6 cup sizes from Ristretto (40ml) to Large Mug (355ml).<\\\/li><li>Material or design: compact machine made from 35% recycled plastic, designed for Nespresso Vertuo pods.<\\\/li><li>Everyday use: fast 30-second heat-up with single-button operation and automatic pod ejection.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"De'Longhi Nescaf\\u00e9 Dolce Gusto Piccolo XS EDG210.A, Coffee Capsule Machine with Compact Design, Automatic Shutdown, Hot and Cold Beverages, 15 Bar Pressure, Black\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a compact De'Longhi Nescaf\\u00e9 Dolce Gusto capsule coffee machine in black.<\\\/li><li>The Amazon listing highlights a 15 bar pressure system along with hot and cold beverage preparation and an automatic 1-minute shutdown feature.<\\\/li><li>Its versatile drink options and energy-efficient auto-off feature bring real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: De'Longhi Nescaf\\u00e9 Dolce Gusto Piccolo XS EDG210.A capsule coffee machine in black.<\\\/li><li>Useful detail: features 15 bar pressure and an automatic shutdown after 1 minute of inactivity.<\\\/li><li>Material or design: compact design with an intuitive interface for adjusting drink temperature and shot duration.<\\\/li><li>Everyday use: suitable for preparing over 30 varieties of hot or cold beverages using hermetically sealed capsules.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":9,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B0F4DKD7DQ?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/71+YiOmOU-L._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":5,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a compact De'Longhi Nescaf\\u00e9 Dolce Gusto capsule coffee machine in black.<\\\/li><li>The Amazon listing highlights a 15 bar pressure system along with hot and cold beverage preparation and an automatic 1-minute shutdown feature.<\\\/li><li>Its versatile drink options and energy-efficient auto-off feature bring real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: De'Longhi Nescaf\\u00e9 Dolce Gusto Piccolo XS EDG210.A capsule coffee machine in black.<\\\/li><li>Useful detail: features 15 bar pressure and an automatic shutdown after 1 minute of inactivity.<\\\/li><li>Material or design: compact design with an intuitive interface for adjusting drink temperature and shot duration.<\\\/li><li>Everyday use: suitable for preparing over 30 varieties of hot or cold beverages using hermetically sealed capsules.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Morphy Richards Equip Filter Coffee Machine, Coffee Maker for Instant Coffee, Pour Over Technology, 10 Cup, Anti Drip, Reusable Filter, Keep Warm, Aroma Blender, Black\\\/Brushed Steel, 162501\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a 10-cup filter coffee machine featuring pour over technology.<\\\/li><li>The Amazon listing highlights a 1.2-litre capacity, a reusable permanent filter, an anti-drip device, and a 40-minute keep-warm function.<\\\/li><li>Its mess-free anti-drip design and durable permanent filter bring real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Morphy Richards Equip filter coffee maker with a 1.2L glass carafe.<\\\/li><li>Useful detail: features an anti-drip device, an easy-view water level indicator, and an aroma blender.<\\\/li><li>Material or design: black and brushed steel finish with a polypropylene reusable permanent filter.<\\\/li><li>Everyday use: brews up to 10 cups at a time and keeps coffee warm for up to 40 minutes before automatic switch-off.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":8.800000000000000710542735760100185871124267578125,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B07BMF73RR?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/517FA6JX4JL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":6,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a 10-cup filter coffee machine featuring pour over technology.<\\\/li><li>The Amazon listing highlights a 1.2-litre capacity, a reusable permanent filter, an anti-drip device, and a 40-minute keep-warm function.<\\\/li><li>Its mess-free anti-drip design and durable permanent filter bring real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Morphy Richards Equip filter coffee maker with a 1.2L glass carafe.<\\\/li><li>Useful detail: features an anti-drip device, an easy-view water level indicator, and an aroma blender.<\\\/li><li>Material or design: black and brushed steel finish with a polypropylene reusable permanent filter.<\\\/li><li>Everyday use: brews up to 10 cups at a time and keeps coffee warm for up to 40 minutes before automatic switch-off.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"Swan SK22110GRYN Nordic Espresso Coffee Machine with Milk Frother, Steam Pressure Control, 1.2L Detachable Water Tank, 1100W, Nordic Slate Grey\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is an 1100W Nordic espresso coffee machine with a milk frother.<\\\/li><li>The Amazon listing highlights compatibility with ground coffee and ESE pods, a 1.2-litre detachable water tank, and steam pressure control.<\\\/li><li>Its versatile pod and ground coffee compatibility alongside a removable drip tray bring real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: Swan Nordic espresso machine with milk frother in Nordic Slate Grey.<\\\/li><li>Useful detail: features an 1100W motor, steam pressure control, and a 1.2L detachable water tank.<\\\/li><li>Material or design: Scandinavian-inspired design featuring a stylish wooden dial and knob.<\\\/li><li>Everyday use: compatible with ground coffee and ESE pods, with a removable drip tray to accommodate taller cups.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":8.5999999999999996447286321199499070644378662109375,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B082WMQQWW?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/71KYMwrMxcL._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":7,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is an 1100W Nordic espresso coffee machine with a milk frother.<\\\/li><li>The Amazon listing highlights compatibility with ground coffee and ESE pods, a 1.2-litre detachable water tank, and steam pressure control.<\\\/li><li>Its versatile pod and ground coffee compatibility alongside a removable drip tray bring real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: Swan Nordic espresso machine with milk frother in Nordic Slate Grey.<\\\/li><li>Useful detail: features an 1100W motor, steam pressure control, and a 1.2L detachable water tank.<\\\/li><li>Material or design: Scandinavian-inspired design featuring a stylish wooden dial and knob.<\\\/li><li>Everyday use: compatible with ground coffee and ESE pods, with a removable drip tray to accommodate taller cups.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"De'Longhi ECP35.31Traditional Barista Pump Espresso Machine, Coffee and Cappuccino Maker, Black\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is a traditional barista pump espresso machine for coffee and cappuccino.<\\\/li><li>The Amazon listing highlights an adjustable milk frother, a 1-litre water tank, and compatibility with E.S.E. pods and ground coffee.<\\\/li><li>Its versatile brewing options and double drip tray bring real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: De'Longhi ECP35.31 traditional barista pump espresso and cappuccino maker in black.<\\\/li><li>Useful detail: includes an adjustable milk frother for steamed milk and a 1-litre water tank.<\\\/li><li>Material or design: black finish with premium detailing and a double drip tray.<\\\/li><li>Everyday use: allows brewing with either ground coffee or E.S.E. pods.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":8.4000000000000003552713678800500929355621337890625,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B013GDE0SU?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/612GEaU7A7L._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":8,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is a traditional barista pump espresso machine for coffee and cappuccino.<\\\/li><li>The Amazon listing highlights an adjustable milk frother, a 1-litre water tank, and compatibility with E.S.E. pods and ground coffee.<\\\/li><li>Its versatile brewing options and double drip tray bring real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: De'Longhi ECP35.31 traditional barista pump espresso and cappuccino maker in black.<\\\/li><li>Useful detail: includes an adjustable milk frother for steamed milk and a 1-litre water tank.<\\\/li><li>Material or design: black finish with premium detailing and a double drip tray.<\\\/li><li>Everyday use: allows brewing with either ground coffee or E.S.E. pods.<\\\/li><\\\/ul>\",\"pick_by\":\"\"},{\"title\":\"NESCAFE\\u0301 EDG226.A Dolce Gusto Genio S Automatic coffee machine Anthracite by Delonghi\",\"description\":\"<h3>Why We Love It<\\\/h3><ul><li>The product title makes it clear this is an automatic NESCAF\\u00c9 Dolce Gusto Genio S pod coffee machine in Anthracite by De'Longhi.<\\\/li><li>The Amazon listing highlights a 15 bar pump pressure system, hot and cold beverage brewing options, and an energy-efficient eco-mode.<\\\/li><li>Its compact design and easy-to-clean pod brewing system bring real everyday value.<\\\/li><\\\/ul><h3>Main Highlights<\\\/h3><ul><li>Product info: NESCAF\\u00c9 Dolce Gusto Genio S automatic coffee machine EDG226.A in Anthracite by De'Longhi.<\\\/li><li>Useful detail: features a maximum 15 bar pump pressure, a 0.8L water tank, and a 1-minute automatic switch-off eco-mode.<\\\/li><li>Material or design: compact footprint measuring 11.2cm W x 27.3cm H x 28.8cm D with an adjustable drip tray.<\\\/li><li>Everyday use: prepares both hot and cold beverages at the touch of a button with over 40 drink varieties available.<\\\/li><\\\/ul>\",\"manufacturer\":\"\",\"price\":\"\",\"percentageSaved\":0,\"ratingDecimal\":8.199999999999999289457264239899814128875732421875,\"url\":\"https:\\\/\\\/www.amazon.co.uk\\\/dp\\\/B0CMD922SQ?linkCode=ll2&tag=backtranuknew-21&ref_=as_li_ss_tl\",\"img\":\"https:\\\/\\\/m.media-amazon.com\\\/images\\\/I\\\/71Zu8UOKO0L._AC_UL320_.jpg\",\"merchant\":\"Www.amazon.co.uk\",\"logo\":\"https:\\\/\\\/getbestdealtoday.com\\\/wp-content\\\/plugins\\\/content-egg\\\/res\\\/logos\\\/amazon.webp\",\"index\":9,\"why_love\":\"<h3 class=\\\"why-love-heading\\\">Why We Love It<\\\/h3><ul class=\\\"why-love-list\\\"><li>The product title makes it clear this is an automatic NESCAF\\u00c9 Dolce Gusto Genio S pod coffee machine in Anthracite by De'Longhi.<\\\/li><li>The Amazon listing highlights a 15 bar pump pressure system, hot and cold beverage brewing options, and an energy-efficient eco-mode.<\\\/li><li>Its compact design and easy-to-clean pod brewing system bring real everyday value.<\\\/li><\\\/ul>\",\"highlights\":\"<h3 class=\\\"highlight-heading\\\">Main Highlights<\\\/h3><ul class=\\\"highlight-list\\\"><li>Product info: NESCAF\\u00c9 Dolce Gusto Genio S automatic coffee machine EDG226.A in Anthracite by De'Longhi.<\\\/li><li>Useful detail: features a maximum 15 bar pump pressure, a 0.8L water tank, and a 1-minute automatic switch-off eco-mode.<\\\/li><li>Material or design: compact footprint measuring 11.2cm W x 27.3cm H x 28.8cm D with an adjustable drip tray.<\\\/li><li>Everyday use: prepares both hot and cold beverages at the touch of a button with over 40 drink varieties available.<\\\/li><\\\/ul>\",\"pick_by\":\"\"}];\n\n        let currentItems = [...originalItems];\n\n        function toggleDropdown(button) {\n            const dropdown = button.nextElementSibling;\n            dropdown.classList.toggle('show');\n        }\n\n        function renderCards(items) {\n            const productCards = document.getElementById('productCards');\n            productCards.innerHTML = '';\n            let productNumber = 1;\n            items.forEach((item, key) => {\n                if (productNumber > 10) return;\n                const rating = item.ratingDecimal \/ 2;\n                const statusLabel = item.ratingDecimal >= 9 ? 'Exceptional' : (item.ratingDecimal >= 8 ? 'Very Good' : 'Good');\n                const badge = key === 0\n                    ? `<div class=\"badge-top-number\">\n                        <svg class=\"part1 -top-29 sm:left-10 sm:-top-18 lg:-top-17 lg:left-11 text-secondary-600\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"43\" height=\"33\" viewBox=\"0 0 43 33\" fill=\"none\">\n                            <path d=\"M41.6249 1L29.4082 32H1.00379V12.5C1.00379 6.14873 6.15251 1 12.5038 1H41.6249Z\" fill=\"#0d6efd\" stroke=\"#C7E2FE\"><\/path>\n                            <path d=\"M40.3829 2.00002L41.8668 0.993072L29.2422 33.0156L28.5547 31.9922L40.3829 2.00002Z\" fill=\"secondary-600\"><\/path>\n                            <foreignObject x=\"50%\" y=\"25%\" width=\"16\" height=\"25\" transform=\"translate(-12,-8)\">\n                                <img decoding=\"async\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/trophy-white.svg\" width=\"16\" height=\"16\">\n                            <\/foreignObject>\n                        <\/svg>\n                        <svg class=\"part2 left-1 top-3 sm:left-11 sm:top-14 lg:top-15 lg:left-12\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"7\" height=\"7\" viewBox=\"0 0 7 7\" fill=\"none\">\n                            <path class=\"fill-secondary-700\" d=\"M6.5 6.5L0.5 0.5H6.5V6.5Z\" fill=\"#0d6efd\"><\/path>\n                        <\/svg>\n                        <svg id=\"dynamic-svg\" class=\"part3 z-1 -top-28 left-28 sm:left-39 sm:-top-17 lg:-top-16 lg:left-38\" width=\"116.6875\" height=\"33\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 116.6875 33\" fill=\"none\">\n                            <path id=\"Rectangle\" class=\"stroke-gray-200 group-first:stroke-secondary-200 group-hover:lg:gray-300 group-first:group-hover:lg:secondary-300 transition-all duration-500\" d=\"M0.734097 31.5 L12.9339 0.5 H104.1875 C110.5385 0.5 115.6875 5.64873 115.6875 12 V20 C115.6875 26.3513 110.5385 31.5 104.1875 31.5 H0.734097Z\" fill=\"white\" stroke=\"#C7E2FE\"><\/path>\n                            <text id=\"text\" class=\"mini1 font-400 leading-20 text-14 text-\" x=\"50%\" y=\"49%\" dominant-baseline=\"middle\" text-anchor=\"middle\" fill=\"currentColor\">Best Choice<\/text>\n                        <\/svg>\n                    <\/div>`\n                    : key === 1\n                        ? `<div class=\"badge-top-number\">\n                            <svg class=\"part1 -top-29 sm:left-10 sm:-top-18 lg:-top-17 lg:left-11 text-error-400\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"43\" height=\"33\" viewBox=\"0 0 43 33\" fill=\"none\">\n                                <path d=\"M41.6249 1L29.4082 32H1.00379V12.5C1.00379 6.14873 6.15251 1 12.5038 1H41.6249Z\" fill=\"rgb(245 148 175)\" stroke=\"#E1E4E6\"><\/path>\n                                <path d=\"M40.3829 2.00002L41.8668 0.993072L29.2422 33.0156L28.5547 31.9922L40.3829 2.00002Z\" fill=\"error-400\"><\/path>\n                                <foreignObject x=\"50%\" y=\"25%\" width=\"16\" height=\"25\" transform=\"translate(-12,-8)\">\n                                    <img decoding=\"async\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/diamond-white.svg\" width=\"16\" height=\"16\">\n                                <\/foreignObject>\n                            <\/svg>\n                            <svg class=\"part2 left-1 top-3 sm:left-11 sm:top-14 lg:top-15 lg:left-12\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"7\" height=\"7\" viewBox=\"0 0 7 7\" fill=\"none\">\n                                <path class=\"fill-error-500\" d=\"M6.5 6.5L0.5 0.5H6.5V6.5Z\" fill=\"rgb(245 148 175)\"><\/path>\n                            <\/svg>\n                            <svg id=\"dynamic-svg\" class=\"part3 z-1 -top-28 left-28 sm:left-39 sm:-top-17 lg:-top-16 lg:left-38\" width=\"145.04166412353516\" height=\"33\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 145.04166412353516 33\" fill=\"none\">\n                                <path id=\"Rectangle\" class=\"stroke-gray-200 group-first:stroke-secondary-200 group-hover:lg:gray-300 group-first:group-hover:lg:secondary-300 transition-all duration-500\" d=\"M0.734097 31.5 L12.9339 0.5 H132.54166412353516 C138.89266412353516 0.5 144.04166412353516 5.64873 144.04166412353516 12 V20 C144.04166412353516 26.3513 138.89266412353516 31.5 132.54166412353516 31.5 H0.734097Z\" fill=\"white\" stroke=\"#C7E2FE\"><\/path>\n                                <text id=\"text\" class=\"mini1 font-400 leading-20 text-14 text-\" x=\"50%\" y=\"49%\" dominant-baseline=\"middle\" text-anchor=\"middle\" fill=\"currentColor\">Value for Money<\/text>\n                            <\/svg>\n                        <\/div>`\n                        : '';\n\n                const escapedTitle = item.title.replace(\/\"\/g, '&quot;').split(' ').slice(0, 7).join(' ');\n                const escapedManufacturer = item.manufacturer ? item.manufacturer.replace(\/\"\/g, '&quot;') : '';\n                const escapedMerchant = item.merchant ? item.merchant.replace(\/\"\/g, '&quot;') : '';\n                const tooltip = productNumber === 1 ? `\n                    <div class=\"tooltip-container\" id=\"tooltipTrigger\">\n                        <span class=\"tooltip-link\"><\/span>\n                        <img decoding=\"async\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/bulb.svg\" alt=\"\" class=\"bulb\">\n                        <u class=\"how-do-we-rank-1 text-primary-500\">How do we rank?<\/u>\n                        <div class=\"tooltip-box\" id=\"tooltipBox\">\n                            <img decoding=\"async\" class=\"absolute -top-9 right-165 sm:-top-5 tooltip-arrow\"\n                                src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/tooltip-arrow.svg\" alt=\"\">\n                            <img decoding=\"async\" class=\"tooltip-close close-btn absolute right-16 top-16 cursor-pointer\"\n                                src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/close-btn.svg\" id=\"closeTooltip\" alt=\"\">\n                            <span class=\"how-do-we-rank sub2 text-gray-1100\">How do we rank<\/span>\n                            <p class=\"description text-gray-1000\">Our AI-powered platform ranks products using multiple weighted factors\n                                from millions of products and user reviews across the web, providing the most valuable and real data. Higher scores rank first.<\/p>\n                        <\/div>\n                    <\/div>` : '';\n                const tooltip_end = productNumber === 10 ? `\n                    <div class=\"tooltip-container\">\n                        <img decoding=\"async\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/a62737db\/img\/discover.svg\" class=\"bulb\">\n                        <span class=\"mini2 how-do-we-rank-1 text-primary-500\" >Discover top deals and categories on Amazon<\/span>\n                        <a  href=\"https:\/\/www.amazon.com\/s?k=coffee-machines-on-amazon.co.uk&#038;tag=bedan-20\" target=\"_blank\" ><u class=\"how-do-we-rank-1 text-primary-500\">Check Deals<\/u><\/a>    \n                        <\/div>\n                    <\/div>` : '';\n                const card = `\n                    <div class=\"card mb-3\" data-price=\"${item.price ?? ''}\" data-discount=\"${item.percentageSaved ?? 0}\" data-index=\"${item.index}\">\n                        ${badge}\n                        <div class=\"product-number-badge\">${productNumber}<\/div>\n                        <div class=\"row g-0 align-items-center product-row\">\n                            <div class=\"col\">\n                                <div class=\"image-and-rating\">\n                                    <div class=\"image-column\">\n                                        <a href=\"${item.url}\" target=\"_blank\" rel=\"nofollow\">\n                                            <img decoding=\"async\" src=\"${item.img}\" alt=\"${escapedTitle}\" class=\"product-image img-fluid\" \/>\n                                        <\/a>\n                                        ${escapedManufacturer ? `<div class=\"manufacturer mt-0.5\">${escapedManufacturer}<\/div>` : ''}\n                                    <\/div>\n                                    <div class=\"rating-column\">\n                                        <div class=\"fw-bold fs-4 rating-number\">${item.ratingDecimal.toFixed(1)}<\/div>\n                                        <div class=\"text-muted small\">${statusLabel}<\/div>\n                                        <div class=\"rating-stars\">\n                                            ${[...Array(5)].map((_, i) => {\n                    if (rating >= i + 1) {\n                        return '<span class=\"star\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 20 20\"><polygon points=\"10,1 12.59,7.36 19.51,7.36 13.96,11.64 16.55,17.99 10,13.71 3.45,17.99 6.04,11.64 0.49,7.36 7.41,7.36\" fill=\"#FFD700\"\/><\/svg><\/span>';\n                    } else if (rating >= i + 0.5) {\n                        return '<span class=\"star\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 20 20\"><defs><linearGradient id=\"half_${key}_${i}\"><stop offset=\"50%\" stop-color=\"#FFD700\"\/><stop offset=\"50%\" stop-color=\"#e0e0e0\"\/><\/linearGradient><\/defs><polygon points=\"10,1 12.59,7.36 19.51,7.36 13.96,11.64 16.55,17.99 10,13.71 3.45,17.99 6.04,11.64 0.49,7.36 7.41,7.36\" fill=\"url(#half_${key}_${i})\"\/><\/svg><\/span>';\n                    } else {\n                        return '<span class=\"star\"><svg width=\"18\" height=\"18\" viewBox=\"0 0 20 20\"><polygon points=\"10,1 12.59,7.36 19.51,7.36 13.96,11.64 16.55,17.99 10,13.71 3.45,17.99 6.04,11.64 0.49,7.36 7.41,7.36\" fill=\"#e0e0e0\"\/><\/svg><\/span>';\n                    }\n                }).join('')}\n                                        <\/div>\n                                    <\/div>\n                                <\/div>\n                            <\/div>\n                            <div class=\"col text-md-start title-column\">\n                                    <div class=\"title-percentage\">\n                                    <a href=\"${item.url}\" target=\"_blank\" rel=\"nofollow\" class=\"h5 d-block product-title\">\n                                    <h5 class=\"product-title text-gray-1100\">    \n                                    ${escapedTitle}...\n                                    <\/h5>\n                                    <\/a>\n                                \n                                    ${item.percentageSaved > 0 ? `<div class=\"percentage-saved\">${item.percentageSaved}% Off<\/div>` : ''}\n                                    <\/div>\n                                    \n                                    ${key === 0 && item.pick_by ? `\n                                        <a class=\"pick-by\">\n                                            <img decoding=\"async\" class=\"w-16\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/picked-grey.svg\" alt=\"\">\n                                            <div class=\"productWatcherFeature body2 text-gray-900 font-300\">Picked by <span class=\"sub2 text-gray-900 font-600\">${item.pick_by} users<\/span> this month<\/div>\n                                        <\/a>` : ''}\n                                    ${item.why_love || item.highlights ? `\n                                        <div class=\"toggle-desc\" data-content-id=\"content-${key}\">Show more<\/div>\n                                        <div class=\"content-${key}-details\" style=\"display:none;\">\n                                            ${item.why_love || ''}\n                                            ${item.highlights || ''}\n                                        <\/div>` : ''}\n                                \n                            <\/div>\n                            <div class=\"col buy-column\">\n                                ${item.logo ? `<img decoding=\"async\" src=\"${item.logo}\" alt=\"${escapedMerchant}\" class=\"merchant-logo\">` : ''}\n                                <a href=\"${item.url}\" target=\"_blank\" rel=\"nofollow\" class=\"check-price-button\">Check Price<\/a>\n                            <\/div>\n                            ${key === 0 && item.pick_by ? `\n                                <a class=\"pick-by-mobile\">\n                                    <img decoding=\"async\" class=\"w-16\" src=\"https:\/\/d1ttb1lnpo2lvz.cloudfront.net\/22823cdb\/img\/picked-grey.svg\" alt=\"\">\n                                    <div class=\"productWatcherFeature body2 text-gray-900 font-300\">Picked by <span class=\"sub2 text-gray-900 font-600\">${item.pick_by} users<\/span> this month<\/div>\n                                <\/a>` : ''}\n                        <\/div>\n                        ${item.why_love || item.highlights ? `\n                            <div class=\"description-container\">\n                                <div class=\"show-more-content px-3 text-muted\" id=\"content-${key}\">\n                                    ${item.why_love || ''}${item.highlights || ''}\n                                <\/div>\n                                <div class=\"toggle-desc-secondary\" data-content-id=\"content-${key}\">Show more<\/div>\n                            <\/div>` : ''}\n                    <\/div>        ${tooltip} ${tooltip_end}`\n\n                    ;\n                productCards.insertAdjacentHTML('beforeend', card);\n                productNumber++;\n            });\n\n            \/\/ Re-attach toggle event listeners for description toggles\n            const toggles = document.querySelectorAll('.toggle-desc, .toggle-desc-secondary');\n            toggles.forEach(toggle => {\n                toggle.addEventListener('click', () => {\n                    const contentId = toggle.getAttribute('data-content-id');\n                    const content = document.getElementById(contentId);\n                    if (!content) return;\n                    const isVisible = content.classList.contains('is-visible');\n                    content.classList.toggle('is-visible', !isVisible);\n                    const relatedToggles = document.querySelectorAll(`[data-content-id=\"${contentId}\"]`);\n                    relatedToggles.forEach(t => {\n                        t.textContent = isVisible ? 'Show more' : 'Show less';\n                    });\n                });\n            });\n        }\n\n        function sortItems(type) {\n            currentItems = [...originalItems];\n            if (type === 'price-lowest-first') {\n                currentItems.sort((a, b) => (a.price ?? Infinity) - (b.price ?? Infinity));\n            } else if (type === 'price-highest-first') {\n                currentItems.sort((a, b) => (b.price ?? 0) - (a.price ?? 0));\n            } else if (type === 'discount') {\n                currentItems.sort((a, b) => (b.percentageSaved ?? 0) - (a.percentageSaved ?? 0));\n            } else {\n                currentItems.sort((a, b) => a.index - b.index); \/\/ Default: Editor's Choice\n            }\n            renderCards(currentItems);\n        }\n\n        \/\/ Initialize render\n        renderCards(currentItems);\n\n        \/\/ Add dropdown event listeners\n        document.querySelectorAll('.dropdown-option').forEach(option => {\n            option.addEventListener('click', function () {\n\n                const label = this.textContent;\n                const sortType = this.getAttribute('data-sort');\n                \/\/ Update the inner HTML with a styled span just for \"Sort: \"\n                document.querySelector('.selected-value').innerHTML = `\n                    <span class=\"sort-text\" style=\"color: rgb(114, 125, 135); font-weight:300;\">Sort: ${label}<\/span>\n                `;\n                document.querySelector('.dropdown-options').classList.remove('show');\n                sortItems(sortType);\n            });\n        });\n\n        \/\/ Handle clicks outside dropdown to close it\n        document.addEventListener('click', (e) => {\n            const dropdown = document.querySelector('.dropdown-options');\n            const button = document.querySelector('.dropdown-button');\n            if (dropdown && !dropdown.contains(e.target) && !button.contains(e.target)) {\n                dropdown.classList.remove('show');\n            }\n        });\n\n        \/\/ Add footer\n        const footer = `<div class=\"text-muted small\">Prices and availability are subject to change. Last updated: ${new Date().toISOString().split('T')[0]}.<\/div>`;\n        document.getElementById('productCards').insertAdjacentHTML('afterend', footer);\n\n        \/\/  create tooltip functionality\n        const tooltipTrigger = document.getElementById('tooltipTrigger');\n        const tooltipBox = document.getElementById('tooltipBox');\n        const closeTooltip = document.getElementById('closeTooltip');\n\n        tooltipTrigger.addEventListener('click', (e) => {\n            \/\/ Prevent closing when clicking inside the tooltip\n            if (e.target.closest('#tooltipBox')) return;\n            tooltipBox.style.display = tooltipBox.style.display === 'block' ? 'none' : 'block';\n        });\n\n        closeTooltip.addEventListener('click', (e) => {\n            tooltipBox.style.display = 'none';\n            e.stopPropagation();\n        });\n\n        document.addEventListener('click', (e) => {\n            if (!tooltipTrigger.contains(e.target)) {\n                tooltipBox.style.display = 'none';\n            }\n        });\n    <\/script>\n<\/div><p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"Save up to 0% Off Sort: Editor's Choice \u25be Editor&#039;s Choice Discount Price (Low to High) Price (High to Low)","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","inline_featured_image":false,"footnotes":""},"categories":[286],"tags":[],"offerexpiration":[],"class_list":["post-5595","post","type-post","status-publish","format-standard","hentry","category-uk"],"_links":{"self":[{"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/posts\/5595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/comments?post=5595"}],"version-history":[{"count":0,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"wp:attachment":[{"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/tags?post=5595"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/getbestdealtoday.com\/index.php\/wp-json\/wp\/v2\/offerexpiration?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}