${x.p.title}
${x.p.category} · $${x.p.price.toFixed(2)} each
Your learning plan
Total: $0.00
Checkout inquiryYour cart is empty. Choose a learning resource to create a focused study plan.
'; document.querySelector('#total').textContent = '$0.00'; return; } container.innerHTML = rows.map(x => `${x.p.category} · $${x.p.price.toFixed(2)} each
Unable to load catalog. Please try again later.
'; }); // Header & footer scripts (function(){ const mobileBtn = document.getElementById('mobile-menu-toggle'); const mobileNav = document.getElementById('mobile-nav'); if(mobileBtn && mobileNav){ mobileBtn.addEventListener('click', () => { mobileNav.classList.toggle('hidden'); }); } const themeBtn = document.getElementById('theme-toggle'); const htmlEl = document.documentElement; const savedTheme = localStorage.getItem('xevora-theme'); if(savedTheme === 'dark'){ htmlEl.classList.add('dark'); if(themeBtn) themeBtn.textContent = '☀︎'; } if(themeBtn){ themeBtn.addEventListener('click', () => { if(htmlEl.classList.contains('dark')){ htmlEl.classList.remove('dark'); localStorage.setItem('xevora-theme', 'light'); themeBtn.textContent = '◐'; } else { htmlEl.classList.add('dark'); localStorage.setItem('xevora-theme', 'dark'); themeBtn.textContent = '☀︎'; } }); } document.querySelectorAll('[data-open-modal]').forEach(btn => { btn.addEventListener('click', () => { const modalId = btn.getAttribute('data-open-modal'); const modal = document.getElementById(modalId); if(modal) modal.showModal(); }); }); })(); (function(){ const banner = document.getElementById('cookie-banner'); const acceptBtn = document.getElementById('accept-cookies'); const consentKey = 'xevora-cookie-consent'; if(banner){ if(!localStorage.getItem(consentKey)){ banner.classList.remove('hidden'); banner.classList.add('flex'); } } if(acceptBtn && banner){ acceptBtn.addEventListener('click', () => { localStorage.setItem(consentKey, 'accepted'); banner.classList.remove('flex'); banner.classList.add('hidden'); }); } })();