Back to Compare
Magnesium L-Threonate

Momentous

Magnesium L-Threonate 30 Servings

Price
£1.267

Flavour

Momentous

Buy

Price History

Loading...

Description

Momentous Magnesium L-Threonate (Magtein) is a specialized supplement that supports brain health, cognitive performance, and sleep quality.

Product Details

Form

of Magnesium L-Threonate

Ingredients

Magnesium 145mg (from 2g Magtein® Magnesium L-threonate) Other Ingredients: Rice Flour, Hypromellose (Capsule), Magnesium Stearate, and Silica *Magtein® is a patented form of Magnesium L-Threonate shown to increase magnesium levels in the brain. Magnesium plays an important role in supporting cognitive function, neurotransmitter balance, and healthy nervous system activity, while also contributing to muscle function, protein synthesis, and energy production Onset Time & Expected Results Onset Time Some individuals may notice improvements in sleep quality within about 7 days. For many, benefits continue to build with consistent use, with optimal effects typically experienced after about 4 weeks. Expected Results With regular supplementation, Magnesium L-Threonate may support deeper, more restorative sleep, along with improvements in focus, memory, and overall cognitive function. Individual results may vary. Clinical Research & 3rd Party Test Results There are 5 credible reviews and studies related to this product: Magnesium in disease prevention and overall health The relationship between micronutrient status and sleep patterns: a systematic review The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial Magnesium and Cognitive Health in Adults: A Systematic Review and Meta-Analysis Magnesium and the Athlete Build Your Stack {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image4853") 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("#image3205") 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; } {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image709") 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; } Upgraded Formula {const lazyImages = window.lazyImages = window.lazyImages || [] const el = document.querySelector("#image1646") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.5 Rated 4.5 out of 5 stars 310 {"averageRating":"4.5","reviewCount":310} Creatine Chews 150-Count New Signature Spec creatine quality designation Guaranteed 1g of creatine in every chew Clinically studied to support strength and cognitive function* £29.25 £39.00 Add to Bag Creatine Chews 150-Count Flavor: Lemon LimeMangoStrawberry 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; } Creatine Chews 150-Count Flavor: Lemon LimeMangoStrawberry 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("#image504") if(el && window.lazyImageFn) window.lazyImageFn(el); else if(el) lazyImages.push(el) } 4.5 Rated 4.5 out of 5 stars 139 {"averageRating":"4.5","reviewCount":139} Elite Sleep A synergestic blend to promote restful sleep Helps reset circadian rhythm during disrupted sleep cycles Supports nighttime recovery & reduces next-day grogginess £26.25 £35.00 Add to Bag Elite Sleep Subscribe & Save 25% £ 26.25 £ 35.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 £ 35.00 £ 35.00 £ 35.00 £ 35.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; } Elite Sleep Subscribe & Save 25% £ 26.25 £ 35.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 £ 35.00 £ 35.00 £ 35.00 £ 35.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--20282420461751__horizontal_line_hMFxBL { padding-top: 0px; padding-bottom: 10px; } @media (max-width: 1023px) { #shopify-section-template--20282420461751__horizontal_line_hMFxBL { padding-top: 0px; padding-bottom: 10px; } } Frequently Asked Questions What is Magnesium L-Threonate? Magnesium L-Threonate is a form of magnesium commonly used to support brain and nervous system function. It is often chosen to support relaxation, cognitive health, and overall nervous system balance as part of a daily routine. Magnesium L-Threonate is formulated using Magtein®, a patented and clinically studied form of magnesium shown to increase magnesium levels in the brain. This form is known for its ability to cross the blood-brain barrier more effectively than many other magnesium compounds. Can Magnesium L-Threonate help with sleep? Yes. Magnesium L-Threonate is a magnesium supplement that can support healthy sleep patterns. Momentous Magnesium L-Threonate includes 2 grams of Magtein® per serving, which is a form of magnesium known for its ability to support the nervous system, which can help promote improved relaxation and sleep quality and duration. Momentous Magnesium L-Threonate is designed to support calmness and recovery as part of a consistent nightly routine. Who should use Magnesium L-Threonate? Magnesium L-Threonate can be used by individuals looking to support relaxation, cognitive function, and healthy sleep patterns. It is commonly used by: People who experience occasional difficulty relaxing at night Individuals focused on improving sleep quality Those looking to support brain and nervous system health Magnesium L-Threonate is typically taken daily as part of a consistent evening routine. When is the best time to take Magnesium L-Threonate for sleep? Magnesium L-Threonate is typically best taken in the evening, about 30 to 60 minutes before bed. Taking it at this time allows the supplement to support relaxation and prepare the body for sleep. For best results, Momentous Magnesium L-Threonate should be taken consistently as part of a nightly routine. How long does it take for Magnesium L-Threonate to improve sleep quality? The timeline for experiencing improvements in sleep quality from Magnesium L-Threonate can vary by individual. Some people may notice benefits within a few weeks of consistent use, while others may take longer. How soon you feel benefits also depends on personal factors, such as current nutrient status, diet, lifestyle, habits, environment, etc… Like many supplements, Magnesium L-Threonate works best when taken regularly over time as part of a consistent sleep routine. Can I take Magnesium L-Threonate every night? Yes. Magnesium L-Threonate can be taken daily when used as directed. Consistent nightly use is commonly recommended to support relaxation and healthy sleep patterns over time. Are there any side effects of taking Magnesium L-Threonate for sleep? Magnesium L-Threonate is generally well tolerated for daily use when taken as directed. In some cases, higher doses of magnesium may cause mild digestive discomfort, such as diarrhea or stomach cramps. It is recommended to follow the suggested serving size and adjust only as needed based on individual tolerance. Individuals with medical conditions or concerns should consult a healthcare professional before starting any new supplement. How is Magnesium L-Threonate different from other forms of magnesium? Magnesium L-Threonate is often selected for its role in supporting brain and nervous system function. Other forms of magnesium are more commonly used to support muscle function or digestion, while magnesium L-threonate is frequently used to support relaxation, cognitive health, and sleep quality. Is this product Third Party Certified? Every finished batch of Magnesium L-Threonate is certified through NSF Certified for Sport®, a respected independent program that verifies label accuracy and screens for hundreds of banned substances. If a batch fails to meet these independent standards, it does not ship. We also take transparency a step further by publishing third-party test results via Light Labs on individual product pages and making Certificates of Analysis (COAs) available for every batch. We earn trust the hard way, by proving quality at every step, on every batch, with no shortcuts. 4.8 Rated 4.8 out of 5 stars Based on 959 reviews 5 Rated out of 5 stars 838 Total 5 star reviews: 838 4 Rated out of 5 stars 84 Total 4 star reviews: 84 3 Rated out of 5 stars 21 Total 3 star reviews: 21 2 Rated out of 5 stars 6 Total 2 star reviews: 6 1 Rated out of 5 stars 10 Total 1 star reviews: 10 96%would recommend this product Reviews Summary Generated by AI from 100 most recent customer reviews Last updated 5 months ago Customers say this magnesium supplement significantly improves their sleep quality and helps them fall asleep faster. Many reviews mention feeling more relaxed at bedtime, with users reporting deeper, more restful sleep and waking up less frequently during the night. Common feedback includes improved mental clarity and focus, with some noting reduced brain fog. Frequent comments address the supplement's gentle nature, causing no stomach issues or morning grogginess. While most praise its effectiveness for sleep support, a few mention minimal noticeable effects or prefer taking smaller doses than recommended. Overall, users find it becomes an essential part of their nightly routine. Read More Customers Talked About Sleep Quality Effectiveness Sleep Onset Relaxation Dosage Filters Write a Review (Opens in a new window) 959 reviews Sort Most RecentPhotos & VideosMost HelpfulHighest RatingOldestLowest RatingLeast Helpful DH Dan H. Verified Buyer Product Standouts Results, Trust and Transparency 26 seconds ago Product Standouts Results, Trust and Transparency Rated 5 out of 5 stars Invest in you Have been using other products protein , creatine, and iron. Wanted to see if there was a difference in the magnesium product had been ordering. Without a doubt, better deep restful sleep feel restored in the AM. You may pay more but your investment is your health. Read MoreRead more about this review Was this helpful?Yes, this review from Dan H. was helpful. 0 people voted yesNo, this review from Dan H. was not helpful. 0 people voted no SG Steven G. Verified Buyer Product Standouts Ease of Use, Results, Trust and Transparency 5 days ago Product Standouts Ease of Use, Results, Trust and Transparency Rated 5 out of 5 stars Better, consistent sleep My schedule demands that my workouts are in the early evenings. After taking Magnesium as a supplement I noticed more consistent, meaningful sleep. Results started occurring with the first few weeks but were more pronounced after the first 30 days. I was reluctant to start another supplement but based on my workout times, this one has been a game-changer! Read MoreRead more about this review Was this helpful?Yes, this review from Steven G. was helpful. 0 people voted yesNo, this review from Steven G. was not helpful. 0 people voted no JC Julia C. Verified Buyer Product Standouts Results 1 week ago Product Standouts Results Rated 5 out of 5 stars Quality Simple ingredients, helpful in healing and getting to sleep. Read MoreRead more about this review Was this helpful?Yes, this review from Julia C. was helpful. 0 people voted yesNo, this review from Julia C. was not helpful. 0 people voted no JK Jennifer K. Verified Buyer 1 week ago Rated 4 out of 5 stars none works well for sleep Read MoreRead more about this review Was this helpful?Yes, this review from Jennifer K. was helpful. 0 people voted yesNo, this review from Jennifer K. was not helpful. 0 people voted no MM Mia M. Verified Buyer Product Standouts Results, Ease of Use 1 week ago Product Standouts Results, Ease of Use Rated 5 out of 5 stars Great sleep with consistent use I use this every night, and swear by it! It improves my oura sleep score by a noticeable amount (usually 5-10 points) each night compared to nights that I don't take it Read MoreRead more about this review Was this helpful?Yes, this review from Mia M. was helpful. 1 person voted yesNo, this review from Mia M. was not helpful. 0 people voted no Loading... Loading... Show More {"areReviewsGrouped":false,"chatAssistant":{"reviewCount":959},"media":[],"productAttributes":[],"questionCount":0,"reviewAggregate":{"dateUpdated":"2026-07-26T11:08:58.902Z","mediaCount":0,"productAttributeCount":[{"title":"Product Standouts","type":"multi-value","options":[{"title":"Results","count":24},{"title":"Ease of Use","count":17},{"title":"Trust and Transparency","count":14},{"title":"Value for Money","count":9}]}],"productId":"shopify-7113704145079","productName":"Magnesium L-Threonate","ratingAndReviewCount":959,"ratingAndReviewCountByLevel":{"level1Count":10,"level2Count":6,"level3Count":21,"level4Count":84,"level5Count":838},"ratingAndReviewValuesTotal":4611,"ratingCount":0,"ratingCountByLevel":{},"ratingValuesTotal":0,"recommendationCount":922,"replyCount":2,"replyWordsTotal":126,"reviewCount":959,"reviewCountByLevel":{"level1Count":10,"level2Count":6,"level3Count":21,"level4Count":84,"level5Count":838},"reviewRatingValuesTotal":4611,"reviewWordsTotal":24802,"subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c"},"reviews":[{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"0f939054-6b09-433c-ab49-7b952cff28e5","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","productId":"shopify-7113704145079","body":"Have been using other products protein , creatine, and iron. \nWanted to see if there was a difference in the magnesium product had been ordering. Without a doubt, better deep restful sleep feel restored in the AM. You may pay more but your investment is your health. ","dateCreated":"2026-07-26T11:08:58.311Z","dateUpdated":"2026-07-26T11:08:58.311Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productAttributes":[{"title":"Product Standouts","type":"multi-value","value":["Results","Trust and Transparency"]}],"productHandle":"magnesium-threonate","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Magtein-DTC-ProductHero_x280.png?v=1783961697","productName":"Magnesium L-Threonate","productUrl":"//www.livemomentous.com/products/magnesium-threonate","rating":5,"reviewer":{"displayName":"Dan H.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Invest in you","unhelpfulCount":0,"variantId":"41127755251895"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"3c8211e3-432a-43ba-aaec-b6eb08eeddd1","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","productId":"shopify-7113704145079","body":"My schedule demands that my workouts are in the early evenings. After taking Magnesium as a supplement I noticed more consistent, meaningful sleep. Results started occurring with the first few weeks but were more pronounced after the first 30 days. I was reluctant to start another supplement but based on my workout times, this one has been a game-changer!","dateCreated":"2026-07-20T17:23:31.431Z","dateUpdated":"2026-07-20T17:23:31.431Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productAttributes":[{"title":"Product Standouts","type":"multi-value","value":["Ease of Use","Results","Trust and Transparency"]}],"productHandle":"magnesium-threonate","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Magtein-DTC-ProductHero_x280.png?v=1783961697","productName":"Magnesium L-Threonate","productUrl":"//www.livemomentous.com/products/magnesium-threonate","rating":5,"reviewer":{"displayName":"Steven G.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Better, consistent sleep","unhelpfulCount":0,"variantId":"41127755251895"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"b6e2af70-ad5a-4896-bb08-4897451f3e13","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","productId":"shopify-7113704145079","body":"Simple ingredients, helpful in healing and getting to sleep. ","dateCreated":"2026-07-18T10:15:52.864Z","dateUpdated":"2026-07-18T10:15:52.864Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productAttributes":[{"title":"Product Standouts","type":"multi-value","value":["Results"]}],"productHandle":"magnesium-threonate","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Magtein-DTC-ProductHero_x280.png?v=1783961697","productName":"Magnesium L-Threonate","productUrl":"//www.livemomentous.com/products/magnesium-threonate","rating":5,"reviewer":{"displayName":"Julia C.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Quality","unhelpfulCount":0,"variantId":"41127755251895"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"ea894795-8e9c-4efd-a870-7ca8a651b9b8","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","productId":"shopify-7113704145079","body":"works well for sleep","dateCreated":"2026-07-17T20:46:03.882Z","dateUpdated":"2026-07-17T20:46:03.882Z","helpfulCount":0,"isRecommended":true,"languageCode":"en","productHandle":"magnesium-threonate","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Magtein-DTC-ProductHero_x280.png?v=1783961697","productName":"Magnesium L-Threonate","productUrl":"//www.livemomentous.com/products/magnesium-threonate","rating":4,"reviewer":{"displayName":"Jennifer K.","isVerified":true},"isIncentivized":false,"status":"approved","title":"none","unhelpfulCount":0,"variantId":"41127755251895"},{"subscriberId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c","reviewId":"a36b198c-6de2-40cd-b4cc-90de23351744","subscriberId_productId":"72adcf9f-ede7-4232-8bc6-db71fceaf77c:shopify-7113704145079","productId":"shopify-7113704145079","body":"I use this every night, and swear by it! It improves my oura sleep score by a noticeable amount (usually 5-10 points) each night compared to nights that I don't take it","dateCreated":"2026-07-14T20:54:12.754Z","dateUpdated":"2026-07-14T20:54:12.754Z","helpfulCount":1,"isRecommended":true,"languageCode":"en","productAttributes":[{"title":"Product Standouts","type":"multi-value","value":["Results","Ease of Use"]}],"productHandle":"magnesium-threonate","productImageUrl":"https://cdn.shopify.com/s/files/1/1400/2351/files/Magtein-DTC-ProductHero_x280.png?v=1783961697","productName":"Magnesium L-Threonate","productUrl":"//www.livemomentous.com/products/magnesium-threonate","rating":5,"reviewer":{"displayName":"Mia M.","isVerified":true},"isIncentivized":false,"status":"approved","title":"Great sleep with consistent use","unhelpfulCount":0,"variantId":"41127755251895"}],"reviewsKeywords":{"keywordTopics":[{"keywords":[{"name":"sleep","occurrences":173},{"name":"sleep quality","occurrences":140},{"name":"deep sleep","occurrences":3},{"name":"REM sleep","occurrences":2},{"name":"sleep duration","occurrences":2},{"name":"sleep improvement","occurrences":2},{"name":"quality sleep","occurrences":1},{"name":"sleep depth","occurrences":1}],"topic":"Sleep Quality"},{"keywords":[{"name":"effectiveness","occurrences":85},{"name":"quality","occurrences":41},{"name":"results","occurrences":5},{"name":"efficacy","occurrences":2},{"name":"noticeable results","occurrences":1},{"name":"quick results","occurrences":1}],"topic":"Effectiveness"},{"keywords":[{"name":"sleep onset","occurrences":6},{"name":"falling asleep","occurrences":5},{"name":"fall asleep","occurrences":2},{"name":"onset time","occurrences":1}],"topic":"Sleep Onset"},{"keywords":[{"name":"relaxation","occurrences":22},{"name":"calming","occurrences":5},{"name":"restfulness","occurrences":5},{"name":"calming effect","occurrences":3},{"name":"calmness","occurrences":3},{"name":"anxiety","occurrences":2},{"name":"mind calming","occurrences":2},{"name":"wind down","occurrences":2}],"topic":"Relaxation"},{"keywords":[{"name":"dosage","occurrences":24},{"name":"timing","occurrences":20},{"name":"capsule size","occurrences":8},{"name":"routine","occurrences":7},{"name":"capsules","occurrences":4},{"name":"ease of use","occurrences":4},{"name":"bedtime use","occurrences":3}],"topic":"Dosage"},{"keywords":[{"name":"grogginess","occurrences":7},{"name":"drowsiness","occurrences":5},{"name":"night waking","occurrences":5},{"name":"stomach","occurrences":4},{"name":"side effects","occurrences":3},{"name":"stomach tolerance","occurrences":3},{"name":"headaches","occurrences":2}],"topic":"Side Effects"},{"keywords":[{"name":"focus","occurrences":13},{"name":"mental clarity","occurrences":10},{"name":"recovery","occurrences":10},{"name":"energy","occurrences":8},{"name":"memory","occurrences":5},{"name":"morning energy","occurrences":4},{"name":"alertness","occurrences":3},{"name":"clarity","occurrences":3}],"topic":"Cognitive Benefits"}],"languageCode":"en"},"reviewsNextUrl":"https://api.okendo.io/v1/stores/72adcf9f-ede7-4232-8bc6-db71fceaf77c/products/shopify-7113704145079/reviews?limit=5&orderBy=date%20desc&lastEvaluated=%7B%22dateCreated%22%3A%222026-07-14T20%3A54%3A12.754Z%22%2C%22subscriberId%22%3A%2272adcf9f-ede7-4232-8bc6-db71fceaf77c%22%2C%22subscriberId_productId%22%3A%2272adcf9f-ede7-4232-8bc6-db71fceaf77c%3Ashopify-7113704145079%22%2C%22reviewId%22%3A%22a36b198c-6de2-40cd-b4cc-90de23351744%22%7D","reviewsSummary":{"body":"Customers say this magnesium supplement significantly improves their sleep quality and helps them fall asleep faster. Many reviews mention feeling more relaxed at bedtime, with users reporting deeper, more restful sleep and waking up less frequently during the night. Common feedback includes improved mental clarity and focus, with some noting reduced brain fog. Frequent comments address the supplement's gentle nature, causing no stomach issues or morning grogginess. While most praise its effectiveness for sleep support, a few mention minimal noticeable effects or prefer taking smaller doses than recommended. Overall, users find it becomes an essential part of their nightly routine.","contributingReviewCount":100,"dateGenerated":"2026-02-06T00:06:50.136Z","datePublished":"2026-02-17T02:07:42.210Z","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": "Magnesium L-Threonate", "url": "https:\/\/www.livemomentous.com\/products\/magnesium-threonate", "image":"https:\/\/www.livemomentous.com\/cdn\/shop\/files\/Magtein-DTC-ProductHero.png?v=1783961697\u0026width=4000","description": "Magnesium L-Threonate is a specialized form of magnesium designed to effectively cross the blood-brain barrier, supporting brain health, cognitive performance, and sleep quality. Research has shown it can increase magnesium levels in the brain, a key factor in synaptic plasticity, memory formation, and calm neurological activity.\nThis formula uses Magtein®, the patented and clinically studied form of Magnesium L-Threonate. It is designed to support focus, relaxation, and deep, restorative sleep without sedation.","sku": "850030796042","brand": { "@type": "Brand", "name": "Momentous" },"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.8", "reviewCount": "959", "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": "850030796042","gtin12": "850030796042","itemCondition": "https://schema.org/NewCondition", "availability": "https://schema.org/InStock", "price": 39.0, "priceCurrency": "GBP", "url": "https:\/\/www.livemomentous.com\/products\/magnesium-threonate?variant=41127755251895","priceSpecification": [ { "@type": "UnitPriceSpecification", "price": 39.0, "priceCurrency": "GBP", "name": "One-Time Purchase" }, { "@type": "UnitPriceSpecification", "price": 29.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": "Magnesium L-Threonate", "item": "https:\/\/www.livemomentous.com\/products\/magnesium-threonate" } ] } ] .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 = '41127755251895'; 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 `