/** Shopify CDN: Minification failed

Line 7:0 Unexpected "("

**/
/* Earth Energy — v2 LP: FAQ accordion, Supplement-Facts flavor toggle, sticky bar, smooth scroll. Buy box = ee-buy2.js */
(function(){
  function boot(root){
    var scope=root&&root.querySelector?root:document;
    scope.querySelectorAll('.ee-lpv2 .faq-item').forEach(function(f){var q=f.querySelector('.faq-q');if(q&&!q.dataset.i){q.dataset.i='1';q.addEventListener('click',function(){var open=f.classList.toggle('open');var a=f.querySelector('.faq-a');a.style.maxHeight=open?a.scrollHeight+'px':0;});}});
    scope.querySelectorAll('.ee-lpv2 .facts-toggle button').forEach(function(bt){if(bt.dataset.i)return;bt.dataset.i='1';bt.addEventListener('click',function(){var wrap=bt.closest('.facts');wrap.querySelectorAll('.facts-toggle button').forEach(function(x){x.classList.remove('active');});bt.classList.add('active');var img=wrap.querySelector('.facts-img');img.src=bt.getAttribute('data-lab')==='choc'?img.getAttribute('data-choc'):img.getAttribute('data-unflav');});});
    scope.querySelectorAll('.ee-lpv2 a[href="#ee-buy"]').forEach(function(a){if(a.dataset.i)return;a.dataset.i='1';a.addEventListener('click',function(e){var t=document.getElementById('ee-buy');if(t){e.preventDefault();t.scrollIntoView({behavior:'smooth',block:'center'});}});});
    var stk=document.querySelector('.ee-lpv2 .ee-lp-sticky'),hero=document.getElementById('ee-buy');
    if(stk&&hero&&!stk.dataset.i){stk.dataset.i='1';window.addEventListener('scroll',function(){var b=hero.getBoundingClientRect().top;stk.classList.toggle('show',window.scrollY>640&&b>0);},{passive:true});}
  }
  if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',function(){boot();});else boot();
  document.addEventListener('shopify:section:load',function(e){boot(e.target);});
})();