{
  "version": 3,
  "sources": ["/cdn/shop/t/87/assets/hk-pdp-price.js?r=step7"],
  "sourcesContent": ["/* ------------------------------------------------------------------\n   Hanakini product page price (TEST step 7, Oct 2026)\n\n   Matches the new collection cards:\n   - Sale price first, semi-bold, 16px, in the regular text color (not pink).\n   - Original price after it, grey, semi-bold, 14px, struck through.\n   - Sale pill: wine (#6E2B3A) with light pink text (#F8E8EE), the inverse\n     of the Limited Edition pill, reading \"50% OFF\" (no extra \"SALE\").\n   - Prices without the currency code and without \".00\" ($35, $37.50).\n   - Same spacing above and below the price line as before.\n   - Keeps working when the shopper switches colors or sizes.\n   The Limited Edition pill is not touched.\n   Deleting the one script line in snippets/hk-pdp-calm.liquid turns it off.\n------------------------------------------------------------------- */\n(function () {\n  if (window.__hkPdpPrice) return;\n  window.__hkPdpPrice = true;\n\n  // Extra-specific selector so these win over the older price styles\n  var P = 'html body .product-block.product-block--price';\n  var css = document.createElement('style');\n  css.textContent =\n    P + '{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:0}' +\n    P + ' > *{order:5}' +\n    P + ' > [data-product-price],' + P + ' > .product__price.on-sale[data-product-price]{order:1;color:#423232!important;font-weight:600!important;font-size:16px!important;margin:0!important}' +\n    P + ' > [data-product-price-wrap]{order:2}' +\n    P + ' [data-compare-price],' + P + ' .product__price--compare[data-compare-price]{color:#7a6e6e!important;font-weight:600!important;font-size:14px!important;text-decoration:line-through;margin:0!important}' +\n    P + ' > [data-save-price]{order:3;display:inline-block;background:#6E2B3A!important;color:#F8E8EE!important;' +\n    'border:0!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.08em;' +\n    'text-transform:uppercase;line-height:1.2!important;padding:4px 10px!important;margin:0!important}' +\n    P + ' > [data-save-price] *{color:inherit!important;font-weight:inherit!important;font-size:inherit!important}' +\n    P + ' > [data-save-price]:empty,' + P + ' > [data-save-price].hide{display:none!important}' +\n    P + ' > .product__unit-price,' + P + ' > .product__policies{flex-basis:100%;margin:0!important}';\n  (document.head || document.documentElement).appendChild(css);\n\n  function tidyMoney(s) {\n    var code = (window.Shopify && Shopify.currency && Shopify.currency.active) || 'USD';\n    return s.replace(new RegExp('\\\\s*' + code + '\\\\b', 'g'), '').replace(/([.,])00(?!\\d)/g, '');\n  }\n\n  function eachText(el, fn) {\n    var walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, null);\n    var node;\n    while ((node = walker.nextNode())) {\n      var next = fn(node.nodeValue);\n      if (next !== node.nodeValue) node.nodeValue = next;\n    }\n  }\n\n  function tidy() {\n    document.querySelectorAll('.product-block--price').forEach(function (block) {\n      block.querySelectorAll('[data-product-price], [data-compare-price]').forEach(function (el) {\n        eachText(el, function (t) { return /\\d/.test(t) ? tidyMoney(t) : t; });\n      });\n      block.querySelectorAll('[data-save-price]').forEach(function (el) {\n        // \"SALE 50% OFF\" -> \"50% OFF\"\n        eachText(el, function (t) { return tidyMoney(t.replace(/^(\\s*)sale\\s+/i, '$1')); });\n      });\n    });\n  }\n\n  var pending = false;\n  function queue() {\n    if (pending) return;\n    pending = true;\n    Promise.resolve().then(function () { pending = false; tidy(); });\n  }\n\n  if (window.MutationObserver) {\n    new MutationObserver(queue).observe(document.documentElement, { childList: true, subtree: true, characterData: true });\n  }\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', tidy);\n  else tidy();\n})();\n"],
  "mappings": "CAcC,UAAY,CACX,GAAI,OAAO,aAAc,OACzB,OAAO,aAAe,GAGtB,IAAI,EAAI,gDACJ,IAAM,SAAS,cAAc,OAAO,EACxC,IAAI,YACF,EAAI,6EACJ,EAAI,gBACJ,EAAI,2BAA6B,EAAI,wJACrC,EAAI,wCACJ,EAAI,yBAA2B,EAAI,4KACnC,EAAI,oUAGJ,EAAI,4GACJ,EAAI,8BAAgC,EAAI,oDACxC,EAAI,2BAA6B,EAAI,6DACtC,SAAS,MAAQ,SAAS,iBAAiB,YAAY,GAAG,EAE3D,SAAS,UAAU,EAAG,CACpB,IAAI,K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