{"product_id":"estuche-regalo-personalizado-3-botellas","title":"Personalized gift case - 3 bottles","description":"\u003cdiv class=\"vipejar-estuche-config\" data-estuche-title=\"Personalized Gift Set - 3 bottles\" data-estuche-size=\"3\"\u003e\n\n  \u003cstyle\u003e\n    .vipejar-estuche-config { margin: 22px 0; padding: 22px; border: 1px solid #e5ded4; background: #fffaf2; color: #241b16; }\n    .vipejar-estuche-config * { box-sizing: border-box; }\n    .veg-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b6234; }\n    .veg-title { margin: 0 0 10px; font-size: 24px; line-height: 1.18; color: #241b16; }\n    .veg-copy { margin: 0 0 16px; color: #5b4b3f; line-height: 1.55; }\n    .veg-fields { display: grid; gap: 12px; margin: 18px 0; }\n    .veg-field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #3b2c22; }\n    .veg-select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d7c9b8; background: #fff; color: #241b16; font-size: 15px; }\n    .veg-summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0; padding: 14px; background: #fff; border: 1px solid #eadfce; }\n    .veg-summary strong { display: block; font-size: 20px; color: #241b16; }\n    .veg-note { margin: 0; font-size: 13px; color: #6b5a4d; }\n    .veg-button { min-height: 46px; padding: 12px 18px; border: 0; background: #2f241d; color: #fff; font-weight: 700; cursor: pointer; }\n    .veg-button:disabled { opacity: .55; cursor: not-allowed; }\n    .veg-message { margin: 10px 0 0; font-size: 14px; color: #7b2f20; }\n    .veg-help { margin: 14px 0 0; padding-left: 18px; color: #5b4b3f; line-height: 1.5; }\n    @media (max-width: 640px) { .vipejar-estuche-config { padding: 18px 14px; } .veg-title { font-size: 21px; } .veg-button { width: 100%; } }\n  \u003c\/style\u003e\n  \u003cp class=\"veg-kicker\"\u003eConfigure your gift set\u003c\/p\u003e\n\n  \u003ch2 class=\"veg-title\"\u003eChoose 3 bottles\u003c\/h2\u003e\n\n  \u003cp class=\"veg-copy\"\u003eCombine three wines from our store and prepare a personalized gift. The cart will add the selected bottles at their real price and a note to prepare them together in this gift set.\u003c\/p\u003e\n\n  \u003cdiv class=\"veg-fields\"\u003e\n\n\u003clabel class=\"veg-field\"\u003e\u003cspan\u003eBottle 1\u003c\/span\u003e\u003cselect class=\"veg-select\" data-slot=\"1\" required\u003e\u003coption value=\"\"\u003eChoose a bottle\u003c\/option\u003e\u003c\/select\u003e\u003c\/label\u003e\u003clabel class=\"veg-field\"\u003e\u003cspan\u003eBottle 2\u003c\/span\u003e\u003cselect class=\"veg-select\" data-slot=\"2\" required\u003e\u003coption value=\"\"\u003eChoose a bottle\u003c\/option\u003e\u003c\/select\u003e\u003c\/label\u003e\u003clabel class=\"veg-field\"\u003e\u003cspan\u003eBottle 3\u003c\/span\u003e\u003cselect class=\"veg-select\" data-slot=\"3\" required\u003e\u003coption value=\"\"\u003eChoose a bottle\u003c\/option\u003e\u003c\/select\u003e\u003c\/label\u003e\n\n\u003c\/div\u003e\n\n  \u003cdiv class=\"veg-summary\"\u003e\n\n    \u003cdiv\u003e\n\n\u003cspan\u003eTotal bottles\u003c\/span\u003e\u003cstrong class=\"veg-total\"\u003e0.00 EUR\u003c\/strong\u003e\u003cp class=\"veg-note\"\u003eThe gift set is prepared with the chosen bottles.\u003c\/p\u003e\n\n\n\u003c\/div\u003e\n\n    \u003cbutton type=\"button\" class=\"veg-button\" disabled\u003eAdd gift set to cart\u003c\/button\u003e\n  \u003c\/div\u003e\n\n  \u003cp class=\"veg-message\" aria-live=\"polite\"\u003e\u003c\/p\u003e\n\n  \u003cul class=\"veg-help\"\u003e\n\n    \u003cli\u003eIf you want to repeat a bottle, you can select it in more than one position.\u003c\/li\u003e\n\n    \u003cli\u003eIf you need help combining wines, write to us on WhatsApp before finishing.\u003c\/li\u003e\n\n  \u003c\/ul\u003e\n\n  \u003cscript type=\"application\/json\" class=\"veg-data\"\u003e[{\"title\": \"Castaño Macabeo Chardonnay\", \"variantId\": 54140946645333, \"price\": 6.5, \"priceText\": \"6,50 EUR\", \"type\": \"Blanco\", \"handle\": \"castano-macabeo-chardonnay\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/images_1.jpg?v=1781519424\"}, {\"title\": \"Familia Valdelana Blanco\", \"variantId\": 54140942254421, \"price\": 6.5, \"priceText\": \"6,50 EUR\", \"type\": \"Blanco\", \"handle\": \"familia-valdelana-blanco\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6ab2758b1e6d49a0879b4medium.png?v=1781519827\"}, {\"title\": \"Familia Valdelana Blanco Semidulce\", \"variantId\": 54140945858901, \"price\": 6.5, \"priceText\": \"6,50 EUR\", \"type\": \"Blanco\", \"handle\": \"familia-valdelana-blanco-semidulce\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69c2104ec642cb802e308medium.png?v=1781519518\"}, {\"title\": \"Gran Bazán Ámbar\", \"variantId\": 54140948087125, \"price\": 15.3, \"priceText\": \"15,30 EUR\", \"type\": \"Blanco\", \"handle\": \"gran-bazan-ambar\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6e3c0bfbe0662f40f4183medium.png?v=1781519332\"}, {\"title\": \"Monasterio de Palazuelos Verdejo\", \"variantId\": 54140953166165, \"price\": 6.0, \"priceText\": \"6,00 EUR\", \"type\": \"Blanco\", \"handle\": \"monasterio-de-palazuelos-verdejo\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6a866bb253f5f12036e7cfull.png?v=1781518079\"}, {\"title\": \"Terras Gauda\", \"variantId\": 54140948414805, \"price\": 15.8, \"priceText\": \"15,80 EUR\", \"type\": \"Blanco\", \"handle\": \"terras-gauda\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6c105541b57f7f40b2854full.png?v=1781519242\"}, {\"title\": \"Vionta Albariño\", \"variantId\": 54140947693909, \"price\": 13.5, \"priceText\": \"13,50 EUR\", \"type\": \"Blanco\", \"handle\": \"vionta-albarino\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/viontaalbarino.jpg?v=1781517295\"}, {\"title\": \"Vionta Godello\", \"variantId\": 54140947235157, \"price\": 13.5, \"priceText\": \"13,50 EUR\", \"type\": \"Blanco\", \"handle\": \"vionta-godello\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69ec45a6d96c1bb081afcmedium.png?v=1781519368\"}, {\"title\": \"Castell D´Ordall Brut\", \"variantId\": 54140940321109, \"price\": 4.5, \"priceText\": \"4,50 EUR\", \"type\": \"Cava\", \"handle\": \"castell-d-ordall-brut\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/Sintitulo.png?v=1781519930\"}, {\"title\": \"Castell D´Ordall Semi Seco Rosado\", \"variantId\": 54140939895125, \"price\": 4.5, \"priceText\": \"4,50 EUR\", \"type\": \"Cava\", \"handle\": \"castell-d-ordall-semi-seco-rosado\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/ORDAL.png?v=1781519982\"}, {\"title\": \"1900 Campo Delle More\", \"variantId\": 54140938387797, \"price\": 10.9, \"priceText\": \"10,90 EUR\", \"type\": \"Espumoso\", \"handle\": \"1900-campo-delle-more\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6b6466b3c3349710b4e32medium.jpg?v=1781520026\"}, {\"title\": \"Familia Valdelana Rosado\", \"variantId\": 54140933767509, \"price\": 6.5, \"priceText\": \"6,50 EUR\", \"type\": \"Rosado\", \"handle\": \"familia-valdelana-rosado\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/FV_rosado-cuadrado.jpg?v=1781520052\"}, {\"title\": \"Agnus Tinto de Autor Crianza\", \"variantId\": 54140951691605, \"price\": 12.0, \"priceText\": \"12,00 EUR\", \"type\": \"Tinto\", \"handle\": \"agnus-tinto-de-autor-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69d4654a534ba1202b1abfull.png?v=1781517812\"}, {\"title\": \"Agnus Tinto de Autor Tempranillo\", \"variantId\": 54140952183125, \"price\": 8.0, \"priceText\": \"8,00 EUR\", \"type\": \"Tinto\", \"handle\": \"agnus-tinto-de-autor-cosecha\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69d8ca69cbfeb7a045e9dfull.png?v=1781518417\"}, {\"title\": \"Don Baffo Roble\", \"variantId\": 54140949692757, \"price\": 6.9, \"priceText\": \"6,90 EUR\", \"type\": \"Tinto\", \"handle\": \"don-baffo-roble\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/14159_G.jpg?v=1781519008\"}, {\"title\": \"Familia Valdelana Cosecha\", \"variantId\": 54140952510805, \"price\": 6.5, \"priceText\": \"6,50 EUR\", \"type\": \"Tinto\", \"handle\": \"familia-valdelana-cosecha\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69b5bb02f24c83a0532d4full.png?v=1781518205\"}, {\"title\": \"Familia Valdelana Crianza\", \"variantId\": 54140952379733, \"price\": 8.0, \"priceText\": \"8,00 EUR\", \"type\": \"Tinto\", \"handle\": \"familia-valdelana-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f69bb00e35bab71f05699cfull.png?v=1781518250\"}, {\"title\": \"La Baraja\", \"variantId\": 54140951232853, \"price\": 35.0, \"priceText\": \"35,00 EUR\", \"type\": \"Tinto\", \"handle\": \"la-baraja\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f693533ce66cde2f0d9b76full.png?v=1781518677\"}, {\"title\": \"Marqués de Murrieta Reserva\", \"variantId\": 54140945465685, \"price\": 24.5, \"priceText\": \"24,50 EUR\", \"type\": \"Tinto\", \"handle\": \"marques-de-murrieta-reserva\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/666bebd6d89e4533110545dcmedium.png?v=1781519659\"}, {\"title\": \"Matarromera Crianza\", \"variantId\": 54140944253269, \"price\": 25.6, \"priceText\": \"25,60 EUR\", \"type\": \"Tinto\", \"handle\": \"matarromera-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/64a6c8de9976906e770499e1medium.png?v=1781519736\"}, {\"title\": \"Pago de Carraovejas\", \"variantId\": 54140950380885, \"price\": 40.5, \"priceText\": \"40,50 EUR\", \"type\": \"Tinto\", \"handle\": \"pago-de-carraovejas\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/671b46eb00a98765ed00dec8full.png?v=1781518818\"}, {\"title\": \"Pago de los Capellanes Crianza\", \"variantId\": 54140943466837, \"price\": 28.5, \"priceText\": \"28,50 EUR\", \"type\": \"Tinto\", \"handle\": \"pago-de-los-capellanes-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/654e15a23bc8a0a19a064da3medium.png?v=1781519794\"}, {\"title\": \"Pino Doncel 12 Meses\", \"variantId\": 54140948873557, \"price\": 11.5, \"priceText\": \"11,50 EUR\", \"type\": \"Tinto\", \"handle\": \"pino-doncel-12-meses\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6bfeb5203b31e610fd5e1full.png?v=1781519105\"}, {\"title\": \"Pino Doncel 5 Meses\", \"variantId\": 54140949201237, \"price\": 7.5, \"priceText\": \"7,50 EUR\", \"type\": \"Tinto\", \"handle\": \"pino-doncel-5-meses\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6ba641deafc512f03ff3ffull.png?v=1781519062\"}, {\"title\": \"Pirapu Crianza\", \"variantId\": 54140950118741, \"price\": 9.5, \"priceText\": \"9,50 EUR\", \"type\": \"Tinto\", \"handle\": \"pirapu-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/images.jpg?v=1781518946\"}, {\"title\": \"Ramón Bilbao Crianza\", \"variantId\": 54140945006933, \"price\": 10.3, \"priceText\": \"10,30 EUR\", \"type\": \"Tinto\", \"handle\": \"ramon-bilbao-crianza\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6c17cbaa8cf541b09b883medium.png?v=1781519687\"}, {\"title\": \"Terra Incognita\", \"variantId\": 54140950872405, \"price\": 25.0, \"priceText\": \"25,00 EUR\", \"type\": \"Tinto\", \"handle\": \"terra-incognita\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/terraincognita.jpg?v=1781517307\"}, {\"title\": \"Vilano Black\", \"variantId\": 54140953887061, \"price\": 8.5, \"priceText\": \"8,50 EUR\", \"type\": \"Tinto\", \"handle\": \"vilano-black\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6918431355a5b250dbe29full_9f7bf6d2-ca6c-45a6-b264-2e368e27d987.png?v=1781517873\"}, {\"title\": \"Vilano Roble\", \"variantId\": 54140955197781, \"price\": 8.0, \"priceText\": \"8,00 EUR\", \"type\": \"Tinto\", \"handle\": \"vilano-roble\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6915dbb210349b003645cfull_edfed79d-e03e-411c-b293-3da236b6c6b6.png?v=1781517350\"}, {\"title\": \"La Madre Red\", \"variantId\": 54140937634133, \"price\": 7.0, \"priceText\": \"7,00 EUR\", \"type\": \"Vermut\", \"handle\": \"la-madre-red\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/67f6adb65f73e6697d056f5cmedium.png?v=1781520127\"}, {\"title\": \"La Madre White\", \"variantId\": 54140937109845, \"price\": 7.0, \"priceText\": \"7,00 EUR\", \"type\": \"Vermut\", \"handle\": \"la-madre-white\", \"image\": \"https:\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/lamadre.png?v=1781520289\"}]\u003c\/script\u003e\n  \u003cscript\u003e\n    (function() {\n      var root = document.currentScript.closest('.vipejar-estuche-config');\n      if (!root || root.dataset.ready === '1') return;\n      root.dataset.ready = '1';\n      var wines = JSON.parse(root.querySelector('.veg-data').textContent);\n      var selects = Array.prototype.slice.call(root.querySelectorAll('.veg-select'));\n      var total = root.querySelector('.veg-total');\n      var button = root.querySelector('.veg-button');\n      var message = root.querySelector('.veg-message');\n      var estucheTitle = root.getAttribute('data-estuche-title');\n      var size = Number(root.getAttribute('data-estuche-size'));\n      function money(value) { return value.toFixed(2).replace('.', ',') + ' EUR'; }\n      function label(wine) { return wine.title + ' - ' + wine.type + ' - ' + wine.priceText; }\n      selects.forEach(function(select) {\n        wines.forEach(function(wine) {\n          var option = document.createElement('option');\n          option.value = String(wine.variantId);\n          option.textContent = label(wine);\n          option.dataset.title = wine.title;\n          option.dataset.price = String(wine.price);\n          select.appendChild(option);\n        });\n      });\n      function selectedOptions() { return selects.map(function(select) { return select.options[select.selectedIndex]; }).filter(function(option) { return option \u0026\u0026 option.value; }); }\n      function refresh() {\n        var selected = selectedOptions();\n        var sum = selected.reduce(function(acc, option) { return acc + Number(option.dataset.price || 0); }, 0);\n        total.textContent = money(sum);\n        button.disabled = selected.length !== size;\n        message.textContent = selected.length \u0026\u0026 selected.length !== size ? 'Selecciona las ' + size + ' botellas para poder añadir el estuche.' : '';\n      }\n      selects.forEach(function(select) { select.addEventListener('change', refresh); });\n      button.addEventListener('click', function() {\n        var selected = selectedOptions();\n        if (selected.length !== size) { refresh(); return; }\n        var items = selected.map(function(option, index) {\n          return {\n            id: Number(option.value),\n            quantity: 1,\n            properties: {\n              'Estuche': estucheTitle,\n              'Botella': String(index + 1) + ' de ' + size,\n              'Preparar como regalo': 'Sí'\n            }\n          };\n        });\n        button.disabled = true;\n        button.textContent = 'Añadiendo...';\n        message.textContent = '';\n        fetch('\/cart\/add.js', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\/json', 'Accept': 'application\/json' },\n          body: JSON.stringify({ items: items })\n        })\n        .then(function(res) { if (!res.ok) throw new Error('No se pudo añadir al carrito'); return res.json(); })\n        .then(function() { window.location.href=\"\/en\/cart\"; })\n        .catch(function() { message.textContent = 'No se ha podido añadir. Revisa que las botellas sigan disponibles o contacta por WhatsApp.'; })\n        .finally(function() { button.textContent = 'Añadir estuche al carrito'; refresh(); });\n      });\n      refresh();\n    })();\n  \u003c\/script\u003e\n\n\u003c\/div\u003e","brand":"Vipejar Distribuciones","offers":[{"title":"Default Title","offer_id":54140934259029,"sku":null,"price":0.0,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0509\/4404\/9330\/files\/vipejar-estuche-3-botellas-real.jpg?v=1781541669","url":"https:\/\/vipejar.com\/en\/products\/estuche-regalo-personalizado-3-botellas","provider":"Vipejar Distribuciones","version":"1.0","type":"link"}