{"status":200,"features":{"exp-EXP7FF5E7B6":{"defaultValue":"","rules":[{"id":"winner-deployed-1765192409818","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  const CONFIG = {\n    selectors: {\n      descriptionBlock: '.product-info__description',\n      descriptionContent: '.product-info__description .prose',\n      buyButtonsSection: '.product-info__buy-buttons'\n    },\n    styles: {\n      primary: '#272727',\n      secondary: '#f2f2f2',\n      border: '#f2f2f8',\n      accent: '#e9a9a9'\n    }\n  };\n\n  function initAccordion() {\n    const descriptionBlock = document.querySelector(CONFIG.selectors.descriptionBlock);\n    const descriptionContent = document.querySelector(CONFIG.selectors.descriptionContent);\n    const buyButtonsSection = document.querySelector(CONFIG.selectors.buyButtonsSection);\n\n    if (!descriptionBlock || !descriptionContent || !buyButtonsSection) {\n      return;\n    }\n\n    if (document.querySelector('.product-accordion')) {\n      return;\n    }\n\n    const paragraphs = descriptionContent.querySelectorAll('p, div[style*=\"direction\"]');\n    if (paragraphs.length === 0) {\n      return;\n    }\n\n    const allTexts = Array.from(paragraphs)\n      .map(p => {\n        const text = p.textContent.trim();\n        return text.replace(/[\\u00A0\\s]+/g, ' ').trim();\n      })\n      .filter(text => text.length > 0 && text !== 'undefined');\n\n    if (allTexts.length === 0) {\n      return;\n    }\n\n    const detailKeywords = ['פרטים:', 'פרטים', 'מידות:', 'מידות'];\n\n    let splitIndex = -1;\n    for (let i = 0; i < allTexts.length; i++) {\n      const text = allTexts[i].trim();\n      const startsWithKeyword = detailKeywords.some(keyword => \n        text === keyword || text.startsWith(keyword + ' ') || text.startsWith(keyword)\n      );\n      if (startsWithKeyword) {\n        splitIndex = i;\n        break;\n      }\n    }\n\n    let descriptionTexts = [];\n    let detailTexts = [];\n    let hasDetails = false;\n\n    if (splitIndex !== -1) {\n      descriptionTexts = allTexts.slice(0, splitIndex);\n      detailTexts = allTexts.slice(splitIndex);\n      hasDetails = true;\n    } else {\n      descriptionTexts = allTexts;\n      hasDetails = false;\n    }\n\n    console.log('=== Accordion Debug ===');\n    console.log('Total paragraphs:', allTexts.length);\n    console.log('Split index:', splitIndex);\n    console.log('Description paragraphs:', descriptionTexts.length);\n    console.log('Detail paragraphs:', detailTexts.length);\n    console.log('Has details tab?:', hasDetails);\n\n    const fullDescriptionHTML = descriptionTexts.map(text => `\n      <p style=\"\n        margin: 0 0 12px 0;\n        line-height: 1.6;\n        color: ${CONFIG.styles.primary};\n        font-size: 14px;\n      \">${text}</p>\n    `).join('');\n\n    const productDetailsHTML = detailTexts.map(text => `\n      <p style=\"\n        margin: 0 0 12px 0;\n        line-height: 1.6;\n        color: ${CONFIG.styles.primary};\n        font-size: 14px;\n      \">${text}</p>\n    `).join('');\n\n    descriptionBlock.style.display = 'none';\n\n    const accordionHTML = `\n      <div class=\"product-accordion\" style=\"\n        font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n        direction: rtl;\n        margin-top: 16px;\n        background: transparent;\n      \">\n        <div class=\"accordion-item\" style=\"\n          border-top: 1px solid rgb(220, 220, 220);\n          border-bottom: 1px solid rgb(220, 220, 220);\n          border-left: none;\n          border-right: none;\n          margin-bottom: 0;\n          margin-left: -20px;\n          margin-right: -20px;\n          padding-left: 0;\n          padding-right: 0;\n          overflow: hidden;\n          background: transparent;\n        \">\n          <button class=\"accordion-header\" data-tab=\"description\" style=\"\n            width: 100%;\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            padding: 16px 20px;\n            background: transparent;\n            border: none;\n            cursor: pointer;\n            font-size: 16px;\n            font-weight: 600;\n            color: ${CONFIG.styles.primary};\n            text-align: right;\n            transition: background-color 0.2s ease;\n          \" type=\"button\">\n            <span>תיאור המוצר</span>\n            <svg class=\"accordion-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" style=\"\n              transition: transform 0.3s ease;\n              flex-shrink: 0;\n            \">\n              <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"${CONFIG.styles.primary}\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n          </button>\n          <div class=\"accordion-content\" data-content=\"description\" style=\"\n            max-height: 0;\n            overflow: hidden;\n            transition: max-height 0.3s ease, padding 0.3s ease;\n            padding: 0 20px;\n            margin-bottom: 5px;\n          \">\n            <div style=\"padding-bottom: 16px;\">\n              ${fullDescriptionHTML}\n            </div>\n          </div>\n        </div>\n\n        ${hasDetails ? `\n        <div class=\"accordion-item\" style=\"\n          border-top: 1px solid rgb(220, 220, 220);\n          border-bottom: 1px solid rgb(220, 220, 220);\n          border-left: none;\n          border-right: none;\n          margin-left: -20px;\n          margin-right: -20px;\n          padding-left: 0;\n          padding-right: 0;\n          overflow: hidden;\n          background: transparent;\n        \">\n          <button class=\"accordion-header\" data-tab=\"details\" style=\"\n            width: 100%;\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            padding: 16px 20px;\n            background: transparent;\n            border: none;\n            cursor: pointer;\n            font-size: 16px;\n            font-weight: 600;\n            color: ${CONFIG.styles.primary};\n            text-align: right;\n            transition: background-color 0.2s ease;\n          \" type=\"button\">\n            <span>פרטי מוצר</span>\n            <svg class=\"accordion-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" style=\"\n              transition: transform 0.3s ease;\n              flex-shrink: 0;\n            \">\n              <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"${CONFIG.styles.primary}\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n          </button>\n          <div class=\"accordion-content\" data-content=\"details\" style=\"\n            max-height: 0;\n            overflow: hidden;\n            transition: max-height 0.3s ease, padding 0.3s ease;\n            padding: 0 20px;\n            margin-bottom: 5px;\n          \">\n            <div style=\"padding-bottom: 16px;\">\n              ${productDetailsHTML}\n            </div>\n          </div>\n        </div>\n        ` : ''}\n      </div>\n    `;\n\n    const accordionContainer = document.createElement('div');\n    accordionContainer.className = 'product-accordion-wrapper';\n    accordionContainer.innerHTML = accordionHTML;\n\n    const buyButtonsParent = buyButtonsSection.parentElement;\n\n    if (buyButtonsParent) {\n      buyButtonsParent.insertAdjacentElement('afterend', accordionContainer);\n    }\n\n    addAccordionHandlers();\n  }\n\n  function addAccordionHandlers() {\n    const headers = document.querySelectorAll('.accordion-header');\n\n    headers.forEach(header => {\n      header.addEventListener('click', function() {\n        const content = this.nextElementSibling;\n        const icon = this.querySelector('.accordion-icon');\n        const isOpen = content.style.maxHeight && content.style.maxHeight !== '0px';\n\n        if (isOpen) {\n          content.style.maxHeight = '0';\n          content.style.paddingTop = '0';\n          content.style.paddingBottom = '0';\n          icon.style.transform = 'rotate(0deg)';\n          this.style.backgroundColor = 'transparent';\n        } else {\n          content.style.maxHeight = content.scrollHeight + 'px';\n          content.style.paddingTop = '16px';\n          icon.style.transform = 'rotate(180deg)';\n          this.style.backgroundColor = 'transparent';\n        }\n      });\n\n      header.addEventListener('mouseenter', function() {\n        const content = this.nextElementSibling;\n        const isOpen = content.style.maxHeight && content.style.maxHeight !== '0px';\n        if (!isOpen) {\n          this.style.backgroundColor = CONFIG.styles.secondary;\n        }\n      });\n\n      header.addEventListener('mouseleave', function() {\n        const content = this.nextElementSibling;\n        const isOpen = content.style.maxHeight && content.style.maxHeight !== '0px';\n        if (!isOpen) {\n          this.style.backgroundColor = 'transparent';\n        }\n      });\n    });\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', initAccordion);\n  } else {\n    initAccordion();\n  }\n\n  const mainObserver = new MutationObserver(function(mutations) {\n    mutations.forEach(function(mutation) {\n      if (mutation.type === 'childList') {\n        if (!document.querySelector('.product-accordion')) {\n          initAccordion();\n        }\n      }\n    });\n  });\n\n  const productInfo = document.querySelector('.product-info');\n  if (productInfo) {\n    mainObserver.observe(productInfo, {\n      childList: true,\n      subtree: true\n    });\n  }\n\n})();"}]},"exp-EXP992229A5":{"defaultValue":"","rules":[{"id":"winner-deployed-1765797837272","force":"(function() {\n  'use strict';\n\n  // Navigation data structure - EXACT categories and subcategories from the original site\n  const navigationData = {\n    mainTitle: 'תפריט ראשי',\n    items: [\n      {\n        title: 'לבית',\n        url: '#',\n        children: [\n          {\n            title: 'עיצוב לבית',\n            children: [\n              {title: 'ואזות ועציצים', url: '/collections/plants'},\n              {title: 'כלי השרשה והנבטה', url: '/collections/%D7%9B%D7%9C%D7%99-%D7%94%D7%A9%D7%A8%D7%A9%D7%94-%D7%95%D7%94%D7%A0%D7%91%D7%98%D7%94'},\n              {title: 'כלי בית ודקורציה', url: '/collections/%D7%9B%D7%9C%D7%99-%D7%91%D7%99%D7%AA-%D7%95%D7%93%D7%A7%D7%95%D7%A8%D7%A6%D7%99%D7%94'}\n            ]\n          },\n          {\n            title: 'לקיר',\n            children: [\n              {title: 'שעונים', url: '/collections/%D7%A9%D7%A2%D7%95%D7%A0%D7%99%D7%9D'},\n              {title: 'תמונות רקומות', url: '/collections/%D7%AA%D7%9E%D7%95%D7%A0%D7%95%D7%AA-%D7%A8%D7%A7%D7%95%D7%9E%D7%95%D7%AA'},\n              {title: 'אגרטלים לקיר', url: '/collections/%D7%90%D7%92%D7%A8%D7%98%D7%9C%D7%99-%D7%A7%D7%99%D7%A8'},\n              {title: 'עבודות חוט ברזל', url: '/collections/%D7%A2%D7%91%D7%95%D7%93%D7%95%D7%AA-%D7%91%D7%97%D7%95%D7%98-%D7%91%D7%A8%D7%96%D7%9C'},\n              {title: 'חמסות', url: '/collections/%D7%97%D7%9E%D7%A1%D7%95%D7%AA'},\n              {title: 'צלחות מאויירות לתליה', url: '/collections/%D7%A6%D7%9C%D7%97%D7%95%D7%AA-%D7%9E%D7%90%D7%95%D7%99%D7%99%D7%A8%D7%95%D7%AA-%D7%9C%D7%AA%D7%9C%D7%99%D7%94'}\n            ]\n          },\n          {\n            title: 'למטבח',\n            children: [\n              {title: 'אביזרים לבישול', url: '/collections/%D7%9C%D7%91%D7%99%D7%A9%D7%95%D7%9C'},\n              {title: 'כוסות וספלים', url: '/collections/%D7%9B%D7%95%D7%A1%D7%95%D7%AA-%D7%95%D7%A1%D7%A4%D7%9C%D7%99%D7%9D'},\n              {title: 'מלח פלפל', url: '/collections/%D7%9E%D7%9C%D7%97-%D7%A4%D7%9C%D7%A4%D7%9C'},\n              {title: 'מגשים, צלחות וקערות', url: '/collections/%D7%9E%D7%92%D7%A9%D7%99%D7%9D-%D7%A6%D7%9C%D7%97%D7%95%D7%AA-%D7%95%D7%A7%D7%A2%D7%A8%D7%95%D7%AA'}\n            ]\n          },\n          {\n            title: 'לגעת בחומר',\n            children: [\n              {title: 'עיצוב קרמיקה', url: '/collections/%D7%A7%D7%A8%D7%9E%D7%99%D7%A7%D7%94'},\n              {title: 'עיצוב מבטון', url: '/collections/%D7%9E%D7%95%D7%A6%D7%A8%D7%99%D7%9D-%D7%9E%D7%91%D7%98%D7%95%D7%9F'},\n              {title: 'עיצוב מזכוכית', url: '/collections/%D7%A2%D7%91%D7%95%D7%93%D7%95%D7%AA-%D7%9E%D7%96%D7%9B%D7%95%D7%9B%D7%99%D7%AA'},\n              {title: 'הדפסת תלת מימד', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%94-%D7%91%D7%AA%D7%9C%D7%AA-%D7%9E%D7%99%D7%9E%D7%93'}\n            ]\n          }\n        ]\n      },\n      {\n        title: 'אסופה',\n        url: '#',\n        children: [\n          {\n            title: 'מה ששלנו, שלנו',\n            children: [\n              {title: 'בסט סלרס', url: '/collections/bestsellers'},\n              {title: 'מוצרי חובה', url: '/collections/must-have-%F0%9F%8E%81'},\n              {title: 'מוצרים נפלאים בהנחה', url: '/collections/%D7%A1%D7%99%D7%99%D7%9C-%D7%95%D7%95%D7%90%D7%98'},\n              {title: 'גיפט קארד', url: 'https://valuecard.co.il/GiftCards/Asufa#Welcome'},\n              {title: 'כל המוצרים שלנו', url: '/collections'}\n            ]\n          },\n          {\n            title: 'הפרוייקטים שלנו',\n            children: [\n              {title: 'הגדה שלנו לפסח', url: '/pages/%D7%94%D7%94%D7%92%D7%93%D7%94-%D7%A9%D7%9C%D7%A0%D7%95-%D7%9C%D7%A4%D7%A1%D7%97'},\n              {title: 'תוצרת', url: '/collections/%D7%AA%D7%95%D7%A6%D7%A8%D7%AA'},\n              {title: 'נייברהודס', url: '/collections/%D7%A2%D7%95%D7%A9%D7%99%D7%9D-%D7%A9%D7%9B%D7%95%D7%A0%D7%94'}\n            ]\n          },\n          {\n            title: 'מתנות ישראליות',\n            children: [\n              {title: 'מזכרות ישראליות', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99%D7%95%D7%AA'},\n              {title: 'תל אביב', url: '/collections/%D7%AA%D7%9C-%D7%90%D7%91%D7%99%D7%91'},\n              {title: 'מתנות שימושיות', url: '/collections'},\n              {title: 'יודאיקה', url: '/collections/judaica'},\n              {title: 'הדפסים ישראלים', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99%D7%9D'},\n              {title: 'מארזי קלפים', url: '/collections/%D7%A0%D7%95%D7%A2%D7%94-%D7%94%D7%93%D7%A8%D7%99-ask-q'},\n              {title: 'בובות מנהיגים', url: '/collections/%D7%91%D7%95%D7%91%D7%95%D7%AA-%D7%9E%D7%A0%D7%94%D7%99%D7%92%D7%99%D7%9D'}\n            ]\n          },\n          {\n            title: 'מתנות ילדים',\n            children: [\n              {title: 'צעצועים', url: '/collections/%D7%A6%D7%A2%D7%A6%D7%95%D7%A2%D7%99%D7%9D'},\n              {title: 'ספרי ילדים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%99%D7%9C%D7%93%D7%99%D7%9D'}\n            ]\n          },\n          {\n            title: 'מתנות מקומיות',\n            url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99%D7%95%D7%AA',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/3_dfc095f1-4030-4050-a0a4-8f479394fa31.png?v=1732825283&width=400'\n          },\n          {\n            title: 'שובר המתנה המושלם',\n            url: 'https://valuecard.co.il/GiftCards/Asufa#Welcome',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/Gift_Card_c24fb59d-a3b0-4af8-9f6e-d50007ddcb13.jpg?v=1732825450&width=400'\n          }\n        ]\n      },\n      {\n        title: 'לייפסטייל',\n        url: '#',\n        children: [\n          {\n            title: 'ספרים',\n            children: [\n              {title: 'ספרי ילדים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%99%D7%9C%D7%93%D7%99%D7%9D'},\n              {title: 'ספרי עיצוב', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D'},\n              {title: 'ספרי מיינדפולנס', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%9E%D7%99%D7%99%D7%A0%D7%93%D7%A4%D7%95%D7%9C%D7%A0%D7%A1'},\n              {title: 'ספרי מתנה', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%9E%D7%AA%D7%A0%D7%94'},\n              {title: 'ספרים מנגנים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D-%D7%9E%D7%A0%D7%92%D7%A0%D7%99%D7%9D'},\n              {title: 'הגדה של פסח', url: '/collections/%D7%94%D7%92%D7%93%D7%94-%D7%A9%D7%9C-%D7%A4%D7%A1%D7%97'}\n            ]\n          },\n          {\n            title: 'לייפסטייל',\n            children: [\n              {title: 'כובעים', url: '/collections/%D7%9B%D7%95%D7%91%D7%A2%D7%99%D7%9D'},\n              {title: 'נרות וסבונים', url: '/collections/%D7%A0%D7%A8%D7%95%D7%AA-%D7%95%D7%A1%D7%91%D7%95%D7%A0%D7%99%D7%9D'},\n              {title: 'מושמושים ישראליים', url: '/collections/%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9%D7%99%D7%9D'},\n              {title: 'שכונות בתל אביב', url: '/collections/%D7%94%D7%9B%D7%95%D7%91%D7%A2%D7%99%D7%9D-%D7%94%D7%94%D7%95%D7%A8%D7%A1%D7%99%D7%9D-%D7%A9%D7%9C-%D7%93%D7%9F-%D7%9E%D7%99%D7%9B%D7%9E%D7%9F'}\n            ]\n          },\n          {\n            title: 'מוצרי נייר',\n            children: [\n              {title: 'פלנרים וארגונית', url: '/collections/%D7%A4%D7%9C%D7%A0%D7%A8%D7%99%D7%9D-%D7%95%D7%90%D7%A8%D7%92%D7%95%D7%A0%D7%99%D7%95%D7%AA-1'},\n              {title: 'יומנים ולוחות שנה', url: '/collections/%D7%99%D7%95%D7%9E%D7%A0%D7%99%D7%9D-%D7%95%D7%9C%D7%95%D7%97%D7%95%D7%AA-%D7%A9%D7%A0%D7%94-2023-2024'},\n              {title: 'מחברות', url: '/collections/%D7%9E%D7%97%D7%91%D7%A8%D7%95%D7%AA-1'},\n              {title: 'למשרד', url: '/collections/%D7%90%D7%91%D7%99%D7%96%D7%A8%D7%99%D7%9D-%D7%9C%D7%9E%D7%A9%D7%A8%D7%93'},\n              {title: 'כרטיסי ברכה וגלויות', url: '/collections/%D7%9B%D7%A8%D7%98%D7%99%D7%A1%D7%99-%D7%91%D7%A8%D7%9B%D7%94-%D7%95%D7%92%D7%9C%D7%95%D7%99%D7%95%D7%AA'}\n            ]\n          },\n          {\n            title: 'נרות ומפיצי ריח',\n            url: '/collections/%D7%A0%D7%A8%D7%95%D7%AA-%D7%95%D7%A1%D7%91%D7%95%D7%A0%D7%99%D7%9D',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/52_Aya_Wind_copy_Medium_40d335b5-14bc-4365-a41c-63fd29022ad5.jpg?v=1751122194&width=400'\n          },\n          {\n            title: 'מחברות \"תוצרת\"',\n            url: '/collections/%D7%AA%D7%95%D7%A6%D7%A8%D7%AA',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/IMG_9137.heic?v=1748530757&width=400'\n          }\n        ]\n      },\n      {\n        title: 'יודאיקה',\n        url: '#',\n        children: [\n          {\n            title: 'יודאיקה',\n            children: [\n              {title: 'מזוזות', url: '/collections/%D7%9E%D7%96%D7%95%D7%96%D7%95%D7%AA'},\n              {title: 'חמסות', url: '/collections/%D7%97%D7%9E%D7%A1%D7%95%D7%AA'},\n              {title: 'חנוכיות', url: '/collections/%D7%97%D7%A0%D7%95%D7%9B%D7%94'},\n              {title: 'פמוטים', url: '/collections/%D7%A4%D7%9E%D7%95%D7%98%D7%99%D7%9D'}\n            ]\n          },\n          {\n            title: 'חגים',\n            children: [\n              {title: 'הגדה של פסח', url: '/collections/%D7%94%D7%92%D7%93%D7%94-%D7%A9%D7%9C-%D7%A4%D7%A1%D7%97'},\n              {title: 'מתנות לפסח', url: '/collections/%D7%A4%D7%A1%D7%97-%D7%A9%D7%9E%D7%97'},\n              {title: 'חנוכה', url: '/collections/%D7%97%D7%A0%D7%95%D7%9B%D7%94'},\n              {title: 'חגי תשרי', url: '/collections/%D7%97%D7%92%D7%99-%D7%AA%D7%A9%D7%A8%D7%99'}\n            ]\n          },\n          {\n            title: 'הגדה של פסח עברית-אנגלית',\n            url: '/products/%D7%94%D7%96%D7%9E%D7%A0%D7%94-%D7%9E%D7%95%D7%A7%D7%93%D7%9E%D7%AA-%D7%94%D7%92%D7%93%D7%94-%D7%A9%D7%9C-%D7%A4%D7%A1%D7%97-%D7%9E%D7%94%D7%93%D7%95%D7%A8%D7%94-%D7%93%D7%95-%D7%9C%D7%A9%D7%95%D7%A0%D7%99%D7%AA-%D7%97%D7%93%D7%A9%D7%94-%D7%A2%D7%91%D7%A8%D7%99%D7%AA-%D7%95%D7%90%D7%A0%D7%92%D7%9C%D7%99%D7%AA',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/98_Aya_Wind_copy_websize.jpg?v=1743412328&width=400'\n          },\n          {\n            title: 'חמסה עליך',\n            url: '/collections/%D7%97%D7%9E%D7%A1%D7%95%D7%AA',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/7_7bba1cda-fbfc-4106-a49a-83f9d193baa7.jpg?v=1692526666&width=400'\n          }\n        ]\n      },\n      {\n        title: 'ילדים',\n        url: '#',\n        children: [\n          {\n            title: 'מתנות לילדים',\n            children: [\n              {title: 'משחקים וצעצועים', url: '/collections/%D7%9E%D7%A9%D7%97%D7%A7%D7%99%D7%9D-%D7%95%D7%A6%D7%A2%D7%A6%D7%95%D7%A2%D7%99%D7%9D'},\n              {title: 'ספרי ילדים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%99%D7%9C%D7%93%D7%99%D7%9D'}\n            ]\n          },\n          {\n            title: 'חדרי ילדים',\n            children: [\n              {title: 'הדפסים לילדים', url: '/'},\n              {title: 'הדפסי א ב', url: '/'},\n              {title: 'אקססוריז לחדרי ילדים', url: '/'}\n            ]\n          }\n        ]\n      },\n      {\n        title: 'הדפסים',\n        url: '#',\n        children: [\n          {\n            title: 'חדרים',\n            children: [\n              {title: 'למטבח', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%9C%D7%9E%D7%98%D7%91%D7%97'},\n              {title: 'לסלון', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%9C%D7%A1%D7%9C%D7%95%D7%9F-%D7%95%D7%A4%D7%99%D7%A0%D7%AA-%D7%90%D7%95%D7%9B%D7%9C'},\n              {title: 'ילדים', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%9C%D7%97%D7%93%D7%A8%D7%99-%D7%99%D7%9C%D7%93%D7%99%D7%9D-1'},\n              {title: 'חדר שינה', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%9C%D7%97%D7%93%D7%A8-%D7%94%D7%A9%D7%99%D7%A0%D7%94'}\n            ]\n          },\n          {\n            title: 'נושא',\n            children: [\n              {title: 'אנשים ודמויות', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%A4%D7%99%D7%92%D7%95%D7%A8%D7%98%D7%99%D7%91%D7%99%D7%9D'},\n              {title: 'עירוני ותל אביבי', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%A2%D7%99%D7%A8%D7%95%D7%A0%D7%99%D7%99%D7%9D-%D7%90%D7%95%D7%A8%D7%91%D7%A0%D7%99%D7%99%D7%9D'},\n              {title: 'טבע דומם', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99-%D7%98%D7%91%D7%A2-%D7%93%D7%95%D7%9E%D7%9D'},\n              {title: 'צמחים', url: '/'}\n            ]\n          },\n          {\n            title: 'סגנון',\n            children: [\n              {title: 'צבעוני', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%A6%D7%91%D7%A2%D7%95%D7%A0%D7%99%D7%99%D7%9D'},\n              {title: 'שחור לבן', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1-%D7%A9%D7%97%D7%95%D7%A8-%D7%9C%D7%91%D7%9F'},\n              {title: 'נורדי', url: '/collections/%D7%A4%D7%95%D7%A1%D7%98%D7%A8%D7%99%D7%9D-%D7%A0%D7%95%D7%A8%D7%93%D7%99%D7%99%D7%9D'},\n              {title: 'אמנות רחוב', url: '/collections/%D7%90%D7%9E%D7%A0%D7%95%D7%AA-%D7%A8%D7%97%D7%95%D7%91'},\n              {title: 'פיגורטיבי', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D-%D7%A4%D7%99%D7%92%D7%95%D7%A8%D7%98%D7%99%D7%91%D7%99%D7%9D'},\n              {title: 'אבסטרקט', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1%D7%99-%D7%90%D7%91%D7%A1%D7%98%D7%A8%D7%A7%D7%98'}\n            ]\n          },\n          {\n            title: 'עוד בעולם הפרינטים שלנו',\n            children: [\n              {title: 'הצעות הגשה', url: '/collections/%D7%9E%D7%90%D7%A8%D7%96%D7%99-%D7%94%D7%93%D7%A4%D7%A1%D7%99%D7%9D'},\n              {title: 'מתלים מגנטים', url: '/collections/%D7%9E%D7%AA%D7%9C%D7%99%D7%9D-%D7%9E%D7%92%D7%A0%D7%98%D7%99%D7%9D'},\n              {title: 'מהדורות מוגבלות', url: '/collections/%D7%A2%D7%91%D7%95%D7%93%D7%95%D7%AA-%D7%9E%D7%A7%D7%95%D7%A8-%D7%95%D7%A2%D7%91%D7%95%D7%93%D7%AA-%D7%99%D7%93'},\n              {title: 'הדפסה ידנית', url: '/collections/%D7%94%D7%93%D7%A4%D7%A1-%D7%91%D7%A2%D7%91%D7%95%D7%93%D7%AA-%D7%99%D7%93'}\n            ]\n          },\n          {\n            title: 'הזמינו את ההדפסים של מיכוש!',\n            url: '/collections/%D7%9E%D7%99%D7%9B%D7%95%D7%A9',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/sea_life_print__micush.jpg?v=1643376597&width=400'\n          },\n          {\n            title: 'סדרת תוצרת',\n            url: '/collections/%D7%AA%D7%95%D7%A6%D7%A8%D7%AA',\n            isBanner: true,\n            image: '//asufadesign.co.il/cdn/shop/files/01_4f12ae40-a4de-45b1-b22f-a7af9147c40c.jpg?v=1706187508&width=400'\n          }\n        ]\n      }\n    ]\n  };\n\n  function createNavigationDrawer() {\n    try {\n      const existingDrawer = document.querySelector('#header-sidebar-menu');\n      if (!existingDrawer) {\n        return;\n      }\n\n      // Store reference to parent and original state\n      const parent = existingDrawer.parentNode;\n      const wasOpen = existingDrawer.hasAttribute('open');\n\n      // Create new navigation drawer HTML\n      const drawerHTML = `\n        <div class=\"mobile-navigation-drawer\" style=\"\n          position: fixed;\n          top: 0;\n          right: 0;\n          width: 100%;\n          height: 100%;\n          background: #ffffff;\n          z-index: 9999;\n          transform: translateX(${wasOpen ? '0' : '100%'});\n          transition: transform 0.3s ease-in-out;\n          overflow-y: auto;\n          box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);\n          direction: rtl;\n          display: flex;\n          flex-direction: column;\n        \">\n          <div class=\"navigation navigation--main\" role=\"navigation\" aria-label=\"ניווט ראשי\" style=\"\n            display: flex;\n            flex-direction: column;\n            height: 100%;\n          \">\n            <div class=\"navigation__tier-1-container\" style=\"\n              flex: 1;\n              display: flex;\n              flex-direction: column;\n              overflow-y: auto;\n            \">\n              <!-- Mobile Header -->\n              <div class=\"mobile-only-flex navigation__mobile-header\" style=\"\n                display: flex;\n                align-items: center;\n                justify-content: space-between;\n                padding: 16px 20px;\n                border-bottom: 1px solid #f2f2f8;\n                background: #ffffff;\n                position: sticky;\n                top: 0;\n                z-index: 10;\n              \">\n                <a href=\"#\" class=\"mobile-nav-back\" style=\"\n                  display: none;\n                  color: #272727;\n                  cursor: pointer;\n                  padding: 8px;\n                  margin: -8px;\n                \" aria-label=\"חזרה\">\n                  <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                    <polyline points=\"9 18 15 12 9 6\"></polyline>\n                  </svg>\n                </a>\n                <span class=\"mobile-nav-title\" style=\"\n                  font-size: 18px;\n                  font-weight: 700;\n                  color: #272727;\n                  flex: 1;\n                  text-align: center;\n                \">${navigationData.mainTitle}</span>\n                <a href=\"#\" class=\"mobile-nav-toggle\" style=\"\n                  color: #272727;\n                  cursor: pointer;\n                  padding: 8px;\n                  margin: -8px;\n                \" aria-label=\"סגור תפריט\">\n                  <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                    <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n                    <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n                  </svg>\n                </a>\n              </div>\n\n              <!-- Main Navigation List -->\n              <ul class=\"navigation__tier-1\" style=\"\n                list-style: none;\n                margin: 0;\n                padding: 20px 0;\n              \">\n                ${navigationData.items.map((item, index) => createNavigationItem(item, index)).join('')}\n              </ul>\n            </div>\n          </div>\n\n          <!-- Footer Section -->\n          <div class=\"mobile-navigation-drawer__footer\" style=\"\n            padding: 20px;\n            border-top: 1px solid #f2f2f8;\n            margin-top: auto;\n          \">\n            <!-- Social Links -->\n            <div class=\"social-links\" style=\"margin-bottom: 20px;\">\n              <ul class=\"social-links__list\" style=\"\n                display: flex;\n                gap: 20px;\n                list-style: none;\n                padding: 0;\n                margin: 0;\n                justify-content: center;\n              \">\n                <li>\n                  <a aria-label=\"Instagram\" target=\"_blank\" rel=\"noopener\" href=\"https://www.instagram.com/asufadesign/\" style=\"\n                    color: #272727;\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 44px;\n                    height: 44px;\n                    transition: opacity 0.2s;\n                  \">\n                    <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n                      <path d=\"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z\"/>\n                    </svg>\n                  </a>\n                </li>\n                <li>\n                  <a aria-label=\"Facebook\" target=\"_blank\" rel=\"noopener\" href=\"https://www.facebook.com/search/top?q=asufa\" style=\"\n                    color: #272727;\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 44px;\n                    height: 44px;\n                    transition: opacity 0.2s;\n                  \">\n                    <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n                      <path d=\"M9.198 21.5h4v-8.01h3.604l.396-3.98h-4V7.5a1 1 0 0 1 1-1h3v-4h-3a5 5 0 0 0-5 5v2.01h-2l-.396 3.98h2.396v8.01Z\"/>\n                    </svg>\n                  </a>\n                </li>\n              </ul>\n            </div>\n          </div>\n        </div>\n      `;\n\n      // Create container div\n      const container = document.createElement('div');\n      container.innerHTML = drawerHTML;\n      const newDrawer = container.firstElementChild;\n\n      // Add data attribute to identify our drawer\n      newDrawer.setAttribute('data-variant-drawer', 'true');\n\n      // Replace old drawer\n      parent.replaceChild(newDrawer, existingDrawer);\n\n      // Set up event listeners\n      setupDrawerEventListeners(newDrawer);\n\n      // If it was open, open the new drawer\n      if (wasOpen) {\n        setTimeout(() => {\n          newDrawer.style.transform = 'translateX(0)';\n        }, 50);\n      }\n\n    } catch (error) {\n      console.error('Error creating navigation drawer:', error);\n    }\n  }\n\n  function createNavigationItem(item, index) {\n    const hasChildren = item.children && item.children.length > 0;\n\n    if (hasChildren) {\n      // For items with children, create button that opens submenu\n      return `\n        <li class=\"navigation__item navigation__item--with-children\" style=\"\n          border-bottom: 1px solid #f2f2f8;\n          position: relative;\n        \">\n          <button class=\"navigation__link navigation__trigger\" data-submenu-id=\"submenu-${index}\" style=\"\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            padding: 18px 20px;\n            color: #272727;\n            font-size: 20px;\n            font-weight: 400;\n            text-decoration: none;\n            background: none;\n            border: none;\n            width: 100%;\n            cursor: pointer;\n            transition: background-color 0.2s;\n            text-align: right;\n          \">\n            <span>${item.title}</span>\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"opacity: 0.5; flex-shrink: 0;\">\n              <polyline points=\"15 18 9 12 15 6\"></polyline>\n            </svg>\n          </button>\n          ${createSubmenu(item, index)}\n        </li>\n      `;\n    } else {\n      // For items without children, create direct link\n      return `\n        <li class=\"navigation__item\" style=\"\n          border-bottom: 1px solid #f2f2f8;\n          position: relative;\n        \">\n          <a href=\"${item.url}\" class=\"navigation__link\" style=\"\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            padding: 18px 20px;\n            color: #272727;\n            font-size: 20px;\n            font-weight: 400;\n            text-decoration: none;\n            transition: background-color 0.2s;\n          \">\n            <span>${item.title}</span>\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"opacity: 0.5; flex-shrink: 0;\">\n              <polyline points=\"15 18 9 12 15 6\"></polyline>\n            </svg>\n          </a>\n        </li>\n      `;\n    }\n  }\n\n  function createSubSubmenuItem(subItem, parentIndex, subIndex) {\n    const hasChildren = subItem.children && subItem.children.length > 0;\n    const isBanner = subItem.isBanner === true;\n\n    if (isBanner) {\n      // Promotional banner item\n      return `\n        <li style=\"border-bottom: 1px solid #f2f2f8; margin: 8px 0;\">\n          <a href=\"${subItem.url}\" style=\"\n            display: block;\n            padding: 20px;\n            background: linear-gradient(135deg, #5297c0 0%, #4a89ad 100%);\n            color: #ffffff;\n            font-size: 17px;\n            font-weight: 600;\n            text-align: center;\n            text-decoration: none;\n            border-radius: 8px;\n            margin: 0 12px;\n            box-shadow: 0 2px 8px rgba(82, 151, 192, 0.3);\n            transition: transform 0.2s, box-shadow 0.2s;\n          \" onmouseover=\"this.style.transform='translateY(-2px)'; this.style.boxShadow='0 4px 12px rgba(82, 151, 192, 0.4)'\" onmouseout=\"this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 8px rgba(82, 151, 192, 0.3)'\">${subItem.title}</a>\n        </li>\n      `;\n    } else if (hasChildren) {\n      // Subcategory has further children - create button that opens sub-submenu\n      return `\n        <li style=\"border-bottom: 1px solid #f2f2f8;\">\n          <button class=\"navigation__trigger\" data-submenu-id=\"sub-submenu-${parentIndex}-${subIndex}\" style=\"\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            padding: 16px 20px;\n            color: #272727;\n            font-size: 16px;\n            text-decoration: none;\n            background: none;\n            border: none;\n            width: 100%;\n            cursor: pointer;\n            transition: background-color 0.2s;\n            text-align: right;\n          \">\n            <span>${subItem.title}</span>\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"opacity: 0.5; flex-shrink: 0;\">\n              <polyline points=\"15 18 9 12 15 6\"></polyline>\n            </svg>\n          </button>\n          ${createSubSubmenu(subItem, parentIndex, subIndex)}\n        </li>\n      `;\n    } else {\n      // Direct link\n      return `\n        <li style=\"border-bottom: 1px solid #f2f2f8;\">\n          <a href=\"${subItem.url}\" style=\"\n            display: block;\n            padding: 16px 20px;\n            color: #272727;\n            font-size: 16px;\n            text-decoration: none;\n            transition: background-color 0.2s;\n          \">${subItem.title}</a>\n        </li>\n      `;\n    }\n  }\n\n  function createBannersSection(bannerItems) {\n    return `\n      <li style=\"padding: 12px 16px; margin-top: 16px;\">\n        <div style=\"\n          display: grid;\n          grid-template-columns: 1fr 1fr;\n          gap: 12px;\n        \">\n          ${bannerItems.map(banner => `\n            <a href=\"${banner.url}\" style=\"\n              display: block;\n              position: relative;\n              border-radius: 8px;\n              overflow: hidden;\n              box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n              transition: transform 0.2s, box-shadow 0.2s;\n              text-decoration: none;\n            \" onmouseover=\"this.style.transform='translateY(-4px)'; this.style.boxShadow='0 4px 16px rgba(0, 0, 0, 0.15)'\" onmouseout=\"this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 8px rgba(0, 0, 0, 0.1)'\">\n              <img src=\"${banner.image}\" alt=\"${banner.title}\" style=\"\n                width: 100%;\n                height: 160px;\n                object-fit: cover;\n                display: block;\n              \">\n              <div style=\"\n                position: absolute;\n                bottom: 0;\n                left: 0;\n                right: 0;\n                padding: 12px 8px;\n                background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);\n                color: #ffffff;\n                font-size: 14px;\n                font-weight: 600;\n                text-align: center;\n                line-height: 1.3;\n              \">\n                ${banner.title}\n              </div>\n            </a>\n          `).join('')}\n        </div>\n      </li>\n    `;\n  }\n\n  function createSubSubmenu(subItem, parentIndex, subIndex) {\n    return `\n      <div id=\"sub-submenu-${parentIndex}-${subIndex}\" class=\"navigation__submenu navigation__sub-submenu\" style=\"\n        position: fixed;\n        top: 0;\n        right: 0;\n        width: 100%;\n        height: 100%;\n        background: #ffffff;\n        transform: translateX(100%);\n        transition: transform 0.3s ease-in-out;\n        z-index: 11;\n        display: flex;\n        flex-direction: column;\n        overflow-y: auto;\n      \">\n        <!-- Sub-submenu Header -->\n        <div class=\"navigation__submenu-header\" style=\"\n          display: flex;\n          align-items: center;\n          justify-content: space-between;\n          padding: 16px 20px;\n          border-bottom: 1px solid #f2f2f8;\n          background: #ffffff;\n          position: sticky;\n          top: 0;\n          z-index: 10;\n        \">\n          <button class=\"navigation__back-btn\" data-back-from=\"sub-submenu-${parentIndex}-${subIndex}\" style=\"\n            background: none;\n            border: none;\n            color: #272727;\n            cursor: pointer;\n            padding: 8px;\n            margin: -8px;\n            display: flex;\n            align-items: center;\n          \" aria-label=\"חזרה\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n              <polyline points=\"9 18 15 12 9 6\"></polyline>\n            </svg>\n          </button>\n          <span style=\"\n            font-size: 18px;\n            font-weight: 700;\n            color: #272727;\n            flex: 1;\n            text-align: center;\n          \">${subItem.title}</span>\n          <button class=\"mobile-nav-toggle\" style=\"\n            background: none;\n            border: none;\n            color: #272727;\n            cursor: pointer;\n            padding: 8px;\n            margin: -8px;\n          \" aria-label=\"סגור תפריט\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n              <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n              <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n            </svg>\n          </button>\n        </div>\n\n        <!-- Sub-submenu Content -->\n        <ul style=\"\n          list-style: none;\n          margin: 0;\n          padding: 20px 0;\n          flex: 1;\n        \">\n          ${subItem.children.map(link => `\n            <li style=\"border-bottom: 1px solid #f2f2f8;\">\n              <a href=\"${link.url}\" style=\"\n                display: block;\n                padding: 16px 20px;\n                color: #272727;\n                font-size: 16px;\n                text-decoration: none;\n                transition: background-color 0.2s;\n              \">${link.title}</a>\n            </li>\n          `).join('')}\n        </ul>\n      </div>\n    `;\n  }\n\n  function createSubmenu(item, index) {\n    // Separate banners from regular items\n    const regularItems = item.children.filter(child => !child.isBanner);\n    const bannerItems = item.children.filter(child => child.isBanner);\n\n    return `\n      <div id=\"submenu-${index}\" class=\"navigation__submenu\" style=\"\n        position: fixed;\n        top: 0;\n        right: 0;\n        width: 100%;\n        height: 100%;\n        background: #ffffff;\n        transform: translateX(100%);\n        transition: transform 0.3s ease-in-out;\n        z-index: 10;\n        display: flex;\n        flex-direction: column;\n        overflow-y: auto;\n      \">\n        <!-- Submenu Header -->\n        <div class=\"navigation__submenu-header\" style=\"\n          display: flex;\n          align-items: center;\n          justify-content: space-between;\n          padding: 16px 20px;\n          border-bottom: 1px solid #f2f2f8;\n          background: #ffffff;\n          position: sticky;\n          top: 0;\n          z-index: 10;\n        \">\n          <button class=\"navigation__back-btn\" data-back-from=\"submenu-${index}\" style=\"\n            background: none;\n            border: none;\n            color: #272727;\n            cursor: pointer;\n            padding: 8px;\n            margin: -8px;\n            display: flex;\n            align-items: center;\n          \" aria-label=\"חזרה\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n              <polyline points=\"9 18 15 12 9 6\"></polyline>\n            </svg>\n          </button>\n          <span style=\"\n            font-size: 18px;\n            font-weight: 700;\n            color: #272727;\n            flex: 1;\n            text-align: center;\n          \">${item.title}</span>\n          <button class=\"mobile-nav-toggle\" style=\"\n            background: none;\n            border: none;\n            color: #272727;\n            cursor: pointer;\n            padding: 8px;\n            margin: -8px;\n          \" aria-label=\"סגור תפריט\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n              <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n              <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n            </svg>\n          </button>\n        </div>\n\n        <!-- Submenu Content -->\n        <ul style=\"\n          list-style: none;\n          margin: 0;\n          padding: 20px 0;\n          flex: 1;\n        \">\n          ${regularItems.map((child, childIndex) => createSubSubmenuItem(child, index, childIndex)).join('')}\n          ${bannerItems.length > 0 ? createBannersSection(bannerItems) : ''}\n        </ul>\n      </div>\n    `;\n  }\n\n  function setupDrawerEventListeners(drawer) {\n    try {\n      // Close button\n      const closeButtons = drawer.querySelectorAll('.mobile-nav-toggle');\n      closeButtons.forEach(btn => {\n        btn.addEventListener('click', (e) => {\n          e.preventDefault();\n          closeDrawer(drawer);\n        });\n      });\n\n      // Submenu trigger buttons (for items with children)\n      const submenuTriggers = drawer.querySelectorAll('.navigation__trigger');\n      submenuTriggers.forEach(trigger => {\n        trigger.addEventListener('click', (e) => {\n          e.preventDefault();\n          const submenuId = trigger.getAttribute('data-submenu-id');\n          const submenu = drawer.querySelector(`#${submenuId}`);\n          if (submenu) {\n            openSubmenu(submenu);\n          }\n        });\n      });\n\n      // Back buttons in submenus\n      const backButtons = drawer.querySelectorAll('.navigation__back-btn');\n      backButtons.forEach(btn => {\n        btn.addEventListener('click', (e) => {\n          e.preventDefault();\n          const submenuId = btn.getAttribute('data-back-from');\n          const submenu = drawer.querySelector(`#${submenuId}`);\n          if (submenu) {\n            closeSubmenu(submenu);\n          }\n        });\n      });\n\n      // Hover effects for main menu links\n      const mainLinks = drawer.querySelectorAll('.navigation__tier-1 .navigation__link');\n      mainLinks.forEach(link => {\n        link.addEventListener('mouseenter', () => {\n          link.style.backgroundColor = '#f8f9fc';\n        });\n        link.addEventListener('mouseleave', () => {\n          link.style.backgroundColor = 'transparent';\n        });\n      });\n\n      // Hover effects for submenu links and buttons\n      const submenuLinks = drawer.querySelectorAll('.navigation__submenu a, .navigation__submenu button.navigation__trigger');\n      submenuLinks.forEach(link => {\n        link.addEventListener('mouseenter', () => {\n          link.style.backgroundColor = '#f8f9fc';\n        });\n        link.addEventListener('mouseleave', () => {\n          link.style.backgroundColor = 'transparent';\n        });\n      });\n\n      // Social link hover effects\n      const socialLinks = drawer.querySelectorAll('.social-links__list a');\n      socialLinks.forEach(link => {\n        link.addEventListener('mouseenter', () => {\n          link.style.opacity = '0.7';\n        });\n        link.addEventListener('mouseleave', () => {\n          link.style.opacity = '1';\n        });\n      });\n\n    } catch (error) {\n      console.error('Error setting up drawer event listeners:', error);\n    }\n  }\n\n  function openSubmenu(submenu) {\n    if (submenu) {\n      submenu.style.transform = 'translateX(0)';\n    }\n  }\n\n  function closeSubmenu(submenu) {\n    if (submenu) {\n      submenu.style.transform = 'translateX(100%)';\n    }\n  }\n\n  function closeDrawer(drawer) {\n    drawer.style.transform = 'translateX(100%)';\n\n    // Close all open submenus and sub-submenus\n    const openSubmenus = drawer.querySelectorAll('.navigation__submenu, .navigation__sub-submenu');\n    openSubmenus.forEach(submenu => {\n      submenu.style.transform = 'translateX(100%)';\n    });\n\n    // Also close the menu button state\n    const menuButton = document.querySelector('button[aria-controls=\"header-sidebar-menu\"]');\n    if (menuButton) {\n      menuButton.setAttribute('aria-expanded', 'false');\n    }\n  }\n\n  function setupMenuButton() {\n    try {\n      const menuButton = document.querySelector('button[aria-controls=\"header-sidebar-menu\"]');\n      if (!menuButton) {\n        return;\n      }\n\n      // Remove old event listeners by cloning\n      const newButton = menuButton.cloneNode(true);\n      menuButton.parentNode.replaceChild(newButton, menuButton);\n\n      newButton.addEventListener('click', (e) => {\n        e.preventDefault();\n        const drawer = document.querySelector('[data-variant-drawer=\"true\"]');\n        if (drawer) {\n          const isOpen = drawer.style.transform === 'translateX(0px)';\n          if (isOpen) {\n            closeDrawer(drawer);\n            newButton.setAttribute('aria-expanded', 'false');\n          } else {\n            drawer.style.transform = 'translateX(0)';\n            newButton.setAttribute('aria-expanded', 'true');\n          }\n        }\n      });\n\n    } catch (error) {\n      console.error('Error setting up menu button:', error);\n    }\n  }\n\n  // Initialize\n  function init() {\n    try {\n      // Wait for DOM to be ready\n      if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', () => {\n          createNavigationDrawer();\n          setupMenuButton();\n        });\n      } else {\n        createNavigationDrawer();\n        setupMenuButton();\n      }\n\n      // Handle dynamic content changes\n      const observer = new MutationObserver((mutations) => {\n        const drawer = document.querySelector('[data-variant-drawer=\"true\"]');\n        const oldDrawer = document.querySelector('#header-sidebar-menu:not([data-variant-drawer])');\n\n        if (oldDrawer && !drawer) {\n          createNavigationDrawer();\n          setupMenuButton();\n        }\n      });\n\n      observer.observe(document.body, {\n        childList: true,\n        subtree: true\n      });\n\n    } catch (error) {\n      console.error('Error initializing navigation drawer:', error);\n    }\n  }\n\n  init();\n})();\n"}]},"exp-EXPC9612D5E":{"defaultValue":"","rules":[{"id":"winner-deployed-1765801353973","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  /**\n   * Hide the top site bar on mobile devices\n   * Targets the bar containing the Israeli design message and store links\n   */\n  function hideTopSiteBar() {\n    try {\n      // Find the top site bar element\n      const topSiteBar = document.querySelector('.top-site-bar-flex');\n\n      if (topSiteBar) {\n        // Hide the element\n        topSiteBar.style.display = 'none';\n      }\n    } catch (error) {\n      // Silently handle any errors to prevent breaking the page\n    }\n  }\n\n  // Execute immediately if DOM is ready\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', hideTopSiteBar);\n  } else {\n    hideTopSiteBar();\n  }\n\n  // Also observe for dynamic content changes\n  const observer = new MutationObserver(function(mutations) {\n    const topSiteBar = document.querySelector('.top-site-bar-flex');\n    if (topSiteBar && topSiteBar.style.display !== 'none') {\n      hideTopSiteBar();\n    }\n  });\n\n  // Start observing when document is ready\n  if (document.body) {\n    observer.observe(document.body, {\n      childList: true,\n      subtree: true\n    });\n  }\n})();\n"}]},"exp-EXP8D68061F":{"defaultValue":"","rules":[{"id":"winner-deployed-1765801209553","condition":{"$and":[{"deviceType":"mobile"},{"pageType":{"$in":["homepage","home","index"]}}]},"force":"(function() {\n  'use strict';\n\n  function moveRecentlyViewedToTop() {\n    try {\n      const recentlyViewedSection = document.querySelector('recently-viewed-products.section');\n      if (!recentlyViewedSection) return;\n\n      const slideshowSection = document.querySelector('.shopify-section--slideshow');\n      if (!slideshowSection) return;\n\n      const mainContent = document.querySelector('main#main');\n      if (!mainContent) return;\n\n      // Hide the original parent section to prevent duplicate display\n      const parentSection = recentlyViewedSection.closest('.shopify-section--recently-viewed-products');\n      if (parentSection) {\n        parentSection.style.display = 'none';\n      }\n\n      // Clone the element instead of moving it to avoid removing it from original location\n      const clonedSection = recentlyViewedSection.cloneNode(true);\n\n      // Add a unique identifier to the cloned section\n      clonedSection.setAttribute('data-variant-moved', 'true');\n\n      // Insert the cloned section after the slideshow\n      if (slideshowSection.nextSibling) {\n        mainContent.insertBefore(clonedSection, slideshowSection.nextSibling);\n      } else {\n        mainContent.appendChild(clonedSection);\n      }\n\n      applySliderStyles();\n    } catch (error) {\n      // Error handling without console.log\n    }\n  }\n\n  function applySliderStyles() {\n    const styleId = 'variant-rv-slider-styles';\n    if (document.getElementById(styleId)) return;\n\n    const style = document.createElement('style');\n    style.id = styleId;\n    style.textContent = `\n      /* Hide the original recently viewed section */\n      .shopify-section--recently-viewed-products {\n        display: none !important;\n      }\n\n      /* Show only our moved version */\n      recently-viewed-products[data-variant-moved=\"true\"] {\n        display: block !important;\n      }\n\n      /* Reset any conflicting styles on the section */\n      recently-viewed-products.section {\n        display: block !important;\n        overflow: visible !important;\n      }\n\n      /* Target the product-list to make it a horizontal scroller */\n      recently-viewed-products product-list,\n      recently-viewed-products .product-list {\n        display: flex !important;\n        flex-wrap: nowrap !important;\n        overflow-x: auto !important;\n        overflow-y: hidden !important;\n        scroll-snap-type: x mandatory !important;\n        -webkit-overflow-scrolling: touch !important;\n        scrollbar-width: none !important;\n        gap: var(--grid-gutter, 20px) !important;\n        padding-bottom: 8px !important;\n      }\n\n      recently-viewed-products product-list::-webkit-scrollbar,\n      recently-viewed-products .product-list::-webkit-scrollbar {\n        display: none !important;\n      }\n\n      /* Each product card in the slider */\n      recently-viewed-products product-list > product-card,\n      recently-viewed-products .product-list > .product-card {\n        flex: 0 0 auto !important;\n        width: 160px !important;\n        min-width: 160px !important;\n        max-width: 160px !important;\n        scroll-snap-align: start !important;\n      }\n\n      /* Ensure product card displays correctly */\n      recently-viewed-products .product-card {\n        display: flex !important;\n        flex-direction: column !important;\n        height: auto !important;\n      }\n\n      /* Product card figure (image container) */\n      recently-viewed-products .product-card__figure {\n        position: relative !important;\n        width: 100% !important;\n        overflow: hidden !important;\n      }\n\n      /* Product images - square aspect ratio */\n      recently-viewed-products .product-card__image {\n        width: 100% !important;\n        height: auto !important;\n        aspect-ratio: 1 / 1 !important;\n        object-fit: cover !important;\n        display: block !important;\n      }\n\n      /* Hide secondary image by default */\n      recently-viewed-products .product-card__image--secondary {\n        display: none !important;\n      }\n\n      /* Product info section */\n      recently-viewed-products .product-card__info {\n        display: flex !important;\n        flex-direction: column !important;\n        gap: 4px !important;\n        padding: 8px 0 !important;\n        text-align: start !important;\n      }\n\n      /* Vendor link */\n      recently-viewed-products .product-card__info .text-xs,\n      recently-viewed-products .product-card__info .link-faded {\n        font-size: 11px !important;\n        color: rgba(39, 39, 39, 0.65) !important;\n      }\n\n      /* Product title */\n      recently-viewed-products .product-card__title {\n        font-size: 12px !important;\n        line-height: 1.3 !important;\n      }\n\n      recently-viewed-products .product-card__title a {\n        color: rgb(39, 39, 39) !important;\n        text-decoration: none !important;\n      }\n\n      /* Price */\n      recently-viewed-products .price-list {\n        font-size: 12px !important;\n      }\n\n      /* Mobile adjustments */\n      @media (max-width: 699px) {\n        recently-viewed-products product-list > product-card,\n        recently-viewed-products .product-list > .product-card {\n          width: 140px !important;\n          min-width: 140px !important;\n          max-width: 140px !important;\n        }\n      }\n\n      /* Tablet */\n      @media (min-width: 700px) and (max-width: 999px) {\n        recently-viewed-products product-list > product-card,\n        recently-viewed-products .product-list > .product-card {\n          width: 180px !important;\n          min-width: 180px !important;\n          max-width: 180px !important;\n        }\n      }\n\n      /* Desktop */\n      @media (min-width: 1000px) {\n        recently-viewed-products product-list > product-card,\n        recently-viewed-products .product-list > .product-card {\n          width: 220px !important;\n          min-width: 220px !important;\n          max-width: 220px !important;\n        }\n      }\n    `;\n    document.head.appendChild(style);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', moveRecentlyViewedToTop);\n  } else {\n    moveRecentlyViewedToTop();\n  }\n\n  const rvObserver = new MutationObserver(function(mutations) {\n    mutations.forEach(function(mutation) {\n      if (mutation.addedNodes.length) {\n        mutation.addedNodes.forEach(function(node) {\n          if (node.tagName === 'RECENTLY-VIEWED-PRODUCTS') {\n            moveRecentlyViewedToTop();\n            rvObserver.disconnect();\n          }\n        });\n      }\n    });\n  });\n\n  rvObserver.observe(document.body, {\n    childList: true,\n    subtree: true\n  });\n\n})();\n"}]},"exp-EXPC40C7B2C":{"defaultValue":"","rules":[{"id":"winner-deployed-1768821455984","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  /* =============================================\n   * VARIANT IMAGE SWATCHES EXPERIENCE\n   * Transforms text-based variant options to image swatches with color titles\n   * Experiment ID: EXP617DC457 | Variant ID: 1\n   * ============================================= */\n\n  const CONFIG = {\n    swatchSize: 60,\n    imageSize: 200\n  };\n\n  /**\n   * Gets the product handle from the current URL\n   * URL format: /products/[handle] or /products/[handle]?variant=xxx\n   */\n  function getProductHandle() {\n    const path = window.location.pathname;\n    const match = path.match(/\\/products\\/([^\\/\\?]+)/);\n    return match ? match[1] : null;\n  }\n\n  // Global state - prevent any duplicate execution\n  let cachedProduct = null;\n  let isInitialized = false;\n  let isBuilding = false; // Flag to prevent concurrent builds\n\n  const STYLES = `\n    /* Our custom swatches container - FIXED position outside all dynamic content */\n    #variant-swatches-exp617dc457 {\n      width: 100%;\n      max-width: 350px;\n      overflow: hidden;\n      margin-bottom: 8px;\n    }\n\n    #variant-swatches-exp617dc457 .swatches-container {\n      display: flex;\n      flex-direction: row;\n      flex-wrap: nowrap;\n      gap: 10px;\n      margin-top: 8px;\n      overflow-x: auto;\n      overflow-y: hidden;\n      padding-bottom: 8px;\n      -webkit-overflow-scrolling: touch;\n      max-width: 100%;\n    }\n\n    #variant-swatches-exp617dc457 .swatches-container::-webkit-scrollbar {\n      height: 4px;\n    }\n\n    #variant-swatches-exp617dc457 .swatches-container::-webkit-scrollbar-track {\n      background: #f2f2f2;\n      border-radius: 2px;\n    }\n\n    #variant-swatches-exp617dc457 .swatches-container::-webkit-scrollbar-thumb {\n      background: #e9a9a9;\n      border-radius: 2px;\n    }\n\n    #variant-swatches-exp617dc457 .swatch-item {\n      display: flex;\n      flex-direction: column;\n      align-items: stretch;\n      cursor: pointer;\n      border: 2px solid transparent;\n      border-radius: 4px;\n      padding: 0;\n      transition: all 0.2s ease;\n      background: #ffffff;\n      width: 80px;\n      min-width: 80px;\n      height: 120px;\n      min-height: 120px;\n      flex-shrink: 0;\n      position: relative;\n      box-sizing: border-box;\n      overflow: hidden;\n      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n    }\n\n    #variant-swatches-exp617dc457 .swatch-item:hover {\n      border-color: rgba(39, 39, 39, 0.3);\n      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);\n      transform: translateY(-2px);\n    }\n\n    #variant-swatches-exp617dc457 .swatch-item.selected {\n      border-color: #e9a9a9;\n      box-shadow: 0 4px 16px rgba(233, 169, 169, 0.3);\n    }\n\n    #variant-swatches-exp617dc457 .swatch-item.disabled {\n      opacity: 0.5;\n      cursor: not-allowed;\n      pointer-events: none;\n    }\n\n    #variant-swatches-exp617dc457 .swatch-item.disabled::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background-color: rgba(255, 255, 255, 0.4);\n      border-radius: 4px;\n      z-index: 1;\n    }\n\n    #variant-swatches-exp617dc457 .swatch-img {\n      width: 100%;\n      height: 80px;\n      object-fit: cover;\n      border-radius: 0;\n      background-color: #f2f2f2;\n      flex-shrink: 0;\n    }\n\n    #variant-swatches-exp617dc457 .swatch-title {\n      font-size: 10px;\n      color: rgb(39, 39, 39);\n      text-align: center;\n      margin: 0;\n      line-height: 1.3;\n      width: 100%;\n      height: 40px;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      display: -webkit-box;\n      -webkit-line-clamp: 2;\n      -webkit-box-orient: vertical;\n      direction: rtl;\n      background-color: #ffffff;\n      padding: 8px 6px;\n      box-sizing: border-box;\n      flex-shrink: 0;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      font-weight: 500;\n    }\n\n    /* Hide the ENTIRE original variant picker section */\n    fieldset.variant-picker__option {\n      position: absolute !important;\n      width: 1px !important;\n      height: 1px !important;\n      padding: 0 !important;\n      margin: -1px !important;\n      overflow: hidden !important;\n      clip: rect(0, 0, 0, 0) !important;\n      white-space: nowrap !important;\n      border: 0 !important;\n      opacity: 0 !important;\n      pointer-events: none !important;\n    }\n  `;\n\n  /**\n   * Fetches product data dynamically based on current URL\n   */\n  async function getProductData() {\n    if (cachedProduct) return cachedProduct;\n\n    const handle = getProductHandle();\n    if (!handle) return null;\n\n    try {\n      const response = await fetch('/products/' + handle + '.json');\n      const data = await response.json();\n      cachedProduct = data.product;\n      return cachedProduct;\n    } catch (e) {\n      return null;\n    }\n  }\n\n  /**\n   * Gets current variant ID from URL\n   */\n  function getCurrentVariantId() {\n    const params = new URLSearchParams(window.location.search);\n    return params.get('variant');\n  }\n\n  /**\n   * Navigate to variant using URL change (safest method)\n   */\n  function selectVariant(variantId) {\n    const url = new URL(window.location.href);\n    url.searchParams.set('variant', variantId);\n    // Navigate to the new URL - this is the safest way to change variant\n    window.location.href = url.toString();\n  }\n\n  /**\n   * Updates swatch selection visual state\n   */\n  function updateSelection(selectedId) {\n    const swatches = document.querySelectorAll('#variant-swatches-exp617dc457 .swatch-item');\n    swatches.forEach(function(swatch) {\n      if (swatch.dataset.variantId === String(selectedId)) {\n        swatch.classList.add('selected');\n      } else {\n        swatch.classList.remove('selected');\n      }\n    });\n  }\n\n  /**\n   * Injects styles\n   */\n  function injectStyles() {\n    if (document.getElementById('variant-swatches-styles-exp617dc457')) return;\n    const style = document.createElement('style');\n    style.id = 'variant-swatches-styles-exp617dc457';\n    style.textContent = STYLES;\n    document.head.appendChild(style);\n  }\n\n  /**\n   * Build the swatches UI\n   */\n  async function buildSwatches() {\n    // STRICT: Prevent ANY concurrent or duplicate execution\n    if (isBuilding) {\n      return;\n    }\n\n    // Check if element already exists anywhere on page\n    if (document.getElementById('variant-swatches-exp617dc457')) {\n      return;\n    }\n\n    // Check if we're already initialized\n    if (isInitialized) {\n      return;\n    }\n\n    // Set building flag immediately\n    isBuilding = true;\n\n    try {\n      const product = await getProductData();\n      if (!product || !product.variants) {\n        isBuilding = false;\n        return;\n      }\n\n    // Create image map\n    const imageMap = {};\n    if (product.images) {\n      product.images.forEach(function(img) {\n        imageMap[img.id] = img.src;\n      });\n    }\n\n    // Check Shopify's original labels for disabled state\n    const disabledVariants = new Set();\n    const originalLabels = document.querySelectorAll('fieldset.variant-picker__option label.block-swatch.is-disabled');\n    originalLabels.forEach(function(label) {\n      const variantName = label.textContent.trim();\n      disabledVariants.add(variantName);\n    });\n\n    // Build variant data with images\n    const variantsWithImages = [];\n    product.variants.forEach(function(v) {\n      if (v.image_id && imageMap[v.image_id]) {\n        const isDisabled = disabledVariants.has(v.title) || v.available === false;\n        variantsWithImages.push({\n          id: v.id,\n          title: v.title,\n          imageUrl: imageMap[v.image_id],\n          available: !isDisabled\n        });\n      }\n    });\n\n    if (variantsWithImages.length === 0) return;\n\n    // Sort: available first\n    variantsWithImages.sort(function(a, b) {\n      if (a.available && !b.available) return -1;\n      if (!a.available && b.available) return 1;\n      return 0;\n    });\n\n    // Inject styles\n    injectStyles();\n\n    // Get current selection\n    const currentId = getCurrentVariantId();\n\n    // Create container\n    const root = document.createElement('div');\n    root.id = 'variant-swatches-exp617dc457';\n\n    const container = document.createElement('div');\n    container.className = 'swatches-container';\n\n    variantsWithImages.forEach(function(variant) {\n      const swatch = document.createElement('div');\n      swatch.className = 'swatch-item';\n      swatch.dataset.variantId = variant.id;\n\n      if (String(variant.id) === String(currentId)) {\n        swatch.classList.add('selected');\n      }\n      if (!variant.available) {\n        swatch.classList.add('disabled');\n      }\n\n      const img = document.createElement('img');\n      img.className = 'swatch-img';\n      img.src = variant.imageUrl + (variant.imageUrl.indexOf('?') > -1 ? '&' : '?') + 'width=' + CONFIG.imageSize;\n      img.alt = variant.title;\n      img.loading = 'lazy';\n\n      const title = document.createElement('span');\n      title.className = 'swatch-title';\n      title.textContent = variant.title;\n\n      swatch.appendChild(img);\n      swatch.appendChild(title);\n\n      // Click handler - only if available\n      if (variant.available) {\n        swatch.addEventListener('click', function(e) {\n          e.preventDefault();\n          e.stopPropagation();\n          selectVariant(variant.id);\n        });\n      }\n\n      container.appendChild(swatch);\n    });\n\n    root.appendChild(container);\n\n    // Find a STABLE insertion point - look for product-info or similar stable container\n    const insertionPoints = [\n      '.product-info__variant-picker',\n      '.product-info variant-picker',\n      'variant-picker',\n      '.product-form__variants',\n      '.product__info-wrapper'\n    ];\n\n    let inserted = false;\n    for (let i = 0; i < insertionPoints.length; i++) {\n      const target = document.querySelector(insertionPoints[i]);\n      if (target) {\n        // Insert at the BEGINNING of this container\n        target.insertBefore(root, target.firstChild);\n        inserted = true;\n        isInitialized = true;\n        break;\n      }\n    }\n\n    // Fallback: insert before any fieldset we find\n    if (!inserted) {\n      const fieldset = document.querySelector('fieldset.variant-picker__option');\n      if (fieldset && fieldset.parentNode) {\n        fieldset.parentNode.insertBefore(root, fieldset);\n        isInitialized = true;\n      }\n    }\n\n    // Successfully completed\n    isBuilding = false;\n\n    } catch (error) {\n      // Reset flag on error\n      isBuilding = false;\n      console.error('Variant swatches error:', error);\n    }\n  }\n\n  /**\n   * Initialize\n   */\n  function init() {\n    // Build swatches when DOM is ready\n    if (document.readyState === 'loading') {\n      document.addEventListener('DOMContentLoaded', buildSwatches);\n    } else {\n      buildSwatches();\n    }\n\n    // Single delayed retry only if initial attempt fails\n    setTimeout(function() {\n      if (!document.getElementById('variant-swatches-exp617dc457')) {\n        buildSwatches();\n      }\n    }, 1000);\n  }\n\n  init();\n\n})();\n"}]},"exp-EXPC6941952":{"defaultValue":"","rules":[{"id":"winner-deployed-1767628515452","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  // Configuration - Using real testimonials from the site\n  const CONFIG = {\n    sectionTitle: 'מה אתם אומרים',\n    reviews: [\n      {\n        name: 'In Chu',\n        rating: 5,\n        text: 'מקום מלא מתנות מהממות ומקוריות בטווח מחירים הוגן מאוד בין דברים לכל כיס לדברים היותר יקרים. מאיה המוכרת היא לבבית ועזרה לי מאוד ובסובלנות רבה. בהחלט אחזור - מקום נפלא!'\n      },\n      {\n        name: 'Lilach Vidal',\n        rating: 5,\n        text: 'חנות מקסימה ומשמחת. מגוון פריטים. חובה להכנס כשמגיעים לשוק הפשפשים.'\n      },\n      {\n        name: 'Daniel Kleinberg',\n        rating: 5,\n        text: 'החנות הכי שווה בעיר!!'\n      }\n    ]\n  };\n\n  // Create star rating HTML using Shopify's existing star icon\n  function createStarRating(rating) {\n    const stars = [];\n    const starSVG = `<svg role=\"presentation\" fill=\"none\" focusable=\"false\" width=\"15\" height=\"15\" class=\"rating__star rating__star--full icon icon-rating-star\" viewBox=\"0 0 15 15\">\n      <path d=\"M7.5 0L9.58587 5.2731L15 5.72949L10.875 9.44483L12.1353 15L7.5 12.0231L2.86475 15L4.125 9.44483L0 5.72949L5.41414 5.2731L7.5 0Z\" fill=\"currentColor\"></path>\n    </svg>`;\n\n    for (let i = 0; i < rating; i++) {\n      stars.push(starSVG);\n    }\n    return stars.join('');\n  }\n\n  // Create review card HTML matching Shopify testimonial structure\n  function createReviewCard(review) {\n    return `\n      <div class=\"testimonial rounded-sm bg-secondary\">\n        <div class=\"h-stack align-start gap-4 sm:gap-6\">\n          <div class=\"v-stack gap-2 sm:gap-2.5\">\n            <div class=\"rating\">\n              <div class=\"rating__stars\" role=\"img\" aria-label=\"${review.rating} מתוך 5 כוכבים\">\n                ${createStarRating(review.rating)}\n              </div>\n            </div>\n            <p class=\"text-subdued\">${review.name}</p>\n          </div>\n        </div>\n        <div class=\"v-stack gap-2 sm:gap-2.5\">\n          <p>${review.text}</p>\n        </div>\n      </div>\n    `;\n  }\n\n  // Create reviews section HTML matching Shopify structure\n  function createReviewsSection() {\n    const reviewsHTML = CONFIG.reviews.map(review => createReviewCard(review)).join('');\n\n    return `\n      <section class=\"shopify-section shopify-section--product-testimonials\" id=\"product-reviews-section\">\n        <style>\n          #product-reviews-section {\n            --section-background-hash: 0;\n            --testimonial-list-items-per-row: 1;\n            --testimonial-list-carousel-item-width: 74vw;\n            --testimonial-list-grid: auto / repeat(var(--testimonial-list-items-per-row), minmax(0, 1fr));\n          }\n\n          #product-reviews-section + * {\n            --previous-section-background-hash: 0;\n          }\n\n          @media screen and (min-width: 700px) {\n            #product-reviews-section {\n              --testimonial-list-items-per-row: 2;\n              --testimonial-list-carousel-item-width: 52vw;\n            }\n          }\n\n          @media screen and (min-width: 1000px) {\n            #product-reviews-section {\n              --testimonial-list-carousel-item-width: 36vw;\n            }\n          }\n\n          @media screen and (min-width: 1150px) {\n            #product-reviews-section {\n              --testimonial-list-items-per-row: 3;\n              --testimonial-list-carousel-item-width: calc(100% / 3 - (var(--grid-gutter) / 3 * 2));\n            }\n          }\n        </style>\n\n        <div class=\"section section-blends section-full\">\n          <div class=\"section-stack\">\n            <section-header class=\"section-header\">\n              <div class=\"prose\">\n                <h2 class=\"h2\" reveal-on-scroll=\"true\">\n                  <split-lines>${CONFIG.sectionTitle}</split-lines>\n                </h2>\n              </div>\n            </section-header>\n\n            <div class=\"scrollable-with-controls\">\n              <scroll-carousel id=\"product-testimonials-carousel\" class=\"testimonial-list scroll-area bleed\">\n                ${reviewsHTML}\n              </scroll-carousel>\n            </div>\n          </div>\n        </div>\n      </section>\n    `;\n  }\n\n  // Initialize reviews section\n  function initReviewsSection() {\n    try {\n      // Find the product recommendations section\n      const productRecommendationsSection = document.querySelector('.shopify-section--product-recommendations');\n\n      if (!productRecommendationsSection) {\n        return;\n      }\n\n      // Check if reviews section already exists\n      if (document.getElementById('product-reviews-section')) {\n        return;\n      }\n\n      // Create and insert reviews section\n      const reviewsHTML = createReviewsSection();\n      productRecommendationsSection.insertAdjacentHTML('afterend', reviewsHTML);\n\n    } catch (error) {\n      // Silent error handling\n    }\n  }\n\n  // Run initialization\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', initReviewsSection);\n  } else {\n    initReviewsSection();\n  }\n\n})();\n"}]},"exp-EXP0FB3752C":{"defaultValue":"","rules":[{"id":"winner-deployed-1767628454934","condition":{"$and":[{"deviceType":"desktop"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  function moveDescriptionBelowBuyButtons() {\n    try {\n      const descriptionBlock = document.querySelector('div.product-info__block-item > div.product-info__description');\n      const buyButtonsContainer = document.querySelector('div.product-info__buy-buttons');\n\n      if (!descriptionBlock || !buyButtonsContainer) {\n        return;\n      }\n\n      const buyButtonsParent = buyButtonsContainer.parentElement;\n\n      if (!buyButtonsParent) {\n        return;\n      }\n\n      const nextSibling = buyButtonsContainer.nextSibling;\n\n      if (nextSibling) {\n        buyButtonsParent.insertBefore(descriptionBlock, nextSibling);\n      } else {\n        buyButtonsParent.appendChild(descriptionBlock);\n      }\n\n      descriptionBlock.style.marginTop = '24px';\n\n    } catch (error) {\n      // Silent error handling\n    }\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', moveDescriptionBelowBuyButtons);\n  } else {\n    moveDescriptionBelowBuyButtons();\n  }\n\n})();\n"}]},"exp-EXP81BB0D9F":{"defaultValue":"","rules":[{"id":"winner-deployed-1771925483076","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"product"}]},"force":"(function() {\n  'use strict';\n\n  // Configuration\n  const CONFIG = {\n    stickyFormId: 'product-form-7173861572775-template--19459362291879__main-sticky-bar',\n    priceUpdateDelay: 100,\n    maxRetries: 50,\n    retryDelay: 100\n  };\n\n  // Get the current product price from the main product info area\n  function getCurrentPrice() {\n    try {\n      // Try to find the sale price element in the main product info\n      const salePriceElement = document.querySelector('sale-price');\n      \n      if (salePriceElement) {\n        // Extract the price text (e.g., \"240.00 ₪\")\n        const priceText = salePriceElement.textContent.trim();\n        // Remove any screen reader text like \"מחיר מבצע\"\n        const cleanPrice = priceText.replace(/מחיר מבצע|מחיר רגיל/g, '').trim();\n        return cleanPrice;\n      }\n      \n      // Fallback: try to find price-list element\n      const priceListElement = document.querySelector('price-list sale-price');\n      if (priceListElement) {\n        const priceText = priceListElement.textContent.trim();\n        const cleanPrice = priceText.replace(/מחיר מבצע|מחיר רגיל/g, '').trim();\n        return cleanPrice;\n      }\n      \n      return null;\n    } catch (error) {\n      return null;\n    }\n  }\n\n  // Update the sticky button with the price\n  function updateStickyButtonWithPrice() {\n    try {\n      // Find the sticky form\n      const stickyForm = document.getElementById(CONFIG.stickyFormId);\n      if (!stickyForm) {\n        return false;\n      }\n\n      // Find the button text div within the sticky bar\n      const buttonTextDiv = stickyForm.querySelector('buy-buttons button > div');\n      if (!buttonTextDiv) {\n        return false;\n      }\n\n      // Get the current price\n      const price = getCurrentPrice();\n      if (!price) {\n        return false;\n      }\n\n      // Get the original button text (without price if already added)\n      const originalText = 'הוסף לעגלה';\n      \n      // Check if price is already added to avoid duplicates\n      const currentText = buttonTextDiv.textContent.trim();\n      if (currentText.includes('-') && currentText.includes('₪')) {\n        // Already has price, just update it\n        buttonTextDiv.textContent = `${originalText} - ${price}`;\n      } else {\n        // First time adding price\n        buttonTextDiv.textContent = `${originalText} - ${price}`;\n      }\n\n      // Ensure the button parent has proper styling for the new content\n      const button = buttonTextDiv.closest('button');\n      if (button) {\n        button.style.display = 'flex';\n        button.style.alignItems = 'center';\n        button.style.justifyContent = 'center';\n        button.style.gap = '8px';\n      }\n\n      return true;\n    } catch (error) {\n      return false;\n    }\n  }\n\n  // Initialize with retry logic\n  function initializeWithRetry(attempt = 0) {\n    if (attempt >= CONFIG.maxRetries) {\n      return;\n    }\n\n    const success = updateStickyButtonWithPrice();\n    \n    if (!success) {\n      setTimeout(() => initializeWithRetry(attempt + 1), CONFIG.retryDelay);\n    } else {\n      // Successfully initialized, now set up observers\n      setupObservers();\n    }\n  }\n\n  // Set up observers to watch for price changes (variant changes)\n  function setupObservers() {\n    try {\n      // Watch for changes in the main product info area (where prices update)\n      const productInfo = document.querySelector('safe-sticky.product-info');\n      if (productInfo) {\n        const observer = new MutationObserver((mutations) => {\n          // Debounce the update\n          clearTimeout(window.variantPriceUpdateTimeout);\n          window.variantPriceUpdateTimeout = setTimeout(() => {\n            updateStickyButtonWithPrice();\n          }, CONFIG.priceUpdateDelay);\n        });\n\n        observer.observe(productInfo, {\n          childList: true,\n          subtree: true,\n          characterData: true\n        });\n      }\n\n      // Also watch the sticky button itself in case it gets re-rendered\n      const stickyForm = document.getElementById(CONFIG.stickyFormId);\n      if (stickyForm) {\n        const stickyObserver = new MutationObserver((mutations) => {\n          // Check if the button text was reset (no price)\n          const buttonTextDiv = stickyForm.querySelector('buy-buttons button > div');\n          if (buttonTextDiv && !buttonTextDiv.textContent.includes('-')) {\n            clearTimeout(window.variantPriceUpdateTimeout);\n            window.variantPriceUpdateTimeout = setTimeout(() => {\n              updateStickyButtonWithPrice();\n            }, CONFIG.priceUpdateDelay);\n          }\n        });\n\n        stickyObserver.observe(stickyForm, {\n          childList: true,\n          subtree: true,\n          characterData: true\n        });\n      }\n\n      // Listen for variant change events (Shopify specific)\n      document.addEventListener('variant:change', () => {\n        setTimeout(() => {\n          updateStickyButtonWithPrice();\n        }, CONFIG.priceUpdateDelay);\n      });\n\n    } catch (error) {\n      // Silent fail for observers\n    }\n  }\n\n  // Start initialization when DOM is ready\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', () => {\n      setTimeout(() => initializeWithRetry(), 500);\n    });\n  } else {\n    setTimeout(() => initializeWithRetry(), 500);\n  }\n\n})();"}]},"exp-EXPEAE8DFC6":{"defaultValue":"","rules":[{"id":"winner-deployed-1774962209548","condition":{"$and":[{"deviceType":"mobile"},{"pageType":"collection"}]},"force":"(function() {\n  'use strict';\n\n  if (!window.location.pathname.includes('/collections/')) return;\n\n  /* ═══════════════════════════════════════════════════════\n     SECTION 1: CATEGORY CAROUSEL (bottom of page)\n     ═══════════════════════════════════════════════════════ */\n\n  var CAROUSEL_ID = 'vr-category-carousel';\n\n  var categories = [\n    { name: 'קרמיקה', handle: '%D7%A7%D7%A8%D7%9E%D7%99%D7%A7%D7%94', image: '//asufadesign.co.il/cdn/shop/files/icons_web9_6c3aeba3-4bba-4f9a-9156-05b899fe0c08.jpg?v=1732560369&width=400' },\n    { name: 'יודאיקה', handle: 'judaica', image: '//asufadesign.co.il/cdn/shop/files/icons_web6.jpg?v=1732560589&width=400' },\n    { name: 'ספרים', handle: 'books', image: '//asufadesign.co.il/cdn/shop/files/icons_web7_48bcc667-00d4-4cb7-a923-a2203c0b4655.jpg?v=1732560622&width=400' },\n    { name: 'מוצרי נייר', handle: 'papergoods', image: '//asufadesign.co.il/cdn/shop/files/icons_web8_f59ff7c0-7e5f-4141-b350-d8ab5de11a3a.jpg?v=1732560668&width=400' },\n    { name: 'ואזות ועציצים', handle: 'plants', image: '//asufadesign.co.il/cdn/shop/files/icons_web_1a8e19a6-b97c-447c-9924-40ea2335ea45.jpg?v=1732561011&width=400' },\n    { name: 'ילדים', handle: 'kids', image: '//asufadesign.co.il/cdn/shop/files/icons_web2.jpg?v=1732561109&width=400' },\n    { name: 'הדפסים', handle: 'prints', image: '//asufadesign.co.il/cdn/shop/files/icons_web4_494f22ea-ec4a-4ab0-805c-d3212b08b7e2.jpg?v=1732561077&width=400' },\n    { name: 'לבית', handle: 'home', image: '//asufadesign.co.il/cdn/shop/files/icons_web5_659aced3-9639-4e93-b60b-dcd80f6a9a3b.jpg?v=1732561124&width=400' },\n    { name: 'לקיר', handle: 'wall', image: '//asufadesign.co.il/cdn/shop/files/icons_web13_9b40a733-2f06-4196-a046-d88145fddb1f.jpg?v=1732561132&width=400' },\n    { name: 'בסט סלרס', handle: 'bestsellers', image: '//asufadesign.co.il/cdn/shop/files/icons_web10_e672d131-0012-40f9-929a-9fd9778a0eb6.jpg?v=1732561152&width=400' }\n  ];\n\n  /* ═══════════════════════════════════════════════════════\n     SECTION 2: CATEGORY HEADER + DESCRIPTION DATA\n     ═══════════════════════════════════════════════════════ */\n\n  var collectionData = {\n    'all': {\n      title: 'כל המוצרים',\n      description: 'כל מוצרי העיצוב הישראלי שלנו במקום אחד – גלו יצירות ייחודיות מהמעצבים המובילים בארץ.'\n    },\n    'קרמיקה': {\n      title: 'קרמיקה',\n      description: 'כלי קרמיקה בעבודת יד, כל פריט הוא יצירה ייחודית שמשלבת מלאכת יד מסורתית עם עיצוב עכשווי.'\n    },\n    'judaica': {\n      title: 'יודאיקה',\n      description: 'פריטי יודאיקה מעוצבים בקו מודרני – חנוכיות, מזוזות, קידוש ועוד, בעבודת יד ישראלית.'\n    },\n    'books': {\n      title: 'ספרים',\n      description: 'אוסף ספרים ישראליים מיוחדים – עיצוב, אמנות, אוכל ותרבות, מתנה מושלמת לכל אוהב קריאה.'\n    },\n    'papergoods': {\n      title: 'מוצרי נייר',\n      description: 'גלויות, מחברות, פוסטרים ועוד – מוצרי נייר מאוירים ומעוצבים ביד אמן ישראלית.'\n    },\n    'plants': {\n      title: 'ואזות ועציצים',\n      description: 'עציצים ואגרטלים מעוצבים לצמחי הבית שלכם – קרמיקה, בטון וזכוכית בעיצוב ישראלי.'\n    },\n    'kids': {\n      title: 'ילדים',\n      description: 'מוצרי עיצוב מקוריים לילדים – משחקים, ספרים ואקססוריז שמעוררים דמיון ויצירתיות.'\n    },\n    'prints': {\n      title: 'הדפסים',\n      description: 'הדפסים ופוסטרים מאוירים של אמנים ישראליים – להוסיף צבע ואופי לכל קיר בבית.'\n    },\n    'home': {\n      title: 'לבית',\n      description: 'פריטי עיצוב לבית בסגנון ישראלי – דקורציה, כלי בית ואקססוריז שהופכים כל חלל למיוחד.'\n    },\n    'wall': {\n      title: 'לקיר',\n      description: 'שעונים, תמונות, אגרטלים לקיר וחמסות – פריטי קיר מעוצבים שנותנים אופי לכל חדר.'\n    },\n    'bestsellers': {\n      title: 'הנמכרים ביותר',\n      description: 'המוצרים הכי אהובים על הלקוחות שלנו – הפריטים שכולם בוחרים, שוב ושוב.'\n    },\n    'sozo': {\n      title: 'SOZO',\n      description: 'קולקציית SOZO – עיצובים יפניים-ישראליים ייחודיים המשלבים אסתטיקה מזרחית עם נגיעה מקומית.'\n    },\n    'מתנות-ישראליות': {\n      title: 'מתנות ישראליות',\n      description: 'מתנות מעוצבות עם נשמה ישראלית – הבחירה המושלמת לכל אירוע, חג או סתם כי בא לכם.'\n    },\n    'משהו-לבית': {\n      title: 'עיצוב לבית',\n      description: 'פריטי עיצוב מיוחדים לכל פינה בבית – מהסלון ועד המטבח, בסגנון ישראלי ייחודי.'\n    },\n    'מטבח-ושולחן': {\n      title: 'למטבח',\n      description: 'כלי מטבח ושולחן בעיצוב ישראלי – אביזרי בישול, כוסות, צלחות ומגשים שמייפים כל ארוחה.'\n    },\n    'מוצרים-בעבודת-יד': {\n      title: 'לגעת בחומר',\n      description: 'מוצרים בעבודת יד מקרמיקה, בטון, זכוכית ותלת מימד – כשהחומר מדבר בעד עצמו.'\n    }\n  };\n\n  /* ═══════════════════════════════════════════════════════\n     SECTION 3: SORT OPTIONS (Hebrew labels)\n     ═══════════════════════════════════════════════════════ */\n\n  var sortOptions = [\n    { value: 'manual', label: 'מומלצים' },\n    { value: 'best-selling', label: 'נמכרים ביותר' },\n    { value: 'price-ascending', label: 'מחיר: נמוך לגבוה' },\n    { value: 'price-descending', label: 'מחיר: גבוה לנמוך' },\n    { value: 'created-descending', label: 'חדש לישן' },\n    { value: 'created-ascending', label: 'ישן לחדש' },\n    { value: 'title-ascending', label: 'א-ת' },\n    { value: 'title-descending', label: 'ת-א' }\n  ];\n\n  /* ═══════════════════════════════════════════════════════\n     HELPERS\n     ═══════════════════════════════════════════════════════ */\n\n  function getCurrentCollectionHandle() {\n    var path = window.location.pathname;\n    var match = path.match(/\\/collections\\/([^/?#]+)/);\n    if (!match) return null;\n    try {\n      return decodeURIComponent(match[1]).toLowerCase();\n    } catch(e) {\n      return match[1].toLowerCase();\n    }\n  }\n\n  function getCollectionInfo() {\n    var handle = getCurrentCollectionHandle();\n    if (!handle) return null;\n\n    if (collectionData[handle]) return collectionData[handle];\n\n    var found = categories.find(function(cat) {\n      try {\n        return decodeURIComponent(cat.handle).toLowerCase() === handle;\n      } catch(e) {\n        return cat.handle.toLowerCase() === handle;\n      }\n    });\n\n    if (found) return { title: found.name, description: '' };\n\n    return null;\n  }\n\n  function getCurrentSortBy() {\n    var params = new URLSearchParams(window.location.search);\n    return params.get('sort_by') || 'manual';\n  }\n\n  function getFilteredCategories() {\n    var currentHandle = getCurrentCollectionHandle();\n    if (!currentHandle) return categories;\n\n    return categories.filter(function(cat) {\n      try {\n        var decoded = decodeURIComponent(cat.handle).toLowerCase();\n        return decoded !== currentHandle;\n      } catch(e) {\n        return cat.handle.toLowerCase() !== currentHandle;\n      }\n    });\n  }\n\n  /** Reads active filter values from the current URL */\n  function getActiveFilters() {\n    var params = new URLSearchParams(window.location.search);\n    var active = {};\n    params.forEach(function(value, key) {\n      if (key.indexOf('filter.') === 0) {\n        if (!active[key]) active[key] = [];\n        active[key].push(value);\n      }\n    });\n    return active;\n  }\n\n  /** Reads filter groups from the Shopify facet form on the page */\n  function readFilterGroups() {\n    var groups = [];\n    var form = document.querySelector('#facet-form');\n    if (!form) return groups;\n\n    var accordions = form.querySelectorAll('details[id^=\"accordion-filter\"]');\n    accordions.forEach(function(acc) {\n      var titleEl = acc.querySelector('summary .accordion__toggle > span:first-child');\n      var title = titleEl ? titleEl.textContent.trim() : '';\n      if (!title) return;\n\n      var checkboxes = acc.querySelectorAll('.checkbox-list input[type=\"checkbox\"]');\n      if (checkboxes.length > 0) {\n        var options = [];\n        checkboxes.forEach(function(cb) {\n          var label = acc.querySelector('label[for=\"' + cb.id + '\"]');\n          var labelText = label ? label.textContent.trim() : cb.value;\n          options.push({\n            name: cb.name,\n            value: cb.value,\n            label: labelText\n          });\n        });\n        if (options.length > 0) {\n          groups.push({ title: title, type: 'checkbox', options: options });\n        }\n      }\n    });\n\n    return groups;\n  }\n\n  /** Count total active filter params in URL */\n  function countActiveFilters() {\n    var params = new URLSearchParams(window.location.search);\n    var count = 0;\n    params.forEach(function(_, key) {\n      if (key.indexOf('filter.') === 0) count++;\n    });\n    return count;\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     ANALYTICS: INFLUENCED REVENUE TRACKING\n     ═══════════════════════════════════════════════════════ */\n\n  var VR_EXPERIMENT_ID = 'EXPEAE8DFC6';\n  var VR_VARIATION_ID = '1';\n  var vrTrackedEvents = {};\n\n  /** Fire an influenced-revenue event once per interaction type per page view */\n  function trackInfluencedRevenue(interactionType) {\n    if (vrTrackedEvents[interactionType]) return;\n    vrTrackedEvents[interactionType] = true;\n    try {\n      if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n        Variant.publishCustomEvent('influenced-revenue', {\n          experiment_id: VR_EXPERIMENT_ID,\n          variation_id: VR_VARIATION_ID\n        });\n      }\n    } catch(e) { /* fail silently */ }\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     STYLES\n     ═══════════════════════════════════════════════════════ */\n\n  function injectStyles() {\n    if (document.getElementById('vr-collection-styles')) return;\n\n    var css = [\n      'facet-floating-filter { display: none !important; }',\n\n      '#vr-collection-header {',\n      '  direction: rtl;',\n      '  padding: 1.5rem 1.25rem 0;',\n      '  font-family: var(--heading-font-family, \"system_ui\", -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif);',\n      '}',\n      '#vr-collection-header .vr-coll-title {',\n      '  font-size: 1.75rem;',\n      '  font-weight: 400;',\n      '  color: rgb(39, 39, 39);',\n      '  margin: 0 0 0.5rem;',\n      '  line-height: 1.3;',\n      '}',\n      '#vr-collection-header .vr-coll-desc {',\n      '  font-size: 0.875rem;',\n      '  font-weight: 400;',\n      '  color: rgb(105, 114, 123);',\n      '  margin: 0;',\n      '  line-height: 1.6;',\n      '  max-width: 600px;',\n      '}',\n\n      '#vr-sort-filter-bar {',\n      '  direction: rtl;',\n      '  padding: 0.75rem var(--container-gutter, 1.25rem);',\n      '  font-family: var(--text-font-family, inherit);',\n      '}',\n      '#vr-sort-filter-bar .vr-bar-row {',\n      '  display: flex;',\n      '  align-items: center;',\n      '  justify-content: space-between;',\n      '}',\n      '#vr-sort-filter-bar .vr-bar-actions {',\n      '  display: flex;',\n      '  align-items: center;',\n      '  gap: 8px;',\n      '}',\n\n      /* Shared pill button base */\n      '#vr-sort-filter-bar .vr-filter-pill,',\n      '#vr-sort-filter-bar .vr-sort-trigger {',\n      '  display: inline-flex;',\n      '  align-items: center;',\n      '  gap: 5px;',\n      '  padding: 7px 14px;',\n      '  border: 1px solid rgba(39, 39, 39, 0.12);',\n      '  border-radius: var(--rounded-button, 3.75rem);',\n      '  background: none;',\n      '  color: rgb(39, 39, 39);',\n      '  font-size: var(--text-xs, 0.6875rem);',\n      '  font-weight: 400;',\n      '  font-family: inherit;',\n      '  cursor: pointer;',\n      '  white-space: nowrap;',\n      '  line-height: 1;',\n      '  transition: all 0.2s ease;',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-pill:active,',\n      '#vr-sort-filter-bar .vr-sort-trigger:active {',\n      '  background: rgba(39, 39, 39, 0.05);',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-pill svg,',\n      '#vr-sort-filter-bar .vr-sort-trigger svg {',\n      '  width: 12px;',\n      '  height: 12px;',\n      '  flex-shrink: 0;',\n      '}',\n\n      /* Active filter count badge */\n      '#vr-sort-filter-bar .vr-filter-badge {',\n      '  display: inline-flex;',\n      '  align-items: center;',\n      '  justify-content: center;',\n      '  min-width: 16px;',\n      '  height: 16px;',\n      '  border-radius: 50%;',\n      '  background: rgb(39, 39, 39);',\n      '  color: rgb(255, 255, 255);',\n      '  font-size: 9px;',\n      '  font-weight: 700;',\n      '  line-height: 1;',\n      '  padding: 0 4px;',\n      '}',\n\n      /* Dropdown wrapper (shared for both sort and filter) */\n      '#vr-sort-filter-bar .vr-dropdown-wrap {',\n      '  position: relative;',\n      '}',\n\n      /* Dropdown panel (shared design) */\n      '#vr-sort-filter-bar .vr-dropdown {',\n      '  position: absolute;',\n      '  top: calc(100% + 6px);',\n      '  right: 0;',\n      '  background: rgb(255, 255, 255);',\n      '  border-radius: var(--rounded, 0.75rem);',\n      '  box-shadow: var(--shadow-md, 0 5px 30px rgba(39, 39, 39, 0.1));',\n      '  min-width: 200px;',\n      '  z-index: 50;',\n      '  overflow: hidden;',\n      '  opacity: 0;',\n      '  transform: translateY(-4px);',\n      '  pointer-events: none;',\n      '  transition: opacity 0.18s ease, transform 0.18s ease;',\n      '}',\n      '#vr-sort-filter-bar .vr-dropdown[data-visible=\"true\"] {',\n      '  opacity: 1;',\n      '  transform: translateY(0);',\n      '  pointer-events: auto;',\n      '}',\n\n      /* Dropdown items (shared for sort options and filter options) */\n      '#vr-sort-filter-bar .vr-dropdown-option {',\n      '  display: flex;',\n      '  align-items: center;',\n      '  justify-content: space-between;',\n      '  width: 100%;',\n      '  padding: 10px 16px;',\n      '  border: none;',\n      '  background: none;',\n      '  color: rgb(39, 39, 39);',\n      '  font-size: var(--text-xs, 0.6875rem);',\n      '  font-weight: 400;',\n      '  font-family: inherit;',\n      '  cursor: pointer;',\n      '  text-align: right;',\n      '  direction: rtl;',\n      '  transition: background-color 0.12s ease;',\n      '}',\n      '#vr-sort-filter-bar .vr-dropdown-option:active {',\n      '  background: rgba(39, 39, 39, 0.04);',\n      '}',\n      '#vr-sort-filter-bar .vr-dropdown-option[data-active=\"true\"] {',\n      '  font-weight: 700;',\n      '}',\n      '#vr-sort-filter-bar .vr-dropdown-option[data-active=\"true\"]::after {',\n      '  content: \"\";',\n      '  width: 6px;',\n      '  height: 6px;',\n      '  border-radius: 50%;',\n      '  background: rgb(39, 39, 39);',\n      '  flex-shrink: 0;',\n      '}',\n\n      /* Filter dropdown specifics */\n      '#vr-sort-filter-bar .vr-filter-dropdown {',\n      '  max-height: 320px;',\n      '  overflow-y: auto;',\n      '  -webkit-overflow-scrolling: touch;',\n      '  scrollbar-width: thin;',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-group-title {',\n      '  display: block;',\n      '  padding: 10px 16px 4px;',\n      '  font-size: var(--text-xs, 0.6875rem);',\n      '  font-weight: 700;',\n      '  color: rgba(39, 39, 39, 0.45);',\n      '  text-transform: uppercase;',\n      '  letter-spacing: 0.04em;',\n      '  direction: rtl;',\n      '  text-align: right;',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-group-title:not(:first-child) {',\n      '  border-top: 1px solid rgba(39, 39, 39, 0.06);',\n      '  margin-top: 4px;',\n      '  padding-top: 12px;',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-clear {',\n      '  display: flex;',\n      '  align-items: center;',\n      '  justify-content: center;',\n      '  width: 100%;',\n      '  padding: 10px 16px;',\n      '  border: none;',\n      '  border-top: 1px solid rgba(39, 39, 39, 0.06);',\n      '  background: none;',\n      '  color: rgba(39, 39, 39, 0.5);',\n      '  font-size: var(--text-xs, 0.6875rem);',\n      '  font-weight: 400;',\n      '  font-family: inherit;',\n      '  cursor: pointer;',\n      '  text-align: center;',\n      '  direction: rtl;',\n      '  transition: color 0.15s ease;',\n      '}',\n      '#vr-sort-filter-bar .vr-filter-clear:active {',\n      '  color: rgb(39, 39, 39);',\n      '}',\n\n      /* Product count */\n      '.collection__results > .v-stack > .v-stack.md\\\\:hidden > p.text-center { display: none; }',\n      '#vr-sort-filter-bar .vr-product-count {',\n      '  font-size: var(--text-xs, 0.6875rem);',\n      '  color: rgba(39, 39, 39, 0.4);',\n      '  font-weight: 400;',\n      '  margin: 0;',\n      '  line-height: 1;',\n      '}',\n\n      /* Carousel styles */\n      '#' + CAROUSEL_ID + ' {',\n      '  padding: 2rem 0 2.5rem;',\n      '  direction: rtl;',\n      '  font-family: var(--text-font-family, \"system_ui\", -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif);',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-title {',\n      '  font-size: 1.5rem;',\n      '  font-weight: 400;',\n      '  color: rgb(39, 39, 39);',\n      '  margin: 0 0 1.25rem;',\n      '  padding: 0 1.25rem;',\n      '  line-height: 1.3;',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-scroll {',\n      '  display: flex;',\n      '  gap: 12px;',\n      '  overflow-x: auto;',\n      '  scroll-snap-type: x mandatory;',\n      '  -webkit-overflow-scrolling: touch;',\n      '  padding: 0 1.25rem 8px;',\n      '  scrollbar-width: none;',\n      '  -ms-overflow-style: none;',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-scroll::-webkit-scrollbar {',\n      '  display: none;',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-item {',\n      '  flex: 0 0 auto;',\n      '  width: 120px;',\n      '  scroll-snap-align: start;',\n      '  text-decoration: none;',\n      '  display: flex;',\n      '  flex-direction: column;',\n      '  align-items: center;',\n      '  gap: 8px;',\n      '  transition: transform 0.2s ease;',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-item:active {',\n      '  transform: scale(0.96);',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-img-wrap {',\n      '  width: 100px;',\n      '  height: 100px;',\n      '  border-radius: 0.75rem;',\n      '  overflow: hidden;',\n      '  position: relative;',\n      '  background: rgb(242, 242, 242);',\n      '  box-shadow: 0 2px 8px rgba(39, 39, 39, 0.08);',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-img-wrap img {',\n      '  width: 100%;',\n      '  height: 100%;',\n      '  object-fit: cover;',\n      '  display: block;',\n      '  transition: transform 0.3s ease;',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-item:hover .vr-cat-img-wrap img {',\n      '  transform: scale(1.05);',\n      '}',\n      '#' + CAROUSEL_ID + ' .vr-cat-name {',\n      '  font-size: 0.75rem;',\n      '  font-weight: 700;',\n      '  color: rgb(39, 39, 39);',\n      '  text-align: center;',\n      '  line-height: 1.3;',\n      '  max-width: 100%;',\n      '  overflow: hidden;',\n      '  text-overflow: ellipsis;',\n      '  white-space: nowrap;',\n      '}',\n      '@media screen and (min-width: 700px) {',\n      '  #vr-collection-header { padding: 2rem 2rem 0; }',\n      '  #vr-collection-header .vr-coll-title { font-size: 2rem; }',\n      '  #vr-sort-filter-bar { padding: 0.75rem 2rem; }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-scroll {',\n      '    gap: 16px;',\n      '    padding: 0 2rem 8px;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-title {',\n      '    padding: 0 2rem;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-item {',\n      '    width: 140px;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-img-wrap {',\n      '    width: 120px;',\n      '    height: 120px;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-name {',\n      '    font-size: 0.875rem;',\n      '  }',\n      '}',\n      '@media screen and (min-width: 1150px) {',\n      '  #' + CAROUSEL_ID + ' .vr-cat-scroll {',\n      '    gap: 20px;',\n      '    justify-content: center;',\n      '    flex-wrap: wrap;',\n      '    overflow-x: visible;',\n      '    padding: 0 2rem 8px;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-title {',\n      '    text-align: center;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-item {',\n      '    width: 150px;',\n      '  }',\n      '  #' + CAROUSEL_ID + ' .vr-cat-img-wrap {',\n      '    width: 130px;',\n      '    height: 130px;',\n      '  }',\n      '}'\n    ].join('\\n');\n\n    var style = document.createElement('style');\n    style.id = 'vr-collection-styles';\n    style.textContent = css;\n    document.head.appendChild(style);\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     COLLECTION HEADER (title + description)\n     ═══════════════════════════════════════════════════════ */\n\n  function buildCollectionHeader() {\n    if (document.getElementById('vr-collection-header')) return;\n\n    var info = getCollectionInfo();\n    if (!info) return;\n\n    var headerHTML = '<div id=\"vr-collection-header\">' +\n      '<h1 class=\"vr-coll-title\">' + info.title + '</h1>' +\n      (info.description ? '<p class=\"vr-coll-desc\">' + info.description + '</p>' : '') +\n      '</div>';\n\n    var collectionResults = document.querySelector('.collection__results');\n    if (collectionResults) {\n      collectionResults.insertAdjacentHTML('beforebegin', headerHTML);\n    }\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     INLINE SORT / FILTER BAR\n     ═══════════════════════════════════════════════════════ */\n\n  function buildSortFilterBar() {\n    if (document.getElementById('vr-sort-filter-bar')) return;\n\n    var currentSort = getCurrentSortBy();\n    var activeFilters = getActiveFilters();\n    var filterCount = countActiveFilters();\n\n    var productCountEl = document.querySelector('.collection__results .text-center');\n    var productCountText = productCountEl ? productCountEl.textContent.trim() : '';\n\n    var filterIcon = '<svg fill=\"none\" focusable=\"false\" width=\"12\" height=\"12\" viewBox=\"0 0 20 14\">' +\n      '<path d=\"M1 2C0.447715 2 0 2.44772 0 3C0 3.55228 0.447715 4 1 4V2ZM1 4H5V2H1V4Z\" fill=\"currentColor\"/>' +\n      '<path d=\"M1 10C0.447715 10 0 10.4477 0 11C0 11.5523 0.447715 12 1 12V10ZM1 12H11V10H1V12Z\" fill=\"currentColor\"/>' +\n      '<path d=\"M10 2H9V4H10V2ZM19 4C19.5523 4 20 3.55228 20 3C20 2.44772 19.5523 2 19 2V4ZM10 4H19V2H10V4Z\" fill=\"currentColor\"/>' +\n      '<path d=\"M16 10H15V12H16V10ZM19 12C19.5523 12 20 11.5523 20 11C20 10.4477 19.5523 10 19 10V12ZM16 12H19V10H16V12Z\" fill=\"currentColor\"/>' +\n      '<circle cx=\"7\" cy=\"3\" r=\"2\" stroke=\"currentColor\"/>' +\n      '<circle cx=\"13\" cy=\"11\" r=\"2\" stroke=\"currentColor\"/>' +\n      '</svg>';\n\n    var sortIcon = '<svg fill=\"none\" focusable=\"false\" width=\"12\" height=\"12\" viewBox=\"0 0 14 14\">' +\n      '<path d=\"M4 1v10M4 1L1.5 3.5M4 1l2.5 2.5\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>' +\n      '<path d=\"M10 13V3M10 13l2.5-2.5M10 13L7.5 10.5\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>' +\n      '</svg>';\n\n    /* Build filter dropdown content dynamically from the facet form */\n    var filterGroups = readFilterGroups();\n    var filterDropdownHTML = '';\n\n    filterGroups.forEach(function(group) {\n      filterDropdownHTML += '<span class=\"vr-filter-group-title\">' + group.title + '</span>';\n      group.options.forEach(function(opt) {\n        var isActive = activeFilters[opt.name] && activeFilters[opt.name].indexOf(opt.value) !== -1;\n        filterDropdownHTML += '<button type=\"button\" class=\"vr-dropdown-option vr-filter-option\" ' +\n          'data-filter-name=\"' + opt.name + '\" ' +\n          'data-filter-value=\"' + opt.value.replace(/\"/g, '&quot;') + '\"' +\n          (isActive ? ' data-active=\"true\"' : '') + '>' +\n          opt.label + '</button>';\n      });\n    });\n\n    if (filterCount > 0) {\n      filterDropdownHTML += '<button type=\"button\" class=\"vr-filter-clear\" id=\"vr-filter-clear\">נקה הכל</button>';\n    }\n\n    /* Build sort dropdown */\n    var sortOptionsHTML = sortOptions.map(function(opt) {\n      var isActive = opt.value === currentSort ? ' data-active=\"true\"' : '';\n      return '<button type=\"button\" class=\"vr-dropdown-option vr-sort-option\" data-sort=\"' + opt.value + '\"' + isActive + '>' + opt.label + '</button>';\n    }).join('');\n\n    var filterBadge = filterCount > 0 ? '<span class=\"vr-filter-badge\">' + filterCount + '</span>' : '';\n\n    var barHTML = '<div id=\"vr-sort-filter-bar\">' +\n      '<div class=\"vr-bar-row\">' +\n        '<div class=\"vr-bar-actions\">' +\n\n          /* Filter dropdown */\n          '<div class=\"vr-dropdown-wrap\">' +\n            '<button type=\"button\" class=\"vr-filter-pill\" id=\"vr-filter-trigger\">' +\n              filterIcon +\n              '<span>סינון</span>' +\n              filterBadge +\n            '</button>' +\n            '<div class=\"vr-dropdown vr-filter-dropdown\" id=\"vr-filter-dropdown\">' +\n              filterDropdownHTML +\n            '</div>' +\n          '</div>' +\n\n          /* Sort dropdown */\n          '<div class=\"vr-dropdown-wrap\">' +\n            '<button type=\"button\" class=\"vr-sort-trigger\" id=\"vr-sort-trigger\">' +\n              sortIcon +\n              '<span>מיון</span>' +\n            '</button>' +\n            '<div class=\"vr-dropdown\" id=\"vr-sort-dropdown\">' +\n              sortOptionsHTML +\n            '</div>' +\n          '</div>' +\n\n        '</div>' +\n        (productCountText ? '<p class=\"vr-product-count\">' + productCountText + '</p>' : '') +\n      '</div>' +\n      '</div>';\n\n    var collectionResults = document.querySelector('.collection__results');\n    if (collectionResults) {\n      collectionResults.insertAdjacentHTML('beforebegin', barHTML);\n    }\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     EVENT WIRING\n     ═══════════════════════════════════════════════════════ */\n\n  /** Closes all open dropdowns */\n  function closeAllDropdowns() {\n    document.querySelectorAll('#vr-sort-filter-bar .vr-dropdown').forEach(function(dd) {\n      dd.setAttribute('data-visible', 'false');\n    });\n  }\n\n  /** Sets up toggle behavior for a trigger + dropdown pair */\n  function setupDropdownToggle(triggerId, dropdownId) {\n    var trigger = document.getElementById(triggerId);\n    var dropdown = document.getElementById(dropdownId);\n    if (!trigger || !dropdown) return;\n\n    trigger.addEventListener('click', function(e) {\n      e.stopPropagation();\n      var isOpen = dropdown.getAttribute('data-visible') === 'true';\n      closeAllDropdowns();\n      if (!isOpen) {\n        dropdown.setAttribute('data-visible', 'true');\n      }\n    });\n  }\n\n  function wireEvents() {\n    /* Sort dropdown toggle */\n    setupDropdownToggle('vr-sort-trigger', 'vr-sort-dropdown');\n\n    /* Filter dropdown toggle */\n    setupDropdownToggle('vr-filter-trigger', 'vr-filter-dropdown');\n\n    /* Close dropdowns on outside click */\n    document.addEventListener('click', function(e) {\n      var bar = document.getElementById('vr-sort-filter-bar');\n      if (bar && !bar.contains(e.target)) {\n        closeAllDropdowns();\n      }\n    });\n\n    /* Sort option clicks */\n    var sortDropdown = document.getElementById('vr-sort-dropdown');\n    if (sortDropdown) {\n      sortDropdown.querySelectorAll('.vr-sort-option').forEach(function(option) {\n        option.addEventListener('click', function() {\n          var sortValue = this.getAttribute('data-sort');\n          if (!sortValue) return;\n\n          trackInfluencedRevenue('sort-click');\n\n          var url = new URL(window.location.href);\n          if (sortValue === 'manual') {\n            url.searchParams.delete('sort_by');\n          } else {\n            url.searchParams.set('sort_by', sortValue);\n          }\n          url.searchParams.delete('page');\n          window.location.href = url.toString();\n        });\n      });\n    }\n\n    /* Filter option clicks (toggle filter param and reload) */\n    var filterDropdown = document.getElementById('vr-filter-dropdown');\n    if (filterDropdown) {\n      filterDropdown.querySelectorAll('.vr-filter-option').forEach(function(option) {\n        option.addEventListener('click', function() {\n          var filterName = this.getAttribute('data-filter-name');\n          var filterValue = this.getAttribute('data-filter-value');\n          if (!filterName || !filterValue) return;\n\n          trackInfluencedRevenue('filter-click');\n\n          var url = new URL(window.location.href);\n          var params = url.searchParams;\n          var allValues = params.getAll(filterName);\n          var isActive = allValues.indexOf(filterValue) !== -1;\n\n          params.delete(filterName);\n\n          if (isActive) {\n            allValues.forEach(function(v) {\n              if (v !== filterValue) params.append(filterName, v);\n            });\n          } else {\n            allValues.forEach(function(v) { params.append(filterName, v); });\n            params.append(filterName, filterValue);\n          }\n\n          params.delete('page');\n          window.location.href = url.toString();\n        });\n      });\n\n      /* Clear all filters */\n      var clearBtn = document.getElementById('vr-filter-clear');\n      if (clearBtn) {\n        clearBtn.addEventListener('click', function() {\n          var url = new URL(window.location.href);\n          var keysToDelete = [];\n          url.searchParams.forEach(function(_, key) {\n            if (key.indexOf('filter.') === 0) keysToDelete.push(key);\n          });\n          keysToDelete.forEach(function(key) { url.searchParams.delete(key); });\n          url.searchParams.delete('page');\n          window.location.href = url.toString();\n        });\n      }\n    }\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     CATEGORY CAROUSEL (bottom of page)\n     ═══════════════════════════════════════════════════════ */\n\n  function buildCarousel() {\n    if (document.getElementById(CAROUSEL_ID)) return;\n\n    var filtered = getFilteredCategories();\n    if (filtered.length === 0) return;\n\n    var itemsHTML = filtered.map(function(cat) {\n      var url = '/collections/' + cat.handle;\n      return '<a href=\"' + url + '\" class=\"vr-cat-item\">' +\n        '<div class=\"vr-cat-img-wrap\">' +\n          '<img src=\"' + cat.image + '\" alt=\"' + cat.name + '\" loading=\"lazy\" width=\"400\" height=\"400\">' +\n        '</div>' +\n        '<span class=\"vr-cat-name\">' + cat.name + '</span>' +\n      '</a>';\n    }).join('');\n\n    var html = '<div id=\"' + CAROUSEL_ID + '\">' +\n      '<h2 class=\"vr-cat-title\">גלו עוד קטגוריות</h2>' +\n      '<div class=\"vr-cat-scroll\">' + itemsHTML + '</div>' +\n    '</div>';\n\n    var insertionPoint = document.querySelector('.collection__pagination');\n    if (insertionPoint) {\n      insertionPoint.insertAdjacentHTML('afterend', html);\n      return;\n    }\n\n    var productList = document.querySelector('product-list');\n    if (productList) {\n      var parent = productList.closest('.collection__results') || productList.parentElement;\n      if (parent) {\n        parent.insertAdjacentHTML('beforeend', html);\n        return;\n      }\n    }\n\n    var collectionSection = document.querySelector('.shopify-section--main-collection');\n    if (collectionSection) {\n      collectionSection.insertAdjacentHTML('beforeend', html);\n    }\n  }\n\n  /** Tracks carousel category clicks and carousel scroll for influenced revenue */\n  function wireCarouselTracking() {\n    /* Category card clicks — uses preventDefault pattern since links navigate */\n    var cards = document.querySelectorAll('#' + CAROUSEL_ID + ' .vr-cat-item');\n    cards.forEach(function(card) {\n      card.addEventListener('click', function(e) {\n        e.preventDefault();\n        var destinationUrl = card.href;\n\n        var safetyTimeout = setTimeout(function() {\n          window.location.href = destinationUrl;\n        }, 2000);\n\n        trackInfluencedRevenue('carousel-click');\n\n        clearTimeout(safetyTimeout);\n        window.location.href = destinationUrl;\n      });\n    });\n\n    /* Scroll interaction — fires once when user scrolls the carousel */\n    var scrollEl = document.querySelector('#' + CAROUSEL_ID + ' .vr-cat-scroll');\n    if (scrollEl) {\n      scrollEl.addEventListener('scroll', function() {\n        trackInfluencedRevenue('carousel-scroll');\n      }, { passive: true });\n    }\n  }\n\n  /* ═══════════════════════════════════════════════════════\n     INIT\n     ═══════════════════════════════════════════════════════ */\n\n  function init() {\n    try {\n      injectStyles();\n      buildCollectionHeader();\n      buildSortFilterBar();\n      wireEvents();\n      buildCarousel();\n      wireCarouselTracking();\n    } catch(e) {\n      /* fail silently */\n    }\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', init);\n  } else {\n    init();\n  }\n})();"}]},"exp-EXP49AF79A0":{"defaultValue":"","rules":[{"id":"winner-deployed-1776680745789","condition":{"deviceType":"mobile"},"force":"(function () {\n  'use strict';\n\n  // ============================================================\n  // PART 1: Category Swatch Carousel\n  // ============================================================\n\n  var SWATCH_ID = 'vrt-category-swatches';\n  var SWATCH_STYLE_ID = 'vrt-category-swatches-styles';\n\n  var CATEGORIES = [\n    { name: 'בסט סלרס', url: '/collections/bestsellers', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web10_e672d131-0012-40f9-929a-9fd9778a0eb6.jpg?v=1732561152&width=200' },\n    { name: 'קרמיקה', url: '/collections/%D7%A7%D7%A8%D7%9E%D7%99%D7%A7%D7%94', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web9_6c3aeba3-4bba-4f9a-9156-05b899fe0c08.jpg?v=1732560369&width=200' },\n    { name: 'יודאיקה', url: '/collections/judaica', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web6.jpg?v=1732560589&width=200' },\n    { name: 'ספרים', url: '/collections/books', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web7_48bcc667-00d4-4cb7-a923-a2203c0b4655.jpg?v=1732560622&width=200' },\n    { name: 'מוצרי נייר', url: '/collections/papergoods', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web8_f59ff7c0-7e5f-4141-b350-d8ab5de11a3a.jpg?v=1732560668&width=200' },\n    { name: 'ילדים', url: '/collections/kids', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web2.jpg?v=1732561109&width=200' },\n    { name: 'הדפסים', url: '/collections/prints', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web4_494f22ea-ec4a-4ab0-805c-d3212b08b7e2.jpg?v=1732561077&width=200' },\n    { name: 'לבית', url: '/collections/%D7%9E%D7%A9%D7%94%D7%95-%D7%9C%D7%91%D7%99%D7%AA', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web_1a8e19a6-b97c-447c-9924-40ea2335ea45.jpg?v=1732561011&width=200' },\n    { name: 'לקיר', url: '/collections/wall', image: 'https://asufadesign.co.il/cdn/shop/files/icons_web5_659aced3-9639-4e93-b60b-dcd80f6a9a3b.jpg?v=1732561124&width=200' }\n  ];\n\n  function injectSwatchStyles() {\n    if (document.getElementById(SWATCH_STYLE_ID)) return;\n    var style = document.createElement('style');\n    style.id = SWATCH_STYLE_ID;\n    style.textContent =\n      '#' + SWATCH_ID + '{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:18px 16px 14px;border-bottom:1px solid #f2f2f8;direction:rtl;gap:0 13px;background:#fff;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}' +\n      '#' + SWATCH_ID + '::-webkit-scrollbar{display:none}' +\n      '#' + SWATCH_ID + ' .vrt-sw-item{flex:0 0 calc((100vw - 84px) / 4.333);display:flex;flex-direction:column;align-items:center;text-decoration:none;gap:6px;cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none}' +\n      '#' + SWATCH_ID + ' .vrt-sw-img{width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:transparent;transition:transform .15s ease;will-change:transform;box-shadow:none}' +\n      '#' + SWATCH_ID + ' .vrt-sw-item:active .vrt-sw-img{transform:scale(.9)}' +\n      '#' + SWATCH_ID + ' .vrt-sw-img img{width:100%;height:100%;object-fit:cover;display:block}' +\n      '#' + SWATCH_ID + ' .vrt-sw-label{font-size:12px;font-weight:500;color:#272727;text-align:center;line-height:1.3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif}';\n    document.head.appendChild(style);\n  }\n\n  function createSwatchCarousel() {\n    var carousel = document.createElement('div');\n    carousel.id = SWATCH_ID;\n    CATEGORIES.forEach(function (cat) {\n      var link = document.createElement('a');\n      link.href = cat.url;\n      link.className = 'vrt-sw-item';\n      link.setAttribute('aria-label', cat.name);\n      var imgWrap = document.createElement('div');\n      imgWrap.className = 'vrt-sw-img';\n      var img = document.createElement('img');\n      img.src = cat.image;\n      img.alt = cat.name;\n      img.loading = 'eager';\n      img.width = 75;\n      img.height = 75;\n      imgWrap.appendChild(img);\n      var label = document.createElement('span');\n      label.className = 'vrt-sw-label';\n      label.textContent = cat.name;\n      link.appendChild(imgWrap);\n      link.appendChild(label);\n      carousel.appendChild(link);\n    });\n    return carousel;\n  }\n\n  function initCarousel() {\n    if (document.getElementById(SWATCH_ID)) return true;\n    var navList = document.querySelector('.navigation__tier-1');\n    if (!navList || !navList.parentElement) return false;\n    try {\n      injectSwatchStyles();\n      var carousel = createSwatchCarousel();\n      navList.parentElement.insertBefore(carousel, navList);\n      navList.style.paddingTop = '12px';\n    } catch (e) {\n      return false;\n    }\n    return true;\n  }\n\n  // ============================================================\n  // PART 2: Rebuild Mobile Menu to Match Desktop Navigation\n  // ============================================================\n\n  var MENU_REBUILD_FLAG = 'vrt-menu-rebuilt';\n  var MENU_STYLE_ID = 'vrt-mobile-menu-styles';\n\n  // Desktop menu structure mapped to mobile format\n  var DESKTOP_MENU = [\n    {\n      label: 'מתנות',\n      url: '/collections/%D7%97%D7%93%D7%A9-copy',\n      subgroups: [\n        {\n          title: 'לפי המקבל',\n          titleUrl: '/',\n          items: [\n            { text: 'מתנות לאישה', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%90%D7%99%D7%A9%D7%94' },\n            { text: 'מתנות לגבר', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%92%D7%91%D7%A8-1' },\n            { text: 'מתנות לנוער', url: '/' },\n            { text: 'מתנות לילדים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%A0%D7%95%D7%A2%D7%A8-copy' },\n            { text: 'מתנות לכל המשפחה', url: '/' },\n            { text: 'מתנות לחברים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%97%D7%91%D7%A8%D7%99%D7%9D' }\n          ]\n        },\n        {\n          title: 'לפי אירוע',\n          titleUrl: '/',\n          items: [\n            { text: 'יום הולדת', url: '/collections/%D7%97%D7%95%D7%95%D7%99%D7%95%D7%AA-%D7%95%D7%A1%D7%93%D7%A0%D7%90%D7%95%D7%AA-copy' },\n            { text: 'יום נישואין', url: '/collections/%D7%99%D7%95%D7%9D-%D7%A0%D7%99%D7%A9%D7%95%D7%90%D7%99%D7%9F' },\n            { text: 'יום האם', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-copy' },\n            { text: 'יום המשפחה', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%9E%D7%A9%D7%A4%D7%97%D7%94' },\n            { text: 'אירוסין וחתונה', url: '/collections/%D7%9C%D7%90%D7%99%D7%A8%D7%95%D7%A1%D7%99%D7%9F-%D7%95%D7%97%D7%AA%D7%95%D7%A0%D7%94' },\n            { text: 'לאירוע', url: '/collections/%D7%90%D7%99%D7%A8%D7%95%D7%A1%D7%99%D7%9F-%D7%95%D7%97%D7%AA%D7%95%D7%A0%D7%94-copy' },\n            { text: 'סיום לימודים', url: '/collections/%D7%9C%D7%90%D7%99%D7%A8%D7%95%D7%A1%D7%99%D7%9F-%D7%95%D7%97%D7%AA%D7%95%D7%A0%D7%94-copy' },\n            { text: 'מתנות לידה', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%99%D7%93%D7%94' },\n            { text: 'חנוכת בית', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%99%D7%93%D7%94-copy' },\n            { text: 'מתנות תודה', url: '/collections/%D7%97%D7%A0%D7%95%D7%9B%D7%AA-%D7%91%D7%99%D7%AA-copy' }\n          ]\n        },\n        {\n          title: 'לפי תחומי עניין',\n          titleUrl: '/',\n          items: [\n            { text: 'ספרים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%A1%D7%A4%D7%A8%D7%99%D7%9D' },\n            { text: 'הכי ישראלי', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%94%D7%9B%D7%99-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99' },\n            { text: 'אוכל ובישול', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%90%D7%95%D7%9B%D7%9C-%D7%95%D7%91%D7%99%D7%A9%D7%95%D7%9C' },\n            { text: 'משחקים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9E%D7%A9%D7%97%D7%A7%D7%99%D7%9D' },\n            { text: 'diy', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-diy' },\n            { text: 'ספורט ותנועה', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%A1%D7%A4%D7%95%D7%A8%D7%98-%D7%95%D7%AA%D7%A0%D7%95%D7%A2%D7%94' },\n            { text: 'בריאות וחיים טובים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%91%D7%A8%D7%99%D7%90%D7%95%D7%AA-%D7%95%D7%97%D7%99%D7%99%D7%9D-%D7%98%D7%95%D7%91%D7%99%D7%9D' },\n            { text: 'עולם המוזיקה', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%A2%D7%95%D7%9C%D7%9D-%D7%94%D7%9E%D7%95%D7%96%D7%99%D7%A7%D7%94' },\n            { text: 'אנשים של בעלי חיים', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%90%D7%A0%D7%A9%D7%99%D7%9D-%D7%A9%D7%9C-%D7%91%D7%A2%D7%9C%D7%99-%D7%97%D7%99%D7%99%D7%9D' }\n          ]\n        },\n        {\n          title: 'לפי מחיר',\n          titleUrl: '/',\n          items: [\n            { text: 'מתנות עד 200', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%9C%D7%97%D7%91%D7%A8%D7%99%D7%9D-copy' },\n            { text: 'מתנות בין 200-300', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%A2%D7%93-200-copy' },\n            { text: 'מתנות בין 300-500', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%91%D7%99%D7%9F-200-300-copy' },\n            { text: 'מתנות מעל 500', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%91%D7%99%D7%9F-300-500-copy' }\n          ]\n        },\n        {\n          title: 'כל המתנות',\n          titleUrl: '/collections/%D7%97%D7%93%D7%A9-copy',\n          items: [\n            { text: 'בסט סלרס', url: '/collections/%D7%97%D7%96%D7%A8-%D7%9C%D7%9E%D7%9C%D7%90%D7%99-copy' },\n            { text: 'מיוצר בישראל', url: '/collections/%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%A1%D7%A4%D7%99%D7%99%D7%A9%D7%9C-copy' },\n            { text: 'גיפט קארד', url: 'https://valuecard.co.il/GiftCards/Asufa#Welcome' }\n          ]\n        }\n      ]\n    },\n    {\n      label: 'יום הולדת',\n      url: '/collections/%D7%97%D7%95%D7%95%D7%99%D7%95%D7%AA-%D7%95%D7%A1%D7%93%D7%A0%D7%90%D7%95%D7%AA-copy',\n      subgroups: [\n        {\n          title: 'לפי תחומי עניין',\n          titleUrl: '/',\n          items: [\n            { text: 'ספרים', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%A1%D7%A4%D7%A8%D7%99%D7%9D' },\n            { text: 'מוצרי טיפוח', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9E%D7%95%D7%A6%D7%A8%D7%99-%D7%98%D7%99%D7%A4%D7%95%D7%97' },\n            { text: 'הכי ישראלי', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%94%D7%9B%D7%99-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99' },\n            { text: 'אוכל ובישול', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%90%D7%95%D7%9B%D7%9C-%D7%95%D7%91%D7%99%D7%A9%D7%95%D7%9C' },\n            { text: 'משחקים', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9E%D7%A9%D7%97%D7%A7%D7%99%D7%9D' },\n            { text: 'diy', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%A2%D7%91%D7%95%D7%93%D7%AA-%D7%99%D7%93' }\n          ]\n        },\n        {\n          title: 'לפי המקבל',\n          titleUrl: '/',\n          items: [\n            { text: 'אמא', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%90%D7%9E%D7%90' },\n            { text: 'אבא', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%90%D7%91%D7%90' },\n            { text: 'אישה', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9C%D7%90%D7%99%D7%A9%D7%94' },\n            { text: 'גבר', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9C%D7%92%D7%91%D7%A8' },\n            { text: 'נוער', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9C%D7%A0%D7%A2%D7%A8-%D7%94' },\n            { text: 'ילדים', url: '/collections/%D7%99%D7%95%D7%9D-%D7%94%D7%95%D7%9C%D7%93%D7%AA-%D7%9C%D7%99%D7%9C%D7%93-%D7%94' },\n            { text: 'תינוק חדש', url: '/collections/%D7%AA%D7%99%D7%A0%D7%95%D7%A7-%D7%97%D7%93%D7%A9' }\n          ]\n        },\n        {\n          title: 'המתנות הכי נמכרות',\n          titleUrl: '/collections/%D7%94%D7%9E%D7%AA%D7%A0%D7%95%D7%AA-%D7%94%D7%9B%D7%99-%D7%A0%D7%9E%D7%9B%D7%A8%D7%95%D7%AA',\n          items: []\n        }\n      ]\n    },\n    {\n      label: 'תחומי עניין',\n      url: '/',\n      subgroups: [\n        {\n          title: 'ספרים',\n          titleUrl: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D-1',\n          items: [\n            { text: 'ספרים לילדים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'ספרי עיצוב', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D' },\n            { text: 'ספרי בישול', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%91%D7%99%D7%A9%D7%95%D7%9C' },\n            { text: 'ספרי מתנה', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99-%D7%9E%D7%AA%D7%A0%D7%94' }\n          ]\n        },\n        {\n          title: 'מוצרי נייר',\n          titleUrl: '/collections/%D7%9E%D7%95%D7%A6%D7%A8%D7%99-%D7%A0%D7%99%D7%99%D7%A8',\n          items: [\n            { text: 'מוצרי נייר', url: '/collections/%D7%9E%D7%95%D7%A6%D7%A8%D7%99-%D7%A0%D7%99%D7%99%D7%A8' },\n            { text: 'מחברות וניירות', url: '/collections/%D7%9E%D7%97%D7%91%D7%A8%D7%95%D7%AA-%D7%95%D7%A0%D7%99%D7%99%D7%A8%D7%95%D7%AA' },\n            { text: 'כלי כתיבה', url: '/collections/%D7%9B%D7%9C%D7%99-%D7%9B%D7%AA%D7%99%D7%91%D7%94' }\n          ]\n        },\n        {\n          title: 'כל מיני',\n          titleUrl: '/',\n          items: [\n            { text: 'מוצרי טיפוח', url: '/collections/%D7%9E%D7%95%D7%A6%D7%A8%D7%99-%D7%98%D7%99%D7%A4%D7%95%D7%97' },\n            { text: 'הכי ישראלי', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D-copy' },\n            { text: 'אוכל ובישול', url: '/collections/%D7%94%D7%9B%D7%99-%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99-copy' },\n            { text: 'משחקים', url: '/collections/%D7%90%D7%95%D7%9B%D7%9C-%D7%95%D7%91%D7%99%D7%A9%D7%95%D7%9C-copy' },\n            { text: 'diy', url: '/collections/%D7%9E%D7%A9%D7%97%D7%A7%D7%99%D7%9D-copy' }\n          ]\n        }\n      ]\n    },\n    {\n      label: 'בשבילה',\n      url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D',\n      subgroups: [\n        {\n          title: 'לפי תחומי עניין',\n          titleUrl: '/',\n          items: [\n            { text: 'טיפוח ובריאות', url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D-%D7%98%D7%99%D7%A4%D7%95%D7%97-%D7%95%D7%91%D7%A8%D7%99%D7%90%D7%95%D7%AA' },\n            { text: 'ארומתרפיה', url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D-%D7%90%D7%A8%D7%95%D7%9E%D7%AA%D7%A8%D7%A4%D7%99%D7%94' },\n            { text: 'ספורט ותנועה', url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D-%D7%A1%D7%A4%D7%95%D7%A8%D7%98-%D7%95%D7%AA%D7%A0%D7%95%D7%A2%D7%94' },\n            { text: 'diy', url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D-diy' },\n            { text: 'ספרים', url: '/collections/%D7%A0%D7%A9%D7%99%D7%9D-%D7%A1%D7%A4%D7%A8%D7%99%D7%9D' }\n          ]\n        },\n        {\n          title: 'לפי המקבלת',\n          titleUrl: '/',\n          items: [\n            { text: 'אמא', url: '/collections/%D7%90%D7%9E%D7%90' },\n            { text: 'בת זוג', url: '/collections/%D7%91%D7%AA-%D7%96%D7%95%D7%92' },\n            { text: 'חברה', url: '/collections/%D7%97%D7%91%D7%A8%D7%94' },\n            { text: 'סבתא', url: '/collections/%D7%A1%D7%91%D7%AA%D7%90' }\n          ]\n        }\n      ]\n    },\n    {\n      label: 'בשבילו',\n      url: '/collections/%D7%92%D7%91%D7%A8%D7%99%D7%9D',\n      subgroups: [\n        {\n          title: 'לפי תחומי עניין',\n          titleUrl: '/',\n          items: [\n            { text: 'בריאות וטיפוח', url: '/collections/%D7%92%D7%91%D7%A8%D7%99%D7%9D-%D7%91%D7%A8%D7%99%D7%90%D7%95%D7%AA-%D7%95%D7%98%D7%99%D7%A4%D7%95%D7%97' },\n            { text: 'ארומתרפיה', url: '/collections/%D7%92%D7%91%D7%A8%D7%99%D7%9D-%D7%90%D7%A8%D7%95%D7%9E%D7%AA%D7%A8%D7%A4%D7%99%D7%94' },\n            { text: 'ספורט ותנועה', url: '/collections/%D7%92%D7%91%D7%A8%D7%99%D7%9D-%D7%A1%D7%A4%D7%95%D7%A8%D7%98-%D7%95%D7%AA%D7%A0%D7%95%D7%A2%D7%94' },\n            { text: 'ספרים', url: '/collections/%D7%92%D7%91%D7%A8%D7%99%D7%9D-%D7%A1%D7%A4%D7%A8%D7%99%D7%9D' }\n          ]\n        },\n        {\n          title: 'לפי המקבל',\n          titleUrl: '/',\n          items: [\n            { text: 'אבא', url: '/collections/%D7%90%D7%91%D7%90' },\n            { text: 'בן זוג', url: '/collections/%D7%91%D7%9F-%D7%96%D7%95%D7%92' },\n            { text: 'חבר', url: '/collections/%D7%97%D7%91%D7%A8' },\n            { text: 'סבא', url: '/collections/%D7%A1%D7%91%D7%90' }\n          ]\n        }\n      ]\n    },\n    {\n      label: 'ילדים',\n      url: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D',\n      subgroups: [\n        {\n          title: 'לפי תחומי עניין',\n          titleUrl: '/',\n          items: [\n            { text: 'מוזיקה', url: '/collections/%D7%9E%D7%95%D7%96%D7%99%D7%A7%D7%94-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'מדע וטכנולוגיה', url: '/collections/%D7%9E%D7%93%D7%A2-%D7%95%D7%98%D7%9B%D7%A0%D7%95%D7%9C%D7%95%D7%92%D7%99%D7%94-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'ספורט ומשחקי חוץ', url: '/collections/%D7%A1%D7%A4%D7%95%D7%A8%D7%98-%D7%95%D7%9E%D7%A9%D7%97%D7%A7%D7%99-%D7%97%D7%95%D7%A5-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'בעלי חיים', url: '/collections/%D7%91%D7%A2%D7%9C%D7%99-%D7%97%D7%99%D7%99%D7%9D-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'ספרים', url: '/collections/%D7%A1%D7%A4%D7%A8%D7%99%D7%9D-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'diy', url: '/collections/%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D-diy' }\n          ]\n        },\n        {\n          title: 'לפי המקבל',\n          titleUrl: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D',\n          items: [\n            { text: 'הכל לילדים', url: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%99%D7%9C%D7%93%D7%99%D7%9D' },\n            { text: 'הכל לנוער', url: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%A0%D7%95%D7%A2%D7%A8' },\n            { text: 'תינוקות', url: '/' },\n            { text: 'פעוטות', url: '/' },\n            { text: 'גיל הגן', url: '/' },\n            { text: 'בית ספר', url: '/' }\n          ]\n        },\n        {\n          title: 'בנים',\n          titleUrl: '/collections/%D7%91%D7%A0%D7%99%D7%9D',\n          items: []\n        },\n        {\n          title: 'בנות',\n          titleUrl: '/collections/%D7%91%D7%A0%D7%95%D7%AA',\n          items: []\n        }\n      ]\n    },\n    {\n      label: 'עיצוב הבית',\n      url: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%91%D7%99%D7%AA-%D7%95%D7%9C%D7%92%D7%99%D7%A0%D7%94',\n      subgroups: [\n        {\n          title: 'עיצוב הבית',\n          titleUrl: '/collections/%D7%94%D7%9B%D7%9C-%D7%9C%D7%91%D7%99%D7%AA-%D7%95%D7%9C%D7%92%D7%99%D7%A0%D7%94',\n          items: [\n            { text: 'שעונים', url: '/collections/%D7%A9%D7%A2%D7%95%D7%A0%D7%99%D7%9D-1' },\n            { text: 'דקורציה לבית', url: '/collections/%D7%93%D7%A7%D7%95%D7%A8%D7%A6%D7%99%D7%94-%D7%9C%D7%91%D7%99%D7%AA' },\n            { text: 'אגרטלים וצמחים', url: '/collections/%D7%90%D7%92%D7%A8%D7%98%D7%9C%D7%99%D7%9D-%D7%95%D7%A6%D7%9E%D7%97%D7%99%D7%9D' },\n            { text: 'אומנות לקיר', url: '/collections/%D7%90%D7%95%D7%9E%D7%A0%D7%95%D7%AA-%D7%9C%D7%A7%D7%99%D7%A8' },\n            { text: 'מוביילים', url: '/collections/%D7%9E%D7%95%D7%91%D7%99%D7%99%D7%9C%D7%99%D7%9D' },\n            { text: 'נרות ומפיצים', url: '/collections/%D7%A0%D7%A8%D7%95%D7%AA-%D7%95%D7%9E%D7%A4%D7%99%D7%A6%D7%99%D7%9D' }\n          ]\n        }\n      ]\n    }\n  ];\n\n  var CHEVRON_LEFT_SVG = '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"opacity: 0.5; flex-shrink: 0;\"><polyline points=\"15 18 9 12 15 6\"></polyline></svg>';\n  var CHEVRON_RIGHT_SVG = '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"9 18 15 12 9 6\"></polyline></svg>';\n  var CLOSE_SVG = '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>';\n\n  function injectMenuStyles() {\n    if (document.getElementById(MENU_STYLE_ID)) return;\n    var s = document.createElement('style');\n    s.id = MENU_STYLE_ID;\n    s.textContent =\n      '.vrt-mn-item{border-bottom:1px solid #f2f2f8;position:relative}' +\n      '.vrt-mn-trigger{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;color:#272727;font-size:17px;font-weight:400;text-decoration:none;background:none;border:none;width:100%;cursor:pointer;transition:background-color .2s;text-align:right;letter-spacing:.01em;line-height:1.4;font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif}' +\n      '.vrt-mn-trigger:active{background:rgba(39,39,39,.03)}' +\n      '.vrt-mn-sub{position:fixed;top:0;right:0;width:100%;height:100%;background:#fff;transform:translateX(-100%);transition:transform .3s ease-in-out;z-index:10;display:flex;flex-direction:column;overflow:hidden}' +\n      '.vrt-mn-sub.is-open{transform:translateX(0)}' +\n      '.vrt-mn-sub-hdr{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:none;background:#fff;flex-shrink:0;z-index:10}' +\n      '.vrt-mn-back,.vrt-mn-close{background:none;border:none;color:#272727;cursor:pointer;padding:8px;margin:-8px;display:flex;align-items:center}' +\n      '.vrt-mn-sub-title{font-size:18px;font-weight:700;color:#272727;flex:1;text-align:center}' +\n      '.vrt-mn-tabs{display:flex;overflow-x:auto;gap:0;padding:0 16px;border-bottom:1px solid #f2f2f8;background:#fff;flex-shrink:0;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;direction:rtl}' +\n      '.vrt-mn-tabs::-webkit-scrollbar{display:none}' +\n      '.vrt-mn-tab{flex:0 0 auto;padding:12px 14px;font-size:14px;font-weight:400;color:#69727b;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;transition:color .2s,border-color .2s;font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;-webkit-tap-highlight-color:transparent}' +\n      '.vrt-mn-tab.is-active{color:#272727;font-weight:600;border-bottom-color:#272727}' +\n      '.vrt-mn-tab-content{display:none}' +\n      '.vrt-mn-tab-content.is-active{display:block}' +\n      '.vrt-mn-content-wrap{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}' +\n      '.vrt-mn-sub-list{list-style:none;margin:0;padding:12px 0}' +\n      '.vrt-mn-sub-link{display:block;padding:14px 20px;color:#272727;font-size:16px;font-weight:400;text-decoration:none;transition:background-color .2s;text-align:right;border-bottom:1px solid #f2f2f8;font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif}' +\n      '.vrt-mn-sub-link:active{background:rgba(39,39,39,.04)}' +\n      '.vrt-mn-sub-link.vrt-mn-view-all{font-weight:600;color:#272727}' +\n      '.vrt-mn-no-tabs .vrt-mn-tabs{display:none}' +\n      '.vrt-mn-no-tabs .vrt-mn-tab-content{display:block}';\n    document.head.appendChild(s);\n  }\n\n  function closeAllMenuPanels() {\n    var panels = document.querySelectorAll('.vrt-mn-sub.is-open');\n    for (var i = 0; i < panels.length; i++) {\n      panels[i].classList.remove('is-open');\n    }\n    // Also close the sidebar drawer\n    try {\n      var sidebar = document.getElementById('header-sidebar-menu');\n      if (sidebar && sidebar.hasAttribute('open')) {\n        sidebar.removeAttribute('open');\n      }\n      var drawerEl = document.querySelector('.mobile-navigation-drawer[data-variant-drawer=\"true\"]');\n      if (drawerEl) {\n        drawerEl.style.transform = '';\n        drawerEl.style.visibility = '';\n      }\n    } catch (e) {}\n  }\n\n  function buildSubmenuPanel(menuItem, index) {\n    var panel = document.createElement('div');\n    panel.className = 'vrt-mn-sub';\n    panel.id = 'vrt-submenu-' + index;\n\n    // Stop all clicks inside the panel from bubbling to parent navigation handlers\n    panel.addEventListener('click', function (e) {\n      e.stopPropagation();\n    });\n\n    var tabGroups = menuItem.subgroups.filter(function (g) {\n      return g.items.length > 0;\n    });\n    var linkOnlyGroups = menuItem.subgroups.filter(function (g) {\n      return g.items.length === 0 && g.titleUrl && g.titleUrl !== '/';\n    });\n\n    var hasTabs = tabGroups.length > 1;\n    if (!hasTabs) {\n      panel.classList.add('vrt-mn-no-tabs');\n    }\n\n    // Header\n    var hdr = document.createElement('div');\n    hdr.className = 'vrt-mn-sub-hdr';\n\n    var backBtn = document.createElement('button');\n    backBtn.className = 'vrt-mn-back';\n    backBtn.type = 'button';\n    backBtn.setAttribute('aria-label', 'חזרה');\n    backBtn.innerHTML = CHEVRON_RIGHT_SVG;\n    backBtn.addEventListener('click', function (e) {\n      e.preventDefault();\n      e.stopPropagation();\n      panel.classList.remove('is-open');\n    });\n\n    var title = document.createElement('span');\n    title.className = 'vrt-mn-sub-title';\n    title.textContent = menuItem.label;\n\n    var closeBtn = document.createElement('button');\n    closeBtn.className = 'vrt-mn-close';\n    closeBtn.type = 'button';\n    closeBtn.setAttribute('aria-label', 'סגור תפריט');\n    closeBtn.innerHTML = CLOSE_SVG;\n    closeBtn.addEventListener('click', function (e) {\n      e.preventDefault();\n      e.stopPropagation();\n      closeAllMenuPanels();\n    });\n\n    hdr.appendChild(backBtn);\n    hdr.appendChild(title);\n    hdr.appendChild(closeBtn);\n    panel.appendChild(hdr);\n\n    // Tabs bar\n    var tabsBar = document.createElement('div');\n    tabsBar.className = 'vrt-mn-tabs';\n    var tabButtons = [];\n    var tabPanels = [];\n\n    for (var g = 0; g < tabGroups.length; g++) {\n      var group = tabGroups[g];\n\n      // Tab button\n      var tabBtn = document.createElement('button');\n      tabBtn.className = 'vrt-mn-tab' + (g === 0 ? ' is-active' : '');\n      tabBtn.type = 'button';\n      tabBtn.textContent = group.title;\n      tabsBar.appendChild(tabBtn);\n      tabButtons.push(tabBtn);\n\n      // Tab content panel\n      var tabPanel = document.createElement('div');\n      tabPanel.className = 'vrt-mn-tab-content' + (g === 0 ? ' is-active' : '');\n\n      var list = document.createElement('ul');\n      list.className = 'vrt-mn-sub-list';\n\n      for (var i = 0; i < group.items.length; i++) {\n        var item = group.items[i];\n        var li = document.createElement('li');\n        var link = document.createElement('a');\n        link.className = 'vrt-mn-sub-link';\n        link.href = item.url;\n        link.textContent = item.text;\n        li.appendChild(link);\n        list.appendChild(li);\n      }\n\n      // \"View all\" link for groups with a real URL\n      if (group.titleUrl && group.titleUrl !== '/') {\n        var viewAllLi = document.createElement('li');\n        var viewAllLink = document.createElement('a');\n        viewAllLink.className = 'vrt-mn-sub-link vrt-mn-view-all';\n        viewAllLink.href = group.titleUrl;\n        viewAllLink.textContent = 'הכל ב' + group.title;\n        viewAllLi.appendChild(viewAllLink);\n        list.appendChild(viewAllLi);\n      }\n\n      tabPanel.appendChild(list);\n      tabPanels.push(tabPanel);\n    }\n\n    // Wire up tab switching with proper event isolation\n    for (var t = 0; t < tabButtons.length; t++) {\n      (function (idx) {\n        tabButtons[idx].addEventListener('click', function (e) {\n          e.preventDefault();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          for (var k = 0; k < tabButtons.length; k++) {\n            tabButtons[k].classList.remove('is-active');\n            tabPanels[k].classList.remove('is-active');\n          }\n          tabButtons[idx].classList.add('is-active');\n          tabPanels[idx].classList.add('is-active');\n          // Scroll the active tab into view within tabs bar (RTL-safe)\n          try {\n            var tabsContainer = tabButtons[idx].parentElement;\n            var tabEl = tabButtons[idx];\n            var scrollPos = tabEl.offsetLeft - (tabsContainer.offsetWidth / 2) + (tabEl.offsetWidth / 2);\n            tabsContainer.scrollTo({ left: scrollPos, behavior: 'smooth' });\n          } catch (scrollErr) {}\n        });\n      })(t);\n    }\n\n    panel.appendChild(tabsBar);\n\n    // Scrollable content area\n    var contentWrap = document.createElement('div');\n    contentWrap.className = 'vrt-mn-content-wrap';\n\n    for (var p = 0; p < tabPanels.length; p++) {\n      contentWrap.appendChild(tabPanels[p]);\n    }\n\n    // Link-only groups as direct links\n    if (linkOnlyGroups.length > 0) {\n      var extraList = document.createElement('ul');\n      extraList.className = 'vrt-mn-sub-list';\n      extraList.style.borderTop = '1px solid #f2f2f8';\n      extraList.style.paddingTop = '8px';\n      for (var lg = 0; lg < linkOnlyGroups.length; lg++) {\n        var extraLi = document.createElement('li');\n        var extraLink = document.createElement('a');\n        extraLink.className = 'vrt-mn-sub-link vrt-mn-view-all';\n        extraLink.href = linkOnlyGroups[lg].titleUrl;\n        extraLink.textContent = linkOnlyGroups[lg].title;\n        extraLi.appendChild(extraLink);\n        extraList.appendChild(extraLi);\n      }\n      contentWrap.appendChild(extraList);\n    }\n\n    // \"View all\" for the entire category\n    if (menuItem.url && menuItem.url !== '/') {\n      var allList = document.createElement('ul');\n      allList.className = 'vrt-mn-sub-list';\n      allList.style.paddingTop = '0';\n      allList.style.borderTop = '1px solid #f2f2f8';\n      var allLi = document.createElement('li');\n      var allLink = document.createElement('a');\n      allLink.className = 'vrt-mn-sub-link vrt-mn-view-all';\n      allLink.href = menuItem.url;\n      allLink.textContent = 'כל ה' + menuItem.label;\n      allLi.appendChild(allLink);\n      allList.appendChild(allLi);\n      contentWrap.appendChild(allList);\n    }\n\n    panel.appendChild(contentWrap);\n    return panel;\n  }\n\n  function buildMenuItems(container) {\n    for (var i = 0; i < DESKTOP_MENU.length; i++) {\n      var menuData = DESKTOP_MENU[i];\n\n      var li = document.createElement('li');\n      li.className = 'vrt-mn-item';\n\n      var trigger = document.createElement('button');\n      trigger.className = 'vrt-mn-trigger';\n      trigger.type = 'button';\n      trigger.innerHTML = '<span>' + menuData.label + '</span>' + CHEVRON_LEFT_SVG;\n\n      var panel = buildSubmenuPanel(menuData, i);\n\n      (function (p) {\n        trigger.addEventListener('click', function (e) {\n          e.preventDefault();\n          e.stopPropagation();\n          p.classList.add('is-open');\n        });\n      })(panel);\n\n      li.appendChild(trigger);\n      li.appendChild(panel);\n      container.appendChild(li);\n    }\n  }\n\n  function initMenuRebuild() {\n    if (document.querySelector('.' + MENU_REBUILD_FLAG)) return true;\n\n    var navList = document.querySelector('.navigation__tier-1');\n    if (!navList) return false;\n\n    try {\n      injectMenuStyles();\n\n      // Hide all existing menu items\n      var existingItems = navList.querySelectorAll(':scope > .navigation__item');\n      for (var i = 0; i < existingItems.length; i++) {\n        existingItems[i].style.display = 'none';\n      }\n\n      // Build the new menu items\n      buildMenuItems(navList);\n\n      // Mark as done\n      var marker = document.createElement('span');\n      marker.className = MENU_REBUILD_FLAG;\n      marker.style.display = 'none';\n      document.body.appendChild(marker);\n    } catch (e) {\n      return false;\n    }\n\n    return true;\n  }\n\n  // ============================================================\n  // PART 3: Typography normalization across all menu levels\n  // ============================================================\n\n  var TYPO_STYLE_ID = 'vrt-menu-typography';\n\n  function injectTypographyStyles() {\n    if (document.getElementById(TYPO_STYLE_ID)) return;\n    var s = document.createElement('style');\n    s.id = TYPO_STYLE_ID;\n    s.textContent =\n      '.navigation__tier-1 > .navigation__item > .navigation__link{font-size:17px!important;font-weight:400!important;padding:16px 20px!important;letter-spacing:0.01em!important;line-height:1.4!important}' +\n      '.navigation__submenu-header span:not(.sr-only){font-size:17px!important;font-weight:400!important;letter-spacing:0.01em!important}' +\n      '.navigation__submenu[id^=\"submenu-\"] > ul > li > button{font-size:17px!important;font-weight:400!important;padding:16px 20px!important;line-height:1.4!important;letter-spacing:0.01em!important}' +\n      '.navigation__submenu[id^=\"submenu-\"] > ul > li > a{font-size:17px!important;font-weight:400!important;padding:16px 20px!important;line-height:1.4!important;letter-spacing:0.01em!important}' +\n      '.navigation__sub-submenu .navigation__submenu-header span:not(.sr-only){font-size:16px!important;font-weight:400!important}' +\n      '.navigation__sub-submenu ul > li > a{font-size:14px!important;font-weight:400!important;padding:13px 20px!important;line-height:1.4!important}';\n    document.head.appendChild(s);\n  }\n\n  // ============================================================\n  // PART 4: Product Carousel — \"Recommended for you\"\n  // Uses Variant Brain API (similarFromRecentlyViewed)\n  // ============================================================\n\n  var RECO_STYLE_ID = 'vrt-reco-styles';\n  var RECO_CONTAINER_ID = 'vrt-reco-carousel';\n  var RECO_SHOP_ID = 'e269a315-27cb-4ddf-9680-c127efde3da7';\n  var RECO_LS_KEY = 'variant:recently_viewed_products';\n  var RECO_BRAIN_URL = 'https://brain.variantnow.com/product-recommendations/similar';\n  var SF_TOKEN = 'e3da6fce0475e9a1cc4e99d88ae3bde1';\n  var SF_API = '/api/2025-01/graphql.json';\n\n  var CART_ICON_SVG = '<svg fill=\"none\" focusable=\"false\" height=\"14\" role=\"presentation\" stroke-width=\"2\" viewBox=\"0 0 16 14\" width=\"16\"><path d=\"M7.75 4.75H2.283a1 1 0 0 0-.97 1.244l1.574 6.25a1 1 0 0 0 .97.756h7.787a1 1 0 0 0 .97-.756l1.573-6.25a1 1 0 0 0-.97-1.244H7.75Zm0 0V1\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg>';\n\n  function injectRecoStyles() {\n    if (document.getElementById(RECO_STYLE_ID)) return;\n    var s = document.createElement('style');\n    s.id = RECO_STYLE_ID;\n    s.textContent =\n      '#' + RECO_CONTAINER_ID + '{padding:16px 0 20px;border-top:1px solid #f2f2f8;background:#fff}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-title{padding:0 20px 10px;font-size:17px;font-weight:400;color:#272727;text-align:right;direction:rtl;line-height:1.4;letter-spacing:0.01em;font-family:var(--text-font-family,system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif)}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-scroll{direction:rtl;overflow-x:auto;overflow-y:hidden;display:flex;flex-wrap:nowrap;gap:10px;padding:0 0 8px;padding-inline-start:20px;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-scroll::-webkit-scrollbar{display:none}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-card{flex:0 0 calc((100vw - 60px) / 3.25);display:flex;flex-direction:column;text-decoration:none;color:#272727;position:relative;-webkit-tap-highlight-color:transparent}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-img-wrap{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:rgb(var(--product-card-background,242 242 242));border-radius:var(--rounded-sm,0.375rem)}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-img{width:100%;height:100%;object-fit:cover;display:block}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-atc{position:absolute;bottom:6px;left:6px;width:30px;height:30px;border-radius:50%;background:rgb(var(--button-background-primary,39 39 39));color:rgb(var(--button-text-primary,255 255 255));border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;padding:0;z-index:2;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:transform .15s ease}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-atc:active{transform:scale(.85)}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-atc svg{width:14px;height:14px}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-info{padding:6px 2px 0;display:flex;flex-direction:column;gap:2px;text-align:right}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-name{font-size:12px;font-weight:400;color:#272727;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word;font-family:var(--text-font-family,system-ui)}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-price{font-size:12px;font-weight:400;color:#272727;direction:rtl;font-family:var(--text-font-family,system-ui)}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-sale{color:rgb(var(--on-sale-text,227 79 79))}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-was{text-decoration:line-through;color:#69727b;margin-inline-start:4px;font-size:11px}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-loading{display:flex;align-items:center;justify-content:center;padding:24px}' +\n      '#' + RECO_CONTAINER_ID + ' .vrt-reco-spin{width:20px;height:20px;border:2px solid rgba(39,39,39,.12);border-top-color:#272727;border-radius:50%;animation:vrt-reco-spin .6s linear infinite}' +\n      '.vrt-reco-btn-spin{width:12px;height:12px;border:1.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:vrt-reco-spin .6s linear infinite}' +\n      '@keyframes vrt-reco-spin{to{transform:rotate(360deg)}}';\n    document.head.appendChild(s);\n  }\n\n  function fetchBrainSimilar(handle, limit) {\n    var url = RECO_BRAIN_URL + '?shop_id=' + RECO_SHOP_ID + '&handle=' + encodeURIComponent(handle) + '&limit=' + limit;\n    return fetch(url)\n      .then(function(r) { return r.ok ? r.json() : Promise.reject(r.status); })\n      .then(function(data) {\n        return (data && data.similar_products) ? data.similar_products : [];\n      })\n      .catch(function() { return []; });\n  }\n\n  function fetchBestsellers() {\n    var query = 'query($h:String!){collection(handle:$h){products(first:15,sortKey:BEST_SELLING){nodes{id title handle availableForSale featuredImage{url(transform:{maxWidth:400,maxHeight:400}) altText}priceRange{minVariantPrice{amount currencyCode}}compareAtPriceRange{minVariantPrice{amount currencyCode}}variants(first:1){nodes{id availableForSale}}}}}}';\n    return fetch(SF_API, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json', 'X-Shopify-Storefront-Access-Token': SF_TOKEN },\n      body: JSON.stringify({ query: query, variables: { h: 'bestsellers' } })\n    })\n    .then(function(r) { return r.json(); })\n    .then(function(data) {\n      var products = [];\n      if (data && data.data && data.data.collection && data.data.collection.products) {\n        products = data.data.collection.products.nodes.filter(function(p) {\n          return p.availableForSale && p.featuredImage;\n        });\n      }\n      return products.map(function(p) {\n        var minP = parseFloat(p.priceRange.minVariantPrice.amount);\n        var compP = p.compareAtPriceRange && p.compareAtPriceRange.minVariantPrice\n          ? parseFloat(p.compareAtPriceRange.minVariantPrice.amount) : 0;\n        return {\n          product_id: p.id.split('/').pop(),\n          handle: p.handle,\n          title: p.title,\n          featured_image_url: p.featuredImage.url,\n          price: minP.toString(),\n          compare_at_price: (compP > minP && compP > 0) ? compP.toString() : ''\n        };\n      });\n    })\n    .catch(function() { return []; });\n  }\n\n  var variantCache = {};\n  function fetchFirstVariantId(handle) {\n    if (variantCache[handle]) return Promise.resolve(variantCache[handle]);\n    var query = 'query($h:String!){product(handle:$h){variants(first:1){nodes{id availableForSale}}}}';\n    return fetch(SF_API, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json', 'X-Shopify-Storefront-Access-Token': SF_TOKEN },\n      body: JSON.stringify({ query: query, variables: { h: handle } })\n    })\n    .then(function(r) { return r.json(); })\n    .then(function(data) {\n      var nodes = data && data.data && data.data.product && data.data.product.variants && data.data.product.variants.nodes;\n      if (nodes && nodes.length && nodes[0].availableForSale) {\n        var vid = nodes[0].id.split('/').pop();\n        variantCache[handle] = vid;\n        return vid;\n      }\n      return null;\n    })\n    .catch(function() { return null; });\n  }\n\n  function shuffleArr(arr) {\n    var a = arr.slice();\n    for (var i = a.length - 1; i > 0; i--) {\n      var j = Math.floor(Math.random() * (i + 1));\n      var t = a[i]; a[i] = a[j]; a[j] = t;\n    }\n    return a;\n  }\n\n  function fmtPrice(amount) {\n    if (!amount) return '';\n    var n = parseFloat(amount);\n    if (isNaN(n)) return '';\n    return (n % 1 === 0 ? n.toFixed(0) : n.toFixed(2)) + ' \\u20AA';\n  }\n\n  function recoQuickAdd(variantId, btn) {\n    var orig = btn.innerHTML;\n    btn.disabled = true;\n    btn.innerHTML = '<span class=\"vrt-reco-btn-spin\"></span>';\n    fetch('/cart/add.js', {\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json' },\n      body: JSON.stringify({ items: [{ id: parseInt(variantId, 10), quantity: 1 }] })\n    })\n    .then(function(r) { if (!r.ok) throw new Error(); return r.json(); })\n    .then(function() {\n      btn.innerHTML = '<svg viewBox=\"0 0 14 14\" fill=\"none\" stroke=\"#fff\" stroke-width=\"2.5\" style=\"width:12px;height:12px\"><path d=\"M2 7l3.5 3.5L12 4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n      try { document.documentElement.dispatchEvent(new CustomEvent('cart:change', { bubbles: true })); } catch(e) {}\n      setTimeout(function() {\n        try {\n          var toggle = document.querySelector('a[aria-controls=\"cart-drawer\"]');\n          if (toggle) toggle.click();\n        } catch(e) {}\n      }, 300);\n      setTimeout(function() { btn.disabled = false; btn.innerHTML = orig; }, 1500);\n    })\n    .catch(function() { btn.disabled = false; btn.innerHTML = orig; });\n  }\n\n  function buildRecoCard(product) {\n    var card = document.createElement('a');\n    card.className = 'vrt-reco-card';\n    card.href = '/products/' + encodeURIComponent(product.handle);\n    card.setAttribute('data-vrt-pid', product.product_id);\n\n    var imgWrap = document.createElement('div');\n    imgWrap.className = 'vrt-reco-img-wrap';\n    var img = document.createElement('img');\n    img.className = 'vrt-reco-img';\n    img.src = product.featured_image_url;\n    img.alt = product.title || '';\n    img.loading = 'lazy';\n    imgWrap.appendChild(img);\n\n    var atcBtn = document.createElement('button');\n    atcBtn.className = 'vrt-reco-atc';\n    atcBtn.type = 'button';\n    atcBtn.setAttribute('aria-label', '\\u05d4\\u05d5\\u05e1\\u05e4\\u05d4 \\u05de\\u05d4\\u05d9\\u05e8\\u05d4');\n    atcBtn.innerHTML = CART_ICON_SVG;\n    (function(handle, el) {\n      el.addEventListener('click', function(e) {\n        e.preventDefault();\n        e.stopPropagation();\n        var origHTML = el.innerHTML;\n        el.disabled = true;\n        el.innerHTML = '<span class=\"vrt-reco-btn-spin\"></span>';\n        fetchFirstVariantId(handle).then(function(vid) {\n          if (vid) {\n            recoQuickAdd(vid, el);\n          } else {\n            el.disabled = false;\n            el.innerHTML = origHTML;\n            window.location.href = '/products/' + encodeURIComponent(handle);\n          }\n        });\n      });\n    })(product.handle, atcBtn);\n    imgWrap.appendChild(atcBtn);\n    card.appendChild(imgWrap);\n\n    var info = document.createElement('div');\n    info.className = 'vrt-reco-info';\n    var name = document.createElement('span');\n    name.className = 'vrt-reco-name';\n    name.textContent = product.title;\n    info.appendChild(name);\n\n    var priceWrap = document.createElement('div');\n    priceWrap.className = 'vrt-reco-price';\n    var price = parseFloat(product.price || 0);\n    var comp = parseFloat(product.compare_at_price || 0);\n    if (comp > price && comp > 0) {\n      priceWrap.innerHTML = '<span class=\"vrt-reco-sale\">' + fmtPrice(price) + '</span><span class=\"vrt-reco-was\">' + fmtPrice(comp) + '</span>';\n    } else {\n      priceWrap.textContent = fmtPrice(price);\n    }\n    info.appendChild(priceWrap);\n    card.appendChild(info);\n\n    return card;\n  }\n\n  function renderRecoProducts(container, loadingEl, products) {\n    if (!products.length) {\n      container.remove();\n      return;\n    }\n    loadingEl.remove();\n    var scroll = document.createElement('div');\n    scroll.className = 'vrt-reco-scroll';\n    for (var i = 0; i < products.length; i++) {\n      scroll.appendChild(buildRecoCard(products[i]));\n    }\n    container.appendChild(scroll);\n  }\n\n  function initRecoCarousel() {\n    if (document.getElementById(RECO_CONTAINER_ID)) return true;\n    var navList = document.querySelector('.navigation__tier-1');\n    if (!navList) return false;\n\n    injectRecoStyles();\n\n    var container = document.createElement('div');\n    container.id = RECO_CONTAINER_ID;\n    var title = document.createElement('div');\n    title.className = 'vrt-reco-title';\n    title.textContent = '\\u05de\\u05d5\\u05de\\u05dc\\u05e6\\u05d9\\u05dd \\u05e2\\u05d1\\u05d5\\u05e8\\u05da';\n    container.appendChild(title);\n    var loading = document.createElement('div');\n    loading.className = 'vrt-reco-loading';\n    loading.innerHTML = '<div class=\"vrt-reco-spin\"></div>';\n    container.appendChild(loading);\n\n    navList.parentElement.insertBefore(container, navList.nextSibling);\n\n    var recentlyViewed = null;\n    try {\n      var stored = localStorage.getItem(RECO_LS_KEY);\n      if (stored) recentlyViewed = JSON.parse(stored);\n    } catch(e) {}\n\n    var hasRecent = recentlyViewed && recentlyViewed.length > 0;\n    var toQuery = hasRecent ? recentlyViewed.slice(0, 3).filter(function(p) { return p.handle; }) : [];\n\n    if (toQuery.length > 0) {\n      var promises = toQuery.map(function(p) {\n        return fetchBrainSimilar(p.handle, 10);\n      });\n\n      Promise.all(promises).then(function(results) {\n        var all = [];\n        for (var i = 0; i < results.length; i++) all = all.concat(results[i]);\n\n        var rvHandles = {};\n        for (var k = 0; k < recentlyViewed.length; k++) {\n          if (recentlyViewed[k].handle) rvHandles[recentlyViewed[k].handle] = true;\n        }\n        var seen = {};\n        var unique = [];\n        for (var j = 0; j < all.length; j++) {\n          var p = all[j];\n          if (!p.product_id || seen[p.product_id] || rvHandles[p.handle]) continue;\n          if (!p.featured_image_url) continue;\n          seen[p.product_id] = true;\n          unique.push(p);\n        }\n\n        var shuffled = shuffleArr(unique).slice(0, 15);\n\n        if (shuffled.length > 0) {\n          renderRecoProducts(container, loading, shuffled);\n        } else {\n          fetchBestsellers().then(function(products) {\n            renderRecoProducts(container, loading, products);\n          }).catch(function() { container.remove(); });\n        }\n      }).catch(function() {\n        fetchBestsellers().then(function(products) {\n          renderRecoProducts(container, loading, products);\n        }).catch(function() { container.remove(); });\n      });\n    } else {\n      fetchBestsellers().then(function(products) {\n        renderRecoProducts(container, loading, products);\n      }).catch(function() { container.remove(); });\n    }\n\n    return true;\n  }\n\n  // ============================================================\n  // PART 5: Influenced Revenue Tracking\n  // ============================================================\n\n  var EXP_ID = 'EXP49AF79A0';\n  var VAR_ID = '1';\n\n  function fireInfluencedRevenue() {\n    try {\n      if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n        Variant.publishCustomEvent('influenced-revenue', {\n          experiment_id: EXP_ID,\n          variation_id: VAR_ID,\n        });\n      }\n    } catch (e) {}\n  }\n\n  var influencedTrackingDone = false;\n  var influencedFired = false;\n\n  function fireInfluencedRevenueOnce() {\n    if (influencedFired) return;\n    influencedFired = true;\n    fireInfluencedRevenue();\n  }\n\n  function initInfluencedTracking() {\n    if (influencedTrackingDone) return true;\n\n    var menuToggle = document.querySelector('button[aria-controls=\"header-sidebar-menu\"]');\n    if (!menuToggle) return false;\n\n    menuToggle.addEventListener('click', function () {\n      fireInfluencedRevenueOnce();\n      try {\n        if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n          Variant.publishCustomEvent('menu_opened', {\n            experiment_id: EXP_ID,\n            variation_id: VAR_ID,\n          });\n        }\n      } catch (e) {}\n    });\n\n    document.addEventListener('click', function (e) {\n      var item = e.target.closest('#' + SWATCH_ID + ' .vrt-sw-item');\n      if (item) {\n        fireInfluencedRevenueOnce();\n      }\n    });\n\n    var sidebarMenu = document.getElementById('header-sidebar-menu');\n    if (sidebarMenu) {\n      sidebarMenu.addEventListener('click', function (e) {\n        var link = e.target.closest('a[href], button');\n        if (link) {\n          fireInfluencedRevenueOnce();\n        }\n      });\n    }\n\n    influencedTrackingDone = true;\n    return true;\n  }\n\n  // ============================================================\n  // INITIALIZATION\n  // ============================================================\n\n  function initAll() {\n    var carouselOk = initCarousel();\n    var menuOk = initMenuRebuild();\n    var recoOk = initRecoCarousel();\n    injectTypographyStyles();\n    initInfluencedTracking();\n    return carouselOk && menuOk && recoOk;\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', function () {\n      if (!initAll()) {\n        var attempts = 0;\n        var interval = setInterval(function () {\n          attempts++;\n          if (initAll() || attempts >= 30) {\n            clearInterval(interval);\n          }\n        }, 300);\n      }\n    });\n  } else {\n    if (!initAll()) {\n      var attempts = 0;\n      var interval = setInterval(function () {\n        attempts++;\n        if (initAll() || attempts >= 30) {\n          clearInterval(interval);\n        }\n      }, 300);\n    }\n  }\n})();"}]},"exp-EXP889AE6BC":{"defaultValue":"","rules":[{"id":"winner-deployed-1784535300391","condition":{"$and":[{"deviceType":"mobile"},{"pageType":{"$ne":"product"}}]},"force":"(function() {\n  'use strict';\n\n  const EXPERIMENT_ID = 'EXP889AE6BC';\n  const VARIATION_ID = '1';\n  const STOREFRONT_TOKEN = 'ac691a2161b6844b779eb6b2ed3cb231';\n  const SHOP_DOMAIN = 'asufadesign.co.il';\n  const CACHE_KEY = 'variant_gift_quiz_state';\n  const CACHE_DURATION = 20 * 60 * 1000;\n  const PRODUCTS_CACHE_KEY = 'variant_gift_quiz_products';\n\n  if (window.innerWidth > 768) return;\n\n  let productsData = [];\n  let quizState = loadQuizState();\n\n  const GIFT_ICON = `<svg role=\"presentation\" fill=\"none\" stroke-width=\"2\" focusable=\"false\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 12v10H4V12\"/><path d=\"M2 7h20v5H2z\"/><path d=\"M12 22V7\"/><path d=\"M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z\"/><path d=\"M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z\"/></svg>`;\n\n  const STEP_ICONS = {\n    1: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/></svg>`,\n    2: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z\"/><path d=\"M16 2v4\"/><path d=\"M8 2v4\"/><path d=\"M3 10h18\"/><path d=\"M8 14h.01\"/><path d=\"M12 14h.01\"/><path d=\"M16 14h.01\"/><path d=\"M8 18h.01\"/><path d=\"M12 18h.01\"/></svg>`,\n    3: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"/><circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"none\"/></svg>`\n  };\n\n  const OPTION_ICONS = {\n    woman: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"8\" r=\"5\"/><path d=\"M12 13v8\"/><path d=\"M9 18h6\"/></svg>`,\n    man: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"10\" cy=\"14\" r=\"5\"/><path d=\"M19 5l-4.5 4.5\"/><path d=\"M15 5h4v4\"/></svg>`,\n    mom: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"/></svg>`,\n    dad: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/></svg>`,\n    teens: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26\"/></svg>`,\n    kids: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"4\" r=\"2\"/><path d=\"M12 6v4\"/><path d=\"M8 10h8\"/><path d=\"M10 10l-2 8\"/><path d=\"M14 10l2 8\"/></svg>`,\n    baby: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 12h.01\"/><path d=\"M15 12h.01\"/><path d=\"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5\"/><path d=\"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1\"/></svg>`,\n    family: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><polyline points=\"9,22 9,12 15,12 15,22\"/></svg>`,\n    friends: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/></svg>`,\n    partner: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"/></svg>`,\n    colleague: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"7\" width=\"20\" height=\"14\" rx=\"2\" ry=\"2\"/><path d=\"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16\"/></svg>`,\n    birthday: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8\"/><path d=\"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1\"/><path d=\"M2 21h20\"/><path d=\"M7 8v3\"/><path d=\"M12 8v3\"/><path d=\"M17 8v3\"/><path d=\"M7 4h.01\"/><path d=\"M12 4h.01\"/><path d=\"M17 4h.01\"/></svg>`,\n    anniversary: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"/></svg>`,\n    mothersday: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/></svg>`,\n    familyday: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/></svg>`,\n    wedding: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-3\"/><path d=\"M12 15l3 3-3 3-3-3 3-3z\"/></svg>`,\n    event: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26\"/></svg>`,\n    graduation: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 10v6M2 10l10-5 10 5-10 5z\"/><path d=\"M6 12v5c3 3 9 3 12 0v-5\"/></svg>`,\n    newbaby: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 12h.01\"/><path d=\"M15 12h.01\"/><path d=\"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5\"/><path d=\"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1\"/></svg>`,\n    housewarming: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><polyline points=\"9,22 9,12 15,12 15,22\"/></svg>`,\n    thankyou: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"/></svg>`,\n    books: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 19.5A2.5 2.5 0 0 1 6.5 17H20\"/><path d=\"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z\"/></svg>`,\n    israeli: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26\"/></svg>`,\n    food: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 8h1a4 4 0 0 1 0 8h-1\"/><path d=\"M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z\"/><line x1=\"6\" y1=\"1\" x2=\"6\" y2=\"4\"/><line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\"/><line x1=\"14\" y1=\"1\" x2=\"14\" y2=\"4\"/></svg>`,\n    games: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"6\" width=\"20\" height=\"12\" rx=\"2\"/><line x1=\"6\" y1=\"12\" x2=\"10\" y2=\"12\"/><line x1=\"8\" y1=\"10\" x2=\"8\" y2=\"14\"/><circle cx=\"15\" cy=\"11\" r=\"1\"/><circle cx=\"18\" cy=\"13\" r=\"1\"/></svg>`,\n    diy: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z\"/></svg>`,\n    sports: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"/><path d=\"M2 12h20\"/></svg>`,\n    wellness: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"/></svg>`,\n    music: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 18V5l12-2v13\"/><circle cx=\"6\" cy=\"18\" r=\"3\"/><circle cx=\"18\" cy=\"16\" r=\"3\"/></svg>`,\n    pets: `<svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"11\" cy=\"4\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><circle cx=\"4\" cy=\"8\" r=\"2\"/><circle cx=\"8\" cy=\"14\" r=\"2\"/><circle cx=\"14\" cy=\"14\" r=\"2\"/><path d=\"M9 18c0 2 2 4 3 4s3-2 3-4c0-1.5-1.5-3-3-3s-3 1.5-3 3z\"/></svg>`\n  };\n\n  // Human-readable labels for each answer option, so the tracked answer\n  // combinations are easy to read in the analytics dashboard.\n  const ANSWER_LABELS = {\n    woman: 'אישה', man: 'גבר', mom: 'אמא', dad: 'אבא', teens: 'נוער',\n    kids: 'ילדים', baby: 'תינוק חדש', family: 'כל המשפחה', friends: 'חברים',\n    partner: 'בן/בת זוג', colleague: 'קולגה לעבודה',\n    birthday: 'יום הולדת', anniversary: 'יום נישואין', mothersday: 'יום האם',\n    familyday: 'יום המשפחה', wedding: 'אירוסין וחתונה', event: 'לאירוע',\n    graduation: 'סיום לימודים', newbaby: 'מתנות לידה', housewarming: 'חנוכת בית',\n    thankyou: 'מתנות תודה',\n    books: 'ספרים', israeli: 'הכי ישראלי', food: 'אוכל ובישול', games: 'משחקים',\n    diy: 'DIY', sports: 'ספורט ותנועה', wellness: 'בריאות וחיים טובים',\n    music: 'עולם המוזיקה', pets: 'אנשים של בעלי חיים'\n  };\n\n  function labelFor(value) {\n    return ANSWER_LABELS[value] || value || '';\n  }\n\n  // Safe wrapper around the Variant events API. Never throws, fires only when available.\n  function trackEvent(eventName, extra) {\n    try {\n      if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n        Variant.publishCustomEvent(eventName, Object.assign({\n          experiment_id: EXPERIMENT_ID,\n          variation_id: VARIATION_ID\n        }, extra || {}));\n      }\n    } catch (err) {}\n  }\n\n  const styles = document.createElement('style');\n  styles.textContent = `\n    #variant-gift-quiz-trigger {\n      position: fixed;\n      bottom: 46px;\n      right: auto;\n      left: 0;\n      transform: translateX(-100%) translateY(50%);\n      z-index: 9998;\n      background: rgb(39, 39, 39);\n      color: #fff;\n      border: none;\n      border-radius: 0 9999px 9999px 0;\n      padding: 10px 16px 10px 12px;\n      font-family: \"system_ui\", -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;\n      font-size: 12px;\n      font-weight: 700;\n      cursor: pointer;\n      box-shadow: 0 2px 8px rgb(39 39 39 / 0.15);\n      white-space: nowrap;\n      direction: rtl;\n      display: flex;\n      align-items: center;\n      gap: 6px;\n      padding-left: 8px;\n      max-width: 280px;\n      opacity: 0.7;\n      animation: vgqSlideIn 0.6s cubic-bezier(0.32, 0.72, 0, 1) 1s forwards;\n      transition: opacity 0.2s, transform 0.15s;\n    }\n    #variant-gift-quiz-trigger:active {\n      opacity: 0.9;\n      transform: translateX(0) translateY(50%) scale(0.96);\n    }\n    #variant-gift-quiz-trigger svg {\n      flex-shrink: 0;\n    }\n    .vgq-trigger-icon {\n      display: inline-flex;\n      align-items: center;\n      flex-shrink: 0;\n    }\n    /* Label collapses smoothly to the left when scrolling */\n    .vgq-trigger-label {\n      display: inline-block;\n      overflow: hidden;\n      max-width: 220px;\n      opacity: 1;\n      transform: translateX(0);\n      transition: max-width 0.45s cubic-bezier(0.32, 0.72, 0, 1),\n                  opacity 0.3s ease,\n                  transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),\n                  margin 0.45s cubic-bezier(0.32, 0.72, 0, 1);\n    }\n    .vgq-trigger-dismiss {\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      width: 13.5px;\n      height: 13.5px;\n      border-radius: 50%;\n      background: rgba(255, 255, 255, 0.18);\n      color: #fff;\n      flex-shrink: 0;\n      cursor: pointer;\n      margin-right: 2px;\n      max-width: 13.5px;\n      opacity: 1;\n      transition: max-width 0.45s cubic-bezier(0.32, 0.72, 0, 1),\n                  opacity 0.3s ease,\n                  background-color 0.2s,\n                  margin 0.45s cubic-bezier(0.32, 0.72, 0, 1);\n    }\n    .vgq-trigger-dismiss:active {\n      background: rgba(255, 255, 255, 0.32);\n    }\n    .vgq-trigger-dismiss svg {\n      width: 8.25px;\n      height: 8.25px;\n    }\n\n    /* Collapsed (scrolling) state: only the gift icon stays visible,\n       the label slides out to the left edge before the icon. */\n    #variant-gift-quiz-trigger.is-collapsed {\n      padding-left: 16px;\n      transition: opacity 0.2s, transform 0.15s, padding 0.45s cubic-bezier(0.32, 0.72, 0, 1);\n    }\n    #variant-gift-quiz-trigger.is-collapsed .vgq-trigger-label {\n      max-width: 0;\n      opacity: 0;\n      transform: translateX(-12px);\n      margin-right: -6px;\n      margin-left: -6px;\n    }\n    #variant-gift-quiz-trigger.is-collapsed .vgq-trigger-dismiss {\n      max-width: 0;\n      opacity: 0;\n      margin-right: -8px;\n    }\n\n    /* Dismissed state: button animates off the left edge and disappears. */\n    #variant-gift-quiz-trigger.is-dismissed {\n      transform: translateX(-100%) translateY(50%) !important;\n      opacity: 0;\n      pointer-events: none;\n      transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;\n    }\n\n    /* Hidden state: when another drawer/popup (menu, cart, search, etc.) is open,\n       the trigger slides off the left edge so it never overlaps those panels.\n       It animates back in once the panel closes. */\n    #variant-gift-quiz-trigger.is-hidden-for-drawer {\n      transform: translateX(-100%) translateY(50%) !important;\n      opacity: 0;\n      pointer-events: none;\n      transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;\n    }\n\n    @keyframes vgqSlideIn {\n      from { transform: translateX(-100%) translateY(50%); }\n      to { transform: translateX(0) translateY(50%); }\n    }\n\n    #variant-gift-quiz {\n      position: fixed;\n      inset: 0;\n      z-index: 9999;\n      background: linear-gradient(180deg, #fdf9f6 0%, #faf5f0 40%, #f7f3ee 100%);\n      direction: rtl;\n      font-family: \"system_ui\", -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;\n      display: flex;\n      flex-direction: column;\n      overflow: hidden;\n      transform: translateY(100%);\n      transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);\n      will-change: transform;\n    }\n    #variant-gift-quiz.is-open {\n      transform: translateY(0);\n    }\n\n    .vgq-header {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      padding: 16px 20px;\n      border-bottom: 1px solid rgba(39, 39, 39, 0.06);\n      flex-shrink: 0;\n      background: rgba(255, 255, 255, 0.6);\n      backdrop-filter: blur(8px);\n      -webkit-backdrop-filter: blur(8px);\n    }\n    .vgq-close {\n      background: none;\n      border: none;\n      width: 40px;\n      height: 40px;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      cursor: pointer;\n      border-radius: 50%;\n      transition: background-color 0.2s;\n      color: rgb(39, 39, 39);\n    }\n    .vgq-close:active {\n      background: rgba(39, 39, 39, 0.06);\n    }\n    .vgq-close svg {\n      width: 20px;\n      height: 20px;\n    }\n    .vgq-progress {\n      display: flex;\n      gap: 6px;\n      flex: 1;\n      margin: 0 16px;\n    }\n    .vgq-progress-bar {\n      flex: 1;\n      height: 3px;\n      border-radius: 9999px;\n      background: rgba(39, 39, 39, 0.08);\n      overflow: hidden;\n      transition: background-color 0.3s;\n    }\n    .vgq-progress-bar.is-active {\n      background: rgba(39, 39, 39, 0.5);\n    }\n    .vgq-progress-bar.is-done {\n      background: rgb(39, 39, 39);\n    }\n\n    .vgq-body {\n      flex: 1;\n      overflow-y: auto;\n      -webkit-overflow-scrolling: touch;\n    }\n\n    .vgq-step {\n      display: none;\n      padding: 32px 20px 40px;\n      animation: vgqFadeIn 0.3s ease;\n    }\n    .vgq-step.is-active {\n      display: block;\n    }\n    @keyframes vgqFadeIn {\n      from { opacity: 0; transform: translateY(16px); }\n      to { opacity: 1; transform: translateY(0); }\n    }\n\n    .vgq-step-icon {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      width: 64px;\n      height: 64px;\n      border-radius: 50%;\n      background: rgba(253, 163, 156, 0.12);\n      margin: 0 auto 20px;\n      color: rgb(39, 39, 39);\n    }\n    .vgq-step-title {\n      font-size: 22px;\n      font-weight: 700;\n      color: rgb(39, 39, 39);\n      margin: 0 0 8px;\n      line-height: 1.3;\n      text-align: center;\n    }\n    .vgq-step-subtitle {\n      font-size: 14px;\n      color: rgba(39, 39, 39, 0.6);\n      margin: 0 0 28px;\n      text-align: center;\n      font-weight: 400;\n    }\n    .vgq-options {\n      display: grid;\n      grid-template-columns: 1fr 1fr;\n      gap: 12px;\n    }\n    .vgq-options-recipients {\n      grid-template-columns: 1fr 1fr 1fr;\n      gap: 10px;\n    }\n    .vgq-options-occasions {\n      grid-template-columns: 1fr 1fr;\n      gap: 10px;\n    }\n    .vgq-options-interests {\n      grid-template-columns: 1fr 1fr;\n      gap: 10px;\n    }\n    .vgq-option {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      gap: 8px;\n      background: rgba(255, 255, 255, 0.85);\n      border: 1.5px solid rgba(39, 39, 39, 0.08);\n      border-radius: 16px;\n      padding: 20px 12px;\n      font-size: 14px;\n      font-weight: 400;\n      color: rgb(39, 39, 39);\n      cursor: pointer;\n      transition: border-color 0.2s, background-color 0.2s, transform 0.15s, box-shadow 0.2s;\n      text-align: center;\n      min-height: 80px;\n    }\n    .vgq-options-recipients .vgq-option {\n      padding: 14px 6px;\n      font-size: 12px;\n      gap: 5px;\n      min-height: 68px;\n      border-radius: 12px;\n    }\n    .vgq-options-recipients .vgq-option .vgq-option-icon svg {\n      width: 20px;\n      height: 20px;\n    }\n    .vgq-options-occasions .vgq-option {\n      padding: 14px 8px;\n      font-size: 13px;\n      gap: 6px;\n      min-height: 70px;\n      border-radius: 12px;\n    }\n    .vgq-options-occasions .vgq-option .vgq-option-icon svg {\n      width: 20px;\n      height: 20px;\n    }\n    .vgq-options-interests .vgq-option {\n      padding: 14px 8px;\n      font-size: 13px;\n      gap: 6px;\n      min-height: 70px;\n      border-radius: 12px;\n    }\n    .vgq-options-interests .vgq-option .vgq-option-icon svg {\n      width: 20px;\n      height: 20px;\n    }\n    .vgq-option:active {\n      transform: scale(0.95);\n    }\n    .vgq-option .vgq-option-icon {\n      color: rgba(39, 39, 39, 0.5);\n      transition: color 0.2s;\n    }\n    .vgq-option.is-selected {\n      border-color: rgb(39, 39, 39);\n      background: #fff;\n      box-shadow: 0 2px 12px rgba(39, 39, 39, 0.08);\n    }\n    .vgq-option.is-selected .vgq-option-icon {\n      color: rgb(39, 39, 39);\n    }\n\n    .vgq-loading {\n      display: none;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      padding: 80px 20px;\n      text-align: center;\n    }\n    .vgq-loading.is-active {\n      display: flex;\n    }\n    .vgq-loading-icon {\n      width: 56px;\n      height: 56px;\n      border-radius: 50%;\n      background: rgba(253, 163, 156, 0.12);\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      margin-bottom: 20px;\n      animation: vgqPulse 1.2s ease-in-out infinite;\n    }\n    @keyframes vgqPulse {\n      0%, 100% { transform: scale(1); opacity: 1; }\n      50% { transform: scale(1.08); opacity: 0.7; }\n    }\n    .vgq-loading-text {\n      font-size: 16px;\n      color: rgb(39, 39, 39);\n      margin-top: 8px;\n      font-weight: 400;\n    }\n    .vgq-shimmer {\n      width: 100%;\n      max-width: 240px;\n      display: flex;\n      flex-direction: column;\n      gap: 10px;\n      margin-top: 24px;\n    }\n    .vgq-shimmer-bar {\n      height: 12px;\n      border-radius: 8px;\n      background: linear-gradient(90deg, rgba(253,163,156,0.08) 25%, rgba(253,163,156,0.18) 50%, rgba(253,163,156,0.08) 75%);\n      background-size: 200% 100%;\n      animation: vgqShimmer 1.4s ease-in-out infinite;\n    }\n    .vgq-shimmer-bar:nth-child(1) { width: 85%; }\n    .vgq-shimmer-bar:nth-child(2) { width: 65%; }\n    .vgq-shimmer-bar:nth-child(3) { width: 50%; }\n    @keyframes vgqShimmer {\n      0% { background-position: 200% 0; }\n      100% { background-position: -200% 0; }\n    }\n\n    .vgq-results {\n      display: none;\n      padding: 24px 20px 32px;\n      animation: vgqFadeIn 0.3s ease;\n    }\n    .vgq-results.is-active {\n      display: block;\n    }\n    .vgq-results-header {\n      text-align: center;\n      margin-bottom: 24px;\n    }\n    .vgq-results-title {\n      font-size: 20px;\n      font-weight: 700;\n      color: rgb(39, 39, 39);\n      margin: 0 0 4px;\n      line-height: 1.3;\n    }\n    .vgq-results-subtitle {\n      font-size: 13px;\n      color: rgba(39, 39, 39, 0.55);\n      margin: 0;\n    }\n    .vgq-products {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n    }\n    .vgq-product-card {\n      display: flex;\n      gap: 14px;\n      background: rgba(255, 255, 255, 0.9);\n      border: 1px solid rgba(39, 39, 39, 0.06);\n      border-radius: 16px;\n      padding: 12px;\n      align-items: center;\n      transition: box-shadow 0.2s, transform 0.15s;\n    }\n    .vgq-product-card:active {\n      transform: scale(0.98);\n      box-shadow: 0 2px 12px rgba(39, 39, 39, 0.06);\n    }\n    .vgq-product-card img {\n      width: 80px;\n      height: 80px;\n      object-fit: cover;\n      border-radius: 12px;\n      flex-shrink: 0;\n      background: rgb(242, 242, 242);\n    }\n    .vgq-product-info {\n      flex: 1;\n      display: flex;\n      flex-direction: column;\n      gap: 6px;\n      min-width: 0;\n    }\n    .vgq-product-title {\n      font-size: 13px;\n      font-weight: 700;\n      color: rgb(39, 39, 39);\n      line-height: 1.35;\n      display: -webkit-box;\n      -webkit-line-clamp: 2;\n      -webkit-box-orient: vertical;\n      overflow: hidden;\n    }\n    .vgq-product-price {\n      font-size: 13px;\n      color: rgba(39, 39, 39, 0.7);\n      font-weight: 400;\n    }\n    .vgq-add-btn {\n      background: rgb(39, 39, 39);\n      color: #fff;\n      border: none;\n      border-radius: 9999px;\n      padding: 8px 14px;\n      font-size: 12px;\n      font-weight: 700;\n      cursor: pointer;\n      transition: background-color 0.2s, transform 0.15s;\n      white-space: nowrap;\n      font-family: inherit;\n      align-self: center;\n    }\n    .vgq-add-btn:active {\n      transform: scale(0.95);\n    }\n    .vgq-add-btn.is-added {\n      background: #2bb01f;\n    }\n    .vgq-add-btn:disabled {\n      opacity: 0.6;\n      cursor: not-allowed;\n    }\n\n    .vgq-empty {\n      text-align: center;\n      padding: 40px 20px;\n      color: rgba(39, 39, 39, 0.7);\n      font-size: 15px;\n    }\n\n    .vgq-more-btn {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      gap: 6px;\n      margin: 16px auto 0;\n      background: rgb(39, 39, 39);\n      color: #fff;\n      border: none;\n      border-radius: 9999px;\n      padding: 12px 24px;\n      font-size: 13px;\n      font-weight: 700;\n      cursor: pointer;\n      font-family: inherit;\n      transition: background-color 0.2s, transform 0.15s;\n      width: 100%;\n    }\n    .vgq-more-btn:active {\n      transform: scale(0.97);\n    }\n    .vgq-more-btn.is-hidden {\n      display: none;\n    }\n    .vgq-restart {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      gap: 6px;\n      margin: 12px auto 0;\n      background: rgba(255, 255, 255, 0.8);\n      border: 1px solid rgba(39, 39, 39, 0.1);\n      border-radius: 9999px;\n      padding: 12px 24px;\n      font-size: 13px;\n      color: rgb(39, 39, 39);\n      cursor: pointer;\n      font-family: inherit;\n      transition: background-color 0.2s;\n    }\n    .vgq-restart:active {\n      background: rgba(39, 39, 39, 0.04);\n    }\n  `;\n  document.head.appendChild(styles);\n\n  const triggerBtn = document.createElement('button');\n  triggerBtn.id = 'variant-gift-quiz-trigger';\n  triggerBtn.innerHTML =\n    '<span class=\"vgq-trigger-icon\">' + GIFT_ICON + '</span>' +\n    '<span class=\"vgq-trigger-label\">מצאו את המתנה המושלמת</span>' +\n    '<span class=\"vgq-trigger-dismiss\" role=\"button\" aria-label=\"הסתרה\" tabindex=\"0\">' +\n      '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>' +\n    '</span>';\n  document.body.appendChild(triggerBtn);\n\n  // Vertically center the quiz button on the WhatsApp button's center.\n  // Falls back to the CSS bottom value if the WhatsApp widget isn't present.\n  function alignToWhatsapp() {\n    try {\n      const waBtn = document.querySelector('#whatsapp-chat-widget .wa-widget-send-button');\n      if (!waBtn) return;\n      const rect = waBtn.getBoundingClientRect();\n      if (!rect.height) return;\n      const centerFromBottom = window.innerHeight - (rect.top + rect.height / 2);\n      triggerBtn.style.bottom = Math.max(0, Math.round(centerFromBottom)) + 'px';\n    } catch (e) {}\n  }\n\n  // Run once now, again after the WhatsApp widget likely finished rendering,\n  // and on resize so the alignment stays correct.\n  alignToWhatsapp();\n  setTimeout(alignToWhatsapp, 800);\n  setTimeout(alignToWhatsapp, 2000);\n  window.addEventListener('resize', alignToWhatsapp);\n\n  // --- Collapse on scroll, expand 3s after scrolling stops ---\n  const dismissEl = triggerBtn.querySelector('.vgq-trigger-dismiss');\n  let scrollExpandTimer = null;\n\n  function handleTriggerScroll() {\n    // Don't interfere once the user dismissed or opened the quiz.\n    if (triggerBtn.classList.contains('is-dismissed')) return;\n    if (overlay.classList.contains('is-open')) return;\n\n    if (!triggerBtn.classList.contains('is-collapsed')) {\n      triggerBtn.classList.add('is-collapsed');\n    }\n\n    if (scrollExpandTimer) clearTimeout(scrollExpandTimer);\n    scrollExpandTimer = setTimeout(() => {\n      if (!triggerBtn.classList.contains('is-dismissed')) {\n        triggerBtn.classList.remove('is-collapsed');\n      }\n    }, 3000);\n  }\n\n  window.addEventListener('scroll', handleTriggerScroll, { passive: true });\n\n  // --- Hide the trigger while any drawer / popup is open, restore it on close ---\n  // The store's menu, cart, search and quick-buy panels are all overlay drawers.\n  // When any of them is open we slide the trigger out, and slide it back in on close.\n  function isElementVisible(el) {\n    if (!el) return false;\n    if (el.hasAttribute('hidden')) return false;\n    if (el.getAttribute('aria-hidden') === 'true') return false;\n    const style = window.getComputedStyle(el);\n    if (style.display === 'none' || style.visibility === 'hidden' || parseFloat(style.opacity) === 0) {\n      return false;\n    }\n    const rect = el.getBoundingClientRect();\n    return rect.width > 0 && rect.height > 0;\n  }\n\n  function isAnyDrawerOpen() {\n    // IMPORTANT: This theme renders its cart / search / quick-buy / nav drawers\n    // into the DOM permanently and only marks them open via an `open` attribute\n    // (or by sliding them on-screen). They do NOT set aria-hidden when closed,\n    // so we must rely on explicit \"open\" signals only — never on the mere\n    // presence or rendered size of these always-present panels. Otherwise the\n    // trigger would be hidden on every normal page load.\n    const openPanels = document.querySelectorAll(\n      '.drawer[open], [role=\"dialog\"][open], dialog[open], ' +\n      '.cart-drawer[open], .search-drawer[open], .quick-buy-drawer[open], ' +\n      '.mobile-navigation-drawer[open], details[open] > .drawer, ' +\n      '.drawer.is-open, [role=\"dialog\"].is-open, .mega-menu.is-open, body.overflow-hidden .mega-menu'\n    );\n    for (const el of openPanels) {\n      if (el.id === 'variant-gift-quiz') continue;\n      if (el.closest && el.closest('#variant-gift-quiz')) continue;\n      if (isElementVisible(el)) return true;\n    }\n    return false;\n  }\n\n  let drawerHideTimer = null;\n\n  function syncTriggerForDrawers() {\n    // Never fight with the dismissed state or when the quiz itself is open.\n    if (triggerBtn.classList.contains('is-dismissed')) return;\n    if (overlay.classList.contains('is-open')) return;\n\n    if (isAnyDrawerOpen()) {\n      triggerBtn.classList.add('is-hidden-for-drawer');\n      // While a drawer/menu is open, force the trigger into its smaller\n      // (collapsed) state so it shows compactly when the panel closes.\n      triggerBtn.classList.add('is-collapsed');\n      if (scrollExpandTimer) clearTimeout(scrollExpandTimer);\n    } else {\n      triggerBtn.classList.remove('is-hidden-for-drawer');\n    }\n  }\n\n  function scheduleDrawerSync() {\n    if (drawerHideTimer) clearTimeout(drawerHideTimer);\n    // Small debounce so we react after the theme finishes toggling its panel.\n    drawerHideTimer = setTimeout(syncTriggerForDrawers, 60);\n  }\n\n  try {\n    const drawerObserver = new MutationObserver(scheduleDrawerSync);\n    drawerObserver.observe(document.documentElement, {\n      attributes: true,\n      childList: true,\n      subtree: true,\n      attributeFilter: ['class', 'style', 'open', 'aria-hidden', 'hidden', 'aria-modal']\n    });\n  } catch (err) {}\n\n  // Clicking menu / cart / search triggers also gives us an immediate signal.\n  document.addEventListener('click', function() { scheduleDrawerSync(); }, true);\n\n  // --- Dismiss button: hide until the page is refreshed ---\n  function dismissTrigger(e) {\n    if (e) {\n      e.stopPropagation();\n      e.preventDefault();\n    }\n    triggerBtn.classList.add('is-dismissed');\n    trackEvent('gift_quiz_dismissed');\n  }\n\n  if (dismissEl) {\n    dismissEl.addEventListener('click', dismissTrigger);\n    dismissEl.addEventListener('keydown', function(e) {\n      if (e.key === 'Enter' || e.key === ' ') dismissTrigger(e);\n    });\n  }\n\n  const overlay = document.createElement('div');\n  overlay.id = 'variant-gift-quiz';\n  overlay.innerHTML = `\n    <div class=\"vgq-header\">\n      <button class=\"vgq-close\" aria-label=\"סגירה\">\n        <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n          <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n          <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n        </svg>\n      </button>\n      <div class=\"vgq-progress\">\n        <div class=\"vgq-progress-bar\" data-step=\"1\"></div>\n        <div class=\"vgq-progress-bar\" data-step=\"2\"></div>\n        <div class=\"vgq-progress-bar\" data-step=\"3\"></div>\n      </div>\n    </div>\n    <div class=\"vgq-body\">\n      <div class=\"vgq-step\" data-step=\"1\">\n        <div class=\"vgq-step-icon\">${STEP_ICONS[1]}</div>\n        <h2 class=\"vgq-step-title\">למי המתנה?</h2>\n        <p class=\"vgq-step-subtitle\">בחרו את מי שתרצו לפנק</p>\n        <div class=\"vgq-options vgq-options-recipients\">\n          <button class=\"vgq-option\" data-value=\"woman\"><span class=\"vgq-option-icon\">${OPTION_ICONS.woman}</span>אישה</button>\n          <button class=\"vgq-option\" data-value=\"man\"><span class=\"vgq-option-icon\">${OPTION_ICONS.man}</span>גבר</button>\n          <button class=\"vgq-option\" data-value=\"mom\"><span class=\"vgq-option-icon\">${OPTION_ICONS.mom}</span>אמא</button>\n          <button class=\"vgq-option\" data-value=\"dad\"><span class=\"vgq-option-icon\">${OPTION_ICONS.dad}</span>אבא</button>\n          <button class=\"vgq-option\" data-value=\"teens\"><span class=\"vgq-option-icon\">${OPTION_ICONS.teens}</span>נוער</button>\n          <button class=\"vgq-option\" data-value=\"kids\"><span class=\"vgq-option-icon\">${OPTION_ICONS.kids}</span>ילדים</button>\n          <button class=\"vgq-option\" data-value=\"baby\"><span class=\"vgq-option-icon\">${OPTION_ICONS.baby}</span>תינוק חדש</button>\n          <button class=\"vgq-option\" data-value=\"family\"><span class=\"vgq-option-icon\">${OPTION_ICONS.family}</span>כל המשפחה</button>\n          <button class=\"vgq-option\" data-value=\"friends\"><span class=\"vgq-option-icon\">${OPTION_ICONS.friends}</span>חברים</button>\n          <button class=\"vgq-option\" data-value=\"partner\"><span class=\"vgq-option-icon\">${OPTION_ICONS.partner}</span>בן/בת זוג</button>\n          <button class=\"vgq-option\" data-value=\"colleague\"><span class=\"vgq-option-icon\">${OPTION_ICONS.colleague}</span>קולגה לעבודה</button>\n        </div>\n      </div>\n      <div class=\"vgq-step\" data-step=\"2\">\n        <div class=\"vgq-step-icon\">${STEP_ICONS[2]}</div>\n        <h2 class=\"vgq-step-title\">מה האירוע?</h2>\n        <p class=\"vgq-step-subtitle\">נבחר את המתנה הכי מתאימה לאירוע</p>\n        <div class=\"vgq-options vgq-options-occasions\">\n          <button class=\"vgq-option\" data-value=\"birthday\"><span class=\"vgq-option-icon\">${OPTION_ICONS.birthday}</span>יום הולדת</button>\n          <button class=\"vgq-option\" data-value=\"anniversary\"><span class=\"vgq-option-icon\">${OPTION_ICONS.anniversary}</span>יום נישואין</button>\n          <button class=\"vgq-option\" data-value=\"mothersday\"><span class=\"vgq-option-icon\">${OPTION_ICONS.mothersday}</span>יום האם</button>\n          <button class=\"vgq-option\" data-value=\"familyday\"><span class=\"vgq-option-icon\">${OPTION_ICONS.familyday}</span>יום המשפחה</button>\n          <button class=\"vgq-option\" data-value=\"wedding\"><span class=\"vgq-option-icon\">${OPTION_ICONS.wedding}</span>אירוסין וחתונה</button>\n          <button class=\"vgq-option\" data-value=\"event\"><span class=\"vgq-option-icon\">${OPTION_ICONS.event}</span>לאירוע</button>\n          <button class=\"vgq-option\" data-value=\"graduation\"><span class=\"vgq-option-icon\">${OPTION_ICONS.graduation}</span>סיום לימודים</button>\n          <button class=\"vgq-option\" data-value=\"newbaby\"><span class=\"vgq-option-icon\">${OPTION_ICONS.newbaby}</span>מתנות לידה</button>\n          <button class=\"vgq-option\" data-value=\"housewarming\"><span class=\"vgq-option-icon\">${OPTION_ICONS.housewarming}</span>חנוכת בית</button>\n          <button class=\"vgq-option\" data-value=\"thankyou\"><span class=\"vgq-option-icon\">${OPTION_ICONS.thankyou}</span>מתנות תודה</button>\n        </div>\n      </div>\n      <div class=\"vgq-step\" data-step=\"3\">\n        <div class=\"vgq-step-icon\">${STEP_ICONS[3]}</div>\n        <h2 class=\"vgq-step-title\">מה מעניין אותם?</h2>\n        <p class=\"vgq-step-subtitle\">בחרו תחום עניין או תחביב שמתאים למקבל המתנה</p>\n        <div class=\"vgq-options vgq-options-interests\">\n          <button class=\"vgq-option\" data-value=\"books\"><span class=\"vgq-option-icon\">${OPTION_ICONS.books}</span>ספרים</button>\n          <button class=\"vgq-option\" data-value=\"israeli\"><span class=\"vgq-option-icon\">${OPTION_ICONS.israeli}</span>הכי ישראלי</button>\n          <button class=\"vgq-option\" data-value=\"food\"><span class=\"vgq-option-icon\">${OPTION_ICONS.food}</span>אוכל ובישול</button>\n          <button class=\"vgq-option\" data-value=\"games\"><span class=\"vgq-option-icon\">${OPTION_ICONS.games}</span>משחקים</button>\n          <button class=\"vgq-option\" data-value=\"diy\"><span class=\"vgq-option-icon\">${OPTION_ICONS.diy}</span>DIY</button>\n          <button class=\"vgq-option\" data-value=\"sports\"><span class=\"vgq-option-icon\">${OPTION_ICONS.sports}</span>ספורט ותנועה</button>\n          <button class=\"vgq-option\" data-value=\"wellness\"><span class=\"vgq-option-icon\">${OPTION_ICONS.wellness}</span>בריאות וחיים טובים</button>\n          <button class=\"vgq-option\" data-value=\"music\"><span class=\"vgq-option-icon\">${OPTION_ICONS.music}</span>עולם המוזיקה</button>\n          <button class=\"vgq-option\" data-value=\"pets\"><span class=\"vgq-option-icon\">${OPTION_ICONS.pets}</span>אנשים של בעלי חיים</button>\n        </div>\n      </div>\n      <div class=\"vgq-loading\">\n        <div class=\"vgq-loading-icon\">${GIFT_ICON.replace('width=\"18\" height=\"18\"', 'width=\"28\" height=\"28\"')}</div>\n        <p class=\"vgq-loading-text\">אנחנו אוספים את המתנות המושלמות עבורך...</p>\n        <div class=\"vgq-shimmer\">\n          <div class=\"vgq-shimmer-bar\"></div>\n          <div class=\"vgq-shimmer-bar\"></div>\n          <div class=\"vgq-shimmer-bar\"></div>\n        </div>\n      </div>\n      <div class=\"vgq-results\">\n        <div class=\"vgq-results-header\">\n          <h2 class=\"vgq-results-title\">ההמלצות המובילות שלנו עבורך</h2>\n          <p class=\"vgq-results-subtitle\">בחרנו במיוחד עבורך מוצרים מתאימים</p>\n        </div>\n        <div class=\"vgq-products\"></div>\n        <button class=\"vgq-more-btn\">\n          <svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6,9 12,15 18,9\"/></svg>\n          מתנות נוספות\n        </button>\n        <button class=\"vgq-restart\">\n          <svg fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"1,4 1,10 7,10\"/><path d=\"M3.51 15a9 9 0 1 0 2.13-9.36L1 10\"/></svg>\n          התחלה מחדש\n        </button>\n      </div>\n    </div>\n  `;\n  document.body.appendChild(overlay);\n\n  const closeBtn = overlay.querySelector('.vgq-close');\n  const bodyEl = overlay.querySelector('.vgq-body');\n  const restartBtn = overlay.querySelector('.vgq-restart');\n  const moreBtn = overlay.querySelector('.vgq-more-btn');\n\n  // --- Hide third-party floating widgets while the quiz is open ---\n  // The store has several always-on floating buttons (WhatsApp chat widget,\n  // accessibility widget, etc.) that would otherwise sit on top of the quiz.\n  // We hide them when the quiz opens and restore them exactly as they were on close.\n  const FLOATING_WIDGET_SELECTORS = [\n    '#whatsapp-chat-widget',\n    '#accessiblyAppDialogButton',\n    '.accessibly-app-widget-button',\n    '.wa-widget-send-button',\n    '.wa-chat-box'\n  ];\n\n  let hiddenFloatingWidgets = [];\n\n  function hideFloatingWidgets() {\n    hiddenFloatingWidgets = [];\n    const seen = new Set();\n    FLOATING_WIDGET_SELECTORS.forEach(sel => {\n      let nodes;\n      try {\n        nodes = document.querySelectorAll(sel);\n      } catch (err) {\n        return;\n      }\n      nodes.forEach(el => {\n        if (!el || seen.has(el)) return;\n        if (el.closest && el.closest('#variant-gift-quiz')) return;\n        seen.add(el);\n        // Remember the exact inline values so we can restore them perfectly.\n        hiddenFloatingWidgets.push({\n          el: el,\n          visibility: el.style.visibility,\n          opacity: el.style.opacity,\n          pointerEvents: el.style.pointerEvents\n        });\n        el.style.visibility = 'hidden';\n        el.style.opacity = '0';\n        el.style.pointerEvents = 'none';\n      });\n    });\n  }\n\n  function showFloatingWidgets() {\n    hiddenFloatingWidgets.forEach(item => {\n      if (!item.el) return;\n      item.el.style.visibility = item.visibility || '';\n      item.el.style.opacity = item.opacity || '';\n      item.el.style.pointerEvents = item.pointerEvents || '';\n    });\n    hiddenFloatingWidgets = [];\n  }\n\n  function openQuiz() {\n    document.body.style.overflow = 'hidden';\n    overlay.classList.add('is-open');\n    hideFloatingWidgets();\n\n    // Track how many people open the gift quiz from the trigger button.\n    trackEvent('gift_quiz_opened');\n    trackEvent('influenced-revenue');\n\n    quizState = { step: 1, answers: {} };\n    overlay.querySelectorAll('.vgq-option').forEach(o => o.classList.remove('is-selected'));\n    overlay.querySelector('.vgq-results').classList.remove('is-active');\n    currentProductLimit = 6;\n    saveQuizState();\n    showStep(1);\n  }\n\n  function closeQuiz() {\n    overlay.classList.remove('is-open');\n    document.body.style.overflow = '';\n    showFloatingWidgets();\n    saveQuizState();\n    // Re-check drawer state in case the page is still showing another panel.\n    scheduleDrawerSync();\n  }\n\n  function showStep(num) {\n    overlay.querySelectorAll('.vgq-step').forEach(s => s.classList.remove('is-active'));\n    overlay.querySelector('.vgq-loading').classList.remove('is-active');\n    overlay.querySelector('.vgq-results').classList.remove('is-active');\n\n    const step = overlay.querySelector(`.vgq-step[data-step=\"${num}\"]`);\n    if (step) step.classList.add('is-active');\n\n    updateProgress(num);\n    if (!quizState) quizState = {};\n    quizState.step = num;\n    saveQuizState();\n  }\n\n  function updateProgress(currentStep) {\n    overlay.querySelectorAll('.vgq-progress-bar').forEach(bar => {\n      const s = parseInt(bar.dataset.step);\n      bar.classList.remove('is-active', 'is-done');\n      if (s < currentStep) bar.classList.add('is-done');\n      else if (s === currentStep) bar.classList.add('is-active');\n    });\n  }\n\n  function restoreSelections() {\n    if (!quizState || !quizState.answers) return;\n    Object.entries(quizState.answers).forEach(([step, value]) => {\n      const stepEl = overlay.querySelector(`.vgq-step[data-step=\"${step}\"]`);\n      if (!stepEl) return;\n      const opt = stepEl.querySelector(`.vgq-option[data-value=\"${value}\"]`);\n      if (opt) opt.classList.add('is-selected');\n    });\n  }\n\n  function handleOptionClick(e) {\n    const option = e.target.closest('.vgq-option');\n    if (!option) return;\n\n    const stepEl = option.closest('.vgq-step');\n    const stepNum = parseInt(stepEl.dataset.step);\n    const value = option.dataset.value;\n\n    stepEl.querySelectorAll('.vgq-option').forEach(o => o.classList.remove('is-selected'));\n    option.classList.add('is-selected');\n\n    if (!quizState) quizState = {};\n    if (!quizState.answers) quizState.answers = {};\n    quizState.answers[stepNum] = value;\n\n    setTimeout(() => {\n      if (stepNum < 3) {\n        showStep(stepNum + 1);\n      } else {\n        showResults();\n      }\n    }, 250);\n  }\n\n  function showResults() {\n    overlay.querySelectorAll('.vgq-step').forEach(s => s.classList.remove('is-active'));\n    const loading = overlay.querySelector('.vgq-loading');\n    loading.classList.add('is-active');\n    updateProgress(4);\n\n    // Track how many people complete the quiz and reach the results page,\n    // along with the exact answer combination they chose (recipient / occasion / interest).\n    const answers = (quizState && quizState.answers) || {};\n    const recipient = answers[1] || '';\n    const occasion = answers[2] || '';\n    const interest = answers[3] || '';\n    trackEvent('gift_quiz_completed', {\n      recipient: labelFor(recipient),\n      occasion: labelFor(occasion),\n      interest: labelFor(interest),\n      recipient_key: recipient,\n      occasion_key: occasion,\n      interest_key: interest,\n      answer_combination: [labelFor(recipient), labelFor(occasion), labelFor(interest)]\n        .filter(Boolean).join(' | ')\n    });\n\n    setTimeout(() => {\n      loading.classList.remove('is-active');\n      renderProducts();\n      overlay.querySelector('.vgq-results').classList.add('is-active');\n    }, 1000);\n  }\n\n  function filterProducts(limit) {\n    limit = limit || 6;\n    if (!quizState || !quizState.answers) return [];\n    const recipient = quizState.answers[1];\n    const occasion = quizState.answers[2];\n    const interest = quizState.answers[3];\n\n    const tagMapping = {\n      woman: ['אישה', 'נשים', 'לאישה', 'women', 'woman', 'her'],\n      man: ['גבר', 'גברים', 'לגבר', 'men', 'man', 'him'],\n      mom: ['אמא', 'אימא', 'mom', 'mother', 'לאמא'],\n      dad: ['אבא', 'dad', 'father', 'לאבא'],\n      teens: ['נוער', 'נערה', 'נער', 'teen', 'youth', 'לנוער'],\n      kids: ['ילדים', 'ילד', 'ילדה', 'kids', 'children', 'לילדים'],\n      baby: ['תינוק', 'baby', 'newborn', 'לידה', 'תינוקת'],\n      family: ['משפחה', 'family', 'בית', 'home', 'כל המשפחה'],\n      friends: ['חבר', 'חברה', 'חברים', 'friend', 'friends', 'לחברים'],\n      partner: ['זוג', 'רומנטי', 'אהבה', 'partner', 'couple', 'בן זוג', 'בת זוג'],\n      colleague: ['משרד', 'עבודה', 'office', 'colleague', 'קולגה'],\n      birthday: ['יום הולדת', 'birthday', 'חגיגה', 'הולדת'],\n      anniversary: ['נישואין', 'anniversary', 'יום נישואין', 'שנה'],\n      mothersday: ['אמא', 'יום האם', 'mother', 'אימא'],\n      familyday: ['משפחה', 'יום המשפחה', 'family'],\n      wedding: ['חתונה', 'אירוסין', 'wedding', 'כלה', 'חתן', 'זוג'],\n      event: ['אירוע', 'חגיגה', 'מסיבה', 'event', 'party'],\n      graduation: ['סיום', 'לימודים', 'graduation', 'תעודה', 'השכלה'],\n      newbaby: ['תינוק', 'לידה', 'baby', 'newborn', 'תינוקת', 'הריון'],\n      housewarming: ['בית', 'home', 'housewarming', 'עיצוב', 'חנוכת בית', 'דירה'],\n      thankyou: ['תודה', 'thank', 'הערכה', 'מתנה'],\n      books: ['ספר', 'ספרים', 'קריאה', 'book', 'books', 'reading'],\n      israeli: ['ישראל', 'ישראלי', 'israeli', 'israel', 'הכי ישראלי'],\n      food: ['אוכל', 'בישול', 'food', 'cooking', 'מטבח', 'שף', 'cook'],\n      games: ['משחק', 'משחקים', 'game', 'games', 'לוח', 'פאזל'],\n      diy: ['diy', 'יצירה', 'מלאכה', 'craft', 'עשה זאת בעצמך'],\n      sports: ['ספורט', 'תנועה', 'sport', 'fitness', 'כושר', 'אימון'],\n      wellness: ['בריאות', 'חיים טובים', 'wellness', 'health', 'רוגע', 'מדיטציה', 'ספא'],\n      music: ['מוזיקה', 'music', 'נגינה', 'כלי נגינה', 'שירה'],\n      pets: ['בעלי חיים', 'חיות', 'pets', 'animals', 'כלב', 'חתול']\n    };\n\n    const recipientTags = tagMapping[recipient] || [];\n    const occasionTags = tagMapping[occasion] || [];\n    const interestTags = tagMapping[interest] || [];\n\n    const scored = productsData.map(p => {\n      let score = 0;\n      const productTags = (p.tags || []).map(t => t.toLowerCase());\n      const productTitle = (p.title || '').toLowerCase();\n\n      recipientTags.forEach(tag => {\n        if (productTags.some(pt => pt.includes(tag)) || productTitle.includes(tag)) score += 2;\n      });\n      occasionTags.forEach(tag => {\n        if (productTags.some(pt => pt.includes(tag)) || productTitle.includes(tag)) score += 2;\n      });\n      interestTags.forEach(tag => {\n        if (productTags.some(pt => pt.includes(tag)) || productTitle.includes(tag)) score += 3;\n      });\n      return { ...p, score };\n    });\n\n    scored.sort((a, b) => b.score - a.score);\n\n    let filtered = scored;\n\n    if (filtered.length > 0 && filtered[0].score === 0) {\n      const shuffled = [...productsData].sort(() => 0.5 - Math.random());\n      filtered = shuffled.slice(0, Math.min(limit, shuffled.length));\n    } else {\n      const withScore = filtered.filter(p => p.score > 0);\n      if (withScore.length < 4) {\n        const remaining = filtered.filter(p => p.score === 0).sort(() => 0.5 - Math.random());\n        filtered = [...withScore, ...remaining];\n      }\n    }\n\n    return filtered.slice(0, limit);\n  }\n\n  let currentProductLimit = 6;\n\n  function renderProducts() {\n    const container = overlay.querySelector('.vgq-products');\n    const products = filterProducts(currentProductLimit);\n    const allProducts = filterProducts(50);\n    const moreBtn = overlay.querySelector('.vgq-more-btn');\n\n    if (products.length === 0) {\n      container.innerHTML = `<div class=\"vgq-empty\">לא נמצאו מוצרים מתאימים. נסו לשנות את הקריטריונים.</div>`;\n      if (moreBtn) moreBtn.classList.add('is-hidden');\n      return;\n    }\n\n    if (moreBtn) {\n      if (allProducts.length > products.length) {\n        moreBtn.classList.remove('is-hidden');\n      } else {\n        moreBtn.classList.add('is-hidden');\n      }\n    }\n\n    container.innerHTML = products.map(p => `\n      <div class=\"vgq-product-card\" data-variant-id=\"${p.variantId}\" data-handle=\"${p.handle}\">\n        <img src=\"${p.image}\" alt=\"${p.title}\" loading=\"lazy\" width=\"80\" height=\"80\">\n        <div class=\"vgq-product-info\">\n          <div class=\"vgq-product-title\">${p.title}</div>\n          <div class=\"vgq-product-price\">₪${parseFloat(p.price).toFixed(0)}</div>\n          <button class=\"vgq-add-btn\" data-variant-id=\"${p.variantId}\">הוספה מהירה לסל</button>\n        </div>\n      </div>\n    `).join('');\n\n    container.querySelectorAll('.vgq-add-btn').forEach(btn => {\n      btn.addEventListener('click', handleAddToCart);\n    });\n\n    container.querySelectorAll('.vgq-product-card').forEach(card => {\n      card.addEventListener('click', function(e) {\n        if (e.target.closest('.vgq-add-btn')) return;\n        const handle = this.dataset.handle;\n        if (!handle) return;\n\n        e.preventDefault();\n        const destinationUrl = '/products/' + handle;\n        const productId = this.dataset.variantId;\n\n        // Track which product the user clicked on the quiz results page.\n        // Safety timeout guarantees navigation even if event publishing hangs.\n        const safetyTimeout = setTimeout(() => {\n          window.location.href = destinationUrl;\n        }, 2000);\n\n        trackEvent('product-clicked-attribution', { product_id: productId });\n\n        clearTimeout(safetyTimeout);\n        window.location.href = destinationUrl;\n      });\n    });\n  }\n\n  function loadMoreProducts() {\n    currentProductLimit += 6;\n    renderProducts();\n  }\n\n  async function handleAddToCart(e) {\n    e.stopPropagation();\n    const btn = e.currentTarget;\n    const variantId = btn.dataset.variantId;\n    if (!variantId || btn.disabled) return;\n\n    btn.disabled = true;\n    btn.textContent = '...';\n\n    try {\n      const rootUrl = (window.Shopify && window.Shopify.routes && window.Shopify.routes.root) || '/';\n      const response = await fetch(rootUrl + 'cart/add.js', {\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json' },\n        body: JSON.stringify({\n          items: [{ id: parseInt(variantId), quantity: 1 }]\n        })\n      });\n\n      if (!response.ok) throw new Error('Failed');\n\n      btn.textContent = '\\u2713 נוסף';\n      btn.classList.add('is-added');\n\n      setTimeout(() => {\n        btn.textContent = 'הוספה מהירה לסל';\n        btn.classList.remove('is-added');\n        btn.disabled = false;\n      }, 2000);\n\n    } catch (err) {\n      btn.textContent = 'שגיאה, נסו שוב';\n      btn.disabled = false;\n      setTimeout(() => {\n        btn.textContent = 'הוספה מהירה לסל';\n      }, 2000);\n    }\n  }\n\n  function resetQuiz() {\n    quizState = { step: 1, answers: {} };\n    currentProductLimit = 6;\n    saveQuizState();\n    overlay.querySelector('.vgq-results').classList.remove('is-active');\n    overlay.querySelectorAll('.vgq-option').forEach(o => o.classList.remove('is-selected'));\n    showStep(1);\n  }\n\n  function saveQuizState() {\n    try {\n      const data = { state: quizState, timestamp: Date.now() };\n      sessionStorage.setItem(CACHE_KEY, JSON.stringify(data));\n    } catch(e) {}\n  }\n\n  function loadQuizState() {\n    try {\n      const raw = sessionStorage.getItem(CACHE_KEY);\n      if (!raw) return null;\n      const data = JSON.parse(raw);\n      if (Date.now() - data.timestamp > CACHE_DURATION) {\n        sessionStorage.removeItem(CACHE_KEY);\n        return null;\n      }\n      return data.state;\n    } catch(e) {\n      return null;\n    }\n  }\n\n  async function fetchProducts() {\n    try {\n      const cached = sessionStorage.getItem(PRODUCTS_CACHE_KEY);\n      if (cached) {\n        const cacheData = JSON.parse(cached);\n        if (Date.now() - cacheData.timestamp < 30 * 60 * 1000) {\n          productsData = cacheData.products;\n          return;\n        }\n      }\n    } catch(e) {}\n\n    const query = `{\n      products(first: 80, sortKey: BEST_SELLING) {\n        edges {\n          node {\n            id\n            title\n            handle\n            tags\n            featuredImage {\n              url\n            }\n            priceRange {\n              minVariantPrice {\n                amount\n              }\n            }\n            variants(first: 1) {\n              edges {\n                node {\n                  id\n                  availableForSale\n                  price {\n                    amount\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }`;\n\n    try {\n      const response = await fetch(`https://${SHOP_DOMAIN}/api/2025-10/graphql.json`, {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n          'X-Shopify-Storefront-Access-Token': STOREFRONT_TOKEN\n        },\n        body: JSON.stringify({ query })\n      });\n\n      const json = await response.json();\n      const edges = json.data && json.data.products && json.data.products.edges;\n      if (!edges) return;\n\n      productsData = edges\n        .map(edge => {\n          const node = edge.node;\n          const variant = node.variants.edges[0] && node.variants.edges[0].node;\n          if (!variant || !variant.availableForSale) return null;\n\n          const gid = variant.id;\n          const numericId = gid.replace('gid://shopify/ProductVariant/', '');\n\n          return {\n            title: node.title,\n            handle: node.handle,\n            tags: node.tags || [],\n            image: node.featuredImage ? node.featuredImage.url + '&width=300' : '',\n            price: variant.price.amount,\n            variantId: numericId\n          };\n        })\n        .filter(Boolean);\n\n      try {\n        sessionStorage.setItem(PRODUCTS_CACHE_KEY, JSON.stringify({\n          products: productsData,\n          timestamp: Date.now()\n        }));\n      } catch(e) {}\n\n    } catch(e) {}\n  }\n\n  triggerBtn.addEventListener('click', function(e) {\n    // Ignore clicks on the dismiss control inside the button.\n    if (e.target.closest('.vgq-trigger-dismiss')) return;\n    openQuiz();\n  });\n  closeBtn.addEventListener('click', closeQuiz);\n  restartBtn.addEventListener('click', resetQuiz);\n  moreBtn.addEventListener('click', loadMoreProducts);\n  bodyEl.addEventListener('click', handleOptionClick);\n\n  document.addEventListener('keydown', function(e) {\n    if (e.key === 'Escape' && overlay.classList.contains('is-open')) {\n      closeQuiz();\n    }\n  });\n\n  // Make sure the trigger starts in the correct (visible) state and only hides\n  // if a drawer is genuinely open right now.\n  syncTriggerForDrawers();\n\n  fetchProducts();\n\n})();"}]},"exp-EXPDB7A2236":{"defaultValue":"","rules":[{"id":"exp-ref-rule-EXPDB7A2236","condition":{"deviceType":"mobile"},"coverage":1,"hashAttribute":"id","seed":"d4882343-6725-40b2-854a-52a45809934f","hashVersion":2,"variations":["","/**\n * EXPDB7A2236 — Variation 1\n * Mobile Navigation Drawer Overhaul (Asufa Design)\n *\n * Rebuilds the mobile navigation drawer so it mirrors the live DESKTOP navigation\n * bar (exact categories, nesting and links), with a thumb-friendly slide-in\n * drill-down UX, scroll isolation, a dynamically-discovered social footer, and\n * styling inherited from the theme's own design tokens.\n *\n * Strategy:\n *  - Read the desktop nav from the live DOM (proxy-safe: we clone real hrefs,\n *    never hardcode paths).\n *  - Build a fresh drawer and take over the hamburger trigger.\n *  - Fail silently and fall back to whatever native/existing menu exists if\n *    anything goes wrong, protecting the shopping funnel.\n */\n(function () {\n  'use strict';\n\n  var EXPERIMENT_ID = 'EXPDB7A2236';\n  var VARIATION_ID = '1';\n  var NS = 'vaf-mnav'; // namespace for ids/classes\n\n  // Curated \"מומלצים עבורך\" (Recommended for you) products, mirroring the\n  // recommendation carousel from the current nav experience.\n  var RECO_PRODUCTS = [\n    { handle: 'avocado', name: 'אבוקדו | כלי הנבטה', price: '120 ₪', was: '140 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/26_Aya_Wind_copy_400x400.jpg?v=1749737000' },\n    { handle: '%D7%9E%D7%91%D7%97%D7%A0%D7%AA-%D7%94%D7%A0%D7%91%D7%98%D7%94-%D7%A8%D7%95%D7%98%D7%90', name: 'רוטא - מבחנת השרשה לייחורים', price: '49 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/DSCF7917-2_400x400.jpg?v=1743929064' },\n    { handle: '%D7%9E%D7%92%D7%A0%D7%98-%D7%A9%D7%9C%D7%98-%D7%A8%D7%97%D7%95%D7%91-%D7%9E%D7%95%D7%90%D7%A8', name: 'מגנט \"שלט רחוב\" מואר', price: '59 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/grouphertzel_400x400.jpg?v=1651392198' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%A7%D7%A8%D7%9E%D7%91%D7%95', name: '\"מושמוש\" קרמבו', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/moosh_krembo_400x400.jpg?v=1715253861' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%91%D7%95%D7%A8%D7%A7%D7%A1', name: '\"מושמוש\" בורקס', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/burekas_400x400.jpg?v=1639557330' },\n    { handle: '%D7%A4%D7%95%D7%A1%D7%98%D7%A8-%D7%94%D7%96%D7%94%D7%91-%D7%94%D7%99%D7%A8%D7%95%D7%A7-%D7%90%D7%91%D7%95%D7%A7%D7%93%D7%95-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'פוסטר זהב ירוק - מקרא אבוקדו', price: '99 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/01_eec8259c-ae21-4737-a2e6-25fe3f6902ae_400x400.jpg?v=1772102242' },\n    { handle: 'laundry-art-print', name: 'הדפס ערימת כביסה - Laundry Day', price: '129 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/launrdy-000_400x400.webp?v=1752808359' },\n    { handle: '%D7%91%D7%95%D7%A2%D7%95%D7%AA-%D7%A1%D7%91%D7%95%D7%9F-%D7%94%D7%93%D7%A4%D7%A1-%D7%93%D7%99%D7%92%D7%99%D7%98%D7%9C%D7%99-%D7%98%D7%9C%D7%99-%D7%99%D7%90%D7%9C%D7%95%D7%A0%D7%A6%D7%A7%D7%99', name: 'בועת סבון | הדפס דיגיטלי', price: '129 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/7a27a72608e3cbc8602e7472f57d45b0_400x400.jpg?v=1772978180' },\n    { handle: 'at-the-beach', name: 'הדפס דיגיטלי, מיכוש | בחוף הים', price: '69 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/sea_life_print__micush_400x400.jpg?v=1624478477' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%A2%D7%95%D7%92%D7%AA-%D7%99%D7%95%D7%9E%D7%95%D7%9C%D7%93%D7%AA-%D7%9B%D7%9C%D7%91%D7%95-%D7%A2%D7%99%D7%A6%D7%95%D7%91%D7%99%D7%9D', name: '\"מושמוש\" עוגת יומולדת', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/3a6a373b7ad225f5c8486a1401bc3081_400x400.jpg?v=1682320562' },\n    { handle: '%D7%92%D7%9C%D7%95%D7%99%D7%95%D7%AA-%D7%9C%D7%99%D7%A7%D7%95%D7%98-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'גלויה ליקוטים מקומיים | תוצרת', price: '20 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Frame02_400x400.jpg?v=1715757734' },\n    { handle: 'copy-of-%D7%94%D7%93%D7%A4%D7%A1-%D7%AA%D7%A4%D7%95%D7%96%D7%99%D7%9D-%D7%A1%D7%93%D7%A8%D7%AA-%D7%A4%D7%9C%D7%95%D7%A8%D7%94-%D7%91%D7%99%D7%A9%D7%A8%D7%90%D7%9C-%D7%A1%D7%99%D7%98%D7%99-%D7%A1%D7%98%D7%95%D7%A8%D7%99%D7%96', name: 'הדפס תפוזים', price: '79 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/Oranges_in_net-bag_400x400.jpg?v=1658397056' },\n    { handle: '%D7%9E%D7%90%D7%A8%D7%96-%D7%9C%D7%99%D7%A7%D7%95%D7%98%D7%99%D7%9D-%D7%A4%D7%95%D7%A1%D7%98%D7%A8%D7%99%D7%9D-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'מארז ליקוטים - פוסטרים | תוצרת', price: '180 ₪', was: '240 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Bundle_copy_400x400.jpg?v=1718538612' },\n    { handle: '%D7%A2%D7%A8%D7%9B%D7%94-%D7%9C%D7%96%D7%95%D7%92%D7%95%D7%AA-%D7%95%D7%93%D7%99%D7%99%D7%98%D7%99%D7%9D-foreplay-%D7%A0%D7%95%D7%A2%D7%94-%D7%94%D7%93%D7%A8%D7%99-ask-q', name: 'ForePlay - ערכה לזוגות ודייטים - Ask Q', price: '179 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Untitleddesign_1_400x400.png?v=1773131955' },\n    { handle: '%D7%90%D7%91%D7%95%D7%A7%D7%93%D7%95-%D7%9E%D7%95%D7%A0%D7%91%D7%98-%D7%9E%D7%97%D7%95%D7%98-%D7%91%D7%A8%D7%96%D7%9C-one-wire', name: 'אבוקדו מונבט מחוט ברזל | שיר סניור', price: '160 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/103083486_2799806203575553_9135428060668888862_n_400x400.jpg?v=1639557016' }\n  ];\n\n\n  /* ------------------------------------------------------------------ */\n  /* Tracking helper                                                     */\n  /* ------------------------------------------------------------------ */\n  function track(eventName, extra) {\n    try {\n      if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n        var payload = { experiment_id: EXPERIMENT_ID, variation_id: VARIATION_ID };\n        if (extra) {\n          for (var k in extra) {\n            if (Object.prototype.hasOwnProperty.call(extra, k)) payload[k] = extra[k];\n          }\n        }\n        Variant.publishCustomEvent(eventName, payload);\n      }\n    } catch (e) {\n      /* never let tracking break navigation */\n    }\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Utilities                                                           */\n  /* ------------------------------------------------------------------ */\n  function textOf(el) {\n    return (el ? el.textContent : '').replace(/\\s+/g, ' ').trim();\n  }\n\n  // Find the desktop navigation container on the live page.\n  function findDesktopNav() {\n    return (\n      document.querySelector('.header__link-list') ||\n      document.querySelector('nav.header__link-list') ||\n      document.querySelector('[role=\"navigation\"].header__link-list')\n    );\n  }\n\n  // Find the top-level <li> items of the desktop nav.\n  function topLevelItems(nav) {\n    var directList = nav.querySelector(':scope > ul');\n    if (directList) return Array.prototype.slice.call(directList.children);\n    // Fallback: any list under the nav\n    var anyList = nav.querySelector('ul');\n    return anyList ? Array.prototype.slice.call(anyList.children) : [];\n  }\n\n  /**\n   * Recursively parse a nav <li> element into a plain tree node.\n   * Handles two shapes used by the theme:\n   *   - <li><a href>Label</a></li>                              (leaf link)\n   *   - <li><details><summary data-url>Label</summary>          (group)\n   *           <div class=\"dropdown-menu|mega-menu\"> ...lists... </div>\n   *       </details></li>\n   * Mega-menu columns (ul.mega-menu__nav) are flattened into direct children.\n   */\n  function parseItem(li) {\n    if (!li || li.nodeType !== 1) return null;\n\n    var details = li.querySelector(':scope > details');\n    if (details) {\n      var summary = details.querySelector(':scope > summary');\n      var label = summary ? textOf(summary) : '';\n      var url = summary ? summary.getAttribute('data-url') || '' : '';\n\n      // The panel holding the children (dropdown-menu or mega-menu).\n      var panel = details.querySelector(':scope > .dropdown-menu, :scope > .mega-menu');\n      if (!panel) {\n        // mega-menu is sometimes rendered after an inline <style> tag.\n        var candidates = details.querySelectorAll(':scope > .mega-menu, :scope > .dropdown-menu');\n        panel = candidates.length ? candidates[0] : null;\n      }\n\n      var children = [];\n      if (panel) {\n        // Take only the panel's own top-level lists; nested lists belong to\n        // child <li>s and are picked up by recursion.\n        var lists = panel.querySelectorAll(':scope > ul');\n        if (!lists.length) lists = panel.querySelectorAll(':scope > * > ul');\n        for (var l = 0; l < lists.length; l++) {\n          var kids = Array.prototype.slice.call(lists[l].children);\n          for (var c = 0; c < kids.length; c++) {\n            var childNode = parseItem(kids[c]);\n            if (childNode) children.push(childNode);\n          }\n        }\n      }\n\n      return { label: label, url: url, children: children };\n    }\n\n    // Leaf link.\n    var a = li.querySelector(':scope > a, a');\n    if (a) {\n      return { label: textOf(a) || textOf(li), url: a.getAttribute('href') || '', children: [] };\n    }\n    return null;\n  }\n\n  function buildTree(nav) {\n    var items = topLevelItems(nav);\n    var tree = [];\n    for (var i = 0; i < items.length; i++) {\n      var node = parseItem(items[i]);\n      if (node && node.label) tree.push(node);\n    }\n    return tree;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Social media discovery (clone from live footer)                     */\n  /* ------------------------------------------------------------------ */\n  function buildSocialFooter() {\n    // The theme renders social icons in the footer as ul.social-media.\n    // We only render channels that actually exist on the page (dynamic discovery).\n    var source = document.querySelector('.footer ul.social-media, footer ul.social-media, ul.social-media');\n    if (!source) return null;\n\n    var anchors = source.querySelectorAll('a[href]');\n    if (!anchors.length) return null;\n\n    var wrap = document.createElement('div');\n    wrap.className = NS + '__social';\n\n    var ul = document.createElement('ul');\n    ul.className = NS + '__social-list';\n    ul.setAttribute('role', 'list');\n\n    var count = 0;\n    for (var i = 0; i < anchors.length; i++) {\n      var src = anchors[i];\n      var href = src.getAttribute('href');\n      if (!href || href === '#') continue;\n\n      // Override specific channels with the merchant's canonical profile URLs.\n      if (/instagram/i.test(href)) {\n        href = 'https://www.instagram.com/asufadesign/?hl=he';\n      } else if (/facebook/i.test(href)) {\n        href = 'https://www.facebook.com/asufadesign/';\n      }\n\n      var li = document.createElement('li');\n      var a = document.createElement('a');\n      a.href = href;\n      a.target = '_blank';\n      a.rel = 'noopener';\n      a.className = NS + '__social-link';\n      var label = src.getAttribute('aria-label');\n      if (label) a.setAttribute('aria-label', label);\n\n      // Clone the theme's own SVG icon so it matches exactly.\n      var svg = src.querySelector('svg');\n      if (svg) {\n        a.appendChild(svg.cloneNode(true));\n      } else {\n        a.textContent = label || 'Link';\n      }\n\n      (function (destination) {\n        a.addEventListener('click', function () {\n          track('influenced-revenue', { interaction: 'mobile_nav_social_click', destination: destination });\n        });\n      })(href);\n\n      li.appendChild(a);\n      ul.appendChild(li);\n      count++;\n    }\n\n    if (!count) return null;\n    wrap.appendChild(ul);\n    return wrap;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Recommended-for-you carousel                                        */\n  /* ------------------------------------------------------------------ */\n  var cartIconSvg =\n    '<svg fill=\"none\" focusable=\"false\" height=\"14\" role=\"presentation\" stroke-width=\"2\" viewBox=\"0 0 16 14\" width=\"16\">' +\n    '<path d=\"M7.75 4.75H2.283a1 1 0 0 0-.97 1.244l1.574 6.25a1 1 0 0 0 .97.756h7.787a1 1 0 0 0 .97-.756l1.573-6.25a1 1 0 0 0-.97-1.244H7.75Zm0 0V1\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n\n  // Add a product to the cart via Shopify's AJAX API. Resolves the first\n  // available variant from the product's JSON, then posts to /cart/add.\n  function quickAdd(handle, btn) {\n    if (btn.getAttribute('data-busy') === '1') return;\n    btn.setAttribute('data-busy', '1');\n    var original = btn.innerHTML;\n    btn.innerHTML = '<span class=\"' + NS + '__reco-btn-spin\"></span>';\n\n    var restore = function () {\n      btn.innerHTML = original;\n      btn.removeAttribute('data-busy');\n    };\n\n    fetch('/products/' + handle + '.js', { headers: { Accept: 'application/json' } })\n      .then(function (r) { return r.json(); })\n      .then(function (product) {\n        var variant = null;\n        for (var i = 0; i < product.variants.length; i++) {\n          if (product.variants[i].available) { variant = product.variants[i]; break; }\n        }\n        if (!variant) variant = product.variants[0];\n        return fetch('/cart/add.js', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json', Accept: 'application/json' },\n          body: JSON.stringify({ id: variant.id, quantity: 1 })\n        });\n      })\n      .then(function (r) { return r.json(); })\n      .then(function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_reco_add', product_handle: handle });\n        // Nudge the theme to refresh the cart UI if it listens for these.\n        try {\n          document.dispatchEvent(new CustomEvent('cart:refresh', { bubbles: true }));\n          document.dispatchEvent(new CustomEvent('cart:updated', { bubbles: true }));\n        } catch (e) {}\n        // Quick success feedback.\n        btn.innerHTML = '<svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\"><path d=\"M5 13l4 4L19 7\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n        setTimeout(restore, 1200);\n      })\n      .catch(function () { restore(); });\n  }\n\n  function buildReco() {\n    if (!RECO_PRODUCTS || !RECO_PRODUCTS.length) return null;\n\n    var section = document.createElement('div');\n    section.className = NS + '__reco';\n\n    var title = document.createElement('div');\n    title.className = NS + '__reco-title';\n    title.textContent = 'מומלצים עבורך';\n    section.appendChild(title);\n\n    var scroll = document.createElement('div');\n    scroll.className = NS + '__reco-scroll';\n\n    RECO_PRODUCTS.forEach(function (p) {\n      var card = document.createElement('a');\n      card.className = NS + '__reco-card';\n      card.href = '/products/' + p.handle;\n\n      var imgWrap = document.createElement('div');\n      imgWrap.className = NS + '__reco-imgwrap';\n\n      var img = document.createElement('img');\n      img.className = NS + '__reco-img';\n      img.src = p.img;\n      img.alt = p.name;\n      img.loading = 'lazy';\n      imgWrap.appendChild(img);\n\n      var atc = document.createElement('button');\n      atc.type = 'button';\n      atc.className = NS + '__reco-atc';\n      atc.setAttribute('aria-label', 'הוספה מהירה');\n      atc.innerHTML = cartIconSvg;\n      atc.addEventListener('click', function (e) {\n        e.preventDefault();\n        e.stopPropagation();\n        quickAdd(p.handle, atc);\n      });\n      imgWrap.appendChild(atc);\n      card.appendChild(imgWrap);\n\n      var info = document.createElement('div');\n      info.className = NS + '__reco-info';\n\n      var name = document.createElement('span');\n      name.className = NS + '__reco-name';\n      name.textContent = p.name;\n      info.appendChild(name);\n\n      var price = document.createElement('div');\n      price.className = NS + '__reco-price';\n      if (p.was) {\n        var sale = document.createElement('span');\n        sale.className = NS + '__reco-sale';\n        sale.textContent = p.price;\n        var was = document.createElement('span');\n        was.className = NS + '__reco-was';\n        was.textContent = p.was;\n        price.appendChild(sale);\n        price.appendChild(was);\n      } else {\n        price.textContent = p.price;\n      }\n      info.appendChild(price);\n      card.appendChild(info);\n\n      // Product click attribution (redirect-safe).\n      card.addEventListener('click', function (e) {\n        e.preventDefault();\n        var dest = card.href;\n        var safety = setTimeout(function () { window.location.href = dest; }, 2000);\n        try {\n          track('product-clicked-attribution', { product_id: p.handle });\n        } catch (err) {}\n        clearTimeout(safety);\n        window.location.href = dest;\n      });\n\n      scroll.appendChild(card);\n    });\n\n    section.appendChild(scroll);\n    return section;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Styles (theme-token driven)                                         */\n  /* ------------------------------------------------------------------ */\n  function injectStyles() {\n    if (document.getElementById(NS + '-styles')) return;\n    var css =\n      /* Overlay */\n      '.' + NS + '__overlay{position:fixed;inset:0;background:rgba(39,39,39,.45);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility 0s linear .3s;z-index:2147483646!important;}' +\n      '.' + NS + '__overlay.is-open{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .3s ease,visibility 0s;}' +\n\n      /* Drawer shell — anchored to the right edge and pushed fully off-screen\n         when closed. visibility:hidden + pointer-events:none guarantee the\n         closed drawer never captures touches along the viewport edge.\n         z-index is set to the maximum so the menu always sits above every\n         badge, count bubble, chat/widget button or other floating element. */\n      '.' + NS + '__drawer{position:fixed;top:0;right:0;left:auto;height:100%;width:min(88vw,420px);max-width:100%;' +\n        'background:rgb(var(--header-background,255 255 255));color:rgb(var(--header-text,39 39 39));' +\n        'z-index:2147483647!important;display:flex;flex-direction:column;direction:rtl;' +\n        'font-family:var(--text-font-family,inherit);' +\n        'transform:translateX(101%);transition:transform .3s cubic-bezier(.32,.72,0,1),visibility 0s linear .3s;' +\n        'visibility:hidden;pointer-events:none;' +\n        'box-shadow:var(--shadow-md,0 5px 30px rgb(39 39 39 / .1));will-change:transform;}' +\n      '.' + NS + '__drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform .3s cubic-bezier(.32,.72,0,1),visibility 0s;}' +\n\n      /* Sticky top bar */\n      '.' + NS + '__topbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;' +\n        'gap:12px;padding:12px 16px;min-height:56px;background:inherit;' +\n        'border-bottom:1px solid rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__title{font-weight:700;font-size:var(--text-h6,1rem);line-height:1.2;flex:1;text-align:center;' +\n        'white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;}' +\n      '.' + NS + '__logo{display:inline-flex;align-items:center;max-width:150px;}' +\n      '.' + NS + '__logo img{display:block;height:auto;max-height:28px;width:auto;max-width:100%;object-fit:contain;}' +\n      '.' + NS + '__title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}' +\n      /* At root the logo shows; when drilled we swap to the category name. */\n      '.' + NS + '__drawer.show-back .' + NS + '__logo{display:none;}' +\n      '.' + NS + '__drawer:not(.show-back) .' + NS + '__title-text{display:none;}' +\n      '.' + NS + '__iconbtn{appearance:none;background:none;border:none;color:inherit;cursor:pointer;' +\n        'display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;' +\n        'border-radius:var(--rounded-full,9999px);transition:background-color .15s ease;flex:0 0 auto;}' +\n      '.' + NS + '__iconbtn:hover,.' + NS + '__iconbtn:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__back{visibility:hidden;}' +\n      '.' + NS + '__drawer.show-back .' + NS + '__back{visibility:visible;}' +\n\n      /* Scroll region + panel slider */\n      '.' + NS + '__scroll{flex:1;overflow:hidden;position:relative;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}' +\n      '.' + NS + '__panels{display:flex;height:100%;transition:transform .3s cubic-bezier(.32,.72,0,1);will-change:transform;}' +\n      '.' + NS + '__panel{flex:0 0 100%;width:100%;height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 0 24px;}' +\n\n      /* Rows */\n      '.' + NS + '__list{list-style:none;margin:0;padding:0;}' +\n      '.' + NS + '__row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;' +\n        'min-height:48px;padding:12px 20px;color:inherit;text-decoration:none;background:none;border:none;' +\n        'font-family:inherit;font-size:calc(var(--text-lg,1.0625rem) - 2px);line-height:1.35;text-align:start;cursor:pointer;' +\n        'border-bottom:1px solid rgb(var(--border-color,39 39 39 / .08));transition:background-color .15s ease;box-sizing:border-box;}' +\n      '.' + NS + '__row:hover,.' + NS + '__row:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__row-label{flex:1;min-width:0;overflow-wrap:anywhere;word-break:break-word;}' +\n      '.' + NS + '__chevron{flex:0 0 auto;width:20px;height:20px;opacity:.55;transition:transform .2s ease;}' +\n      /* Soft category glyph shown at the leading (right, in RTL) edge of main items */\n      '.' + NS + '__leadicon{flex:0 0 auto;width:22px;height:22px;opacity:.6;margin-inline-end:2px;}' +\n\n      /* Accordion (leaf categories that expand in place) */\n      '.' + NS + '__sub{list-style:none;margin:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s ease;}' +\n      '.' + NS + '__acc.is-open>.' + NS + '__sub{max-height:2000px;}' +\n      '.' + NS + '__acc.is-open>.' + NS + '__row .' + NS + '__acc-icon::after{transform:rotate(90deg);}' +\n      '.' + NS + '__sub .' + NS + '__row{padding-inline-start:36px;font-size:calc(var(--text-lg,1.0625rem) - 3px);}' +\n      '.' + NS + '__acc-icon{flex:0 0 auto;width:20px;height:20px;position:relative;opacity:.6;}' +\n      '.' + NS + '__acc-icon::before,.' + NS + '__acc-icon::after{content:\"\";position:absolute;background:currentColor;transition:transform .2s ease;}' +\n      '.' + NS + '__acc-icon::before{top:9px;inset-inline-start:4px;width:12px;height:2px;}' +\n      '.' + NS + '__acc-icon::after{inset-inline-start:9px;top:4px;width:2px;height:12px;}' +\n\n      /* Footer / social — minimal height: icon height + 4px top/bottom padding */\n      '.' + NS + '__footer{margin-top:auto;padding:4px 20px calc(4px + env(safe-area-inset-bottom,0px));' +\n        'border-top:1px solid rgb(var(--border-color,39 39 39 / .12));background:inherit;}' +\n      '.' + NS + '__social-list{list-style:none;display:flex;flex-wrap:wrap;gap:0 18px;margin:0;padding:0;justify-content:center;align-items:center;}' +\n      '.' + NS + '__social-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:22px;height:22px;' +\n        'border-radius:var(--rounded-full,9999px);color:inherit;transition:background-color .15s ease,transform .15s ease;}' +\n      '.' + NS + '__social-link:hover,.' + NS + '__social-link:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__social-link svg{width:22px;height:22px;display:block;}' +\n\n      /* Recommended-for-you carousel (mirrors the current nav experience). */\n      '.' + NS + '__reco{padding:16px 0 20px;border-top:1px solid rgb(var(--border-color,39 39 39 / .12));background:inherit;direction:rtl;}' +\n      '.' + NS + '__reco-title{padding:0 20px 10px;font-size:17px;font-weight:400;color:inherit;text-align:right;line-height:1.4;letter-spacing:.01em;font-family:var(--text-font-family,inherit);}' +\n      '.' + NS + '__reco-scroll{direction:rtl;overflow-x:auto;overflow-y:hidden;display:flex;flex-wrap:nowrap;gap:10px;padding:0 0 8px;padding-inline-start:20px;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;}' +\n      '.' + NS + '__reco-scroll::-webkit-scrollbar{display:none;}' +\n      '.' + NS + '__reco-card{flex:0 0 calc((100vw - 60px) / 3.25);max-width:150px;display:flex;flex-direction:column;text-decoration:none;color:inherit;position:relative;-webkit-tap-highlight-color:transparent;}' +\n      '.' + NS + '__reco-imgwrap{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:rgb(var(--product-card-background,242 242 242));border-radius:var(--rounded-sm,.375rem);}' +\n      '.' + NS + '__reco-img{width:100%;height:100%;object-fit:cover;display:block;}' +\n      '.' + NS + '__reco-atc{position:absolute;bottom:6px;left:6px;width:30px;height:30px;border-radius:50%;background:rgb(var(--button-background-primary,39 39 39));color:rgb(var(--button-text-primary,255 255 255));border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;padding:0;z-index:2;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:transform .15s ease;}' +\n      '.' + NS + '__reco-atc:active{transform:scale(.85);}' +\n      '.' + NS + '__reco-atc svg{width:14px;height:14px;}' +\n      '.' + NS + '__reco-info{padding:6px 2px 0;display:flex;flex-direction:column;gap:2px;text-align:right;}' +\n      '.' + NS + '__reco-name{font-size:12px;font-weight:400;color:inherit;line-height:1.3;overflow-wrap:break-word;font-family:var(--text-font-family,inherit);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}' +\n      '.' + NS + '__reco-price{font-size:12px;font-weight:400;color:inherit;direction:rtl;font-family:var(--text-font-family,inherit);}' +\n      '.' + NS + '__reco-sale{color:rgb(var(--on-sale-text,227 79 79));}' +\n      '.' + NS + '__reco-was{text-decoration:line-through;color:#69727b;margin-inline-start:4px;font-size:11px;}' +\n      '.' + NS + '__reco-btn-spin{width:12px;height:12px;border:1.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:' + NS + '-spin .6s linear infinite;}' +\n      '@keyframes ' + NS + '-spin{to{transform:rotate(360deg);}}' +\n\n      /* Drawer is a mobile pattern only. */\n      '@media (min-width:1150px){.' + NS + '__drawer,.' + NS + '__overlay{display:none!important;}}';\n\n    var style = document.createElement('style');\n    style.id = NS + '-styles';\n    style.textContent = css;\n    document.head.appendChild(style);\n  }\n\n  function chevronBack() {\n    return '<svg class=\"' + NS + '__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">' +\n      '<polyline points=\"9 18 15 12 9 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n  }\n  function chevronForward() {\n    // In RTL, drilling deeper points left.\n    return '<svg class=\"' + NS + '__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">' +\n      '<polyline points=\"15 18 9 12 15 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n  }\n  function closeIcon() {\n    return '<svg viewBox=\"0 0 24 24\" width=\"22\" height=\"22\" fill=\"none\" aria-hidden=\"true\">' +\n      '<path d=\"M6 6l12 12M18 6L6 18\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>';\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Category lead icons                                                  */\n  /* ------------------------------------------------------------------ */\n  // Minimalist, soft (thin rounded stroke) line icons chosen by keyword so\n  // each main menu item carries a small glyph related to its collection.\n  function svgWrap(inner) {\n    return '<svg class=\"' + NS + '__leadicon\" viewBox=\"0 0 24 24\" fill=\"none\" ' +\n      'stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" ' +\n      'stroke-linejoin=\"round\" aria-hidden=\"true\">' + inner + '</svg>';\n  }\n\n  var LEAD_ICONS = {\n    // \"New\" — sparkle / star burst\n    'new': '<path d=\"M12 4v4M12 16v4M4 12h4M16 12h4\"/><path d=\"M12 9.5a2.5 2.5 0 0 0 2.5 2.5A2.5 2.5 0 0 0 12 14.5 2.5 2.5 0 0 0 9.5 12 2.5 2.5 0 0 0 12 9.5Z\"/>',\n    // Prints / art — framed picture\n    'print': '<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\"/><path d=\"M4 15l4-4 3 3 4-5 5 6\"/><circle cx=\"9\" cy=\"9\" r=\"1.2\"/>',\n    // Home & atmosphere — house\n    'home': '<path d=\"M4 11.5 12 5l8 6.5\"/><path d=\"M6 10.5V19h12v-8.5\"/><path d=\"M10 19v-4h4v4\"/>',\n    // Fashion & accessories — handbag\n    'fashion': '<path d=\"M6 9h12l-1 10H7L6 9Z\"/><path d=\"M9 9V7.5a3 3 0 0 1 6 0V9\"/>',\n    // Paper products — document with lines\n    'paper': '<path d=\"M7 3h7l4 4v14H7Z\"/><path d=\"M14 3v4h4\"/><path d=\"M9.5 12h5M9.5 15h5\"/>',\n    // Kids — teddy / playful face\n    'kids': '<circle cx=\"12\" cy=\"13\" r=\"6\"/><circle cx=\"7\" cy=\"7.5\" r=\"2\"/><circle cx=\"17\" cy=\"7.5\" r=\"2\"/><path d=\"M10 14a2 2 0 0 0 4 0\"/>',\n    // Gifts — wrapped present\n    'gift': '<rect x=\"4\" y=\"9\" width=\"16\" height=\"11\" rx=\"1.5\"/><path d=\"M4 13h16M12 9v11\"/><path d=\"M12 9c-1.5-3-5-3-5-1 0 1.5 3 1 5 1Zm0 0c1.5-3 5-3 5-1 0 1.5-3 1-5 1Z\"/>',\n    // Designers / people — person\n    'designers': '<circle cx=\"12\" cy=\"8.5\" r=\"3.5\"/><path d=\"M5.5 19a6.5 6.5 0 0 1 13 0\"/>',\n    // Gift card — card\n    'giftcard': '<rect x=\"3.5\" y=\"6\" width=\"17\" height=\"12\" rx=\"2\"/><path d=\"M3.5 10h17M7 14h4\"/>'\n  };\n\n  function iconFor(label) {\n    var t = (label || '').toLowerCase();\n    var key = 'default';\n    if (t.indexOf('חדש') !== -1 || t.indexOf('new') !== -1) key = 'new';\n    else if (t.indexOf('הדפס') !== -1 || t.indexOf('פוסטר') !== -1 || t.indexOf('print') !== -1) key = 'print';\n    else if (t.indexOf('בית') !== -1 || t.indexOf('אווירה') !== -1) key = 'home';\n    else if (t.indexOf('אופנה') !== -1 || t.indexOf('אקססור') !== -1) key = 'fashion';\n    else if (t.indexOf('נייר') !== -1 || t.indexOf('משרד') !== -1) key = 'paper';\n    else if (t.indexOf('ילד') !== -1) key = 'kids';\n    else if (t.indexOf('כרטיס מתנה') !== -1 || t.indexOf('gift card') !== -1) key = 'giftcard';\n    else if (t.indexOf('מתנ') !== -1 || t.indexOf('gift') !== -1) key = 'gift';\n    else if (t.indexOf('מעצב') !== -1 || t.indexOf('designer') !== -1) key = 'designers';\n\n    var inner = LEAD_ICONS[key];\n    if (!inner) {\n      // Generic soft dot fallback so every main item still shows a glyph.\n      inner = '<circle cx=\"12\" cy=\"12\" r=\"7\"/>';\n    }\n    return svgWrap(inner);\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Drawer construction                                                 */\n  /* ------------------------------------------------------------------ */\n  function Drawer(tree, socialEl) {\n    this.tree = tree;\n    this.socialEl = socialEl;\n    this.panelStack = []; // stack of { title, panel }\n    this.isOpen = false;\n    this.build();\n  }\n\n  Drawer.prototype.build = function () {\n    var self = this;\n\n    // Overlay\n    this.overlay = document.createElement('div');\n    this.overlay.className = NS + '__overlay';\n    this.overlay.addEventListener('click', function () { self.close(); });\n\n    // Drawer shell\n    this.el = document.createElement('div');\n    this.el.className = NS + '__drawer';\n    this.el.setAttribute('role', 'dialog');\n    this.el.setAttribute('aria-modal', 'true');\n    this.el.setAttribute('aria-label', 'תפריט ראשי');\n    this.el.id = NS + '-drawer';\n\n    // Top bar\n    var topbar = document.createElement('div');\n    topbar.className = NS + '__topbar';\n\n    this.backBtn = document.createElement('button');\n    this.backBtn.type = 'button';\n    this.backBtn.className = NS + '__iconbtn ' + NS + '__back';\n    this.backBtn.setAttribute('aria-label', 'חזרה');\n    this.backBtn.innerHTML = chevronBack();\n    this.backBtn.addEventListener('click', function () { self.pop(); });\n\n    this.titleEl = document.createElement('div');\n    this.titleEl.className = NS + '__title';\n\n    // Site logo (shown at the root level, in place of the old \"תפריט\" text).\n    // Cloned from the live header at runtime so the image URL stays proxy-safe.\n    this.logoEl = document.createElement('span');\n    this.logoEl.className = NS + '__logo';\n    try {\n      var srcLogo = document.querySelector('.header__logo-image') ||\n        document.querySelector('.header__heading-logo') ||\n        document.querySelector('[class*=\"header__logo\"] img');\n      if (srcLogo) {\n        var logoImg = srcLogo.cloneNode(true);\n        logoImg.removeAttribute('id');\n        logoImg.className = '';\n        logoImg.setAttribute('alt', (srcLogo.getAttribute('alt') || 'לוגו'));\n        logoImg.setAttribute('loading', 'eager');\n        this.logoEl.appendChild(logoImg);\n      }\n    } catch (e) {}\n\n    // Category name — only visible after drilling into a sub-panel.\n    this.titleTextEl = document.createElement('span');\n    this.titleTextEl.className = NS + '__title-text';\n    this.titleTextEl.textContent = 'תפריט';\n\n    this.titleEl.appendChild(this.logoEl);\n    this.titleEl.appendChild(this.titleTextEl);\n\n    this.closeBtn = document.createElement('button');\n    this.closeBtn.type = 'button';\n    this.closeBtn.className = NS + '__iconbtn';\n    this.closeBtn.setAttribute('aria-label', 'סגירה');\n    this.closeBtn.innerHTML = closeIcon();\n    this.closeBtn.addEventListener('click', function () { self.close(); });\n\n    topbar.appendChild(this.backBtn);\n    topbar.appendChild(this.titleEl);\n    topbar.appendChild(this.closeBtn);\n\n    // Scroll region + panel slider\n    this.scroll = document.createElement('div');\n    this.scroll.className = NS + '__scroll';\n    this.panels = document.createElement('div');\n    this.panels.className = NS + '__panels';\n    this.scroll.appendChild(this.panels);\n\n    // Root panel (top-level items) — only these carry a category glyph.\n    this.pushPanel({ label: 'תפריט', children: this.tree }, true);\n\n    // \"מומלצים עבורך\" carousel — appended under the last menu item, inside the\n    // root panel so it belongs to the top level and scrolls with it vertically.\n    try {\n      var reco = buildReco();\n      if (reco && this.panelStack[0] && this.panelStack[0].panel) {\n        this.panelStack[0].panel.appendChild(reco);\n      }\n    } catch (e) {}\n\n    this.el.appendChild(topbar);\n    this.el.appendChild(this.scroll);\n\n    // Footer / social\n    if (this.socialEl) {\n      var footer = document.createElement('div');\n      footer.className = NS + '__footer';\n      footer.appendChild(this.socialEl);\n      this.el.appendChild(footer);\n    }\n\n    document.body.appendChild(this.overlay);\n    document.body.appendChild(this.el);\n  };\n\n  // Build a panel (a full-height column) for a node's children.\n  Drawer.prototype.pushPanel = function (node, isTopLevel) {\n    var self = this;\n    var panel = document.createElement('div');\n    panel.className = NS + '__panel';\n\n    var list = document.createElement('ul');\n    list.className = NS + '__list';\n\n    // Only the root (top-level) panel shows a \"לכל המוצרים\" view-all link.\n    // Drill-in panels (sub-categories) do not repeat a view-all row.\n    if (isTopLevel && node.url && node.url !== '#') {\n      var liAll = document.createElement('li');\n      var aAll = document.createElement('a');\n      aAll.className = NS + '__row';\n      aAll.href = node.url;\n      var sAll = document.createElement('span');\n      sAll.className = NS + '__row-label';\n      sAll.textContent = 'לכל המוצרים';\n      aAll.appendChild(sAll);\n      aAll.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url });\n      });\n      liAll.appendChild(aAll);\n      list.appendChild(liAll);\n    }\n\n    var children = node.children || [];\n    for (var i = 0; i < children.length; i++) {\n      var child = children[i];\n      // Skip a child that merely repeats the parent category title.\n      if (child && (!child.children || !child.children.length) && child.label === node.label) {\n        continue;\n      }\n      list.appendChild(self.buildRow(child, isTopLevel === true));\n    }\n    panel.appendChild(list);\n    this.panels.appendChild(panel);\n    this.panelStack.push({ title: node.label || 'תפריט', panel: panel });\n\n    this.syncSlider();\n  };\n\n  // Build a single row. Categories whose children ALSO have children get a\n  // slide-in drill panel; one-level categories use an in-place accordion.\n  Drawer.prototype.buildRow = function (node, isTopLevel) {\n    var self = this;\n    var hasChildren = node.children && node.children.length > 0;\n\n    // Prepend a soft category glyph, but only on main (top-level) items.\n    function addLeadIcon(rowEl) {\n      if (!isTopLevel) return;\n      try {\n        var holder = document.createElement('span');\n        holder.innerHTML = iconFor(node.label);\n        if (holder.firstChild) rowEl.insertBefore(holder.firstChild, rowEl.firstChild);\n      } catch (e) {}\n    }\n\n    if (!hasChildren) {\n      var liLeaf = document.createElement('li');\n      var a = document.createElement('a');\n      a.className = NS + '__row';\n      a.href = node.url || '#';\n      var labelLeaf = document.createElement('span');\n      labelLeaf.className = NS + '__row-label';\n      labelLeaf.textContent = node.label;\n      a.appendChild(labelLeaf);\n      addLeadIcon(a);\n      a.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url || '' });\n      });\n      liLeaf.appendChild(a);\n      return liLeaf;\n    }\n\n    var deep = false;\n    for (var i = 0; i < node.children.length; i++) {\n      if (node.children[i].children && node.children[i].children.length) { deep = true; break; }\n    }\n\n    if (deep) {\n      var liDrill = document.createElement('li');\n      var btn = document.createElement('button');\n      btn.type = 'button';\n      btn.className = NS + '__row';\n      btn.setAttribute('aria-haspopup', 'true');\n      var labelD = document.createElement('span');\n      labelD.className = NS + '__row-label';\n      labelD.textContent = node.label;\n      btn.appendChild(labelD);\n      addLeadIcon(btn);\n      var chevWrap = document.createElement('span');\n      chevWrap.innerHTML = chevronForward();\n      btn.appendChild(chevWrap.firstChild);\n      btn.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_drilldown', label: node.label });\n        self.drillInto(node);\n      });\n      liDrill.appendChild(btn);\n      return liDrill;\n    }\n\n    // One level deep -> accordion in place.\n    var liAcc = document.createElement('li');\n    liAcc.className = NS + '__acc';\n\n    var accBtn = document.createElement('button');\n    accBtn.type = 'button';\n    accBtn.className = NS + '__row';\n    accBtn.setAttribute('aria-expanded', 'false');\n    var labelA = document.createElement('span');\n    labelA.className = NS + '__row-label';\n    labelA.textContent = node.label;\n    accBtn.appendChild(labelA);\n    addLeadIcon(accBtn);\n    var plus = document.createElement('span');\n    plus.className = NS + '__acc-icon';\n    accBtn.appendChild(plus);\n\n    var sub = document.createElement('ul');\n    sub.className = NS + '__sub';\n\n    // \"View all\" row using the category's own url, when available. Only shown\n    // for top-level categories; nested sub-categories do not get a view-all row.\n    if (isTopLevel && node.url && node.url !== '#') {\n      var liAll = document.createElement('li');\n      var aAll = document.createElement('a');\n      aAll.className = NS + '__row';\n      aAll.href = node.url;\n      var sAll = document.createElement('span');\n      sAll.className = NS + '__row-label';\n      sAll.textContent = 'לכל המוצרים';\n      aAll.appendChild(sAll);\n      aAll.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url });\n      });\n      liAll.appendChild(aAll);\n      sub.appendChild(liAll);\n    }\n\n    for (var c = 0; c < node.children.length; c++) {\n      var child = node.children[c];\n      // Skip a child that merely repeats the parent category (same label),\n      // since the \"לכל ...\" row above already links to that landing page.\n      if (child && (!child.children || !child.children.length) && child.label === node.label) {\n        continue;\n      }\n      sub.appendChild(self.buildRow(child));\n    }\n\n    accBtn.addEventListener('click', function () {\n      var open = liAcc.classList.toggle('is-open');\n      accBtn.setAttribute('aria-expanded', open ? 'true' : 'false');\n      if (open) track('influenced-revenue', { interaction: 'mobile_nav_accordion_open', label: node.label });\n    });\n\n    liAcc.appendChild(accBtn);\n    liAcc.appendChild(sub);\n    return liAcc;\n  };\n\n  Drawer.prototype.drillInto = function (node) {\n    this.pushPanel(node);\n    this.updateChrome();\n    var last = this.panelStack[this.panelStack.length - 1].panel;\n    last.scrollTop = 0;\n  };\n\n  Drawer.prototype.pop = function () {\n    if (this.panelStack.length <= 1) return;\n    var self = this;\n    var removed = this.panelStack.pop();\n    this.syncSlider();\n    this.updateChrome();\n    setTimeout(function () {\n      if (removed.panel && removed.panel.parentNode) removed.panel.parentNode.removeChild(removed.panel);\n      self.syncSlider();\n    }, 320);\n  };\n\n  Drawer.prototype.syncSlider = function () {\n    var idx = this.panelStack.length - 1;\n    // RTL: deeper panels append to the right; translate positively to reveal them.\n    this.panels.style.transform = 'translateX(' + (idx * 100) + '%)';\n  };\n\n  Drawer.prototype.updateChrome = function () {\n    var atRoot = this.panelStack.length <= 1;\n    this.el.classList.toggle('show-back', !atRoot);\n    var current = this.panelStack[this.panelStack.length - 1];\n    // At root the logo is shown (via CSS); when drilled we display the category name.\n    this.titleTextEl.textContent = atRoot ? 'תפריט' : (current.title || 'תפריט');\n  };\n\n  // Reset to the root panel (clean state on each open).\n  Drawer.prototype.reset = function () {\n    while (this.panelStack.length > 1) {\n      var removed = this.panelStack.pop();\n      if (removed.panel && removed.panel.parentNode) removed.panel.parentNode.removeChild(removed.panel);\n    }\n    var openAcc = this.el.querySelectorAll('.' + NS + '__acc.is-open');\n    for (var i = 0; i < openAcc.length; i++) {\n      openAcc[i].classList.remove('is-open');\n      var b = openAcc[i].querySelector('.' + NS + '__row');\n      if (b) b.setAttribute('aria-expanded', 'false');\n    }\n    if (this.panelStack[0] && this.panelStack[0].panel) this.panelStack[0].panel.scrollTop = 0;\n    this.syncSlider();\n    this.updateChrome();\n  };\n\n  Drawer.prototype.open = function () {\n    if (this.isOpen) return; // guard against double-fire (touchend + click)\n    this.reset();\n    this.overlay.classList.add('is-open');\n    void this.el.offsetWidth; // force reflow so the slide transition plays\n    this.el.classList.add('is-open');\n    document.documentElement.style.overflow = 'hidden';\n    document.body.style.overflow = 'hidden';\n    this.isOpen = true;\n    track('influenced-revenue', { interaction: 'mobile_nav_opened' });\n  };\n\n  Drawer.prototype.close = function () {\n    this.overlay.classList.remove('is-open');\n    this.el.classList.remove('is-open');\n    document.documentElement.style.overflow = '';\n    document.body.style.overflow = '';\n    if (this.isOpen) track('influenced-revenue', { interaction: 'mobile_nav_closed' });\n    this.isOpen = false;\n  };\n\n  /* ------------------------------------------------------------------ */\n  /* Trigger wiring                                                      */\n  /* ------------------------------------------------------------------ */\n  var TRIGGER_SELECTOR =\n    '[aria-controls=\"header-sidebar-menu\"], button.tap-area.lg\\\\:hidden, [aria-label=\"תפריט\"]';\n\n  // Determine whether a clicked element is (or sits inside) the hamburger trigger.\n  function matchTrigger(target) {\n    if (!target || !target.closest) return null;\n    return target.closest(TRIGGER_SELECTOR);\n  }\n\n  function wireTrigger(drawer) {\n    if (window[NS + '_triggerWired']) return true;\n    window[NS + '_triggerWired'] = true;\n\n    // Delegated, capture-phase handler on the document. This survives header\n    // re-renders and fires before the theme's own custom-element handler, so\n    // our drawer always opens even if the native handler no longer exists.\n    var handler = function (e) {\n      var btn = matchTrigger(e.target);\n      if (!btn) return;\n      // Ignore our own close/back buttons which live inside the drawer.\n      if (btn.closest && btn.closest('.' + NS + '__drawer')) return;\n      e.preventDefault();\n      e.stopPropagation();\n      if (typeof e.stopImmediatePropagation === 'function') e.stopImmediatePropagation();\n      drawer.open();\n    };\n\n    document.addEventListener('click', handler, true);\n    // Some themes open menus on pointer/touch start; guard those too.\n    document.addEventListener('touchend', handler, true);\n    return true;\n  }\n\n  // Remove any previously-injected variant drawer so menus don't stack.\n  function removeLegacyDrawers() {\n    try {\n      var legacy = document.querySelectorAll('[data-variant-drawer=\"true\"], .mobile-navigation-drawer');\n      for (var i = 0; i < legacy.length; i++) {\n        if (legacy[i].id !== NS + '-drawer') {\n          legacy[i].parentNode && legacy[i].parentNode.removeChild(legacy[i]);\n        }\n      }\n    } catch (e) {\n      /* ignore */\n    }\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Cart-drawer coordination                                            */\n  /* ------------------------------------------------------------------ */\n  // When the theme's cart drawer opens, close our nav menu so the two panels\n  // never overlap. The cart drawer is a custom element that toggles an `open`\n  // attribute and also emits a bubbling `show` event when it appears.\n  function isCartDrawer(node) {\n    if (!node || node.nodeType !== 1) return false;\n    if (node.id === 'cart-drawer') return true;\n    var tag = (node.tagName || '').toLowerCase();\n    if (tag === 'cart-drawer' || tag === 'cart-notification') return true;\n    var cls = node.classList;\n    return !!(cls && (cls.contains('cart-drawer') || cls.contains('cart-notification')));\n  }\n\n  function watchCartDrawer(drawer) {\n    if (window[NS + '_cartWatch']) return;\n    window[NS + '_cartWatch'] = true;\n\n    var closeIfOpen = function () {\n      try { if (drawer && drawer.isOpen) drawer.close(); } catch (e) {}\n    };\n\n    // 1) Bubbling \"show\" event fired by the theme's drawer/dialog elements.\n    try {\n      document.addEventListener('show', function (e) {\n        if (isCartDrawer(e.target)) closeIfOpen();\n      }, true);\n    } catch (e) {}\n\n    // 2) Attribute observer — the cart drawer gains an `open` attribute when\n    //    it is displayed. This also covers cases where the element is present\n    //    from the start and simply toggled.\n    try {\n      var mo = new MutationObserver(function (mutations) {\n        for (var i = 0; i < mutations.length; i++) {\n          var m = mutations[i];\n          if (m.type === 'attributes' && m.attributeName === 'open') {\n            var t = m.target;\n            if (isCartDrawer(t) && t.hasAttribute('open')) { closeIfOpen(); return; }\n          } else if (m.type === 'childList' && m.addedNodes) {\n            for (var j = 0; j < m.addedNodes.length; j++) {\n              var n = m.addedNodes[j];\n              if (isCartDrawer(n) && n.hasAttribute && n.hasAttribute('open')) { closeIfOpen(); return; }\n            }\n          }\n        }\n      });\n      mo.observe(document.documentElement, {\n        subtree: true,\n        childList: true,\n        attributes: true,\n        attributeFilter: ['open']\n      });\n    } catch (e) {}\n\n    // 3) Safety net — clicking the cart trigger (opens the cart drawer) also\n    //    closes the menu, in case the events above are missed.\n    try {\n      document.addEventListener('click', function (e) {\n        var t = e.target;\n        if (t && t.closest && t.closest('[href*=\"/cart\"], [aria-controls=\"cart-drawer\"], [data-cart-drawer-toggle]')) {\n          closeIfOpen();\n        }\n      }, true);\n    } catch (e) {}\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Init                                                                */\n  /* ------------------------------------------------------------------ */\n  function init() {\n    try {\n      if (document.getElementById(NS + '-drawer')) return true; // idempotent\n\n      var nav = findDesktopNav();\n      if (!nav) return false; // desktop nav not present yet\n\n      var tree = buildTree(nav);\n      if (!tree.length) return false; // nothing parsed — keep native menu\n\n      removeLegacyDrawers();\n      injectStyles();\n\n      var social = buildSocialFooter();\n      var drawer = new Drawer(tree, social);\n\n      var wired = wireTrigger(drawer);\n      watchCartDrawer(drawer);\n\n      document.addEventListener('keydown', function (e) {\n        if (e.key === 'Escape' || e.keyCode === 27) drawer.close();\n      });\n\n      window[NS + '_drawer'] = drawer;\n      return wired;\n    } catch (err) {\n      // Silent failure — protect the shopping funnel, keep native menu intact.\n      return false;\n    }\n  }\n\n  function boot() {\n    if (init()) return;\n    var attempts = 0;\n    var timer = setInterval(function () {\n      attempts++;\n      if (init() || attempts >= 20) clearInterval(timer);\n    }, 300);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', boot);\n  } else {\n    boot();\n  }\n})();","/**\n * EXPDB7A2236 — Variation 1\n * Mobile Navigation Drawer Overhaul (Asufa Design)\n *\n * Rebuilds the mobile navigation drawer so it mirrors the live DESKTOP navigation\n * bar (exact categories, nesting and links), with a thumb-friendly slide-in\n * drill-down UX, scroll isolation, a dynamically-discovered social footer, and\n * styling inherited from the theme's own design tokens.\n *\n * Strategy:\n *  - Read the desktop nav from the live DOM (proxy-safe: we clone real hrefs,\n *    never hardcode paths).\n *  - Build a fresh drawer and take over the hamburger trigger.\n *  - Fail silently and fall back to whatever native/existing menu exists if\n *    anything goes wrong, protecting the shopping funnel.\n */\n(function () {\n  'use strict';\n\n  var EXPERIMENT_ID = 'EXPDB7A2236';\n  var VARIATION_ID = '2';\n  var NS = 'vaf-mnav'; // namespace for ids/classes\n\n  // Curated \"מומלצים עבורך\" (Recommended for you) products, mirroring the\n  // recommendation carousel from the current nav experience.\n  var RECO_PRODUCTS = [\n    { handle: 'avocado', name: 'אבוקדו | כלי הנבטה', price: '120 ₪', was: '140 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/26_Aya_Wind_copy_400x400.jpg?v=1749737000' },\n    { handle: '%D7%9E%D7%91%D7%97%D7%A0%D7%AA-%D7%94%D7%A0%D7%91%D7%98%D7%94-%D7%A8%D7%95%D7%98%D7%90', name: 'רוטא - מבחנת השרשה לייחורים', price: '49 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/DSCF7917-2_400x400.jpg?v=1743929064' },\n    { handle: '%D7%9E%D7%92%D7%A0%D7%98-%D7%A9%D7%9C%D7%98-%D7%A8%D7%97%D7%95%D7%91-%D7%9E%D7%95%D7%90%D7%A8', name: 'מגנט \"שלט רחוב\" מואר', price: '59 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/grouphertzel_400x400.jpg?v=1651392198' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%A7%D7%A8%D7%9E%D7%91%D7%95', name: '\"מושמוש\" קרמבו', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/moosh_krembo_400x400.jpg?v=1715253861' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%91%D7%95%D7%A8%D7%A7%D7%A1', name: '\"מושמוש\" בורקס', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/burekas_400x400.jpg?v=1639557330' },\n    { handle: '%D7%A4%D7%95%D7%A1%D7%98%D7%A8-%D7%94%D7%96%D7%94%D7%91-%D7%94%D7%99%D7%A8%D7%95%D7%A7-%D7%90%D7%91%D7%95%D7%A7%D7%93%D7%95-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'פוסטר זהב ירוק - מקרא אבוקדו', price: '99 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/01_eec8259c-ae21-4737-a2e6-25fe3f6902ae_400x400.jpg?v=1772102242' },\n    { handle: 'laundry-art-print', name: 'הדפס ערימת כביסה - Laundry Day', price: '129 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/launrdy-000_400x400.webp?v=1752808359' },\n    { handle: '%D7%91%D7%95%D7%A2%D7%95%D7%AA-%D7%A1%D7%91%D7%95%D7%9F-%D7%94%D7%93%D7%A4%D7%A1-%D7%93%D7%99%D7%92%D7%99%D7%98%D7%9C%D7%99-%D7%98%D7%9C%D7%99-%D7%99%D7%90%D7%9C%D7%95%D7%A0%D7%A6%D7%A7%D7%99', name: 'בועת סבון | הדפס דיגיטלי', price: '129 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/7a27a72608e3cbc8602e7472f57d45b0_400x400.jpg?v=1772978180' },\n    { handle: 'at-the-beach', name: 'הדפס דיגיטלי, מיכוש | בחוף הים', price: '69 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/sea_life_print__micush_400x400.jpg?v=1624478477' },\n    { handle: '%D7%9E%D7%97%D7%96%D7%99%D7%A7-%D7%9E%D7%A4%D7%AA%D7%97%D7%95%D7%AA-%D7%9E%D7%95%D7%A9%D7%9E%D7%95%D7%A9-%D7%A2%D7%95%D7%92%D7%AA-%D7%99%D7%95%D7%9E%D7%95%D7%9C%D7%93%D7%AA-%D7%9B%D7%9C%D7%91%D7%95-%D7%A2%D7%99%D7%A6%D7%95%D7%91%D7%99%D7%9D', name: '\"מושמוש\" עוגת יומולדת', price: '45 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/3a6a373b7ad225f5c8486a1401bc3081_400x400.jpg?v=1682320562' },\n    { handle: '%D7%92%D7%9C%D7%95%D7%99%D7%95%D7%AA-%D7%9C%D7%99%D7%A7%D7%95%D7%98-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'גלויה ליקוטים מקומיים | תוצרת', price: '20 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Frame02_400x400.jpg?v=1715757734' },\n    { handle: 'copy-of-%D7%94%D7%93%D7%A4%D7%A1-%D7%AA%D7%A4%D7%95%D7%96%D7%99%D7%9D-%D7%A1%D7%93%D7%A8%D7%AA-%D7%A4%D7%9C%D7%95%D7%A8%D7%94-%D7%91%D7%99%D7%A9%D7%A8%D7%90%D7%9C-%D7%A1%D7%99%D7%98%D7%99-%D7%A1%D7%98%D7%95%D7%A8%D7%99%D7%96', name: 'הדפס תפוזים', price: '79 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/Oranges_in_net-bag_400x400.jpg?v=1658397056' },\n    { handle: '%D7%9E%D7%90%D7%A8%D7%96-%D7%9C%D7%99%D7%A7%D7%95%D7%98%D7%99%D7%9D-%D7%A4%D7%95%D7%A1%D7%98%D7%A8%D7%99%D7%9D-%D7%AA%D7%95%D7%A6%D7%A8%D7%AA', name: 'מארז ליקוטים - פוסטרים | תוצרת', price: '180 ₪', was: '240 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Bundle_copy_400x400.jpg?v=1718538612' },\n    { handle: '%D7%A2%D7%A8%D7%9B%D7%94-%D7%9C%D7%96%D7%95%D7%92%D7%95%D7%AA-%D7%95%D7%93%D7%99%D7%99%D7%98%D7%99%D7%9D-foreplay-%D7%A0%D7%95%D7%A2%D7%94-%D7%94%D7%93%D7%A8%D7%99-ask-q', name: 'ForePlay - ערכה לזוגות ודייטים - Ask Q', price: '179 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/files/Untitleddesign_1_400x400.png?v=1773131955' },\n    { handle: '%D7%90%D7%91%D7%95%D7%A7%D7%93%D7%95-%D7%9E%D7%95%D7%A0%D7%91%D7%98-%D7%9E%D7%97%D7%95%D7%98-%D7%91%D7%A8%D7%96%D7%9C-one-wire', name: 'אבוקדו מונבט מחוט ברזל | שיר סניור', price: '160 ₪', img: 'https://cdn.shopify.com/s/files/1/0575/2425/6935/products/103083486_2799806203575553_9135428060668888862_n_400x400.jpg?v=1639557016' }\n  ];\n\n\n  /* ------------------------------------------------------------------ */\n  /* Tracking helper                                                     */\n  /* ------------------------------------------------------------------ */\n  function track(eventName, extra) {\n    try {\n      if (typeof Variant !== 'undefined' && Variant.publishCustomEvent) {\n        var payload = { experiment_id: EXPERIMENT_ID, variation_id: VARIATION_ID };\n        if (extra) {\n          for (var k in extra) {\n            if (Object.prototype.hasOwnProperty.call(extra, k)) payload[k] = extra[k];\n          }\n        }\n        Variant.publishCustomEvent(eventName, payload);\n      }\n    } catch (e) {\n      /* never let tracking break navigation */\n    }\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Utilities                                                           */\n  /* ------------------------------------------------------------------ */\n  function textOf(el) {\n    return (el ? el.textContent : '').replace(/\\s+/g, ' ').trim();\n  }\n\n  // Find the desktop navigation container on the live page.\n  function findDesktopNav() {\n    return (\n      document.querySelector('.header__link-list') ||\n      document.querySelector('nav.header__link-list') ||\n      document.querySelector('[role=\"navigation\"].header__link-list')\n    );\n  }\n\n  // Find the top-level <li> items of the desktop nav.\n  function topLevelItems(nav) {\n    var directList = nav.querySelector(':scope > ul');\n    if (directList) return Array.prototype.slice.call(directList.children);\n    // Fallback: any list under the nav\n    var anyList = nav.querySelector('ul');\n    return anyList ? Array.prototype.slice.call(anyList.children) : [];\n  }\n\n  /**\n   * Recursively parse a nav <li> element into a plain tree node.\n   * Handles two shapes used by the theme:\n   *   - <li><a href>Label</a></li>                              (leaf link)\n   *   - <li><details><summary data-url>Label</summary>          (group)\n   *           <div class=\"dropdown-menu|mega-menu\"> ...lists... </div>\n   *       </details></li>\n   * Mega-menu columns (ul.mega-menu__nav) are flattened into direct children.\n   */\n  function parseItem(li) {\n    if (!li || li.nodeType !== 1) return null;\n\n    var details = li.querySelector(':scope > details');\n    if (details) {\n      var summary = details.querySelector(':scope > summary');\n      var label = summary ? textOf(summary) : '';\n      var url = summary ? summary.getAttribute('data-url') || '' : '';\n\n      // The panel holding the children (dropdown-menu or mega-menu).\n      var panel = details.querySelector(':scope > .dropdown-menu, :scope > .mega-menu');\n      if (!panel) {\n        // mega-menu is sometimes rendered after an inline <style> tag.\n        var candidates = details.querySelectorAll(':scope > .mega-menu, :scope > .dropdown-menu');\n        panel = candidates.length ? candidates[0] : null;\n      }\n\n      var children = [];\n      if (panel) {\n        // Take only the panel's own top-level lists; nested lists belong to\n        // child <li>s and are picked up by recursion.\n        var lists = panel.querySelectorAll(':scope > ul');\n        if (!lists.length) lists = panel.querySelectorAll(':scope > * > ul');\n        for (var l = 0; l < lists.length; l++) {\n          var kids = Array.prototype.slice.call(lists[l].children);\n          for (var c = 0; c < kids.length; c++) {\n            var childNode = parseItem(kids[c]);\n            if (childNode) children.push(childNode);\n          }\n        }\n      }\n\n      return { label: label, url: url, children: children };\n    }\n\n    // Leaf link.\n    var a = li.querySelector(':scope > a, a');\n    if (a) {\n      return { label: textOf(a) || textOf(li), url: a.getAttribute('href') || '', children: [] };\n    }\n    return null;\n  }\n\n  function buildTree(nav) {\n    var items = topLevelItems(nav);\n    var tree = [];\n    for (var i = 0; i < items.length; i++) {\n      var node = parseItem(items[i]);\n      if (node && node.label) tree.push(node);\n    }\n    return tree;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Social media discovery (clone from live footer)                     */\n  /* ------------------------------------------------------------------ */\n  function buildSocialFooter() {\n    // The theme renders social icons in the footer as ul.social-media.\n    // We only render channels that actually exist on the page (dynamic discovery).\n    var source = document.querySelector('.footer ul.social-media, footer ul.social-media, ul.social-media');\n    if (!source) return null;\n\n    var anchors = source.querySelectorAll('a[href]');\n    if (!anchors.length) return null;\n\n    var wrap = document.createElement('div');\n    wrap.className = NS + '__social';\n\n    var ul = document.createElement('ul');\n    ul.className = NS + '__social-list';\n    ul.setAttribute('role', 'list');\n\n    var count = 0;\n    for (var i = 0; i < anchors.length; i++) {\n      var src = anchors[i];\n      var href = src.getAttribute('href');\n      if (!href || href === '#') continue;\n\n      // Override specific channels with the merchant's canonical profile URLs.\n      if (/instagram/i.test(href)) {\n        href = 'https://www.instagram.com/asufadesign/?hl=he';\n      } else if (/facebook/i.test(href)) {\n        href = 'https://www.facebook.com/asufadesign/';\n      }\n\n      var li = document.createElement('li');\n      var a = document.createElement('a');\n      a.href = href;\n      a.target = '_blank';\n      a.rel = 'noopener';\n      a.className = NS + '__social-link';\n      var label = src.getAttribute('aria-label');\n      if (label) a.setAttribute('aria-label', label);\n\n      // Clone the theme's own SVG icon so it matches exactly.\n      var svg = src.querySelector('svg');\n      if (svg) {\n        a.appendChild(svg.cloneNode(true));\n      } else {\n        a.textContent = label || 'Link';\n      }\n\n      (function (destination) {\n        a.addEventListener('click', function () {\n          track('influenced-revenue', { interaction: 'mobile_nav_social_click', destination: destination });\n        });\n      })(href);\n\n      li.appendChild(a);\n      ul.appendChild(li);\n      count++;\n    }\n\n    if (!count) return null;\n    wrap.appendChild(ul);\n    return wrap;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Recommended-for-you carousel                                        */\n  /* ------------------------------------------------------------------ */\n  var cartIconSvg =\n    '<svg fill=\"none\" focusable=\"false\" height=\"14\" role=\"presentation\" stroke-width=\"2\" viewBox=\"0 0 16 14\" width=\"16\">' +\n    '<path d=\"M7.75 4.75H2.283a1 1 0 0 0-.97 1.244l1.574 6.25a1 1 0 0 0 .97.756h7.787a1 1 0 0 0 .97-.756l1.573-6.25a1 1 0 0 0-.97-1.244H7.75Zm0 0V1\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n\n  // Add a product to the cart via Shopify's AJAX API. Resolves the first\n  // available variant from the product's JSON, then posts to /cart/add.\n  function quickAdd(handle, btn) {\n    if (btn.getAttribute('data-busy') === '1') return;\n    btn.setAttribute('data-busy', '1');\n    var original = btn.innerHTML;\n    btn.innerHTML = '<span class=\"' + NS + '__reco-btn-spin\"></span>';\n\n    var restore = function () {\n      btn.innerHTML = original;\n      btn.removeAttribute('data-busy');\n    };\n\n    fetch('/products/' + handle + '.js', { headers: { Accept: 'application/json' } })\n      .then(function (r) { return r.json(); })\n      .then(function (product) {\n        var variant = null;\n        for (var i = 0; i < product.variants.length; i++) {\n          if (product.variants[i].available) { variant = product.variants[i]; break; }\n        }\n        if (!variant) variant = product.variants[0];\n        return fetch('/cart/add.js', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json', Accept: 'application/json' },\n          body: JSON.stringify({ id: variant.id, quantity: 1 })\n        });\n      })\n      .then(function (r) { return r.json(); })\n      .then(function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_reco_add', product_handle: handle });\n        // Nudge the theme to refresh the cart UI if it listens for these.\n        try {\n          document.dispatchEvent(new CustomEvent('cart:refresh', { bubbles: true }));\n          document.dispatchEvent(new CustomEvent('cart:updated', { bubbles: true }));\n        } catch (e) {}\n        // Quick success feedback.\n        btn.innerHTML = '<svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\"><path d=\"M5 13l4 4L19 7\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n        setTimeout(restore, 1200);\n      })\n      .catch(function () { restore(); });\n  }\n\n  function buildReco() {\n    if (!RECO_PRODUCTS || !RECO_PRODUCTS.length) return null;\n\n    var section = document.createElement('div');\n    section.className = NS + '__reco';\n\n    var title = document.createElement('div');\n    title.className = NS + '__reco-title';\n    title.textContent = 'מומלצים עבורך';\n    section.appendChild(title);\n\n    var scroll = document.createElement('div');\n    scroll.className = NS + '__reco-scroll';\n\n    RECO_PRODUCTS.forEach(function (p) {\n      var card = document.createElement('a');\n      card.className = NS + '__reco-card';\n      card.href = '/products/' + p.handle;\n\n      var imgWrap = document.createElement('div');\n      imgWrap.className = NS + '__reco-imgwrap';\n\n      var img = document.createElement('img');\n      img.className = NS + '__reco-img';\n      img.src = p.img;\n      img.alt = p.name;\n      img.loading = 'lazy';\n      imgWrap.appendChild(img);\n\n      var atc = document.createElement('button');\n      atc.type = 'button';\n      atc.className = NS + '__reco-atc';\n      atc.setAttribute('aria-label', 'הוספה מהירה');\n      atc.innerHTML = cartIconSvg;\n      atc.addEventListener('click', function (e) {\n        e.preventDefault();\n        e.stopPropagation();\n        quickAdd(p.handle, atc);\n      });\n      imgWrap.appendChild(atc);\n      card.appendChild(imgWrap);\n\n      var info = document.createElement('div');\n      info.className = NS + '__reco-info';\n\n      var name = document.createElement('span');\n      name.className = NS + '__reco-name';\n      name.textContent = p.name;\n      info.appendChild(name);\n\n      var price = document.createElement('div');\n      price.className = NS + '__reco-price';\n      if (p.was) {\n        var sale = document.createElement('span');\n        sale.className = NS + '__reco-sale';\n        sale.textContent = p.price;\n        var was = document.createElement('span');\n        was.className = NS + '__reco-was';\n        was.textContent = p.was;\n        price.appendChild(sale);\n        price.appendChild(was);\n      } else {\n        price.textContent = p.price;\n      }\n      info.appendChild(price);\n      card.appendChild(info);\n\n      // Product click attribution (redirect-safe).\n      card.addEventListener('click', function (e) {\n        e.preventDefault();\n        var dest = card.href;\n        var safety = setTimeout(function () { window.location.href = dest; }, 2000);\n        try {\n          track('product-clicked-attribution', { product_id: p.handle });\n        } catch (err) {}\n        clearTimeout(safety);\n        window.location.href = dest;\n      });\n\n      scroll.appendChild(card);\n    });\n\n    section.appendChild(scroll);\n    return section;\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Styles (theme-token driven)                                         */\n  /* ------------------------------------------------------------------ */\n  function injectStyles() {\n    if (document.getElementById(NS + '-styles')) return;\n    var css =\n      /* Overlay */\n      '.' + NS + '__overlay{position:fixed;inset:0;background:rgba(39,39,39,.45);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility 0s linear .3s;z-index:2147483646!important;}' +\n      '.' + NS + '__overlay.is-open{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .3s ease,visibility 0s;}' +\n\n      /* Drawer shell — anchored to the right edge and pushed fully off-screen\n         when closed. visibility:hidden + pointer-events:none guarantee the\n         closed drawer never captures touches along the viewport edge.\n         z-index is set to the maximum so the menu always sits above every\n         badge, count bubble, chat/widget button or other floating element. */\n      '.' + NS + '__drawer{position:fixed;top:0;right:0;left:auto;height:100%;width:min(88vw,420px);max-width:100%;' +\n        'background:rgb(var(--header-background,255 255 255));color:rgb(var(--header-text,39 39 39));' +\n        'z-index:2147483647!important;display:flex;flex-direction:column;direction:rtl;' +\n        'font-family:var(--text-font-family,inherit);' +\n        'transform:translateX(101%);transition:transform .3s cubic-bezier(.32,.72,0,1),visibility 0s linear .3s;' +\n        'visibility:hidden;pointer-events:none;' +\n        'box-shadow:var(--shadow-md,0 5px 30px rgb(39 39 39 / .1));will-change:transform;}' +\n      '.' + NS + '__drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform .3s cubic-bezier(.32,.72,0,1),visibility 0s;}' +\n\n      /* Sticky top bar */\n      '.' + NS + '__topbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;' +\n        'gap:12px;padding:12px 16px;min-height:56px;background:inherit;' +\n        'border-bottom:1px solid rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__title{font-weight:700;font-size:var(--text-h6,1rem);line-height:1.2;flex:1;text-align:center;' +\n        'white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;}' +\n      '.' + NS + '__logo{display:inline-flex;align-items:center;max-width:150px;}' +\n      '.' + NS + '__logo img{display:block;height:auto;max-height:28px;width:auto;max-width:100%;object-fit:contain;}' +\n      '.' + NS + '__title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}' +\n      /* At root the logo shows; when drilled we swap to the category name. */\n      '.' + NS + '__drawer.show-back .' + NS + '__logo{display:none;}' +\n      '.' + NS + '__drawer:not(.show-back) .' + NS + '__title-text{display:none;}' +\n      '.' + NS + '__iconbtn{appearance:none;background:none;border:none;color:inherit;cursor:pointer;' +\n        'display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;' +\n        'border-radius:var(--rounded-full,9999px);transition:background-color .15s ease;flex:0 0 auto;}' +\n      '.' + NS + '__iconbtn:hover,.' + NS + '__iconbtn:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__back{visibility:hidden;}' +\n      '.' + NS + '__drawer.show-back .' + NS + '__back{visibility:visible;}' +\n\n      /* Scroll region + panel slider */\n      '.' + NS + '__scroll{flex:1;overflow:hidden;position:relative;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}' +\n      '.' + NS + '__panels{display:flex;height:100%;transition:transform .3s cubic-bezier(.32,.72,0,1);will-change:transform;}' +\n      '.' + NS + '__panel{flex:0 0 100%;width:100%;height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 0 24px;}' +\n\n      /* Rows */\n      '.' + NS + '__list{list-style:none;margin:0;padding:0;}' +\n      '.' + NS + '__row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;' +\n        'min-height:48px;padding:12px 20px;color:inherit;text-decoration:none;background:none;border:none;' +\n        'font-family:inherit;font-size:calc(var(--text-lg,1.0625rem) - 2px);line-height:1.35;text-align:start;cursor:pointer;' +\n        'border-bottom:1px solid rgb(var(--border-color,39 39 39 / .08));transition:background-color .15s ease;box-sizing:border-box;}' +\n      '.' + NS + '__row:hover,.' + NS + '__row:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__row-label{flex:1;min-width:0;overflow-wrap:anywhere;word-break:break-word;}' +\n      '.' + NS + '__chevron{flex:0 0 auto;width:20px;height:20px;opacity:.55;transition:transform .2s ease;}' +\n\n      /* Accordion (leaf categories that expand in place) */\n      '.' + NS + '__sub{list-style:none;margin:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s ease;}' +\n      '.' + NS + '__acc.is-open>.' + NS + '__sub{max-height:2000px;}' +\n      '.' + NS + '__acc.is-open>.' + NS + '__row .' + NS + '__acc-icon::after{transform:rotate(90deg);}' +\n      '.' + NS + '__sub .' + NS + '__row{padding-inline-start:36px;font-size:calc(var(--text-lg,1.0625rem) - 3px);}' +\n      '.' + NS + '__acc-icon{flex:0 0 auto;width:20px;height:20px;position:relative;opacity:.6;}' +\n      '.' + NS + '__acc-icon::before,.' + NS + '__acc-icon::after{content:\"\";position:absolute;background:currentColor;transition:transform .2s ease;}' +\n      '.' + NS + '__acc-icon::before{top:9px;inset-inline-start:4px;width:12px;height:2px;}' +\n      '.' + NS + '__acc-icon::after{inset-inline-start:9px;top:4px;width:2px;height:12px;}' +\n\n      /* Footer / social — minimal height: icon height + 4px top/bottom padding */\n      '.' + NS + '__footer{margin-top:auto;padding:4px 20px calc(4px + env(safe-area-inset-bottom,0px));' +\n        'border-top:1px solid rgb(var(--border-color,39 39 39 / .12));background:inherit;}' +\n      '.' + NS + '__social-list{list-style:none;display:flex;flex-wrap:wrap;gap:0 18px;margin:0;padding:0;justify-content:center;align-items:center;}' +\n      '.' + NS + '__social-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:22px;height:22px;' +\n        'border-radius:var(--rounded-full,9999px);color:inherit;transition:background-color .15s ease,transform .15s ease;}' +\n      '.' + NS + '__social-link:hover,.' + NS + '__social-link:active{background:rgb(var(--border-color,39 39 39 / .12));}' +\n      '.' + NS + '__social-link svg{width:22px;height:22px;display:block;}' +\n\n      /* Recommended-for-you carousel (mirrors the current nav experience). */\n      '.' + NS + '__reco{padding:16px 0 20px;border-top:1px solid rgb(var(--border-color,39 39 39 / .12));background:inherit;direction:rtl;}' +\n      '.' + NS + '__reco-title{padding:0 20px 10px;font-size:17px;font-weight:400;color:inherit;text-align:right;line-height:1.4;letter-spacing:.01em;font-family:var(--text-font-family,inherit);}' +\n      '.' + NS + '__reco-scroll{direction:rtl;overflow-x:auto;overflow-y:hidden;display:flex;flex-wrap:nowrap;gap:10px;padding:0 0 8px;padding-inline-start:20px;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;}' +\n      '.' + NS + '__reco-scroll::-webkit-scrollbar{display:none;}' +\n      '.' + NS + '__reco-card{flex:0 0 calc((100vw - 60px) / 3.25);max-width:150px;display:flex;flex-direction:column;text-decoration:none;color:inherit;position:relative;-webkit-tap-highlight-color:transparent;}' +\n      '.' + NS + '__reco-imgwrap{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:rgb(var(--product-card-background,242 242 242));border-radius:var(--rounded-sm,.375rem);}' +\n      '.' + NS + '__reco-img{width:100%;height:100%;object-fit:cover;display:block;}' +\n      '.' + NS + '__reco-atc{position:absolute;bottom:6px;left:6px;width:30px;height:30px;border-radius:50%;background:rgb(var(--button-background-primary,39 39 39));color:rgb(var(--button-text-primary,255 255 255));border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;padding:0;z-index:2;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:transform .15s ease;}' +\n      '.' + NS + '__reco-atc:active{transform:scale(.85);}' +\n      '.' + NS + '__reco-atc svg{width:14px;height:14px;}' +\n      '.' + NS + '__reco-info{padding:6px 2px 0;display:flex;flex-direction:column;gap:2px;text-align:right;}' +\n      '.' + NS + '__reco-name{font-size:12px;font-weight:400;color:inherit;line-height:1.3;overflow-wrap:break-word;font-family:var(--text-font-family,inherit);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}' +\n      '.' + NS + '__reco-price{font-size:12px;font-weight:400;color:inherit;direction:rtl;font-family:var(--text-font-family,inherit);}' +\n      '.' + NS + '__reco-sale{color:rgb(var(--on-sale-text,227 79 79));}' +\n      '.' + NS + '__reco-was{text-decoration:line-through;color:#69727b;margin-inline-start:4px;font-size:11px;}' +\n      '.' + NS + '__reco-btn-spin{width:12px;height:12px;border:1.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:' + NS + '-spin .6s linear infinite;}' +\n      '@keyframes ' + NS + '-spin{to{transform:rotate(360deg);}}' +\n\n      /* Drawer is a mobile pattern only. */\n      '@media (min-width:1150px){.' + NS + '__drawer,.' + NS + '__overlay{display:none!important;}}';\n\n    var style = document.createElement('style');\n    style.id = NS + '-styles';\n    style.textContent = css;\n    document.head.appendChild(style);\n  }\n\n  function chevronBack() {\n    return '<svg class=\"' + NS + '__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">' +\n      '<polyline points=\"9 18 15 12 9 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n  }\n  function chevronForward() {\n    // In RTL, drilling deeper points left.\n    return '<svg class=\"' + NS + '__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">' +\n      '<polyline points=\"15 18 9 12 15 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\n  }\n  function closeIcon() {\n    return '<svg viewBox=\"0 0 24 24\" width=\"22\" height=\"22\" fill=\"none\" aria-hidden=\"true\">' +\n      '<path d=\"M6 6l12 12M18 6L6 18\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>';\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Drawer construction                                                 */\n  /* ------------------------------------------------------------------ */\n  function Drawer(tree, socialEl) {\n    this.tree = tree;\n    this.socialEl = socialEl;\n    this.panelStack = []; // stack of { title, panel }\n    this.isOpen = false;\n    this.build();\n  }\n\n  Drawer.prototype.build = function () {\n    var self = this;\n\n    // Overlay\n    this.overlay = document.createElement('div');\n    this.overlay.className = NS + '__overlay';\n    this.overlay.addEventListener('click', function () { self.close(); });\n\n    // Drawer shell\n    this.el = document.createElement('div');\n    this.el.className = NS + '__drawer';\n    this.el.setAttribute('role', 'dialog');\n    this.el.setAttribute('aria-modal', 'true');\n    this.el.setAttribute('aria-label', 'תפריט ראשי');\n    this.el.id = NS + '-drawer';\n\n    // Top bar\n    var topbar = document.createElement('div');\n    topbar.className = NS + '__topbar';\n\n    this.backBtn = document.createElement('button');\n    this.backBtn.type = 'button';\n    this.backBtn.className = NS + '__iconbtn ' + NS + '__back';\n    this.backBtn.setAttribute('aria-label', 'חזרה');\n    this.backBtn.innerHTML = chevronBack();\n    this.backBtn.addEventListener('click', function () { self.pop(); });\n\n    this.titleEl = document.createElement('div');\n    this.titleEl.className = NS + '__title';\n\n    // Site logo (shown at the root level, in place of the old \"תפריט\" text).\n    // Cloned from the live header at runtime so the image URL stays proxy-safe.\n    this.logoEl = document.createElement('span');\n    this.logoEl.className = NS + '__logo';\n    try {\n      var srcLogo = document.querySelector('.header__logo-image') ||\n        document.querySelector('.header__heading-logo') ||\n        document.querySelector('[class*=\"header__logo\"] img');\n      if (srcLogo) {\n        var logoImg = srcLogo.cloneNode(true);\n        logoImg.removeAttribute('id');\n        logoImg.className = '';\n        logoImg.setAttribute('alt', (srcLogo.getAttribute('alt') || 'לוגו'));\n        logoImg.setAttribute('loading', 'eager');\n        this.logoEl.appendChild(logoImg);\n      }\n    } catch (e) {}\n\n    // Category name — only visible after drilling into a sub-panel.\n    this.titleTextEl = document.createElement('span');\n    this.titleTextEl.className = NS + '__title-text';\n    this.titleTextEl.textContent = 'תפריט';\n\n    this.titleEl.appendChild(this.logoEl);\n    this.titleEl.appendChild(this.titleTextEl);\n\n    this.closeBtn = document.createElement('button');\n    this.closeBtn.type = 'button';\n    this.closeBtn.className = NS + '__iconbtn';\n    this.closeBtn.setAttribute('aria-label', 'סגירה');\n    this.closeBtn.innerHTML = closeIcon();\n    this.closeBtn.addEventListener('click', function () { self.close(); });\n\n    topbar.appendChild(this.backBtn);\n    topbar.appendChild(this.titleEl);\n    topbar.appendChild(this.closeBtn);\n\n    // Scroll region + panel slider\n    this.scroll = document.createElement('div');\n    this.scroll.className = NS + '__scroll';\n    this.panels = document.createElement('div');\n    this.panels.className = NS + '__panels';\n    this.scroll.appendChild(this.panels);\n\n    // Root panel (top-level items) — only these show a \"לכל המוצרים\" view-all row.\n    this.pushPanel({ label: 'תפריט', children: this.tree }, true);\n\n    // \"מומלצים עבורך\" carousel — appended under the last menu item, inside the\n    // root panel so it belongs to the top level and scrolls with it vertically.\n    try {\n      var reco = buildReco();\n      if (reco && this.panelStack[0] && this.panelStack[0].panel) {\n        this.panelStack[0].panel.appendChild(reco);\n      }\n    } catch (e) {}\n\n    this.el.appendChild(topbar);\n    this.el.appendChild(this.scroll);\n\n    // Footer / social\n    if (this.socialEl) {\n      var footer = document.createElement('div');\n      footer.className = NS + '__footer';\n      footer.appendChild(this.socialEl);\n      this.el.appendChild(footer);\n    }\n\n    document.body.appendChild(this.overlay);\n    document.body.appendChild(this.el);\n  };\n\n  // Build a panel (a full-height column) for a node's children.\n  Drawer.prototype.pushPanel = function (node, isTopLevel) {\n    var self = this;\n    var panel = document.createElement('div');\n    panel.className = NS + '__panel';\n\n    var list = document.createElement('ul');\n    list.className = NS + '__list';\n\n    // Only the root (top-level) panel shows a \"לכל המוצרים\" view-all link.\n    // Drill-in panels (sub-categories) do not repeat a view-all row.\n    if (isTopLevel && node.url && node.url !== '#') {\n      var liAll = document.createElement('li');\n      var aAll = document.createElement('a');\n      aAll.className = NS + '__row';\n      aAll.href = node.url;\n      var sAll = document.createElement('span');\n      sAll.className = NS + '__row-label';\n      sAll.textContent = 'לכל המוצרים';\n      aAll.appendChild(sAll);\n      aAll.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url });\n      });\n      liAll.appendChild(aAll);\n      list.appendChild(liAll);\n    }\n\n    var children = node.children || [];\n    for (var i = 0; i < children.length; i++) {\n      var child = children[i];\n      // Skip a child that merely repeats the parent category title.\n      if (child && (!child.children || !child.children.length) && child.label === node.label) {\n        continue;\n      }\n      list.appendChild(self.buildRow(child, isTopLevel === true));\n    }\n    panel.appendChild(list);\n    this.panels.appendChild(panel);\n    this.panelStack.push({ title: node.label || 'תפריט', panel: panel });\n\n    this.syncSlider();\n  };\n\n  // Build a single row. Categories whose children ALSO have children get a\n  // slide-in drill panel; one-level categories use an in-place accordion.\n  Drawer.prototype.buildRow = function (node, isTopLevel) {\n    var self = this;\n    var hasChildren = node.children && node.children.length > 0;\n\n    if (!hasChildren) {\n      var liLeaf = document.createElement('li');\n      var a = document.createElement('a');\n      a.className = NS + '__row';\n      a.href = node.url || '#';\n      var labelLeaf = document.createElement('span');\n      labelLeaf.className = NS + '__row-label';\n      labelLeaf.textContent = node.label;\n      a.appendChild(labelLeaf);\n      a.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url || '' });\n      });\n      liLeaf.appendChild(a);\n      return liLeaf;\n    }\n\n    var deep = false;\n    for (var i = 0; i < node.children.length; i++) {\n      if (node.children[i].children && node.children[i].children.length) { deep = true; break; }\n    }\n\n    if (deep) {\n      var liDrill = document.createElement('li');\n      var btn = document.createElement('button');\n      btn.type = 'button';\n      btn.className = NS + '__row';\n      btn.setAttribute('aria-haspopup', 'true');\n      var labelD = document.createElement('span');\n      labelD.className = NS + '__row-label';\n      labelD.textContent = node.label;\n      btn.appendChild(labelD);\n      var chevWrap = document.createElement('span');\n      chevWrap.innerHTML = chevronForward();\n      btn.appendChild(chevWrap.firstChild);\n      btn.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_drilldown', label: node.label });\n        self.drillInto(node);\n      });\n      liDrill.appendChild(btn);\n      return liDrill;\n    }\n\n    // One level deep -> accordion in place.\n    var liAcc = document.createElement('li');\n    liAcc.className = NS + '__acc';\n\n    var accBtn = document.createElement('button');\n    accBtn.type = 'button';\n    accBtn.className = NS + '__row';\n    accBtn.setAttribute('aria-expanded', 'false');\n    var labelA = document.createElement('span');\n    labelA.className = NS + '__row-label';\n    labelA.textContent = node.label;\n    accBtn.appendChild(labelA);\n    var plus = document.createElement('span');\n    plus.className = NS + '__acc-icon';\n    accBtn.appendChild(plus);\n\n    var sub = document.createElement('ul');\n    sub.className = NS + '__sub';\n\n    // \"View all\" row using the category's own url, when available. Only shown\n    // for top-level categories; nested sub-categories do not get a view-all row.\n    if (isTopLevel && node.url && node.url !== '#') {\n      var liAll = document.createElement('li');\n      var aAll = document.createElement('a');\n      aAll.className = NS + '__row';\n      aAll.href = node.url;\n      var sAll = document.createElement('span');\n      sAll.className = NS + '__row-label';\n      sAll.textContent = 'לכל המוצרים';\n      aAll.appendChild(sAll);\n      aAll.addEventListener('click', function () {\n        track('influenced-revenue', { interaction: 'mobile_nav_link_click', label: node.label, destination: node.url });\n      });\n      liAll.appendChild(aAll);\n      sub.appendChild(liAll);\n    }\n\n    for (var c = 0; c < node.children.length; c++) {\n      var child = node.children[c];\n      // Skip a child that merely repeats the parent category (same label).\n      if (child && (!child.children || !child.children.length) && child.label === node.label) {\n        continue;\n      }\n      sub.appendChild(self.buildRow(child));\n    }\n\n    accBtn.addEventListener('click', function () {\n      var open = liAcc.classList.toggle('is-open');\n      accBtn.setAttribute('aria-expanded', open ? 'true' : 'false');\n      if (open) track('influenced-revenue', { interaction: 'mobile_nav_accordion_open', label: node.label });\n    });\n\n    liAcc.appendChild(accBtn);\n    liAcc.appendChild(sub);\n    return liAcc;\n  };\n\n  Drawer.prototype.drillInto = function (node) {\n    this.pushPanel(node);\n    this.updateChrome();\n    var last = this.panelStack[this.panelStack.length - 1].panel;\n    last.scrollTop = 0;\n  };\n\n  Drawer.prototype.pop = function () {\n    if (this.panelStack.length <= 1) return;\n    var self = this;\n    var removed = this.panelStack.pop();\n    this.syncSlider();\n    this.updateChrome();\n    setTimeout(function () {\n      if (removed.panel && removed.panel.parentNode) removed.panel.parentNode.removeChild(removed.panel);\n      self.syncSlider();\n    }, 320);\n  };\n\n  Drawer.prototype.syncSlider = function () {\n    var idx = this.panelStack.length - 1;\n    // RTL: deeper panels append to the right; translate positively to reveal them.\n    this.panels.style.transform = 'translateX(' + (idx * 100) + '%)';\n  };\n\n  Drawer.prototype.updateChrome = function () {\n    var atRoot = this.panelStack.length <= 1;\n    this.el.classList.toggle('show-back', !atRoot);\n    var current = this.panelStack[this.panelStack.length - 1];\n    // At root the logo is shown (via CSS); when drilled we display the category name.\n    this.titleTextEl.textContent = atRoot ? 'תפריט' : (current.title || 'תפריט');\n  };\n\n  // Reset to the root panel (clean state on each open).\n  Drawer.prototype.reset = function () {\n    while (this.panelStack.length > 1) {\n      var removed = this.panelStack.pop();\n      if (removed.panel && removed.panel.parentNode) removed.panel.parentNode.removeChild(removed.panel);\n    }\n    var openAcc = this.el.querySelectorAll('.' + NS + '__acc.is-open');\n    for (var i = 0; i < openAcc.length; i++) {\n      openAcc[i].classList.remove('is-open');\n      var b = openAcc[i].querySelector('.' + NS + '__row');\n      if (b) b.setAttribute('aria-expanded', 'false');\n    }\n    if (this.panelStack[0] && this.panelStack[0].panel) this.panelStack[0].panel.scrollTop = 0;\n    this.syncSlider();\n    this.updateChrome();\n  };\n\n  Drawer.prototype.open = function () {\n    if (this.isOpen) return; // guard against double-fire (touchend + click)\n    this.reset();\n    this.overlay.classList.add('is-open');\n    void this.el.offsetWidth; // force reflow so the slide transition plays\n    this.el.classList.add('is-open');\n    document.documentElement.style.overflow = 'hidden';\n    document.body.style.overflow = 'hidden';\n    this.isOpen = true;\n    track('influenced-revenue', { interaction: 'mobile_nav_opened' });\n  };\n\n  Drawer.prototype.close = function () {\n    this.overlay.classList.remove('is-open');\n    this.el.classList.remove('is-open');\n    document.documentElement.style.overflow = '';\n    document.body.style.overflow = '';\n    if (this.isOpen) track('influenced-revenue', { interaction: 'mobile_nav_closed' });\n    this.isOpen = false;\n  };\n\n  /* ------------------------------------------------------------------ */\n  /* Trigger wiring                                                      */\n  /* ------------------------------------------------------------------ */\n  var TRIGGER_SELECTOR =\n    '[aria-controls=\"header-sidebar-menu\"], button.tap-area.lg\\\\:hidden, [aria-label=\"תפריט\"]';\n\n  // Determine whether a clicked element is (or sits inside) the hamburger trigger.\n  function matchTrigger(target) {\n    if (!target || !target.closest) return null;\n    return target.closest(TRIGGER_SELECTOR);\n  }\n\n  function wireTrigger(drawer) {\n    if (window[NS + '_triggerWired']) return true;\n    window[NS + '_triggerWired'] = true;\n\n    // Delegated, capture-phase handler on the document. This survives header\n    // re-renders and fires before the theme's own custom-element handler, so\n    // our drawer always opens even if the native handler no longer exists.\n    var handler = function (e) {\n      var btn = matchTrigger(e.target);\n      if (!btn) return;\n      // Ignore our own close/back buttons which live inside the drawer.\n      if (btn.closest && btn.closest('.' + NS + '__drawer')) return;\n      e.preventDefault();\n      e.stopPropagation();\n      if (typeof e.stopImmediatePropagation === 'function') e.stopImmediatePropagation();\n      drawer.open();\n    };\n\n    document.addEventListener('click', handler, true);\n    // Some themes open menus on pointer/touch start; guard those too.\n    document.addEventListener('touchend', handler, true);\n    return true;\n  }\n\n  // Remove any previously-injected variant drawer so menus don't stack.\n  function removeLegacyDrawers() {\n    try {\n      var legacy = document.querySelectorAll('[data-variant-drawer=\"true\"], .mobile-navigation-drawer');\n      for (var i = 0; i < legacy.length; i++) {\n        if (legacy[i].id !== NS + '-drawer') {\n          legacy[i].parentNode && legacy[i].parentNode.removeChild(legacy[i]);\n        }\n      }\n    } catch (e) {\n      /* ignore */\n    }\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Cart-drawer coordination                                            */\n  /* ------------------------------------------------------------------ */\n  // When the theme's cart drawer opens, close our nav menu so the two panels\n  // never overlap. The cart drawer is a custom element that toggles an `open`\n  // attribute and also emits a bubbling `show` event when it appears.\n  function isCartDrawer(node) {\n    if (!node || node.nodeType !== 1) return false;\n    if (node.id === 'cart-drawer') return true;\n    var tag = (node.tagName || '').toLowerCase();\n    if (tag === 'cart-drawer' || tag === 'cart-notification') return true;\n    var cls = node.classList;\n    return !!(cls && (cls.contains('cart-drawer') || cls.contains('cart-notification')));\n  }\n\n  function watchCartDrawer(drawer) {\n    if (window[NS + '_cartWatch']) return;\n    window[NS + '_cartWatch'] = true;\n\n    var closeIfOpen = function () {\n      try { if (drawer && drawer.isOpen) drawer.close(); } catch (e) {}\n    };\n\n    // 1) Bubbling \"show\" event fired by the theme's drawer/dialog elements.\n    try {\n      document.addEventListener('show', function (e) {\n        if (isCartDrawer(e.target)) closeIfOpen();\n      }, true);\n    } catch (e) {}\n\n    // 2) Attribute observer — the cart drawer gains an `open` attribute when\n    //    it is displayed. This also covers cases where the element is present\n    //    from the start and simply toggled.\n    try {\n      var mo = new MutationObserver(function (mutations) {\n        for (var i = 0; i < mutations.length; i++) {\n          var m = mutations[i];\n          if (m.type === 'attributes' && m.attributeName === 'open') {\n            var t = m.target;\n            if (isCartDrawer(t) && t.hasAttribute('open')) { closeIfOpen(); return; }\n          } else if (m.type === 'childList' && m.addedNodes) {\n            for (var j = 0; j < m.addedNodes.length; j++) {\n              var n = m.addedNodes[j];\n              if (isCartDrawer(n) && n.hasAttribute && n.hasAttribute('open')) { closeIfOpen(); return; }\n            }\n          }\n        }\n      });\n      mo.observe(document.documentElement, {\n        subtree: true,\n        childList: true,\n        attributes: true,\n        attributeFilter: ['open']\n      });\n    } catch (e) {}\n\n    // 3) Safety net — clicking the cart trigger (opens the cart drawer) also\n    //    closes the menu, in case the events above are missed.\n    try {\n      document.addEventListener('click', function (e) {\n        var t = e.target;\n        if (t && t.closest && t.closest('[href*=\"/cart\"], [aria-controls=\"cart-drawer\"], [data-cart-drawer-toggle]')) {\n          closeIfOpen();\n        }\n      }, true);\n    } catch (e) {}\n  }\n\n  /* ------------------------------------------------------------------ */\n  /* Init                                                                */\n  /* ------------------------------------------------------------------ */\n  function init() {\n    try {\n      if (document.getElementById(NS + '-drawer')) return true; // idempotent\n\n      var nav = findDesktopNav();\n      if (!nav) return false; // desktop nav not present yet\n\n      var tree = buildTree(nav);\n      if (!tree.length) return false; // nothing parsed — keep native menu\n\n      removeLegacyDrawers();\n      injectStyles();\n\n      var social = buildSocialFooter();\n      var drawer = new Drawer(tree, social);\n\n      var wired = wireTrigger(drawer);\n      watchCartDrawer(drawer);\n\n      document.addEventListener('keydown', function (e) {\n        if (e.key === 'Escape' || e.keyCode === 27) drawer.close();\n      });\n\n      window[NS + '_drawer'] = drawer;\n      return wired;\n    } catch (err) {\n      // Silent failure — protect the shopping funnel, keep native menu intact.\n      return false;\n    }\n  }\n\n  function boot() {\n    if (init()) return;\n    var attempts = 0;\n    var timer = setInterval(function () {\n      attempts++;\n      if (init() || attempts >= 20) clearInterval(timer);\n    }, 300);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', boot);\n  } else {\n    boot();\n  }\n})();"],"weights":[0.5,0,0.5],"key":"EXPDB7A2236","meta":[{"key":"control","name":"Control"},{"key":"variant-1","name":"Variant 1"},{"key":"variant-2","name":"Variant 2"}],"phase":"0","name":"Mobile Nav Menu - New"}]},"exp-EXPDA3D7ACB":{"defaultValue":"","rules":[{"id":"exp-ref-rule-EXPDA3D7ACB","coverage":1,"hashAttribute":"id","seed":"08c6daec-79ff-47e5-b58f-3b4305f0f79e","hashVersion":2,"variations":["","(function () {\n  /* ══════════════════════════════════════════════════════════════════\n   *  Frame Upsell Popup — intercepts Add-to-Cart via fetch patch\n   *  Redesigned: informative, non-pushy with one-click \"+\" per card\n   * ══════════════════════════════════════════════════════════════════ */\n\n  var PREFIX = 'afu';\n  var SF_URL = 'https://asufadesign.co.il/api/2024-01/graphql.json';\n  var SF_TOKEN = 'ac691a2161b6844b779eb6b2ed3cb231';\n  var FRAMES_HANDLE = 'המסגרות-של-אסופה';\n  var COUPON_CODE = 'VariantFrames';\n  var COUPON_DISPLAY_LABEL = 'Special Coupon';\n  var DISCOUNT_PCT = 0.20;\n\n  var popupOpen = false;\n  var debouncing = false;\n  var cachedFrames = null;\n  var sfOptions = [];\n  var sfVariants = [];\n  var tagCheckDone = false;\n  var tagCheckResult = false;\n  var isSetup = false;\n\n  /* ────── 1. Capture original fetch IMMEDIATELY ────── */\n  var _realFetch = window.fetch;\n\n  /* ────── 2. Storefront GraphQL via XHR (proxy-safe) ────── */\n  function sfQuery(query, vars, cb) {\n    try {\n      var x = new XMLHttpRequest();\n      x._afuFromUs = true;\n      x.open('POST', SF_URL, true);\n      x.setRequestHeader('Content-Type', 'application/json');\n      x.setRequestHeader('X-Shopify-Storefront-Access-Token', SF_TOKEN);\n      x.onreadystatechange = function () {\n        if (x.readyState !== 4) return;\n        if (x.status >= 200 && x.status < 300) {\n          try { cb(null, JSON.parse(x.responseText).data); } catch (e) { cb(e); }\n        } else { cb(new Error('sf ' + x.status)); }\n      };\n      x.send(JSON.stringify({ query: query, variables: vars || {} }));\n    } catch (e) { cb(e); }\n  }\n\n  /* ────── 3. Helpers ────── */\n  function getHandle() {\n    var vp = document.querySelector('variant-picker[handle]');\n    if (vp) return vp.getAttribute('handle');\n    try { if (window.ShopifyAnalytics && window.ShopifyAnalytics.meta && window.ShopifyAnalytics.meta.product) return window.ShopifyAnalytics.meta.product.handle; } catch (e) {}\n    var c = document.querySelector('link[rel=\"canonical\"]');\n    if (c) { var m = c.href.match(/\\/products\\/([^/?#]+)/); if (m) return decodeURIComponent(m[1]); }\n    return null;\n  }\n\n  function getSelectedVariantId() {\n    var forms = document.querySelectorAll('form[is=\"product-form\"], form.shopify-product-form');\n    for (var i = 0; i < forms.length; i++) {\n      var id = forms[i].id || '';\n      if (id.indexOf('installment') !== -1 || id.indexOf('quick-buy') !== -1) continue;\n      var inp = forms[i].querySelector('input[name=\"id\"]');\n      if (inp) return parseInt(inp.value, 10);\n    }\n    return null;\n  }\n\n  function variantHasFrame(vid) {\n    if (!sfOptions.length) return false;\n    var fo = null;\n    for (var i = 0; i < sfOptions.length; i++) {\n      var n = sfOptions[i].name.toLowerCase();\n      if (n.indexOf('\\u05DE\\u05E1\\u05D2\\u05D5\\u05E8') !== -1 || n.indexOf('frame') !== -1 || n.indexOf('\\u05DE\\u05E1\\u05D2\\u05E8\\u05EA') !== -1) { fo = sfOptions[i].name; break; }\n    }\n    if (!fo) return false;\n    var gid = 'gid://shopify/ProductVariant/' + vid;\n    for (var j = 0; j < sfVariants.length; j++) {\n      if (sfVariants[j].id === gid) {\n        var so = sfVariants[j].selectedOptions || [];\n        for (var k = 0; k < so.length; k++) { if (so[k].name === fo) return so[k].value.indexOf('\\u05DC\\u05DC\\u05D0') === -1; }\n      }\n    }\n    return false;\n  }\n\n  function getSizeInfo(vid) {\n    if (!sfOptions.length) return { idx: 0, label: '' };\n    var so2 = null;\n    for (var i = 0; i < sfOptions.length; i++) {\n      var n = sfOptions[i].name.toLowerCase();\n      if (n.indexOf('\\u05DE\\u05E1\\u05D2\\u05D5\\u05E8') === -1 && n.indexOf('frame') === -1 && n.indexOf('\\u05DE\\u05E1\\u05D2\\u05E8\\u05EA') === -1) { so2 = sfOptions[i]; break; }\n    }\n    if (!so2) return { idx: 0, label: '' };\n    var gid = 'gid://shopify/ProductVariant/' + vid;\n    for (var j = 0; j < sfVariants.length; j++) {\n      if (sfVariants[j].id === gid) {\n        var opts = sfVariants[j].selectedOptions || [];\n        for (var k = 0; k < opts.length; k++) {\n          if (opts[k].name === so2.name) {\n            var idx = so2.values.indexOf(opts[k].value);\n            return { idx: idx >= 0 ? idx : 0, label: opts[k].value || '' };\n          }\n        }\n      }\n    }\n    return { idx: 0, label: '' };\n  }\n\n  function fmt(p) { var n = parseFloat(p); return isNaN(n) ? '' : '\\u20AA' + n.toFixed(2).replace(/\\.00$/, ''); }\n\n  function isMobile() { return window.innerWidth <= 600; }\n\n  /* \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Behavior tracking \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 */\n  function track(name, extra) {\n    try {\n      if (typeof Variant === 'undefined' || !Variant.publishCustomEvent) return;\n      var payload = { experiment_id: 'EXP3A0C8609', variation_id: '1' };\n      if (extra) { for (var k in extra) { if (extra.hasOwnProperty(k)) payload[k] = extra[k]; } }\n      Variant.publishCustomEvent(name, payload);\n    } catch (e) {}\n  }\n\n  /* \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Revenue attribution for a frame added via the popup \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\n   * Fires product-clicked-attribution with the frame's numeric product ID so\n   * a purchase of that frame within the attribution window is credited to the\n   * experiment. No navigation happens here (same-page quick add), so no\n   * redirect-safe pattern is needed. */\n  function attributeFrame(productId) {\n    try {\n      if (!productId) return;\n      if (typeof Variant === 'undefined' || !Variant.publishCustomEvent) return;\n      Variant.publishCustomEvent('product-clicked-attribution', {\n        experiment_id: 'EXPDA3D7ACB',\n        variation_id: '1',\n        product_id: String(productId)\n      });\n    } catch (e) {}\n  }\n\n  /* ────── 4. Cart drawer helpers ────── */\n  var _closingDrawer = false;\n\n  function closeDrawer() {\n    if (_closingDrawer) return;\n    _closingDrawer = true;\n    try {\n      var dr = document.querySelector('cart-drawer');\n      if (dr) { dr.removeAttribute('open'); dr.setAttribute('aria-hidden', 'true'); }\n    } catch (e) {}\n    _closingDrawer = false;\n  }\n\n  function openDrawer() {\n    requestAnimationFrame(function () {\n      var dr = document.querySelector('cart-drawer');\n      if (dr) { dr.setAttribute('open', ''); dr.removeAttribute('aria-hidden'); }\n    });\n  }\n\n  var _drawerObserver = null;\n  function blockDrawer() {\n    var dr = document.querySelector('cart-drawer');\n    if (!dr) return;\n    closeDrawer();\n    if (_drawerObserver) _drawerObserver.disconnect();\n    _drawerObserver = new MutationObserver(function () {\n      if (popupOpen && !_closingDrawer) closeDrawer();\n    });\n    _drawerObserver.observe(dr, { attributes: true, attributeFilter: ['open'] });\n  }\n  function unblockDrawer() {\n    if (_drawerObserver) { _drawerObserver.disconnect(); _drawerObserver = null; }\n  }\n\n  /* ────── 4b. Cart add via XHR ────── */\n  function addToCart(items, cb) {\n    var root = (window.Shopify && window.Shopify.routes && window.Shopify.routes.root) || '/';\n    var dSec = document.querySelector('[id*=\"cart-drawer\"].shopify-section');\n    var hSec = document.querySelector('[id*=\"header\"].shopify-section');\n    var secs = [dSec, hSec].map(function (e) { return e ? e.id.replace('shopify-section-', '') : null; }).filter(Boolean).join(',');\n    var body = { items: items };\n    if (secs) { body.sections = secs; body.sections_url = window.location.pathname; }\n    var x = new XMLHttpRequest();\n    x._afuFromUs = true;\n    x.open('POST', root + 'cart/add.js', true);\n    x.setRequestHeader('Content-Type', 'application/json');\n    x.onreadystatechange = function () {\n      if (x.readyState !== 4) return;\n      try {\n        var r = JSON.parse(x.responseText);\n        if (r.sections) {\n          var keys = Object.keys(r.sections);\n          for (var i = 0; i < keys.length; i++) {\n            var html = r.sections[keys[i]];\n            if (!html) continue;\n            var el = document.getElementById('shopify-section-' + keys[i]);\n            if (el) el.outerHTML = html;\n          }\n        }\n        document.dispatchEvent(new CustomEvent('cart:refresh'));\n        document.dispatchEvent(new CustomEvent('cart:added', { detail: r }));\n        if (cb) cb(true);\n      } catch (e) { if (cb) cb(false); }\n    };\n    x.send(JSON.stringify(body));\n  }\n\n  /* ────── 4c. Apply coupon code via XHR ────── */\n  function applyCoupon(code, cb) {\n    var root = (window.Shopify && window.Shopify.routes && window.Shopify.routes.root) || '/';\n    var x = new XMLHttpRequest();\n    x._afuFromUs = true;\n    x.open('POST', root + 'cart/update.js', true);\n    x.setRequestHeader('Content-Type', 'application/json');\n    x.onreadystatechange = function () {\n      if (x.readyState !== 4) return;\n      if (cb) cb(x.status >= 200 && x.status < 300);\n    };\n    x.send(JSON.stringify({ discount: code }));\n  }\n\n  /* ────── 5. Fetch frames collection ────── */\n  function fetchFrames(cb) {\n    if (cachedFrames) return cb(cachedFrames);\n    sfQuery(\n      'query($h:String!){collection(handle:$h){products(first:20){nodes{id title variants(first:10){nodes{id title price{amount}}}images(first:1){nodes{url}}}}}}',\n      { h: FRAMES_HANDLE },\n      function (err, data) {\n        if (err || !data || !data.collection || !data.collection.products) return cb(null);\n        var ns = data.collection.products.nodes;\n        if (!ns.length) return cb(null);\n        cachedFrames = ns.map(function (p) {\n          return {\n            // Numeric Shopify product ID — needed for revenue attribution.\n            productId: p.id ? p.id.replace('gid://shopify/Product/', '') : '',\n            title: p.title,\n            image: p.images.nodes.length ? p.images.nodes[0].url : '',\n            variants: p.variants.nodes.map(function (v) {\n              return { id: parseInt(v.id.replace('gid://shopify/ProductVariant/', ''), 10), title: v.title, price: parseFloat(v.price.amount) };\n            })\n          };\n        });\n        cb(cachedFrames);\n      }\n    );\n  }\n\n  /* ────── 6. CSS — redesigned: airy cards with \"+\" buttons ────── */\n  function injectStyles() {\n    if (document.getElementById(PREFIX + '-css')) return;\n    var s = document.createElement('style');\n    s.id = PREFIX + '-css';\n    s.textContent =\n      /* Overlay */\n      '.' + PREFIX + '-ov{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:999999;display:flex;justify-content:center;align-items:center;opacity:0;transition:opacity .3s;direction:rtl;font-family:system-ui,-apple-system,sans-serif}' +\n      '.' + PREFIX + '-ov.v{opacity:1}' +\n      '.' + PREFIX + '-ov *{box-sizing:border-box}' +\n\n      /* Modal panel */\n      '.' + PREFIX + '-m{background:#fff;border-radius:14px;width:725px;max-width:94vw;max-height:90vh;overflow-y:auto;position:relative;padding:36px 34px 32px;box-shadow:0 18px 50px rgba(39,39,39,.12)}' +\n\n      /* Close button — fixed top-right, outside modal padding */\n      '.' + PREFIX + '-x{position:fixed;top:0;right:0;width:36px;height:36px;background:rgba(255,255,255,.95);backdrop-filter:blur(6px);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#888;z-index:1000001;transition:color .2s;box-shadow:0 2px 8px rgba(0,0,0,.1)}' +\n      '.' + PREFIX + '-x:hover{color:#272727}' +\n      '.' + PREFIX + '-x svg{width:18px;height:18px}' +\n\n      /* Header area — wide so title fits one line */\n      '.' + PREFIX + '-hd{text-align:center;margin-bottom:6px;padding:0}' +\n      '.' + PREFIX + '-hd h2{font-size:1.35rem;font-weight:700;color:#272727;margin:0;line-height:1.4;white-space:nowrap}' +\n      /* Sub text — explicit display/visibility/color so the live theme's global\n         rules on p / strong / br can't hide or restyle the popup copy */\n      '.' + PREFIX + '-sub{display:block!important;visibility:visible!important;opacity:1!important;text-align:center;font-size:.8rem;color:#69727b!important;margin:0 0 20px;line-height:1.55;padding:0 8px}' +\n      '.' + PREFIX + '-sub br{display:block!important}' +\n      '.' + PREFIX + '-sub strong{display:inline!important;visibility:visible!important;color:#c0392b!important;font-weight:700}' +\n\n      /* Card grid — kept but now each card has a \"+\" button */\n      '.' + PREFIX + '-g{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}' +\n      '.' + PREFIX + '-c{border:1px solid rgba(39,39,39,.1);border-radius:12px;overflow:hidden;transition:border-color .2s,box-shadow .2s;background:#fff;text-align:center;position:relative}' +\n      '.' + PREFIX + '-c:hover{border-color:rgba(39,39,39,.22);box-shadow:0 2px 12px rgba(39,39,39,.06)}' +\n      '.' + PREFIX + '-ci{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#f2f2f2}' +\n\n      /* Discount badge */\n      '.' + PREFIX + '-badge{position:absolute;top:8px;left:8px;background:#c0392b;color:#fff;font-size:.55rem;font-weight:700;padding:3px 6px;border-radius:4px;line-height:1;z-index:1;letter-spacing:.02em;direction:ltr;unicode-bidi:isolate}' +\n\n      /* Card content area */\n      '.' + PREFIX + '-cn{padding:8px 8px 0;display:flex;flex-direction:column;align-items:center;position:relative}' +\n      '.' + PREFIX + '-ct{font-size:.82rem;color:#272727;margin:0 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;font-weight:500}' +\n      '.' + PREFIX + '-sz{font-size:.68rem;color:#888;margin:0 0 3px;font-weight:400}' +\n\n      /* Bottom row: prices on left, \"+\" button on right with 8px padding */\n      '.' + PREFIX + '-btm{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 8px 0}' +\n\n      /* Prices — pushed to the left side */\n      '.' + PREFIX + '-prices{margin:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}' +\n      '.' + PREFIX + '-op{font-size:.72rem;color:#aaa;text-decoration:line-through;font-weight:400}' +\n      '.' + PREFIX + '-dp{font-size:.85rem;font-weight:700;color:#272727}' +\n\n      /* \"+\" Add button — outlined, prominent border, symbol centered */\n      '.' + PREFIX + '-plus{width:32px;height:32px;border-radius:12px;border:2px solid #272727;background:transparent;color:#272727;font-size:1.25rem;font-weight:400;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s,transform .15s;line-height:1;flex-shrink:0;padding:0 0 1px 0;text-indent:0}' +\n      '.' + PREFIX + '-plus:hover{background:#272727;color:#fff;transform:scale(1.08)}' +\n      '.' + PREFIX + '-plus:active{transform:scale(.92)}' +\n      '.' + PREFIX + '-plus.ld{pointer-events:none;opacity:.35}' +\n\n      /* Bottom action area */\n      '.' + PREFIX + '-a{display:flex;flex-direction:column;align-items:center;gap:10px}' +\n      '.' + PREFIX + '-p2{display:block;width:100%;max-width:340px;padding:13px 0;border:1px solid rgba(39,39,39,.12);border-radius:60px;background:#fff;color:#333;font-size:.82rem;font-weight:500;cursor:pointer;font-family:inherit;text-align:center;transition:background .2s,border-color .2s}' +\n      '.' + PREFIX + '-p2:hover{background:#f2f2f2;border-color:rgba(39,39,39,.2)}' +\n      '.' + PREFIX + '-p2.ld{pointer-events:none;opacity:.5}' +\n\n      /* Snackbar toast — site-native style */\n      '.' + PREFIX + '-snack{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#272727;color:#fff;padding:14px 24px;border-radius:12px;font-size:.85rem;font-weight:500;z-index:1000001;opacity:0;transition:opacity .35s,transform .35s;pointer-events:none;direction:rtl;text-align:center;display:flex;align-items:center;gap:10px;max-width:92vw;box-shadow:0 8px 30px rgba(0,0,0,.18)}' +\n      '.' + PREFIX + '-snack.v{opacity:1;transform:translateX(-50%) translateY(0)}' +\n      '.' + PREFIX + '-snack svg{width:20px;height:20px;flex-shrink:0}' +\n\n      /* Spinner keyframe for + button loading */\n      '@keyframes ' + PREFIX + '-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}' +\n\n      /* ── Mobile: bottom sheet ── */\n      '@media(max-width:600px){' +\n        '.' + PREFIX + '-ov{align-items:flex-end}' +\n        '.' + PREFIX + '-m{border-radius:18px 18px 0 0;width:100%;max-width:100%;max-height:85vh;padding:20px 16px 0;animation:' + PREFIX + '-u .35s ease-out;padding-bottom:110px}' +\n        '.' + PREFIX + '-g{grid-template-columns:repeat(2,1fr);gap:12px}' +\n        '.' + PREFIX + '-hd h2{font-size:1.08rem}' +\n        '.' + PREFIX + '-sub{font-size:.73rem;padding:0 2px}' +\n        '.' + PREFIX + '-a{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:14px 16px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(0,0,0,.08);z-index:1000000;border-top:1px solid rgba(0,0,0,.04)}' +\n        '.' + PREFIX + '-p2{width:100%;max-width:none}' +\n        '.' + PREFIX + '-plus{width:34px;height:34px;font-size:1.3rem}' +\n        '.' + PREFIX + '-snack{bottom:90px}' +\n      '}' +\n      '@keyframes ' + PREFIX + '-u{from{transform:translateY(100%)}to{transform:translateY(0)}}';\n    document.head.appendChild(s);\n  }\n\n  /* ────── 6b. Snackbar confirmation — site-native feel ────── */\n  function showSnack(text, isFrame) {\n    var icon = isFrame\n      ? '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#4caf50\" stroke-width=\"2.5\"><path d=\"M20 6L9 17l-5-5\"/></svg>'\n      : '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#e9a9a9\" stroke-width=\"2\"><path d=\"M12 2v20M2 12h20\"/></svg>';\n    var t = document.createElement('div');\n    t.className = PREFIX + '-snack';\n    t.innerHTML = icon + '<span>' + text + '</span>';\n    document.body.appendChild(t);\n    requestAnimationFrame(function () { t.classList.add('v'); });\n    setTimeout(function () {\n      t.classList.remove('v');\n      setTimeout(function () { try { t.remove(); } catch (e) {} }, 350);\n    }, 2400);\n  }\n\n  /* ────── 7. Popup UI — informative design with one-click \"+\" ────── */\n  function showPopup(printVid, sizeIdx, szLbl, frames, isBuyNow) {\n    if (popupOpen) return;\n    popupOpen = true;\n    injectStyles();\n    track('influenced-revenue', { action: 'frame_upsell_shown', is_buy_now: !!isBuyNow });\n\n    /* Build cards with \"+\" buttons */\n    var cards = '';\n    for (var i = 0; i < frames.length; i++) {\n      var fr = frames[i];\n      var mv = fr.variants[0];\n      if (fr.variants.length > sizeIdx) mv = fr.variants[sizeIdx];\n      var img = fr.image ? fr.image.split('?')[0] + '?width=500' : '';\n      var origPrice = mv.price;\n      var discPrice = Math.round(origPrice * (1 - DISCOUNT_PCT));\n      var frPid = fr.productId || '';\n      cards += '<div class=\"' + PREFIX + '-c\" data-fv=\"' + mv.id + '\" data-pid=\"' + frPid + '\">' +\n        '<span class=\"' + PREFIX + '-badge\">20% off</span>' +\n        '<img class=\"' + PREFIX + '-ci\" src=\"' + img + '\" alt=\"\" loading=\"lazy\">' +\n        '<div class=\"' + PREFIX + '-cn\">' +\n          '<p class=\"' + PREFIX + '-ct\">' + fr.title + '</p>' +\n          (szLbl ? '<p class=\"' + PREFIX + '-sz\">' + szLbl + '</p>' : '') +\n          '<div class=\"' + PREFIX + '-btm\">' +\n            '<button class=\"' + PREFIX + '-plus\" data-fv=\"' + mv.id + '\" data-pid=\"' + frPid + '\" aria-label=\"\\u05D4\\u05D5\\u05E1\\u05E3\">+</button>' +\n            '<div class=\"' + PREFIX + '-prices\"><span class=\"' + PREFIX + '-op\">' + fmt(origPrice) + '</span><span class=\"' + PREFIX + '-dp\">' + fmt(discPrice) + '</span></div>' +\n          '</div>' +\n        '</div></div>';\n    }\n\n    var el = document.createElement('div');\n    el.className = PREFIX + '-ov';\n    el.innerHTML =\n      '<div class=\"' + PREFIX + '-m\">' +\n        '<button class=\"' + PREFIX + '-x\" aria-label=\"\\u05E1\\u05D2\\u05D5\\u05E8\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg></button>' +\n        '<div class=\"' + PREFIX + '-hd\"><h2>\\u05D1\\u05D5\\u05D0\\u05D5 \\u05E0\\u05D4\\u05D9\\u05D4 \\u05DB\\u05E0\\u05D9\\u05DD  :)</h2></div>' +\n        '<p class=\"' + PREFIX + '-sub\">\\u05D0\\u05DD \\u05DC\\u05D0 \\u05EA\\u05D6\\u05DE\\u05D9\\u05E0\\u05D5 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA \\u05E2\\u05DB\\u05E9\\u05D9\\u05D5, \\u05D4\\u05D4\\u05D3\\u05E4\\u05E1 \\u05D9\\u05E6\\u05D1\\u05D5\\u05E8 \\u05D0\\u05D1\\u05E7 \\u05D1\\u05D0\\u05E8\\u05D5\\u05DF... \\u05DC\\u05D0 \\u05D7\\u05D1\\u05DC?<br><strong>\\u05D7\\u05E1\\u05DB\\u05D5 \\u05D6\\u05DE\\u05DF \\u05D5\\u05E7\\u05D1\\u05DC\\u05D5 20% \\u05D4\\u05E0\\u05D7\\u05D4 - \\u05D4\\u05D5\\u05E1\\u05D9\\u05E4\\u05D5 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA \\u05D1\\u05E7\\u05DC\\u05D9\\u05E7.</strong></p>' +\n        '<div class=\"' + PREFIX + '-g\">' + cards + '</div>' +\n        '<div class=\"' + PREFIX + '-a\">' +\n          '<button class=\"' + PREFIX + '-p2\">\\u05D4\\u05DE\\u05E9\\u05DA \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA</button>' +\n        '</div>' +\n      '</div>';\n\n    document.body.appendChild(el);\n    document.body.style.overflow = 'hidden';\n    blockDrawer();\n    requestAnimationFrame(function () { el.classList.add('v'); });\n\n    /* Position fixed close button at modal's top-right corner */\n    var xBtn = el.querySelector('.' + PREFIX + '-x');\n    var modalPanel = el.querySelector('.' + PREFIX + '-m');\n    function posXBtn() {\n      if (!modalPanel || !xBtn) return;\n      var r = modalPanel.getBoundingClientRect();\n      xBtn.style.top = Math.max(r.top + 6, 6) + 'px';\n      xBtn.style.right = Math.max(window.innerWidth - r.right + 6, 6) + 'px';\n    }\n    /* Wait for slide-up animation to finish before positioning */\n    setTimeout(posXBtn, 400);\n    window.addEventListener('resize', posXBtn);\n    /* Reposition if modal scrolls */\n    if (modalPanel) modalPanel.addEventListener('scroll', posXBtn);\n\n    var p2 = el.querySelector('.' + PREFIX + '-p2');\n    var plusBtns = el.querySelectorAll('.' + PREFIX + '-plus');\n    var didAdd = false;\n    var addedWithFrame = false;\n\n    var closing = false;\n    function close() {\n      if (closing) return;\n      closing = true;\n      window.removeEventListener('resize', posXBtn);\n      el.classList.remove('v');\n      setTimeout(function () {\n        try { xBtn.remove(); } catch (e) {}\n        try { el.remove(); } catch (e) {}\n        document.body.style.overflow = '';\n        popupOpen = false;\n        unblockDrawer();\n        if (didAdd) {\n          if (isBuyNow) {\n            window.location.href = '/checkout';\n          } else {\n            openDrawer();\n          }\n        }\n      }, 300);\n    }\n\n    /* Wire each \"+\" button — one-click: adds print + frame + coupon instantly */\n    for (var pi = 0; pi < plusBtns.length; pi++) {\n      (function (btn) {\n        btn.addEventListener('click', function (e) {\n          e.stopPropagation();\n          if (btn.classList.contains('ld')) return;\n          var fid = parseInt(btn.getAttribute('data-fv'), 10);\n          if (!fid) return;\n          var framePid = btn.getAttribute('data-pid') || '';\n\n          for (var b = 0; b < plusBtns.length; b++) plusBtns[b].classList.add('ld');\n          btn.innerHTML = '<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" style=\"animation:' + PREFIX + '-spin .7s linear infinite\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke-dasharray=\"50\" stroke-dashoffset=\"15\"/></svg>';\n\n          addToCart([{ id: printVid, quantity: 1 }, { id: fid, quantity: 1 }], function (ok) {\n            if (ok) {\n              // Revenue attribution: this frame product was added through the\n              // experiment. Fire once per successful add, tied to the frame's\n              // numeric product ID so a later purchase attributes to us.\n              attributeFrame(framePid);\n              applyCoupon(COUPON_CODE, function () {\n                didAdd = true;\n                addedWithFrame = true;\n                track('influenced-revenue', { action: 'frame_added', frame_variant_id: fid });\n                showSnack('\\u05D4\\u05E4\\u05E8\\u05D9\\u05D8 \\u05D5\\u05D4\\u05DE\\u05E1\\u05D2\\u05E8\\u05EA \\u05D4\\u05D5\\u05E1\\u05E4\\u05D5 \\u05DC\\u05E2\\u05D2\\u05DC\\u05D4', true);\n                close();\n              });\n            } else {\n              for (var b = 0; b < plusBtns.length; b++) plusBtns[b].classList.remove('ld');\n              btn.textContent = '+';\n            }\n          });\n        });\n      })(plusBtns[pi]);\n    }\n\n    /* X button — adds only the print */\n    el.querySelector('.' + PREFIX + '-x').addEventListener('click', function (e) {\n      e.preventDefault();\n      var xBtn = this;\n      xBtn.style.pointerEvents = 'none';\n      xBtn.style.opacity = '.5';\n      addToCart([{ id: printVid, quantity: 1 }], function (ok) {\n        if (ok) {\n          didAdd = true;\n          showSnack('\\u05D4\\u05E4\\u05E8\\u05D9\\u05D8 \\u05D4\\u05EA\\u05D5\\u05D5\\u05E1\\u05E3 \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA', false);\n          close();\n        } else {\n          xBtn.style.pointerEvents = '';\n          xBtn.style.opacity = '';\n        }\n      });\n    });\n\n    /* Overlay background click — adds print only */\n    el.addEventListener('click', function (e) {\n      if (e.target === el) {\n        addToCart([{ id: printVid, quantity: 1 }], function (ok) {\n          if (ok) {\n            didAdd = true;\n            showSnack('\\u05D4\\u05E4\\u05E8\\u05D9\\u05D8 \\u05D4\\u05EA\\u05D5\\u05D5\\u05E1\\u05E3 \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA', false);\n            close();\n          }\n        });\n      }\n    });\n\n    /* Escape key — adds print only */\n    document.addEventListener('keydown', function esc(e) {\n      if (e.key === 'Escape') {\n        document.removeEventListener('keydown', esc);\n        addToCart([{ id: printVid, quantity: 1 }], function (ok) {\n          if (ok) {\n            didAdd = true;\n            showSnack('\\u05D4\\u05E4\\u05E8\\u05D9\\u05D8 \\u05D4\\u05EA\\u05D5\\u05D5\\u05E1\\u05E3 \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA', false);\n            close();\n          }\n        });\n      }\n    });\n\n    /* \"המשך ללא מסגרת\" button — adds print only */\n    p2.addEventListener('click', function () {\n      p2.classList.add('ld');\n      p2.textContent = '...\\u05DE\\u05D5\\u05E1\\u05D9\\u05E3';\n      track('influenced-revenue', { action: 'continue_without_frame' });\n      addToCart([{ id: printVid, quantity: 1 }], function (ok) {\n        p2.classList.remove('ld');\n        if (ok) {\n          didAdd = true;\n          showSnack('\\u05D4\\u05E4\\u05E8\\u05D9\\u05D8 \\u05D4\\u05EA\\u05D5\\u05D5\\u05E1\\u05E3 \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA', false);\n          close();\n        } else {\n          p2.textContent = '\\u05D4\\u05DE\\u05E9\\u05DA \\u05DC\\u05DC\\u05D0 \\u05DE\\u05E1\\u05D2\\u05E8\\u05EA';\n        }\n      });\n    });\n  }\n\n  /* ────── 8. Reset the ATC button loading state ────── */\n  function resetATCButtons() {\n    setTimeout(function () {\n      var btns = document.querySelectorAll('button[type=\"submit\"][is=\"custom-button\"]');\n      for (var i = 0; i < btns.length; i++) {\n        btns[i].removeAttribute('aria-busy');\n        btns[i].classList.remove('is-loading');\n        var d = btns[i].querySelector('div');\n        if (d) { d.style.cssText = ''; }\n        var ld = btns[i].querySelector('.button__loader');\n        if (ld) { ld.style.cssText = ''; }\n      }\n    }, 150);\n  }\n\n  /* ────── 9. Extract variant ID from fetch body ────── */\n  function extractVariantFromBody(body) {\n    if (!body) return null;\n    if (body instanceof FormData) {\n      var idVal = body.get('id');\n      return idVal ? parseInt(idVal, 10) : null;\n    }\n    if (body instanceof URLSearchParams) {\n      var uVal = body.get('id');\n      return uVal ? parseInt(uVal, 10) : null;\n    }\n    var str = typeof body === 'string' ? body : null;\n    if (!str) {\n      try { str = JSON.stringify(body); } catch (e) { return null; }\n    }\n    if (!str) return null;\n    var m = str.match(/\"id\"\\s*:\\s*\"?(\\d+)\"?/);\n    if (m) return parseInt(m[1], 10);\n    m = str.match(/\\bid=(\\d+)/);\n    if (m) return parseInt(m[1], 10);\n    return null;\n  }\n\n  /* ────── 10. Determine if this call should be intercepted ────── */\n  function shouldIntercept(vid) {\n    if (!tagCheckResult) return false;\n    if (popupOpen) return false;\n    if (debouncing) return false;\n    if (variantHasFrame(vid)) return false;\n    return true;\n  }\n\n  /* ────── 11. Build fake response for the theme ────── */\n  function fakeCartResponse() {\n    var fakeBody = JSON.stringify({ items: [], sections: {} });\n    return new Response(fakeBody, {\n      status: 200,\n      statusText: 'OK',\n      headers: { 'Content-Type': 'application/json' }\n    });\n  }\n\n  /* ────── 12. Trigger popup from any source ────── */\n  function triggerPopup(vid, isBuyNow) {\n    debouncing = true;\n    setTimeout(function () { debouncing = false; }, 1500);\n\n    resetATCButtons();\n    closeDrawer();\n\n    var capturedVid = vid;\n    var sInfo = getSizeInfo(capturedVid);\n    fetchFrames(function (frames) {\n      if (!frames || !frames.length) {\n        // Frames collection unavailable — the upsell popup can't be shown, so\n        // report the failed experience while still completing the add gracefully.\n        try {\n          if (typeof Variant !== 'undefined' && Variant.reportExperienceFailure) {\n            Variant.reportExperienceFailure('element_not_found', 'collection:' + FRAMES_HANDLE, 'EXP3A0C8609', '1');\n          }\n        } catch (e) {}\n        addToCart([{ id: capturedVid, quantity: 1 }], function () {\n          if (isBuyNow) { window.location.href = '/checkout'; }\n          else { openDrawer(); }\n        });\n        return;\n      }\n      showPopup(capturedVid, sInfo.idx, sInfo.label, frames, isBuyNow);\n    });\n  }\n\n  /* ────── 13. THE FETCH INTERCEPTOR ────── */\n  window.fetch = function (input, init) {\n    try {\n      var url = typeof input === 'string' ? input : (input && input.url ? input.url : String(input));\n\n      if (url.indexOf('cart/add') !== -1 && tagCheckResult && !popupOpen && !debouncing) {\n        var bodySource = (init && init.body) ? init.body : null;\n        if (input && typeof input === 'object' && input.body) bodySource = input.body;\n\n        var vid = extractVariantFromBody(bodySource);\n        if (!vid) vid = getSelectedVariantId();\n\n        if (vid && shouldIntercept(vid)) {\n          triggerPopup(vid, false);\n          return Promise.resolve(fakeCartResponse());\n        }\n      }\n    } catch (e) {}\n\n    return _realFetch.apply(this, arguments);\n  };\n\n  /* ────── 13b. XHR interceptor for Buy Now / checkout flows ────── */\n  var _realXhrOpen = XMLHttpRequest.prototype.open;\n  var _realXhrSend = XMLHttpRequest.prototype.send;\n\n  XMLHttpRequest.prototype.open = function (method, url) {\n    this._afuUrl = url;\n    this._afuMethod = method;\n    return _realXhrOpen.apply(this, arguments);\n  };\n\n  XMLHttpRequest.prototype.send = function (body) {\n    if (this._afuUrl && tagCheckResult && !popupOpen && !debouncing) {\n      var url = this._afuUrl;\n      if (url.indexOf('cart/add') !== -1 && !this._afuFromUs) {\n        var vid = extractVariantFromBody(body);\n        if (!vid) vid = getSelectedVariantId();\n        if (vid && shouldIntercept(vid)) {\n          triggerPopup(vid, true);\n          this.abort();\n          return;\n        }\n      }\n    }\n    return _realXhrSend.apply(this, arguments);\n  };\n\n  /* ────── 14. Buy Now button interception ────── */\n  var _buyNowWired = false;\n\n  function findBuyNowButtons() {\n    var results = [];\n    var hosts = document.querySelectorAll('shopify-buy-it-now-button, shopify-accelerated-checkout');\n    for (var i = 0; i < hosts.length; i++) {\n      var root = hosts[i].shadowRoot;\n      if (root) {\n        var btn = root.querySelector('.shopify-payment-button__button--unbranded');\n        if (btn) results.push(btn);\n      }\n    }\n    if (!results.length) {\n      var fallback = document.querySelectorAll('.shopify-payment-button__button--unbranded');\n      for (var j = 0; j < fallback.length; j++) results.push(fallback[j]);\n    }\n    return results;\n  }\n\n  function wireBuyNowButton(btn) {\n    if (btn._afuWired) return;\n    btn._afuWired = true;\n    btn.addEventListener('click', function (e) {\n      if (!tagCheckResult || popupOpen || debouncing) return;\n      var vid = getSelectedVariantId();\n      if (!vid || !shouldIntercept(vid)) return;\n      e.preventDefault();\n      e.stopPropagation();\n      e.stopImmediatePropagation();\n      triggerPopup(vid, true);\n    }, true);\n  }\n\n  /* ────── 14a. Standard Add-to-Cart interception (device-agnostic) ──────\n   * Belt-and-suspenders trigger: some environments (and some desktop flows)\n   * don't route the add through our patched window.fetch/XHR — e.g. when the\n   * theme captured a fetch reference before our async variant script ran.\n   * Intercepting the form submit + ATC button click in the CAPTURE phase runs\n   * BEFORE the theme's own submit handler, so the popup fires reliably on both\n   * desktop and mobile regardless of how the add request is dispatched. */\n  function isStandardAtcForm(form) {\n    if (!form) return false;\n    // Must be a product add-to-cart form, not a payment / installment / quick-buy form.\n    var isProdForm = (form.getAttribute && form.getAttribute('is') === 'product-form') ||\n      (form.classList && form.classList.contains('shopify-product-form'));\n    if (!isProdForm) return false;\n    var id = form.id || '';\n    if (id.indexOf('installment') !== -1 || id.indexOf('quick-buy') !== -1) return false;\n    if (form.closest && (form.closest('[data-shopify=\"payment-button\"]') || form.closest('.shopify-payment-button'))) return false;\n    return true;\n  }\n\n  function setupStandardAtcIntercept() {\n    // Capture-phase submit — fires before the theme's ProductForm._onSubmit.\n    document.addEventListener('submit', function (e) {\n      if (!tagCheckResult || popupOpen || debouncing) return;\n      var form = e.target;\n      if (!isStandardAtcForm(form)) return;\n      var inp = form.querySelector('input[name=\"id\"]');\n      var vid = inp ? parseInt(inp.value, 10) : getSelectedVariantId();\n      if (!vid || !shouldIntercept(vid)) return;\n      e.preventDefault();\n      e.stopPropagation();\n      e.stopImmediatePropagation();\n      triggerPopup(vid, false);\n    }, true);\n\n    // Capture-phase click on the ATC submit button — covers themes/buttons that\n    // add via JS click handler rather than a native form submit.\n    document.addEventListener('click', function (e) {\n      if (!tagCheckResult || popupOpen || debouncing) return;\n      var t = e.target;\n      if (!t || !t.closest) return;\n      var btn = t.closest('button[type=\"submit\"], [type=\"submit\"]');\n      if (!btn) return;\n      // Ignore payment/dynamic-checkout buttons (handled separately) and the popup's own buttons.\n      if (btn.closest('.shopify-payment-button') || btn.closest('.' + PREFIX + '-ov')) return;\n      var form = btn.closest('form');\n      if (!form && btn.getAttribute) {\n        var fid = btn.getAttribute('form');\n        if (fid) form = document.getElementById(fid);\n      }\n      if (!isStandardAtcForm(form)) return;\n      var inp = form.querySelector('input[name=\"id\"]');\n      var vid = inp ? parseInt(inp.value, 10) : getSelectedVariantId();\n      if (!vid || !shouldIntercept(vid)) return;\n      e.preventDefault();\n      e.stopPropagation();\n      e.stopImmediatePropagation();\n      triggerPopup(vid, false);\n    }, true);\n  }\n\n  function setupBuyNowIntercept() {\n    function tryWire() {\n      var btns = findBuyNowButtons();\n      for (var i = 0; i < btns.length; i++) wireBuyNowButton(btns[i]);\n      if (btns.length) _buyNowWired = true;\n    }\n    tryWire();\n    if (!_buyNowWired) {\n      var attempts = 0;\n      var poll = setInterval(function () {\n        tryWire();\n        attempts++;\n        if (_buyNowWired || attempts > 30) clearInterval(poll);\n      }, 500);\n    }\n\n    document.addEventListener('click', function (e) {\n      if (!tagCheckResult || popupOpen || debouncing) return;\n      var t = e.target;\n      if (!t || !t.classList) return;\n      if (t.classList.contains('shopify-payment-button__button--unbranded') ||\n          (t.closest && t.closest('.shopify-payment-button__button--unbranded'))) {\n        var vid = getSelectedVariantId();\n        if (!vid || !shouldIntercept(vid)) return;\n        e.preventDefault();\n        e.stopPropagation();\n        e.stopImmediatePropagation();\n        triggerPopup(vid, true);\n      }\n    }, true);\n\n    document.addEventListener('submit', function (e) {\n      if (!tagCheckResult || popupOpen || debouncing) return;\n      var form = e.target;\n      if (!form || !form.action) return;\n      var action = typeof form.action === 'string' ? form.action : '';\n      if (action.indexOf('/checkout') === -1 && action.indexOf('/cart') === -1) return;\n      var isPaymentForm = form.closest && (form.closest('[data-shopify=\"payment-button\"]') || form.closest('.shopify-payment-button'));\n      if (!isPaymentForm) return;\n      var vid = getSelectedVariantId();\n      if (!vid || !shouldIntercept(vid)) return;\n      e.preventDefault();\n      e.stopImmediatePropagation();\n      triggerPopup(vid, true);\n    }, true);\n\n    var _realFormSubmit = HTMLFormElement.prototype.submit;\n    HTMLFormElement.prototype.submit = function () {\n      if (tagCheckResult && !popupOpen && !debouncing) {\n        var action = this.action || '';\n        if ((action.indexOf('/checkout') !== -1 || action.indexOf('/cart') !== -1) &&\n            !this._afuFromUs) {\n          var vid = getSelectedVariantId();\n          if (vid && shouldIntercept(vid)) {\n            triggerPopup(vid, true);\n            return;\n          }\n        }\n      }\n      return _realFormSubmit.apply(this, arguments);\n    };\n  }\n\n  /* ──────────────────────────────────────────────────────────────\n   *  Coupon label relabeling — display only.\n   *  Shows \"Special Coupon\" instead of the raw coupon code in the cart\n   *  discount badge, WITHOUT touching the actual coupon/discount itself\n   *  (the remove button keeps the real code, the amount stays intact).\n   * ────────────────────────────────────────────────────────────── */\n\n  function relabelCouponBadge(badge) {\n    try {\n      if (!badge) return;\n      // Confirm this badge belongs to our coupon (via the remove button's code\n      // or the visible title text) so other discounts are left untouched.\n      var removeBtn = badge.querySelector('cart-discount-remove-button[discount-code=\"' + COUPON_CODE + '\"]');\n      var matchesCode = !!removeBtn;\n\n      // Walk the direct child nodes and rewrite only the title text node,\n      // preserving the leading icon, the \"(-amount)\" part, and the remove button.\n      var nodes = badge.childNodes;\n      for (var i = 0; i < nodes.length; i++) {\n        var node = nodes[i];\n        if (node.nodeType !== 3) continue; // text nodes only\n        var raw = node.nodeValue;\n        if (!raw) continue;\n        if (raw.indexOf(COUPON_CODE) === -1) continue;\n        if (!matchesCode) {\n          // No remove button to confirm; only relabel if the text clearly\n          // starts with our coupon code to avoid touching other discounts.\n          if (raw.replace(/\\s+/g, ' ').trim().indexOf(COUPON_CODE) !== 0) continue;\n        }\n        // Replace the coupon code occurrence with the friendly label,\n        // keeping any surrounding whitespace and the price suffix.\n        node.nodeValue = raw.replace(COUPON_CODE, COUPON_DISPLAY_LABEL);\n        badge.setAttribute('data-afu-relabeled', '1');\n      }\n    } catch (e) {}\n  }\n\n  function relabelAllCoupons(root) {\n    try {\n      var scope = root && root.querySelectorAll ? root : document;\n      // Target discount badges that reference our coupon.\n      var btns = scope.querySelectorAll('cart-discount-remove-button[discount-code=\"' + COUPON_CODE + '\"]');\n      for (var i = 0; i < btns.length; i++) {\n        var badge = btns[i].closest('li.badge') || btns[i].closest('.badge') || btns[i].parentNode;\n        relabelCouponBadge(badge);\n      }\n      // Fallback: badges without a remove button (discount removal disabled).\n      var badges = scope.querySelectorAll('li.badge:not([data-afu-relabeled])');\n      for (var j = 0; j < badges.length; j++) {\n        if (badges[j].textContent && badges[j].textContent.indexOf(COUPON_CODE) !== -1) {\n          relabelCouponBadge(badges[j]);\n        }\n      }\n    } catch (e) {}\n  }\n\n  var _couponObserver = null;\n  function watchCouponLabels() {\n    relabelAllCoupons(document);\n    if (_couponObserver) return;\n    try {\n      _couponObserver = new MutationObserver(function (mutations) {\n        // Cart re-renders (add/update) replace the line-items markup; relabel again.\n        for (var m = 0; m < mutations.length; m++) {\n          if (mutations[m].addedNodes && mutations[m].addedNodes.length) {\n            relabelAllCoupons(document);\n            break;\n          }\n        }\n      });\n      _couponObserver.observe(document.body, { childList: true, subtree: true });\n    } catch (e) {}\n    // Also relabel right after our own cart refresh events fire.\n    document.addEventListener('cart:refresh', function () { setTimeout(function () { relabelAllCoupons(document); }, 0); });\n    document.addEventListener('cart:added', function () { setTimeout(function () { relabelAllCoupons(document); }, 0); });\n  }\n\n  /* ────── 15. SETUP — activation checks ────── */\n  function setup() {\n    if (isSetup) return;\n\n    var path = window.location.pathname;\n    var can = document.querySelector('link[rel=\"canonical\"]');\n    var ogUrl = document.querySelector('meta[property=\"og:url\"]');\n    var isProduct = path.indexOf('/products/') !== -1 ||\n      (can && can.href.indexOf('/products/') !== -1) ||\n      (ogUrl && ogUrl.content.indexOf('/products/') !== -1);\n    if (!isProduct) return;\n\n    var titleEl = document.querySelector('h1');\n    var title = titleEl ? titleEl.textContent.trim() : '';\n    if (title.indexOf('\\u05E1\\u05D8') !== -1 || title.indexOf('\\u05DE\\u05D0\\u05E8\\u05D6') !== -1) return;\n\n    isSetup = true;\n\n    var handle = getHandle();\n    if (!handle) return;\n\n    sfQuery(\n      'query($h:String!){product(handle:$h){tags options{name values}variants(first:50){nodes{id title selectedOptions{name value}}}}}',\n      { h: handle },\n      function (err, data) {\n        tagCheckDone = true;\n        if (err || !data || !data.product) return;\n        var p = data.product;\n        var tags = p.tags || [];\n        var ok = false;\n        for (var i = 0; i < tags.length; i++) {\n          if (tags[i].toLowerCase() === 'print') { ok = true; break; }\n        }\n        if (!ok) return;\n        tagCheckResult = true;\n        sfOptions = p.options || [];\n        sfVariants = (p.variants && p.variants.nodes) || [];\n      }\n    );\n\n    fetchFrames(function () {});\n    setupStandardAtcIntercept();\n    setupBuyNowIntercept();\n  }\n\n  /* ────── 16. Run setup as early as possible ────── */\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', function () { setup(); watchCouponLabels(); });\n  } else {\n    setup();\n    watchCouponLabels();\n  }\n  setTimeout(setup, 500);\n  setTimeout(setup, 1500);\n  // Coupon relabeling runs site-wide (cart drawer + cart page), independent of\n  // the product-page activation checks, and re-applies after cart updates.\n  setTimeout(watchCouponLabels, 500);\n  setTimeout(watchCouponLabels, 1500);\n})();\n\n/////// visual editor changes start //////\n(function() {\n  'use strict';\n\n// Visual Editor: h2 : html > body > div:nth-child(32) > div > div:nth-child(2) > h2 : רוצה להוסיף מסגרת להדפס?\n    try {\n      const element = document.querySelector('html > body > div:nth-child(32) > div > div:nth-child(2) > h2');\n      if (element) {\n\n        element.textContent = 'רוצים להוסיף מסגרת להדפס?';\n      }\n    } catch (error) {\n      // Silently handle any errors\n    }\n})();\n/////// visual editor changes end //////"],"weights":[0.5,0.5],"key":"EXPDA3D7ACB","meta":[{"key":"control","name":"Control"},{"key":"variant-1","name":"Variant 1"}],"phase":"0","name":"Frame Suggestion 3.0"}]},"exp-EXPAR1000438":{"defaultValue":"","rules":[{"id":"exp-ref-rule-EXPAR1000438","coverage":1,"hashAttribute":"id","seed":"70df57b8-76ad-4a22-a8f8-7aeebc9a898e","hashVersion":2,"variations":["","/**\n * Smart-sticky header on mobile (direct JS + CSS implementation).\n *\n * On mobile viewports (<= 1024px), the site header hides when the user scrolls\n * DOWN and reappears when they scroll UP. On desktop and on cart/checkout pages\n * the header behaves exactly as before (always-pinned).\n *\n * This implementation does NOT rely on the theme's `hide-on-scroll` attribute.\n * It toggles a `header--hidden` class and animates the header via transform.\n */\n(function () {\n  'use strict';\n\n  var MOBILE_MAX_WIDTH = 1024;\n  var SCROLL_THRESHOLD = 80; // px from top before hiding kicks in\n  var DELTA = 5; // min scroll distance to register a direction change\n  var THROTTLE_MS = 100;\n  var HEADER_SELECTOR = 'store-header.header';\n  var HIDDEN_CLASS = 'header--hidden';\n\n  function isCartOrCheckoutPage() {\n    try {\n      var path = (window.location.pathname || '').toLowerCase();\n      return path.indexOf('/cart') !== -1 || path.indexOf('/checkout') !== -1;\n    } catch (e) {\n      return false;\n    }\n  }\n\n  function isMobileViewport() {\n    return window.innerWidth <= MOBILE_MAX_WIDTH;\n  }\n\n  function injectStyles() {\n    if (document.getElementById('variant-smart-sticky-header-styles')) {\n      return;\n    }\n    var style = document.createElement('style');\n    style.id = 'variant-smart-sticky-header-styles';\n    style.textContent =\n      '@media (max-width: ' + MOBILE_MAX_WIDTH + 'px) {' +\n        'store-header.header {' +\n          'transition: transform 0.3s ease;' +\n        '}' +\n        'store-header.header.' + HIDDEN_CLASS + ' {' +\n          'transform: translateY(-100%);' +\n        '}' +\n        '@media (prefers-reduced-motion: reduce) {' +\n          'store-header.header {' +\n            'transition: none;' +\n          '}' +\n        '}' +\n      '}';\n    (document.head || document.documentElement).appendChild(style);\n  }\n\n  function init() {\n    try {\n      // Cart/checkout pages keep the always-pinned header.\n      if (isCartOrCheckoutPage()) {\n        return;\n      }\n\n      var header = document.querySelector(HEADER_SELECTOR);\n      if (!header) {\n        return;\n      }\n\n      injectStyles();\n\n      var lastScrollY = window.scrollY || window.pageYOffset || 0;\n      var ticking = false;\n\n      function onScroll() {\n        if (ticking) {\n          return;\n        }\n        ticking = true;\n        setTimeout(function () {\n          try {\n            // Only apply the hide/show behavior on mobile viewports.\n            if (!isMobileViewport()) {\n              ticking = false;\n              return;\n            }\n\n            var currentY = window.scrollY || window.pageYOffset || 0;\n\n            if (currentY < SCROLL_THRESHOLD) {\n              // Near the top — always show the header.\n              header.classList.remove(HIDDEN_CLASS);\n            } else if (currentY > lastScrollY + DELTA) {\n              // Scrolling down past the threshold — hide it.\n              header.classList.add(HIDDEN_CLASS);\n            } else if (currentY < lastScrollY - DELTA) {\n              // Scrolling up — reveal it.\n              header.classList.remove(HIDDEN_CLASS);\n            }\n\n            lastScrollY = currentY;\n          } catch (e) {\n            // Ignore errors during scroll handling.\n          } finally {\n            ticking = false;\n          }\n        }, THROTTLE_MS);\n      }\n\n      function onResize() {\n        // On desktop, ensure the header is never left hidden.\n        if (!isMobileViewport()) {\n          header.classList.remove(HIDDEN_CLASS);\n        }\n      }\n\n      window.addEventListener('scroll', onScroll, { passive: true });\n      window.addEventListener('resize', onResize);\n    } catch (e) {\n      // Fail silently to avoid impacting the page.\n    }\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', init, { once: true });\n  } else {\n    init();\n  }\n})();\n"],"weights":[0.5,0.5],"key":"EXPAR1000438","meta":[{"key":"control","name":"Control"},{"key":"variant-1","name":"Variant 1"}],"phase":"0","name":"Switch Header to Smart-Sticky on Mobile"}]}},"experiments":[],"dateUpdated":"2026-10-25T20:50:19.489Z"}