Back to Compare
Elite Sleep

Momentous

Elite Sleep 30 Servings

Price
£1.133

Flavour

Momentous

Buy

Price History

Loading...

Description

Elite Sleep capsules are formulated specifically for sleep optimization and recovery, supporting the body's natural sleep-wake cycle by providing 4 key nutrients: melatonin, tart cherry powder, L-Theanine, and Valerian root, which help balance neurotransmitters and hormones involved in sleep regulation. Elite Sleep is designed to help get your sleep cycle back on track and should not be used daily.

Ingredients

Vitamin B6 (as Pyridoxine HCL) — 4mg Supports normal nervous system function and helps support neurotransmitter pathways involved in sleep. Melatonin — 3mg Helps regulate the body’s natural sleep-wake cycle and supports faster sleep onset. Tart Cherry Fruit Powder — 200mg Traditionally used to support sleep quality and recovery. L-Theanine — 200mg Promotes calm and relaxation to help prepare the body for sleep. Valerian Root Extract — 300mg Botanical support for relaxation and restful sleep. Other Ingredients: Hypromellose (Capsule), Rice Flour, Silica, Magnesium Stearate Onset Time & Expected Results When to use Take 2 capsules 30–60 minutes before bed during travel, schedule changes, jet lag, or other short-term periods of disrupted sleep. Onset time Many people begin to feel a calming effect the first night, with noticeable improvement in sleep quality often within the first week. Expected results As the formula takes effect, expect a gentler transition into sleep, better support for staying asleep, and more restorative overnight rest. You should wake feeling more refreshed and better recovered. Clinical Research & 3rd Party Test Results There are 5 credible reviews and studies related to this product: Repeated Melatonin Supplementation Improves Sleep in Hypertensive Patients Treated with Beta-Blockers: A Randomized Controlled Trial The Use of Exogenous Melatonin in Delayed Sleep Phase Disorder: A Meta-analysis The effects of L-theanine consumption on sleep outcomes: A systematic review and meta-analysis Effect of tart cherry juice (Prunus cerasus) on melatonin levels and enhanced sleep quality The Scientific Basis for the Reputed Activity of Valerian Build Your Stack Best Seller {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image7388") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.8 Rated 4.8 out of 5 stars 959 {"averageRating":"4.8","reviewCount":959} Magnesium L-Threonate Crosses the blood-brain barrier boosting magnesium levels Helps support learning, attention, and cognitive function Promotes calm brain activity and improved sleep quality £29.25 £39.00 Add to Bag Magnesium L-Threonate Subscribe & Save 25% £ 29.25 £ 39.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 1 month Delivery every 2 months Delivery every 3 months One-time Purchase £ 39.00 £ 39.00 £ 39.00 £ 39.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } Magnesium L-Threonate Subscribe & Save 25% £ 29.25 £ 39.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 1 month Delivery every 2 months Delivery every 3 months One-time Purchase £ 39.00 £ 39.00 £ 39.00 £ 39.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image8969") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.8 Rated 4.8 out of 5 stars 221 {"averageRating":"4.8","reviewCount":221} L-Theanine Promotes calm, focused mental clarity Helps reduce acute stress without brain fog Supports relaxation and sleep quality £23.25 £31.00 Add to Bag L-Theanine Subscribe & Save 25% £ 23.25 £ 31.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 31.00 £ 31.00 £ 31.00 £ 31.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } L-Theanine Subscribe & Save 25% £ 23.25 £ 31.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 31.00 £ 31.00 £ 31.00 £ 31.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image8250") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.8 Rated 4.8 out of 5 stars 205 {"averageRating":"4.8","reviewCount":205} Apigenin Supports deeper, more restorative sleep Helps you relax and fall asleep faster Promotes a calmer nervous system before bed £13.50 £18.00 Add to Bag Apigenin Subscribe & Save 25% £ 13.50 £ 18.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 18.00 £ 18.00 £ 18.00 £ 18.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } Apigenin Subscribe & Save 25% £ 13.50 £ 18.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 18.00 £ 18.00 £ 18.00 £ 18.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } New Lower Price {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image6792") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.5 Rated 4.5 out of 5 stars 517 {"averageRating":"4.5","reviewCount":517} Nightly Sleep 30-Pack Magnesium L-Threonate, Apigenin, and L-Theanine to calm the brain Helps reduce nighttime wakeups + promote next-day mental clarity Non habit forming + safe for daily use £63.00 £84.00 Add to Bag Nightly Sleep 30-Pack Subscribe & Save 25% £ 63.00 £ 84.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 1 month Delivery every 2 months Delivery every 3 months One-time Purchase £ 84.00 £ 84.00 £ 84.00 £ 84.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } Nightly Sleep 30-Pack Subscribe & Save 25% £ 63.00 £ 84.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 1 month Delivery every 2 months Delivery every 3 months One-time Purchase £ 84.00 £ 84.00 £ 84.00 £ 84.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image7820") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.7 Rated 4.7 out of 5 stars 100 {"averageRating":"4.7","reviewCount":100} Inositol Helps regulate neurotransmitters like serotonin + dopamine Supports falling back asleep + promotes calm May reduce nighttime wakeups £15.75 £21.00 Add to Bag Inositol Subscribe & Save 25% £ 15.75 £ 21.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 21.00 £ 21.00 £ 21.00 £ 21.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } Inositol Subscribe & Save 25% £ 15.75 £ 21.00 Out of Stock Protection 10% off future deliveries Cancel or reschedule anytime Experience long-term results Delivery every 2 months Delivery every 1 month Delivery every 3 months One-time Purchase £ 21.00 £ 21.00 £ 21.00 £ 21.00 Sorry, We are currently out of stock! Estimated to be back in stock: Add to Bag Notify me when available View Full Details .first-hidden { display: none; } .product-carousel .swiper-slide { flex-shrink: 0; } @media (min-width: 768px) { .product-carousel .swiper-wrapper { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; } .product-carousel .swiper-wrapper::-webkit-scrollbar { display: none; } } #shopify-section-template--20282426425527__horizontal_line_hMFxBL { padding-top: 0px; padding-bottom: 10px; } @media (max-width: 1023px) { #shopify-section-template--20282426425527__horizontal_line_hMFxBL { padding-top: 0px; padding-bottom: 10px; } } Frequently Asked Questions What is Elite Sleep used for? Elite Sleep is a sleep support supplement designed to promote relaxation and improve sleep quality as part of a nightly routine. It is commonly used by individuals looking to support consistent sleep. Who should use Elite Sleep? Elite Sleep is commonly used by individuals looking to support sleep quality, relaxation, and consistency in their sleep routine. When should I take Elite Sleep? Elite Sleep is typically taken in the evening, shortly before bedtime. Timing can be adjusted based on individual routines and sensitivity. Can I take Elite Sleep with other medications or supplements? Elite Sleep is commonly used as part of a broader supplement routine. Many individuals include it alongside other products that support relaxation and sleep. If you are taking medications or have specific health considerations, it is recommended to consult a healthcare professional before use. Can I use Elite Sleep if I have dietary restrictions or allergies? Elite Sleep is gluten-free and formulated to be suitable for most individuals. Those with specific dietary restrictions or allergies should review the ingredient list before use. Is this product NSF Certified for Sport®? Yes. Momentous Elite Sleep is NSF Certified for Sport®, meaning every batch is independently tested to confirm label accuracy, purity, and the absence of banned substances. 4.5 Rated 4.5 out of 5 stars Based on 139 reviews 5 Rated out of 5 stars 104 Total 5 star reviews: 104 4 Rated out of 5 stars 16 Total 4 star reviews: 16 3 Rated out of 5 stars 9 Total 3 star reviews: 9 2 Rated out of 5 stars 7 Total 2 star reviews: 7 1 Rated out of 5 stars 3 Total 1 star reviews: 3 86%would recommend this product Reviews Summary Generated by AI from 100 most recent customer reviews Last updated 5 months ago Customers say this sleep supplement helps them fall asleep faster and achieve deeper, more restful sleep. Many reviews mention improved sleep quality metrics, with users tracking better REM and deep sleep phases through wearable devices. Common feedback includes waking up refreshed without grogginess, unlike other sleep aids they've tried. Frequent comments address the supplement's effectiveness for travel and adjusting sleep schedules across time zones. While most praise its natural formulation and consistent results, some note concerns about a strong, unpleasant odor from the capsules. Reviews are mixed on effectiveness for chronic sleep issues, with some finding it transformative while others report minimal improvement. Overall, users appreciate its non-habit-forming nature and ability to help both falling asleep and staying asleep. Read More Customers Talked About Effectiveness Sleep Quality Sleep Support Side Effects Taste Filters Write a Review (Opens in a new window) 139 reviews Sort Most RecentPhotos & VideosMost HelpfulHighest RatingOldestLowest RatingLeast Helpful DJ David J. Verified Buyer 21 seconds ago Rated 5 out of 5 stars Great sleep aid This works well to help me sleep longer. Read MoreRead more about this review Was this helpful?Yes, this review from David J. was helpful. 0 people voted yesNo, this review from David J. was not helpful. 0 people voted no TE Tiffany E. Verified Buyer Product Standouts Results 1 week ago Product Standouts Results Rated 5 out of 5 stars Such deep sleep I travel a lot both locally and out of state - small trips but enough to really wreck your sleep schedule. I’ve also been a dancer for years which means working the classic daytime schedule on weekdays then staying out to 2-4am Friday and/or Saturday. This stuff helps me reset my sleep schedule every time because it makes me SO sleepy and then keeps me in a deep sleep whether I got to bed at 10pm and 2am. I also take magnesium at night with it. K.O. Yes, I know this sounds chaotic - but that’s what happens when a natural born night owl is forced onto society’s day schedule! Regardless, I appreciate this product and that it has a reasonable dose of melatonin and not and insane 5-10mg dose that is so far beyond what is medically recommended. I don’t take it every night, but when I do, it’s super helpful. Read MoreRead more about this review Was this helpful?Yes, this review from Tiffany E. was helpful. 0 people voted yesNo, this review from Tiffany E. was not helpful. 0 people voted no R Ryan 1 month ago Rated 5 out of 5 stars 5 Stars Great product Read MoreRead more about this review Was this helpful?Yes, this review from Ryan was helpful. 0 people voted yesNo, this review from Ryan was not helpful. 0 people voted no GW Greg W. Verified Buyer 4 months ago Rated 5 out of 5 stars Sleep Great product, use it everyday! Read MoreRead more about this review Was this helpful?Yes, this review from Greg W. was helpful. 0 people voted yesNo, this review from Greg W. was not helpful. 0 people voted no B Brian Verified Buyer 5 months ago Rated 5 out of 5 stars zzzzzzzz Has been great for helping me get to and stay asleep. Only thing i'd like to see is more melatonin in there. Read MoreRead more about this review Was this helpful?Yes, this review from Brian was helpful. 0 people voted yesNo, this review from Brian was not helpful. 0 people voted no Loading... Loading... Show More {"areReviewsGrouped":false,"chatAssistant":{"reviewCount":139},"media":[],"productAttributes":[],"questionCount":0,"reviewAggregate":{"dateUpdated":"2026-07-24T18:49:01.821Z","mediaCount":0,"productAttributeCount":[{"title":"Product Standouts","type":"multi-value","options":[{"title":"Results","count":1}]}],"productId":"shopify-6896504635575","productName":"Elite Sleep","ratingAndReviewCount":139,"ratingAndReviewCountByLevel":{"level1Count":3,"level2Count":7,"level3Count":9,"level4Count":16,"level5Count":104},"ratingAndReviewValuesTotal":628,"ratingCount":0,"ratingCountByLevel":{},"ratingValuesTotal":0,"recommendationCount":120,"replyCount":0,"replyWordsTotal":0,"reviewCount":139,"reviewCountByLevel":{"level1Count":3,"level2Count":7,"level3Count":9,"level4Count":16,"level5Count":104},"reviewRatingValuesTotal":628,"reviewWordsTotal":4499,"subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c"},"reviews":[{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"1040e3d7-11cf-4d5b-9dcf-75e4c59756bf","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","productId":"shopify-6896504635575","body":"This works well to help me sleep longer.","dateCreated":"2026-07-24T18:49:01.278Z","dateUpdated":"2026-07-24T18:49:01.278Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productHandle":"elite-sleep","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Elite-Sleep_HERO_x280.png?v=1777933308","productName":"Elite Sleep","productUrl":"//www.livemomentous.com/products/elite-sleep","rating":5,"reviewer":{"displayName":"David J.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Great sleep aid","unhelpfulCount":0,"variantId":"40354106048695"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"8f58d14c-7f43-48b4-a3b4-d5b0a2710d4d","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","productId":"shopify-6896504635575","body":"I travel a lot both locally and out of state - small trips but enough to really wreck your sleep schedule. I’ve also been a dancer for years which means working the classic daytime schedule on weekdays then staying out to 2-4am Friday and/or Saturday. This stuff helps me reset my sleep schedule every time because it makes me SO sleepy and then keeps me in a deep sleep whether I got to bed at 10pm and 2am. I also take magnesium at night with it. K.O. Yes, I know this sounds chaotic - but that’s what happens when a natural born night owl is forced onto society’s day schedule! Regardless, I appreciate this product and that it has a reasonable dose of melatonin and not and insane 5-10mg dose that is so far beyond what is medically recommended. I don’t take it every night, but when I do, it’s super helpful. ","dateCreated":"2026-07-15T18:21:38.952Z","dateUpdated":"2026-07-15T18:21:38.952Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productAttributes":[{"title":"Product Standouts","type":"multi-value","value":["Results"]}],"productHandle":"elite-sleep","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Elite-Sleep_HERO_x280.png?v=1777933308","productName":"Elite Sleep","productUrl":"//www.livemomentous.com/products/elite-sleep","rating":5,"reviewer":{"displayName":"Tiffany E.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Such deep sleep ","unhelpfulCount":0,"variantId":"40354106048695"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"ca39046a-8cbc-4cf8-be29-f057c91c5473","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","productId":"shopify-6896504635575","body":"Great product","dateCreated":"2026-06-09T18:28:06.000Z","dateUpdated":"2026-06-09T18:28:06.000Z","externalProvider":"shopify-shop","helpfulCount":0,"isRecommended":true,"languageCode":"en","productHandle":"elite-sleep","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Elite-Sleep_HERO_x280.png?v=1777933308","productName":"Elite Sleep","productUrl":"//www.livemomentous.com/products/elite-sleep","rating":5,"reviewer":{"displayName":"Ryan"},"isIncentivized":false,"status":"approved","title":"5 Stars","unhelpfulCount":0,"variantId":"40354106048695"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"db257f61-bca7-4dc4-9c5d-52a7bfbf3a56","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","productId":"shopify-6896504635575","body":"Great product, use it everyday!","dateCreated":"2026-03-23T22:21:22.835Z","dateUpdated":"2026-03-23T22:21:22.835Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productHandle":"elite-sleep","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Elite-Sleep_HERO_x280.png?v=1777933308","productName":"Elite Sleep","productUrl":"//www.livemomentous.com/products/elite-sleep","rating":5,"reviewer":{"displayName":"Greg W.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Sleep","unhelpfulCount":0,"variantId":"40354106048695"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"bfcb7ce5-074d-4dfd-9e98-43a45c2f6ef8","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-6896504635575","productId":"shopify-6896504635575","body":"Has been great for helping me get to and stay asleep. Only thing i'd like to see is more melatonin in there.","dateCreated":"2026-02-16T20:09:32.000Z","dateUpdated":"2026-02-16T20:09:32.000Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productHandle":"elite-sleep","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Elite-Sleep_HERO_x280.png?v=1777933308","productName":"Elite Sleep","productUrl":"//www.livemomentous.com/products/elite-sleep","rating":5,"reviewer":{"displayName":"Brian","isVerified":true},"isIncentivized":false,"status":"approved","title":"zzzzzzzz","unhelpfulCount":0}],"reviewsKeywords":{"keywordTopics":[{"keywords":[{"name":"effectiveness","occurrences":19},{"name":"results","occurrences":2},{"name":"performance","occurrences":2},{"name":"quality","occurrences":1}],"topic":"Effectiveness"},{"keywords":[{"name":"sleep quality","occurrences":18},{"name":"sleep","occurrences":7},{"name":"deep sleep","occurrences":1},{"name":"REM sleep","occurrences":1},{"name":"sleep duration","occurrences":1},{"name":"sleep efficiency","occurrences":1}],"topic":"Sleep Quality"},{"keywords":[{"name":"fall asleep","occurrences":1},{"name":"stay asleep","occurrences":1},{"name":"sleep aid","occurrences":1},{"name":"calming","occurrences":1},{"name":"relaxation","occurrences":1}],"topic":"Sleep Support"},{"keywords":[{"name":"grogginess","occurrences":3},{"name":"drowsiness","occurrences":2},{"name":"morning grogginess","occurrences":1},{"name":"morning energy","occurrences":1},{"name":"energy","occurrences":1}],"topic":"Side Effects"},{"keywords":[{"name":"smell","occurrences":4},{"name":"taste","occurrences":2},{"name":"aftertaste","occurrences":1},{"name":"odor","occurrences":1}],"topic":"Taste"},{"keywords":[{"name":"travel","occurrences":3},{"name":"dosage","occurrences":2},{"name":"consistency","occurrences":2},{"name":"convenience","occurrences":1},{"name":"timing","occurrences":1},{"name":"bedtime routine","occurrences":1}],"topic":"Usage"},{"keywords":[{"name":"capsules","occurrences":2},{"name":"ingredients","occurrences":2},{"name":"L-Theanine","occurrences":1},{"name":"formulation","occurrences":1},{"name":"natural remedy","occurrences":1},{"name":"clean product","occurrences":1}],"topic":"Formulation"}],"languageCode":"en"},"reviewsNextUrl":"https://api.okendo.io/v1/stores/72adcf9f-ede7-4232-8bc6-db71fceaf77c/products/shopify-6896504635575/reviews?limit=5&orderBy=date%20desc&lastEvaluated=%7B%22subscriberId%22%3A%2272adcf9f-ede7-4232-8bc6-db71fceaf77c%22%2C%22reviewId%22%3A%22bfcb7ce5-074d-4dfd-9e98-43a45c2f6ef8%22%2C%22subscriberId_productId%22%3A%2272adcf9f-ede7-4232-8bc6-db71fceaf77c%3Ashopify-6896504635575%22%2C%22dateCreated%22%3A%222026-02-16T20%3A09%3A32.000Z%22%7D","reviewsSummary":{"body":"Customers say this sleep supplement helps them fall asleep faster and achieve deeper, more restful sleep. Many reviews mention improved sleep quality metrics, with users tracking better REM and deep sleep phases through wearable devices. Common feedback includes waking up refreshed without grogginess, unlike other sleep aids they've tried. Frequent comments address the supplement's effectiveness for travel and adjusting sleep schedules across time zones. While most praise its natural formulation and consistent results, some note concerns about a strong, unpleasant odor from the capsules. Reviews are mixed on effectiveness for chronic sleep issues, with some finding it transformative while others report minimal improvement. Overall, users appreciate its non-habit-forming nature and ability to help both falling asleep and staying asleep.","contributingReviewCount":100,"dateGenerated":"2026-02-06T00:06:59.322Z","datePublished":"2026-02-17T02:07:09.992Z","languageCode":"en"},"sort":{"defaultSort":"date desc"}} !(function() { const widgets = document.querySelectorAll('.js-oke-widgetSize'); if (widgets && widgets.length) { if (!window.okeSetWidgetSizes) { window.okeSetWidgetSizes = (allWidgets) => { if (allWidgets) { allWidgets.forEach(widget => { const width = widget.getBoundingClientRect().width; widget.classList.remove('oke-is-small', 'oke-is-medium', 'oke-is-large'); widget.classList.add(width > 960 ? 'oke-is-large' : width > 640 ? 'oke-is-medium' : 'oke-is-small'); }); } }; } if (!window.okeResizeObserver) { let okeMetafieldResizerTimer; window.okeResizeObserver = new ResizeObserver(entries => { if (entries && entries.length) { if (okeMetafieldResizerTimer) { clearTimeout(okeMetafieldResizerTimer); } okeMetafieldResizerTimer = window.setTimeout(() => { window.okeSetWidgetSizes(entries.map(e => e.target)); }, 100); } }); } window.okeSetWidgetSizes(document.querySelectorAll('.js-oke-widgetSize')); widgets.forEach((widget) => { window.okeResizeObserver.observe(widget); }); } })(); @media (min-width: 1024px) { .oke-w-main { width: 67%; margin-left: auto; } } [ { "@context": "https://schema.org/", "@type": "Product", "name": "Elite Sleep", "url": "https:\/\/www.livemomentous.com\/products\/elite-sleep", "image":"https:\/\/www.livemomentous.com\/cdn\/shop\/files\/Elite-Sleep_HERO.png?v=1777933308\u0026width=1000","description": "Elite Sleep is a research-backed, melatonin-based sleep aid designed to help you fall asleep faster, stay asleep longer, and support nighttime recovery. Formulated with a blend of Melatonin, Tart Cherry, L-Theanine, and Valerian Root, it helps regulate your body’s natural sleep-wake cycle while promoting a calm, relaxed state before bed.\nThis formula is ideal for athletes, shift workers, frequent travelers, or anyone needing short-term support to reset their sleep rhythm. Elite Sleep is not intended for daily use but is perfect for periods of disrupted or irregular sleep.","sku": "850243008925","brand": { "@type": "Brand", "name": "Momentous" },"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.5", "reviewCount": "139", "bestRating": "5", "worstRating": "1" },"hasMerchantReturnPolicy": { "@type": "MerchantReturnPolicy", "@id": "#momentous-return-policy", "applicableCountry": "US", "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow", "merchantReturnDays": 30, "merchantReturnLink": "https:\/\/www.livemomentous.com\/policies\/refund-policy", "returnMethod": "https://schema.org/ReturnByMail", "returnFees": "https://schema.org/FreeReturn", "customerRemorseReturnFees": "https://schema.org/FreeReturn", "returnShippingFeesAmount": { "@type": "MonetaryAmount", "value": 0, "currency": "USD" }, "refundType": "https://schema.org/FullRefund" }, "offers": [{ "@type": "Offer","sku": "850243008925","gtin12": "850243008925","itemCondition": "https://schema.org/NewCondition", "availability": "https://schema.org/InStock", "price": 35.0, "priceCurrency": "GBP", "url": "https:\/\/www.livemomentous.com\/products\/elite-sleep?variant=40354106048695","priceSpecification": [ { "@type": "UnitPriceSpecification", "price": 35.0, "priceCurrency": "GBP", "name": "One-Time Purchase" }, { "@type": "UnitPriceSpecification", "price": 26.25, "priceCurrency": "GBP", "name": "Delivery every 1 month", "validForMemberTier": { "@type": "MemberProgramTier", "@id": "#momentous-subscriber", "name": "Subscriber" } } ],"hasMerchantReturnPolicy": { "@type": "MerchantReturnPolicy", "@id": "#momentous-return-policy" } } ] }, { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https:\/\/www.livemomentous.com" }, { "@type": "ListItem", "position": 2, "name": "Capsules", "item": "https:\/\/www.livemomentous.com\/collections\/capsules" }, { "@type": "ListItem", "position": 3, "name": "Elite Sleep", "item": "https:\/\/www.livemomentous.com\/products\/elite-sleep" } ] } ] .combined-product-button.flavour-disabled { opacity: 0.5; position: relative; cursor: not-allowed; pointer-events: none; } .combined-product-button.flavour-disabled:after { content: ' '; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: linear-gradient(to top left, rgba(0,0,0,0) calc(50% - 1px), #CFCFCA, rgba(0,0,0,0) calc(50% + 1px)) } Sign up for offers, product news, and tips Support Account Help & Contact Subscriptions Locations Press Inquiries Company About Us Careers Blog Affiliate Program Trusted Experts Wholesale Corporate Wellness Resources Privacy Policy Terms of Service Your Privacy Choices Accessibility California Prop 65 Save with HSA/FSA Certificate of Analysis Patents Do Not Sell My Information *These statements have not been evaluated by the food and drug administration. This product is not intended to diagnose, treat, cure, or prevent any disease. Afghanistan - USD $ Åland Islands - USD $ Algeria - USD $ Andorra - EUR € Anguilla - USD $ Antigua & Barbuda - USD $ Argentina - USD $ Armenia - USD $ Aruba - USD $ Ascension Island - USD $ Australia - AUD $ Austria - EUR € Bahamas - USD $ Bahrain - USD $ Bangladesh - USD $ Barbados - USD $ Belgium - EUR € Belize - USD $ Bermuda - USD $ Bhutan - USD $ Bolivia - USD $ Bosnia & Herzegovina - USD $ Botswana - USD $ Brazil - USD $ British Indian Ocean Territory - USD $ Brunei - USD $ Bulgaria - USD $ Burkina Faso - USD $ Burundi - USD $ Cambodia - USD $ Cameroon - USD $ Canada - CAD $ Cape Verde - USD $ Caribbean Netherlands - USD $ Cayman Islands - USD $ Central African Republic - USD $ Chad - USD $ Chile - USD $ China - USD $ Christmas Island - USD $ Cocos (Keeling) Islands - USD $ Colombia - USD $ Congo - Brazzaville - USD $ Congo - Kinshasa - USD $ Cook Islands - USD $ Costa Rica - USD $ Côte d’Ivoire - USD $ Croatia - USD $ Curaçao - USD $ Cyprus - EUR € Czechia - USD $ Denmark - USD $ Dominica - USD $ Dominican Republic - USD $ Ecuador - USD $ Egypt - USD $ El Salvador - USD $ Estonia - EUR € Eswatini - USD $ Ethiopia - USD $ Falkland Islands - USD $ Finland - EUR € France - EUR € French Guiana - USD $ French Polynesia - USD $ French Southern Territories - USD $ Gabon - USD $ Gambia - USD $ Germany - EUR € Ghana - USD $ Greece - EUR € Guadeloupe - USD $ Guatemala - USD $ Guernsey - USD $ Guinea - USD $ Guyana - USD $ Haiti - USD $ Hong Kong SAR - USD $ Hungary - USD $ Iceland - USD $ India - USD $ Indonesia - USD $ Iraq - USD $ Ireland - EUR € Isle of Man - USD $ Israel - USD $ Italy - EUR € Jamaica - USD $ Japan - USD $ Jersey - USD $ Jordan - USD $ Kenya - USD $ Kosovo - EUR € Kuwait - USD $ Laos - USD $ Latvia - EUR € Lebanon - USD $ Liberia - USD $ Liechtenstein - USD $ Lithuania - EUR € Luxembourg - EUR € Macao SAR - USD $ Madagascar - USD $ Malawi - USD $ Malaysia - USD $ Maldives - USD $ Mali - USD $ Malta - EUR € Martinique - USD $ Mauritania - USD $ Mauritius - USD $ Mayotte - USD $ Mexico - USD $ Moldova - USD $ Monaco - EUR € Montenegro - EUR € Morocco - USD $ Mozambique - USD $ Namibia - USD $ Nauru - USD $ Nepal - USD $ Netherlands - EUR € New Zealand - USD $ Nicaragua - USD $ Niger - USD $ Nigeria - USD $ Niue - USD $ Norfolk Island - USD $ Norway - USD $ Oman - USD $ Pakistan - USD $ Palestinian Territories - USD $ Panama - USD $ Papua New Guinea - USD $ Paraguay - USD $ Peru - USD $ Philippines - USD $ Pitcairn Islands - USD $ Poland - USD $ Portugal - EUR € Qatar - USD $ Réunion - USD $ Romania - USD $ Rwanda - USD $ San Marino - EUR € São Tomé & Príncipe - USD $ Saudi Arabia - USD $ Senegal - USD $ Seychelles - USD $ Sierra Leone - USD $ Singapore - USD $ Slovakia - EUR € Slovenia - EUR € Solomon Islands - USD $ Somalia - USD $ South Africa - USD $ South Georgia & South Sandwich Islands - USD $ South Korea - USD $ South Sudan - USD $ Spain - EUR € Sri Lanka - USD $ St. Helena - USD $ St. Pierre & Miquelon - USD $ Suriname - USD $ Svalbard & Jan Mayen - USD $ Sweden - USD $ Switzerland - USD $ Taiwan - USD $ Tajikistan - USD $ Tanzania - USD $ Thailand - USD $ Togo - USD $ Tokelau - USD $ Trinidad & Tobago - USD $ Tristan da Cunha - USD $ Tunisia - USD $ Türkiye - USD $ Turkmenistan - USD $ Tuvalu - USD $ U.S. Outlying Islands - USD $ Uganda - USD $ Ukraine - USD $ United Arab Emirates - USD $ United Kingdom - GBP £ United States - USD $ Uruguay - USD $ Vatican City - USD $ Venezuela - USD $ Vietnam - USD $ Western Sahara - USD $ Yemen - USD $ Zambia - USD $ Zimbabwe - USD $ United Kingdom - GB £ .country-selector { position: relative; } .country-selector__select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } .country-selector__selected-display { display: flex; align-items: center; gap: 8px; } document.querySelector('.country-selector__select').addEventListener('change', function() { const selectedOption = this.options[this.selectedIndex]; const flagSrc = selectedOption.dataset.flagSrc; const currency = selectedOption.dataset.currency; // Update the displayed flag and text const display = this.closest('.country-selector').querySelector('.country-selector__selected-display'); display.querySelector('img').src = flagSrc; display.querySelector('img').alt = selectedOption.text; display.querySelector('span').textContent = selectedOption.text; // Submit the form this.closest('form').submit(); }); document.addEventListener("DOMContentLoaded", () => { const managePreferencesBtn = document.querySelector( 'a[aria-label="Your Privacy Choices"]' ); if (managePreferencesBtn) { managePreferencesBtn.addEventListener("click", (event) => { event.preventDefault(); const consent = window[Symbol.for("blotout-consent")]; if (consent && typeof consent.showBanner === "function") { consent.showBanner(); console.log('Banner Fired') } }); } }); document.addEventListener('DOMContentLoaded', function() { // Handle newsletter form submission document.addEventListener('newsletter-submit', function(event) { const email = event.detail.email; // Here you can integrate with your email service (Klaviyo, Mailchimp, etc.) // Example: Send to Klaviyo or your backend console.log('Newsletter subscription:', email); // You can add your newsletter integration here // For example, if using Klaviyo: // if (window._learnq) { // window._learnq.push(['identify', { $email: email }]); // } }); }); /* Ensure x-cloak works properly */ [x-cloak] { display: none !important; } /* Custom styles for localization form integration */ #footer-new .country-selector { min-width: 200px; } #footer-new .country-selector__selected-display { padding: 8px 12px; cursor: pointer; transition: border-color 0.2s; } #footer-new .country-selector__selected-display:hover { border-color: #f97316; } #footer-new .country-selector__selected-display:focus-within { outline: 2px solid #f97316; outline-offset: 2px; } /* Ensure proper spacing for social icons */ #footer-new [role="list"] { list-style: none; padding: 0; margin: 0; } /* Smooth transitions for all interactive elements */ #footer-new a, #footer-new button { transition: all 0.2s ease-in-out; } /* High contrast mode support */ @media (prefers-contrast: high) { #footer-new { border-top: 2px solid currentColor; } #footer-new a:focus, #footer-new button:focus { outline-width: 3px; } } /* Reduced motion support */ @media (prefers-reduced-motion: reduce) { #footer-new * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } .footer-new__logo { width: 300px; height: 120px; } @media (max-width: 768px) { .footer-new__logo { width: 200px; height: 85px; } } .new-footer-klaviyo-form button[type="button"] { font-size: 0 !important; } .new-footer-klaviyo-form button[type="button"]::before { content: ""; display: inline-block; width: 19px; height: 16px; background-image: url("data:image/svg+xml;utf8,"); background-repeat: no-repeat; background-size: contain; margin-right: 6px; /* spacing before text */ vertical-align: middle; } function closeKlaviyoOutOfStockModal() { let modalElem = document.getElementById("klaviyo_modal"); modalElem.style.display = "none"; document.getElementById('back-in-stock').innerHTML = "" document.body.classList.remove('back-in-stock-opned') } function successKlaviyoOutOfStockModal() { document.getElementById("klaviyo_out_of_stock_form").innerHTML = `

You will receive an email when the product is back in stock! `; } function createKlaviyoOutOfStockSubscriptionModal(variantId, productTitle, variantTitle, backDate, image) { let modalElem = document.createElement("div"); modalElem.innerHTML = `

We’ll notify you when the product is back in stock!
${productTitle}
${productTitle}

${variantTitle}

Estimated to be back in stock: ${backDate}

Email
Notify me when available ` modalElem.id = "klaviyo_modal"; modalElem.classList.add("klaviyo_modal"); modalElem.style.display = "block"; return modalElem; } function klaviyoFormValidateEmail(email) { return String(email) .toLowerCase() .match( /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ ); }; window.openKlaviyoStockAlertSubscriptionForm = function(variantId, productTitle, variantTitle, backDate, image) { let modalElem = createKlaviyoOutOfStockSubscriptionModal(variantId, productTitle, variantTitle, backDate, image); document.getElementById('back-in-stock').appendChild(modalElem); document.body.classList.add('back-in-stock-opned') document.querySelectorAll('.klaviyo_modal_close_triger').forEach(item => { item.addEventListener("click", closeKlaviyoOutOfStockModal); }) document.getElementById("klaviyo_out_of_stock_form_button").addEventListener("click", function(evt) { evt.stopPropagation(); const email = document.getElementById("Klaviyo_out_of_stock_email").value; const emailValidation = klaviyoFormValidateEmail(email); console.log(email, variantId, 'email, variantId'); if (!emailValidation) return; const data = { data: { type: "back-in-stock-subscription", attributes: { profile: { data: { type: "profile", attributes: { email: email } } }, channels: ["EMAIL"] }, relationships: { variant: { data: { type: "catalog-variant", id: `$shopify:::$default:::${variantId}` } } } } }; fetch("https://a.klaviyo.com/client/back-in-stock-subscriptions/?company_id=MfVp5f", { method: "POST", headers: { "Content-Type": "application/json", "revision": "2024-06-15" }, body: JSON.stringify(data) }) .then(async res => { if (!res.ok) { const errorText = await res.text(); // Don't assume JSON here console.error("Klaviyo API error:", errorText); throw new Error("Failed to subscribe"); } // Only try parsing JSON if there's content const contentType = res.headers.get("content-type") || ""; if (contentType.includes("application/json")) { const result = await res.json(); console.log("Subscription success:", result); } // Run your success handler successKlaviyoOutOfStockModal(); }) .catch(err => { console.error("Klaviyo Back-in-Stock Error:", err); }); }); document.getElementById("Klaviyo_out_of_stock_email").addEventListener("input", function(evt) { let email = document.getElementById("Klaviyo_out_of_stock_email").value; let emailValidation = klaviyoFormValidateEmail(email) if (emailValidation) { document.getElementById('klaviyo_out_of_stock_form_button').removeAttribute("disabled"); } else { document.getElementById("klaviyo_out_of_stock_form_button").setAttribute("disabled", "true"); } }) } window.upsell_popup = { title : null, subtitle : null, info : null, product_handle : "", product_id : 1234, product_image : "//www.livemomentous.com/cdn/shopifycloud/storefront/assets/no-image-2048-a2addb12_550x.gif", product_variants : [ ], base_product_id : 1234 } if (window.location.pathname == '/a/account/login') { window.location.replace('/tools/recurring/login/'); } window.addEventListener('load', function() { var _learnq = window._learnq || []; function addedToCart() { fetch(`${window.location.origin}/cart.js`) .then(res => res.clone().json().then(data => { var cart = { total_price: data.total_price/100, $value: data.total_price/100, total_discount: data.total_discount, original_total_price: data.original_total_price/100, items: data.items } if (item !== 'undefined') { cart = Object.assign(cart, item) } if (klAjax) { _learnq.push(['track', 'Added to Cart', cart]); klAjax = false; } })) }; (function (ns, fetch) { ns.fetch = function() { const response = fetch.apply(this, arguments); response.then(res => { if (`${window.location.origin}/cart/add.js` .includes(res.url)) { addedToCart() } }); return response } }(window, window.fetch)); var klAjax = true; var atcButtons = document.querySelectorAll("form[action*='/cart/add'] button[type='submit']"); for (var i = 0; i { window.ShopifyAnalytics.meta.selectedVariantId = '40354106048695'; console.log( 'window.ShopifyAnalytics.meta.selectedVariantId:', window.ShopifyAnalytics.meta.selectedVariantId ); }, 5000); .rebuy-product-actions .subscription-checkbox .slider.round, .buttons-wrappers button:nth-of-type(2) { display: none; } .siena-iframe { display: none; } @media (max-width: 1366px) { .siena-iframe { z-index: 39; } .siena-iframe.siena-iframe--bottom-0, .siena-iframe.siena-iframe--fullscreen{ z-index: 9999999; } } ttd_dom_ready( function() { if (typeof TTDUniversalPixelApi === 'function') { var universalPixelApi = new TTDUniversalPixelApi(); universalPixelApi.init("h4w8qq9", ["k1r6x4d"], "https://insight.adsrvr.org/track/up"); } }); document.querySelectorAll('button[aria-label*="Add to Bag"]').forEach(function(btn) { var productn = btn.getAttribute('aria-label').slice(11) btn.addEventListener('click', function(event) { var conversionPixel = new Image(); conversionPixel.src = "https://insight.adsrvr.org/track/pxl/?adv=h4w8qq9&ct=0:fmme5s8&fmt=3&td1=" + productn + "&ts=" + (new Date()).getTime(); // Adding a unique ID to prevent caching conversionPixel.height = 1; conversionPixel.width = 1; conversionPixel.style.display = "none"; // Hide the pixel document.body.appendChild(conversionPixel); }); });
0 ? 'is-visible' : 'is-hidden', 'widget-layout-' + currentLayout()]">

:

1 ? 'lazy' : 'eager'" v-bind:src="itemImage(product, product.selected_variant, '400x400')" v-bind:alt="itemImageAlt(product, product.selected_variant)">
{{ value }}
{{ frequencyLabel(frequency, product.subscription_interval) }}
Quantity {{ n }}
Sale price Original price
Price
Powered by Rebuy
0 ? 'is-visible' : 'is-hidden']">

:

0">
{{ variant.title }}
{{ value }}
0">
0 ? 'is-visible' : 'is-hidden', 'widget-layout-' + currentLayout()]">

:

1 ? 'lazy' : 'eager'" v-bind:src="itemImage(product, product.selected_variant, '400x400')" v-bind:alt="itemImageAlt(product, product.selected_variant)">
{{ value }} Select your purchase method
Out of Stock Protection {{ frequencyLabel(frequency, product.subscription_interval) }}
One-Time Purchase Receive Once Add to Bag
Price View Product
el.classList.remove('show')); $event.target.closest('.rebuy-product-block').querySelector('.rebuy-product-options').classList.add('show')" type="button">
Price
Powered by Rebuy
0 ? 'is-visible' : 'is-hidden', 'widget-layout-' + currentLayout()]">

:

1 ? 'lazy' : 'eager'" v-bind:src="itemImage(product, product.selected_variant, '400x400')" v-bind:alt="itemImageAlt(product, product.selected_variant)">
{{ value }} Select your purchase method
Out of Stock Protection {{ frequencyLabel(frequency, product.subscription_interval) }}
One-Time Purchase Receive Once Add to Bag
Price View Product
el.classList.remove('show')); $event.target.closest('.rebuy-product-block').querySelector('.rebuy-product-options').classList.add('show')" type="button">
Price
Powered by Rebuy Search Search for products, collections, pages, and articles .search-form-wrapper { position: relative; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); isolation: isolate; } .search-form__input:focus { border: 1px solid #000; } .search-form__results { width: 480px; border-radius: 10px; border: 1px solid #E5E7EB; background: #FFF; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); top: 100%; } @media(max-width: 640px) { .search-form__results { width: 100%; border-radius: 10px; border: none; margin-top: 0; } } .search-form__results.show { display: block; } .search-result-divider { border-top: 1px solid var(--grey-100, #e5e5e5); } .search-product-img { width: 5rem; height: 5rem; } @media(max-width: 640px) { .search-product-img { width: 70px; height: 70px; } } .atc-btn[data-loading] { opacity: 0.6; pointer-events: none; } .atc-btn[data-added] { background-color: #2d7a3a; } .search-form__results.is-loading::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--grey-900, #171717) 50%, transparent 100%); background-size: 200% 100%; animation: search-loading-shimmer 1.2s ease-in-out infinite; pointer-events: none; } .search-form__results-content { max-height: calc(100vh - 170px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; } .search-result-divider { position: sticky; bottom: 0; background-color: #FFF; z-index: 10; } @keyframes search-loading-shimmer { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } } @media(max-width: 640px) { .search-product-row { flex-direction: column; align-items: flex-start !important; } .search-recommended-section { display: none; } } .query-item-text *, .query-item-text { white-space: nowrap; } .query-item-text mark { background-color: #FFFADF; color: inherit; border-radius: 2px; } .search-form__clear-btn { background: none; border: none; padding: 0; cursor: pointer; line-height: 0; color: var(--grey-400, #999); } .search-form__clear-btn:hover svg path { stroke: var(--grey-700, #404040); } (function() { 'use strict'; const SEARCH_ICON = ` `; // Guard: only define the class once even if snippet is rendered multiple times if (!window.MomentousPredictiveSearch) { window.MomentousPredictiveSearch = class { constructor(wrapper) { this.wrapper = wrapper; this.input = wrapper.querySelector('[data-search-input]'); this.resultsContainer = wrapper.querySelector('[data-search-results]'); this.resultsContent = wrapper.querySelector('[data-search-results-content]'); this.form = wrapper.querySelector('.search-form'); this.submitBtn = wrapper.querySelector('[data-search-submit]'); this.clearBtn = wrapper.querySelector('[data-search-clear]'); this.debounceTimer = null; this.currentRequest = null; this.currentQuery = ''; this.minQueryLength = 2; this.debounceDelay = 300; this.cache = new Map(); this.requestId = 0; this.init(); } init() { this.input.addEventListener('input', (e) => { this.handleInput(e.target.value); this.updateClearBtn(); }); if (this.clearBtn) { this.clearBtn.addEventListener('click', () => { this.input.value = ''; this.currentQuery = ''; this.hideResults(); this.updateClearBtn(); this.input.focus(); }); } this.input.addEventListener('focus', () => { if (this.input.value.length >= this.minQueryLength) { this.showResults(); } }); this.input.addEventListener('touchend', (e) => { e.stopPropagation(); this.input.focus(); }); this.input.addEventListener('touchstart', (e) => { e.stopPropagation(); }, { passive: true }); const handleOutsideInteraction = (e) => { if (!this.wrapper.contains(e.target)) { const sidebarPanel = document.getElementById('ss-panel'); if (sidebarPanel && sidebarPanel.contains(this.wrapper) && sidebarPanel.contains(e.target)) { return; } this.hideResults(); } }; document.addEventListener('click', handleOutsideInteraction); document.addEventListener('touchstart', handleOutsideInteraction, { passive: true }); document.addEventListener('keydown', (e) => { if (e.key === 'Escape') this.hideResults(); }); } updateClearBtn() { const show = this.input.value.length >= this.minQueryLength; if (this.clearBtn) this.clearBtn.classList.toggle('hidden', !show); if (this.submitBtn) this.submitBtn.classList.toggle('hidden', show); } handleInput(query) { const trimmedQuery = query.trim(); if (this.debounceTimer) clearTimeout(this.debounceTimer); if (trimmedQuery.length { this.fetchSearchData(trimmedQuery); }, this.debounceDelay); } async fetchSearchData(query) { if (this.cache.has(query)) { const cached = this.cache.get(query); this.setLoadingState(false); this.renderResults(cached.results, query, cached.recommended); return; } if (this.currentRequest) { this.currentRequest.abort(); this.currentRequest = null; } const requestId = ++this.requestId; const controller = new AbortController(); this.currentRequest = controller; const baseUrl = window.Shopify?.routes?.root || '/'; const apiUrl = `${baseUrl}search/suggest.json?q=${encodeURIComponent(query)}&resources[type]=product,query&resources[limit]=5&resources[limit_scope]=each`; try { const response = await fetch(apiUrl, { signal: controller.signal, headers: { 'Accept': 'application/json' } }); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); const data = await response.json(); if (requestId !== this.requestId) return; this.currentRequest = null; const results = data.resources?.results || {}; if (this.cache.size > 50) this.cache.clear(); this.cache.set(query, { results, recommended: null }); this.setLoadingState(false); this.renderResults(results, query, null); } catch (error) { if (error.name === 'AbortError') return; if (requestId !== this.requestId) return; console.error('Predictive search error:', error); this.setLoadingState(false); this.showError(); } } async fetchRecommendations(productId) { try { const baseUrl = window.Shopify?.routes?.root || '/'; const url = `${baseUrl}recommendations/products.json?product_id=${productId}&limit=6&intent=related`; const response = await fetch(url, { headers: { 'Accept': 'application/json' } }); if (!response.ok) return []; const data = await response.json(); return (data.products || []) .filter(p => { const tags = (p.tags || []).map(t => t.toLowerCase()); return !tags.includes('searchnise_ignore') && !tags.includes('search_hide'); }) .slice(0, 3); } catch (e) { return []; } } async addToCart(variantId, btn) { btn.setAttribute('data-loading', ''); btn.textContent = 'Adding...'; try { const response = await fetch('/cart/add.js', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify({ id: variantId, quantity: 1 }) }); if (!response.ok) throw new Error('Failed to add to cart'); btn.removeAttribute('data-loading'); btn.setAttribute('data-added', ''); btn.textContent = 'Added!'; document.dispatchEvent(new CustomEvent('cart:refresh')); setTimeout(() => { btn.removeAttribute('data-added'); btn.textContent = 'Add to Cart'; }, 2000); } catch (e) { btn.removeAttribute('data-loading'); btn.textContent = 'Add to Cart'; console.error('ATC error:', e); } } bindAtcButtons() { this.resultsContent.querySelectorAll('.atc-btn').forEach(btn => { btn.addEventListener('click', (e) => { e.preventDefault(); const variantId = btn.dataset.variantId; if (variantId) this.addToCart(variantId, btn); }); }); } renderResults(results, query, preloadedRecommended) { if (!results || ((!results.products || results.products.length === 0) && (!results.queries || results.queries.length === 0))) { this.resultsContent.innerHTML = `
No results found for "${this.escapeHtml(query)}" `; this.showResults(); return; } const products = (results.products || []) .filter(p => { const tags = (p.tags || []).map(t => t.toLowerCase()); return !tags.includes('searchnise_ignore') && !tags.includes('search_hide'); }) .slice(0, 4); const queries = (results.queries || []).slice(0, 4); const firstProductId = products.length > 0 ? products[0].id : null; let html = ''; if (products.length > 0) { html += `
`; products.forEach(product => { html += this.renderMatchedProduct(product); }); html += ` `; } if (queries.length > 0) { html += `
Top Searches
  • ${SEARCH_ICON} ${queries.map(q => this.renderQueryItem(q)).join('')}
`; } const searchUrl = (window.Shopify?.routes?.root || '/') + `search?q=${encodeURIComponent(query)}&type=product`; html += `
View all results for “${this.escapeHtml(query)}” `; if (firstProductId) { if (preloadedRecommended && preloadedRecommended.length > 0) { html += this.renderRecommendedSection(preloadedRecommended); } else if (preloadedRecommended === null) { html += `
`; } } this.resultsContent.innerHTML = html; this.showResults(); this.bindAtcButtons(); if (firstProductId && preloadedRecommended === null) { this.fetchAndPatchRecommendations(firstProductId, query); } } renderMatchedProduct(product) { const imgUrl = product.featured_image?.url || product.image || ''; const imgSized = imgUrl ? imgUrl.replace(/(\.[a-z]+)(\?.*)?$/i, '_220x220$1$2') : ''; const price = this.formatPrice(product.price, product.price_min, product.price_max); const isSingleVariant = !product.variants || product.variants.length ${imgSized ? `${title}` : `
` }
${title}
${price ? `
${price} ` : ''} View Product `; } renderSuggestedProduct(product) { const imgUrl = product.featured_image?.src || product.featured_image?.url || product.images?.[0] || ''; const imgSized = imgUrl ? imgUrl.replace(/(\.[a-z]+)(\?.*)?$/i, '_300x300$1$2') : ''; const productUrl = this.escapeHtml(product.url || `/products/${product.handle}`); const title = this.escapeHtml(product.title || ''); return `
${imgSized ? `${title}` : `
` }
${title} `; } renderQueryItem(item) { const queryText = item.styled_text || this.escapeHtml(item.text || ''); const queryUrl = this.escapeHtml(item.url || '#'); return `
  • ${queryText} `; } renderRecommendedSection(recommended) { return `