
/* ZZZZZ last functional fix: menu toggle/close and info card guard */
document.addEventListener('DOMContentLoaded', function(){
  var menuBtn = document.getElementById('menuToggle');
  var menu = document.getElementById('mobileMenu');
  var closeBtn = document.getElementById('closeMenu');
  function closeMenu(){ if(menu){ menu.classList.remove('show','open','is-open'); document.body.classList.remove('menu-open'); } if(menuBtn){ menuBtn.setAttribute('aria-expanded','false'); menuBtn.textContent='☰'; } }
  function openMenu(){ if(menu){ menu.classList.add('show'); document.body.classList.add('menu-open'); } if(menuBtn){ menuBtn.setAttribute('aria-expanded','true'); menuBtn.textContent='×'; } }
  if(menuBtn && menu){ var newBtn = menuBtn.cloneNode(true); menuBtn.parentNode.replaceChild(newBtn, menuBtn); menuBtn = newBtn; menuBtn.addEventListener('click', function(e){ e.preventDefault(); e.stopPropagation(); if(menu.classList.contains('show') || menu.classList.contains('open') || menu.classList.contains('is-open')) closeMenu(); else openMenu(); }); }
  if(closeBtn){ closeBtn.addEventListener('click', function(e){ e.preventDefault(); closeMenu(); }); }
  if(menu){ menu.querySelectorAll('a').forEach(function(a){ a.addEventListener('click', closeMenu); }); menu.addEventListener('click', function(e){ if(e.target === menu) closeMenu(); }); }
  document.addEventListener('keydown', function(e){ if(e.key === 'Escape') closeMenu(); });
  if(!document.querySelector('.store-info-section')){ var lang=(document.documentElement.lang||'').toLowerCase(); var isEn=lang.indexOf('en')===0; var sec=document.createElement('section'); sec.className='store-info-section'; sec.innerHTML='<div class="store-info-card reveal"><div class="store-info-row"><span>OPEN</span><strong>'+(isEn?'24/7':'24ωρο')+'</strong></div><div class="store-info-row"><span>ADDRESS</span><strong>'+(isEn?'Gounari 193':'Γούναρη 193')+'</strong></div><div class="store-info-row"><span>AREA</span><strong>'+(isEn?'Ano Glyfada':'Ανω Γλυφάδα')+'</strong></div></div>'; var sliderSection=document.querySelector('.fixed-top-slider, .home-hero-slider, .top-slider, .hero-slider'); if(sliderSection && sliderSection.parentNode){ sliderSection.insertAdjacentElement('afterend', sec); } }
});
