<script>
(async function(){
async function loadAndInsertSection(){
if(!document.body.matches('#cart')){
return;
}
const pageElement=document.querySelector('#page');
if(!pageElement){
console.error('#page not found');
return;
}
try{
const burgerSection=await wm$.getFragment('/product-custom-header','section');
if(burgerSection){
pageElement.insertAdjacentElement('beforebegin',burgerSection);
await wm$.reloadSquarespaceLifecycle([burgerSection]);
}else{
console.error('Section not found');
}
}catch(error){
console.error('Error loading section:',error);
}
}
if(document.readyState==='loading'){
document.addEventListener('DOMContentLoaded',loadAndInsertSection);
}else{
loadAndInsertSection();
}
})();
</script>
<style>
body#cart header#header {
display: none;
}
</style>