/* Chandrahasa — layout injector. One canonical header / footer / cart drawer / search overlay for every page. Runs synchronously at parse time (loaded before store.js) so the rest of the JS boots against a complete DOM. Pages with no placeholders are untouched. */ 'use strict'; const HEADER = ` `; const FOOTER = ` `; (function inject() { const headerMount = document.querySelector('[data-layout="header"]'); const footerMount = document.querySelector('[data-layout="footer"]'); if (headerMount) headerMount.outerHTML = HEADER; if (footerMount) footerMount.outerHTML = FOOTER; const track = document.getElementById('announceTrack'); if (track) { const unit = '✦ Free shipping above ₹999Product details before you chooseSee current offers at checkout'; track.innerHTML = unit + unit; // duplicated for a seamless -50% loop } })();