{"product_id":"build-your-own-spring-garden-seed-collection-kit-20-seed-garden","title":"Build Your Own Spring Garden Seed Collection Kit | 20 Seed Garden","description":"\u003cdiv id=\"hpn-about\" class=\"hpn-about\"\u003e\n\u003ch2\u003eGrow Your Garden, Your Way!\u003c\/h2\u003e\n\u003cp\u003eSkip the preselected seed packs. Choose exactly which vegetables, varieties and quantities go into your spring garden. Every kit is prepared just for you.\u003c\/p\u003e\n\u003ch3\u003eWhat's Included\u003c\/h3\u003e\n\u003cul class=\"hpn-included\"\u003e\n\u003cli\u003e\n\u003cstrong\u003e20 seed credits\u003c\/strong\u003e to spend on the varieties you want\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCustom biodegradable seed strips\u003c\/strong\u003e made with your picks\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eFree companion seeds:\u003c\/strong\u003e marigold, basil and thyme\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSoil Boost starter\u003c\/strong\u003e to give your garden a head start\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eRock-wool seed-starting tray\u003c\/strong\u003e for starting seeds indoors\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eEasy planting instructions\u003c\/strong\u003e for every vegetable you choose\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eChoose From 10 Spring Vegetables\u003c\/h3\u003e\n\u003cul class=\"hpn-veg\"\u003e\n\u003cli\u003eTomatoes\u003c\/li\u003e\n\u003cli\u003ePeppers\u003c\/li\u003e\n\u003cli\u003eCucumbers\u003c\/li\u003e\n\u003cli\u003eCarrots\u003c\/li\u003e\n\u003cli\u003eGreen Beans\u003c\/li\u003e\n\u003cli\u003eZucchini\u003c\/li\u003e\n\u003cli\u003eYellow Squash\u003c\/li\u003e\n\u003cli\u003eSweet Corn\u003c\/li\u003e\n\u003cli\u003eEggplant\u003c\/li\u003e\n\u003cli\u003ePeas\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eHow Credits Work\u003c\/h3\u003e\n\u003cp\u003eStandard varieties use 1 credit and specialty varieties use 2. The builder keeps track as you choose. Want to grow more? Pick the 26-credit kit.\u003c\/p\u003e\n\u003cp class=\"hpn-promo\"\u003e\u003cstrong\u003eChristmas Pre-Order Special: $39.95\u003c\/strong\u003e\u003cbr\u003eShips early spring 2027. A great gift for gardeners, families and grandparents.\u003cbr\u003e\u003cstrong\u003eGiving it as a gift?\u003c\/strong\u003e Check the gift box and we'll mail a Christmas card. The recipient picks their own seeds online by February 15, 2027.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHand Picked Nursery — Veteran Owned, Family Run\u003c\/strong\u003e\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003c!-- ============================================================\n  HAND PICKED NURSERY — Spring Garden Seed Kit Builder\n  Paste this whole file into a \"Custom Liquid\" block on the\n  Spring Garden Seed Collection Kit product template.\n  It only runs on a product whose title contains\n  \"Spring Garden Seed Collection\". All other products are unchanged.\n  ============================================================ --\u003e\n\n\n\u003cdiv id=\"hpn-kit\" class=\"hpn-kit\" style=\"display:none\"\u003e\n  \u003ch2 class=\"hpn-title\"\u003eBuild Your Seed Collection\u003c\/h2\u003e\n\n  \u003cdiv class=\"hpn-sizes\" id=\"hpn-sizes\" role=\"radiogroup\" aria-label=\"Kit size\"\u003e\u003c\/div\u003e\n\n  \u003clabel class=\"hpn-gift-toggle\"\u003e\u003cinput type=\"checkbox\" id=\"hpn-gift\"\u003e \u003cspan\u003e\u003cstrong\u003eThis is a gift.\u003c\/strong\u003e Let the recipient choose their own seeds later.\u003c\/span\u003e\u003c\/label\u003e\n  \u003cdiv class=\"hpn-gift-box\" id=\"hpn-gift-box\" hidden\u003e\n    \u003cp\u003eWe'll mail a Christmas card with instructions. The recipient picks their seeds online by \u003cstrong id=\"hpn-deadline-text\"\u003e\u003c\/strong\u003e, and the kit ships in early spring. \u003cstrong\u003eEnter the recipient's address at checkout.\u003c\/strong\u003e\u003c\/p\u003e\n    \u003clabel\u003eRecipient's name \u003cspan class=\"hpn-req\"\u003e*\u003c\/span\u003e\u003cinput type=\"text\" id=\"hpn-recipient\" maxlength=\"80\" autocomplete=\"off\"\u003e\u003c\/label\u003e\n    \u003clabel\u003eMessage for the card (optional)\u003ctextarea id=\"hpn-gift-msg\" rows=\"3\" maxlength=\"300\"\u003e\u003c\/textarea\u003e\u003c\/label\u003e\n  \u003c\/div\u003e\n\n  \u003cdiv id=\"hpn-pick\"\u003e\n  \u003cdiv class=\"hpn-meter\" aria-live=\"polite\"\u003e\n    \u003cdiv class=\"hpn-meter-text\"\u003e\n\u003cstrong id=\"hpn-used\"\u003e0\u003c\/strong\u003e of \u003cstrong id=\"hpn-limit\"\u003e20\u003c\/strong\u003e credits used · \u003cspan id=\"hpn-left\"\u003e20 left\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"hpn-bar\"\u003e\u003cdiv class=\"hpn-bar-fill\" id=\"hpn-bar-fill\"\u003e\u003c\/div\u003e\u003c\/div\u003e\n  \u003c\/div\u003e\n\n  \u003cp class=\"hpn-note\"\u003eStandard varieties use \u003cstrong\u003e1 credit\u003c\/strong\u003e. Specialty varieties use \u003cstrong\u003e2 credits\u003c\/strong\u003e. Use all of your credits to add the kit to your cart.\u003cbr\u003e\n  Included free in every kit: marigold, basil and thyme companion seeds.\u003c\/p\u003e\n\n  \u003cdiv id=\"hpn-categories\"\u003e\u003c\/div\u003e\n  \u003c\/div\u003e\n\n  \u003cdiv class=\"hpn-footer\"\u003e\n    \u003cdiv class=\"hpn-price\"\u003eKit price: \u003cstrong id=\"hpn-price\"\u003e$39.95\u003c\/strong\u003e\n\u003c\/div\u003e\n    \u003cp class=\"hpn-msg\" id=\"hpn-msg\"\u003e\u003c\/p\u003e\n    \u003cbutton type=\"button\" class=\"hpn-add\" id=\"hpn-add\" disabled\u003eAdd to cart\u003c\/button\u003e\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cstyle\u003e\n  .hpn-about { clear:both; display:block; width:100%; padding-top:1.5rem; line-height:1.5; }\n  .hpn-about h2 { margin:0 0 .5rem; }\n  .hpn-about h3 { margin:1.1rem 0 .4rem; font-size:1.15em; }\n  .hpn-about p { margin:0 0 .6rem; }\n  .hpn-included { margin:0; padding-left:1.1rem; }\n  .hpn-included li { margin:.2rem 0; }\n  .hpn-veg { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:.35rem; }\n  .hpn-veg li { background:#eef5ee; border:1px solid #d6e2d6; border-radius:99px; padding:.2rem .7rem; text-align:center; font-size:.92em; }\n  .hpn-promo { background:#fdf3e1; border:1px solid #f1d9a9; border-radius:10px; padding:.7rem .9rem; margin-top:1rem !important; }\n  .hpn-kit { --hpn-green:#2f6b3a; --hpn-light:#eef5ee; --hpn-border:#d6e2d6; --hpn-gold:#b7791f;\n    font-family: inherit; color: inherit; margin: 1rem 0; max-width: 100%; }\n  .hpn-title { margin: 0 0 1rem; }\n  .hpn-sizes { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin-bottom:1rem; }\n  .hpn-size { border:2px solid var(--hpn-border); border-radius:10px; padding:.75rem; background:#fff;\n    cursor:pointer; text-align:left; font:inherit; color:inherit; }\n  .hpn-size[aria-checked=\"true\"] { border-color:var(--hpn-green); background:var(--hpn-light); }\n  .hpn-size b { display:block; }\n  .hpn-size small { opacity:.8; }\n  .hpn-meter { position:sticky; top:0; z-index:5; background:#fff; padding:.6rem 0; border-bottom:1px solid var(--hpn-border); }\n  .hpn-meter-text { margin-bottom:.4rem; }\n  .hpn-bar { height:10px; background:#e8ece8; border-radius:99px; overflow:hidden; }\n  .hpn-bar-fill { height:100%; width:0; background:var(--hpn-green); transition:width .2s; }\n  .hpn-bar-fill.hpn-over { background:#c0392b; }\n  .hpn-note { font-size:.92em; opacity:.9; margin:.8rem 0; }\n  #hpn-categories { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:.5rem; align-items:start; }\n  .hpn-cat { margin:0 !important; }\n  .hpn-cat { border:1px solid var(--hpn-border); border-radius:10px; margin:.5rem 0; background:#fff; }\n  .hpn-cat summary { padding:.65rem .8rem; cursor:pointer; font-weight:600; display:flex; justify-content:space-between; align-items:center; list-style:none; }\n  .hpn-cat summary::-webkit-details-marker { display:none; }\n  .hpn-cat summary::after { content:\"+\"; font-size:1.3em; margin-left:.5rem; }\n  .hpn-cat[open] summary::after { content:\"\\2212\"; }\n  .hpn-cat-count { font-weight:400; font-size:.85em; opacity:.8; margin-left:auto; }\n  .hpn-row { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.45rem .7rem; border-top:1px solid #f0f2f0; }\n  .hpn-name small { display:block; font-size:.8em; opacity:.75; }\n  .hpn-badge { display:inline-block; font-size:.72em; background:#fdf3e1; color:var(--hpn-gold); border:1px solid #f1d9a9;\n    border-radius:99px; padding:0 .45rem; margin-left:.35rem; vertical-align:middle; }\n  .hpn-qty { display:flex; align-items:center; gap:.4rem; }\n  .hpn-qty button { width:30px; height:30px; flex:none; border-radius:50%; border:1px solid var(--hpn-green); background:#fff;\n    color:var(--hpn-green); font-size:1.1em; cursor:pointer; line-height:1; }\n  .hpn-qty button:disabled { opacity:.3; cursor:not-allowed; }\n  .hpn-qty .hpn-n { min-width:1.6em; text-align:center; font-weight:600; }\n  .hpn-gift-toggle { display:flex; gap:.6rem; align-items:flex-start; background:#fdf3e1; border:1px solid #f1d9a9; border-radius:10px; padding:.7rem .9rem; margin:0 0 .8rem; cursor:pointer; }\n  .hpn-gift-toggle input { margin-top:.25rem; width:18px; height:18px; flex:none; accent-color:var(--hpn-green); }\n  .hpn-gift-box { border:1px solid var(--hpn-border); border-radius:10px; padding:.8rem .9rem; margin-bottom:.8rem; }\n  .hpn-gift-box[hidden] { display:none; }\n  .hpn-gift-box p { margin:0 0 .7rem; font-size:.95em; }\n  .hpn-gift-box label { display:block; font-weight:600; font-size:.92em; margin-bottom:.6rem; }\n  .hpn-gift-box input, .hpn-gift-box textarea { display:block; width:100%; box-sizing:border-box; margin-top:.25rem; padding:.55rem; border:1px solid #b9c7b9; border-radius:6px; font:inherit; font-weight:400; }\n  .hpn-req { color:#c0392b; }\n  .hpn-footer { margin-top:1rem; }\n  .hpn-price { font-size:1.1em; margin-bottom:.4rem; }\n  .hpn-msg { min-height:1.2em; font-size:.92em; margin:.3rem 0 .6rem; }\n  .hpn-msg.hpn-warn { color:#c0392b; }\n  .hpn-add { width:100%; padding:.9rem; border:0; border-radius:8px; background:var(--hpn-green); color:#fff;\n    font:inherit; font-weight:600; font-size:1.05em; cursor:pointer; }\n  .hpn-add:disabled { background:#9aa79a; cursor:not-allowed; }\n\u003c\/style\u003e\n\n\u003cscript\u003e\n(function () {\n  \/* ------------------------------------------------------------\n     EDIT YOUR SEED LIST HERE\n     credits: 1 = standard, 2 = specialty\n     ------------------------------------------------------------ *\/\n  var CATEGORIES = [\n    { name: \"Tomatoes\", items: [\"Roma\", \"Beefsteak\", \"Cherokee Purple\", \"Better Boy\", \"Sweet 100\"] },\n    { name: \"Peppers\", items: [\"California Wonder\", \"Sweet Banana\", \"Jalapeno\", \"Poblano\", \"Cayenne\"] },\n    { name: \"Cucumbers\", items: [\"Marketmore 76\", \"Straight Eight\", \"Boston Pickling\"] },\n    { name: \"Carrots\", items: [\"Nantes\", \"Danvers 126\", \"Chantenay\"] },\n    { name: \"Green Beans\", items: [\"Blue Lake 274\", \"Provider\", \"Kentucky Wonder\"] },\n    { name: \"Zucchini\", items: [\"Black Beauty\", \"Dunja\", \"Costata Romanesco\"] },\n    { name: \"Yellow Squash\", items: [\"Early Prolific Straightneck\", \"Yellow Crookneck\"] },\n    { name: \"Sweet Corn\", items: [\"Golden Bantam\", \"Peaches \u0026 Cream\"] },\n    { name: \"Eggplant\", items: [\"Black Beauty\", \"Ichiban\", \"Rosa Bianca\"] },\n    { name: \"Peas\", items: [\"Sugar Snap\", \"Little Marvel\", \"Oregon Sugar Pod\"] }\n  ];\n  \/* Two specialty (2-credit) seeds added to every category. Rename later. *\/\n  var SPECIALTY = [\"First\", \"Second\"];\n  \/* Last day gift recipients can choose their seeds. *\/\n  var GIFT_DEADLINE = \"February 15, 2027\";\n  \/* ------------------------------------------------------------ *\/\n\n  var root = document.getElementById(\"hpn-kit\");\n  if (!root) return;\n\n  \/\/ ---- Find this product's data on the page ----\n  var TITLE_MATCH = \"Spring Garden Seed Collection\";\n  var product = null;\n  document.querySelectorAll('script[type=\"application\/json\"], script[class^=\"product-json\"]').forEach(function (sc) {\n    if (product) return;\n    try { var j = JSON.parse(sc.textContent); if (j \u0026\u0026 j.variants \u0026\u0026 j.title) product = j; } catch (e) {}\n  });\n  var themeForm = document.querySelector('form.product_form') || document.querySelector('main form[action*=\"\/cart\/add\"]');\n  var preview = !product \u0026\u0026 !themeForm \u0026\u0026 \/^file:|^about:\/.test(location.protocol);\n\n  if (!preview \u0026\u0026 (!product || String(product.title).indexOf(TITLE_MATCH) === -1)) { root.remove(); return; }\n\n  var variants = preview\n    ? [{ id: 0, title: \"Standard Kit - 20 credits\", price: 3995, available: true },\n       { id: 0, title: \"Expanded Kit - 26 credits\", price: 4691, available: true }]\n    : product.variants;\n  variants = variants.map(function (v, i) {\n    var m = String(v.title).match(\/\\b(20|26)\\b\/);\n    var price = typeof v.price === \"string\" ? Math.round(parseFloat(v.price) * 100) : v.price;\n    return { id: v.id, title: v.title, price: price, available: v.available !== false,\n             credits: m ? parseInt(m[1], 10) : (i === 0 ? 20 : 26) };\n  });\n\n  \/\/ ---- Put the builder where the theme's Add to Cart area was, and hide that area ----\n  if (themeForm) {\n    themeForm.parentNode.insertBefore(root, themeForm);\n    themeForm.style.display = \"none\";\n  }\n  root.style.display = \"\";\n\n  \/\/ ---- Move the description into the empty space under the photos (desktop only) ----\n  var about = document.getElementById(\"hpn-about\");\n  var left = document.querySelector(\".product-left\");\n  if (about \u0026\u0026 left \u0026\u0026 window.matchMedia(\"(min-width: 768px)\").matches) {\n    var photos = left.querySelector(\".product-photos\");\n    if (photos) photos.insertAdjacentElement(\"afterend\", about); else left.appendChild(about);\n  }\n  var descBox = document.querySelector(\".product-description\");\n  if (descBox \u0026\u0026 !descBox.innerText.trim()) descBox.style.display = \"none\";\n\n\n  var current = variants[0];\n  var qty = {}; \/\/ key -\u003e quantity\n  var rows = [];\n\n  function money(cents) { return \"$\" + (cents \/ 100).toFixed(2); }\n\n  \/\/ ---- Build kit-size buttons ----\n  var sizesEl = document.getElementById(\"hpn-sizes\");\n  variants.forEach(function (v) {\n    var b = document.createElement(\"button\");\n    b.type = \"button\"; b.className = \"hpn-size\"; b.setAttribute(\"role\", \"radio\");\n    b.innerHTML = \"\u003cb\u003e\" + v.credits + \" credits\u003c\/b\u003e\u003csmall\u003e\" + money(v.price) +\n      (v.available ? \"\" : \" \u0026middot; sold out\") + \"\u003c\/small\u003e\";\n    b.addEventListener(\"click\", function () { current = v; render(); });\n    v.btn = b; sizesEl.appendChild(b);\n  });\n  if (variants.length \u003c 2) sizesEl.style.display = \"none\";\n\n  \/\/ ---- Build categories ----\n  var catsEl = document.getElementById(\"hpn-categories\");\n  CATEGORIES.forEach(function (cat, ci) {\n    var d = document.createElement(\"details\");\n    d.className = \"hpn-cat\"; \n    var s = document.createElement(\"summary\");\n    s.innerHTML = \"\u003cspan\u003e\" + cat.name + \"\u003c\/span\u003e\u003cspan class='hpn-cat-count'\u003e\u003c\/span\u003e\";\n    d.appendChild(s);\n    cat.countEl = s.querySelector(\".hpn-cat-count\");\n    cat.keys = [];\n\n    var list = cat.items.map(function (n) { return { name: n, credits: 1 }; })\n      .concat(SPECIALTY.map(function (n) { return { name: n, credits: 2 }; }));\n\n    list.forEach(function (item) {\n      var key = cat.name + \" - \" + item.name + (item.credits === 2 ? \" (Specialty)\" : \"\");\n      qty[key] = 0; cat.keys.push(key);\n      var r = document.createElement(\"div\"); r.className = \"hpn-row\";\n      r.innerHTML =\n        \"\u003cdiv class='hpn-name'\u003e\" + item.name +\n          (item.credits === 2 ? \"\u003cspan class='hpn-badge'\u003eSpecialty\u003c\/span\u003e\" : \"\") +\n          \"\u003csmall\u003e\" + item.credits + \" credit\" + (item.credits \u003e 1 ? \"s\" : \"\") + \" each\u003c\/small\u003e\u003c\/div\u003e\" +\n        \"\u003cdiv class='hpn-qty'\u003e\u003cbutton type='button' aria-label='Remove one \" + item.name + \"'\u003e\u0026minus;\u003c\/button\u003e\" +\n        \"\u003cspan class='hpn-n'\u003e0\u003c\/span\u003e\u003cbutton type='button' aria-label='Add one \" + item.name + \"'\u003e+\u003c\/button\u003e\u003c\/div\u003e\";\n      var btns = r.querySelectorAll(\"button\");\n      var row = { key: key, credits: item.credits, minus: btns[0], plus: btns[1], out: r.querySelector(\".hpn-n\"), cat: cat };\n      row.minus.addEventListener(\"click\", function () { if (qty[key] \u003e 0) { qty[key]--; render(); } });\n      row.plus.addEventListener(\"click\", function () { if (used() + item.credits \u003c= current.credits) { qty[key]++; render(); } });\n      rows.push(row); d.appendChild(r);\n    });\n    catsEl.appendChild(d);\n  });\n\n  function used() { return rows.reduce(function (t, r) { return t + qty[r.key] * r.credits; }, 0); }\n\n  var addBtn = document.getElementById(\"hpn-add\");\n  var msgEl = document.getElementById(\"hpn-msg\");\n  var giftEl = document.getElementById(\"hpn-gift\");\n  var giftBox = document.getElementById(\"hpn-gift-box\");\n  var pickEl = document.getElementById(\"hpn-pick\");\n  var recipEl = document.getElementById(\"hpn-recipient\");\n  var giftMsgEl = document.getElementById(\"hpn-gift-msg\");\n  document.getElementById(\"hpn-deadline-text\").textContent = GIFT_DEADLINE;\n  giftEl.addEventListener(\"change\", render);\n  recipEl.addEventListener(\"input\", render);\n\n  function render() {\n    var u = used(), lim = current.credits, left = lim - u;\n    document.getElementById(\"hpn-used\").textContent = u;\n    document.getElementById(\"hpn-limit\").textContent = lim;\n    document.getElementById(\"hpn-left\").textContent = left \u003e= 0 ? left + \" left\" : (-left) + \" over\";\n    var fill = document.getElementById(\"hpn-bar-fill\");\n    fill.style.width = Math.min(100, (u \/ lim) * 100) + \"%\";\n    fill.classList.toggle(\"hpn-over\", u \u003e lim);\n    document.getElementById(\"hpn-price\").textContent = money(current.price);\n\n    variants.forEach(function (v) { v.btn.setAttribute(\"aria-checked\", v === current ? \"true\" : \"false\"); });\n    rows.forEach(function (r) {\n      r.out.textContent = qty[r.key];\n      r.minus.disabled = qty[r.key] === 0;\n      r.plus.disabled = u + r.credits \u003e lim;\n    });\n    CATEGORIES.forEach(function (c) {\n      var n = c.keys.reduce(function (t, k) { return t + qty[k]; }, 0);\n      c.countEl.textContent = n ? n + \" selected\" : \"\";\n    });\n\n    var gift = giftEl.checked;\n    giftBox.hidden = !gift;\n    pickEl.style.display = gift ? \"none\" : \"\";\n    if (gift) {\n      var named = recipEl.value.trim().length \u003e 0;\n      addBtn.disabled = !(named \u0026\u0026 current.available);\n      msgEl.classList.remove(\"hpn-warn\");\n      msgEl.textContent = !current.available ? \"This kit size is sold out.\"\n        : named ? \"Gift kit ready: \" + lim + \" seed credits for \" + recipEl.value.trim() + \".\"\n        : \"Enter the recipient's name to add the gift to your cart.\";\n      return;\n    }\n    var ok = u === lim \u0026\u0026 current.available;\n    addBtn.disabled = !ok;\n    msgEl.classList.toggle(\"hpn-warn\", u \u003e lim);\n    if (!current.available) msgEl.textContent = \"This kit size is sold out.\";\n    else if (u \u003e lim) msgEl.textContent = \"You're \" + (u - lim) + \" credit\" + (u - lim \u003e 1 ? \"s\" : \"\") + \" over. Remove some seeds to continue.\";\n    else if (left \u003e 0) msgEl.textContent = \"Choose \" + left + \" more credit\" + (left \u003e 1 ? \"s\" : \"\") + \" of seeds to add your kit to the cart.\";\n    else msgEl.textContent = \"Your kit is complete!\";\n  }\n\n  addBtn.addEventListener(\"click\", function () {\n    var props = {};\n    if (giftEl.checked) {\n      if (!recipEl.value.trim()) return;\n      props[\"Gift\"] = \"Recipient chooses seeds\";\n      props[\"Recipient\"] = recipEl.value.trim();\n      if (giftMsgEl.value.trim()) props[\"Card message\"] = giftMsgEl.value.trim();\n      props[\"Choose seeds by\"] = GIFT_DEADLINE;\n      props[\"Seed credits\"] = String(current.credits);\n      return addToCart(props);\n    }\n    if (used() !== current.credits) return;\n    CATEGORIES.forEach(function (c) {\n      var parts = [];\n      c.keys.forEach(function (k) {\n        if (qty[k] \u003e 0) parts.push(k.replace(c.name + \" - \", \"\") + \" x\" + qty[k]);\n      });\n      if (parts.length) props[c.name] = parts.join(\", \");\n    });\n    props[\"Credits used\"] = used() + \" of \" + current.credits;\n    addToCart(props);\n  });\n\n  function addToCart(props) {\n    if (!current.id) { msgEl.textContent = \"Preview mode: kit would be added with \" + JSON.stringify(props); return; }\n\n    addBtn.disabled = true; addBtn.textContent = \"Adding...\";\n    var base = (window.Shopify \u0026\u0026 Shopify.routes \u0026\u0026 Shopify.routes.root) || \"\/\";\n    fetch(base + \"cart\/add.js\", {\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application\/json\", \"Accept\": \"application\/json\" },\n      body: JSON.stringify({ items: [{ id: current.id, quantity: 1, properties: props }] })\n    }).then(function (res) {\n      if (!res.ok) return res.json().then(function (j) { throw new Error(j.description || \"Could not add to cart\"); });\n      window.location.href = base + \"cart\";\n    }).catch(function (err) {\n      msgEl.classList.add(\"hpn-warn\"); msgEl.textContent = err.message;\n      addBtn.textContent = \"Add to cart\"; render();\n    });\n  }\n\n  render();\n})();\n\u003c\/script\u003e","brand":"Hand Picked Nursery","offers":[{"title":"Standard Kit - 20 credits","offer_id":51905070563495,"sku":null,"price":39.95,"currency_code":"USD","in_stock":true},{"title":"Expanded Kit - 26 credits","offer_id":51905070596263,"sku":null,"price":46.94,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0515\/1617\/8599\/files\/PersonalSeedStartingKit_fd70dea9-e368-41f9-ae64-f1886eec8b5a.png?v=1794864137","url":"https:\/\/www.handpickednursery.com\/products\/build-your-own-spring-garden-seed-collection-kit-20-seed-garden","provider":"Hand Picked Nursery","version":"1.0","type":"link"}