/* AloeZens stable header — independent from WooCommerce markup. */
.az-header-desktop-actions{display:flex;align-items:center;gap:10px;justify-self:end}
.az-header-desktop-actions .az-header-icons{display:flex;align-items:center;gap:1px}
.az-header-mobile-actions{display:none}

@media (max-width:980px){
  .az-announcement{height:28px;min-height:28px;overflow:hidden}
  .az-announcement__inner{width:100%;min-height:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0 14px}
  .az-announcement__place,.az-announcement__phone{display:none!important}
  .az-announcement__message{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:.56rem;line-height:28px;letter-spacing:.055em}

  .site-header,.site-header.is-scrolled{position:sticky;top:0;width:100%;z-index:1100;background:rgba(248,238,230,.97);border-bottom:1px solid rgba(68,65,63,.075);box-shadow:0 8px 24px rgba(55,47,42,.055);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .site-header .az-header-inner,.site-header.is-scrolled .az-header-inner{width:min(760px,calc(100% - 24px));height:64px;min-height:64px;margin-inline:auto;display:grid;grid-template-columns:84px minmax(0,1fr) 84px;gap:8px;align-items:center;padding:0}

  .primary-nav,.az-header-desktop-actions{display:none!important}
  .az-menu-toggle{display:grid!important;grid-column:1;justify-self:start;width:42px;height:42px;min-width:42px;margin:0;background:rgba(255,255,255,.78);border-color:rgba(68,65,63,.08);box-shadow:0 5px 16px rgba(58,49,44,.05)}

  .site-branding{grid-column:2;justify-self:center;min-width:0;width:min(136px,100%);height:44px;display:flex;align-items:center;justify-content:center;overflow:visible}
  .site-branding .custom-logo-link,.site-branding .az-brand-logo{width:100%;height:44px;max-width:136px;display:flex;align-items:center;justify-content:center;padding:0;margin:0}
  .site-branding img,.site-header.is-scrolled .site-branding img,.site-branding .custom-logo,.site-branding .az-brand-logo img,.site-header.is-scrolled .az-brand-logo img{width:auto;height:auto;max-width:132px;max-height:42px;object-fit:contain;margin:auto;transform:none}

  .az-header-mobile-actions{grid-column:3;justify-self:end;display:flex;width:84px;height:42px;align-items:center;justify-content:flex-end;gap:2px}
  .az-header-mobile-actions .az-icon-button{display:grid;width:40px;height:40px;min-width:40px;place-items:center;margin:0;background:rgba(255,255,255,.78);border-color:rgba(68,65,63,.08);box-shadow:0 5px 16px rgba(58,49,44,.05)}
  .az-header-mobile-actions .az-cart-toggle{position:relative}
  .az-menu-toggle .az-icon,.az-header-mobile-actions .az-icon{width:19px;height:19px}

  .az-mobile-menu{box-sizing:border-box;width:min(460px,100%);max-width:100%;left:0;right:auto;inset-block:0;padding:18px max(18px,env(safe-area-inset-left)) calc(26px + env(safe-area-inset-bottom));transform:translateX(-102%);background:linear-gradient(155deg,#f8eee7 0%,#f3e2d5 52%,#f7e9df 100%);box-shadow:20px 0 50px rgba(60,50,45,.14)}
  .az-mobile-menu.is-open{transform:translateX(0)}
  .az-mobile-menu__top{min-height:66px;padding-bottom:14px}
  .az-mobile-menu__top img{max-width:168px;max-height:56px}
  .az-mobile-links{padding:18px 0 14px}
  .az-mobile-links a{min-height:56px;font-size:clamp(1.4rem,5.5vw,2rem);padding:3px 1px}
  .az-mobile-menu__quick{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:8px 0 18px}
  .az-mobile-menu__quick a{min-width:0;min-height:82px;padding:12px 7px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(68,65,63,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:.68rem;font-weight:800;line-height:1.15;box-shadow:0 10px 26px rgba(63,55,49,.045)}
  .az-mobile-menu__quick .az-icon{width:22px;height:22px;color:var(--green-dark)}
  .az-mobile-menu__footer{padding-top:16px;border-top:1px solid rgba(68,65,63,.09);gap:12px}
  .az-mobile-menu__language{display:flex;align-items:center;justify-content:space-between;gap:14px}
  .az-mobile-menu__language>span{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.58}
}

@media (max-width:620px){
  .az-mobile-menu{width:100%;box-shadow:none}
}

@media (max-width:380px){
  .site-header .az-header-inner,.site-header.is-scrolled .az-header-inner{width:calc(100% - 18px);grid-template-columns:74px minmax(0,1fr) 74px;gap:4px}
  .az-menu-toggle{width:38px;height:38px;min-width:38px}.az-header-mobile-actions{width:74px;height:38px}.az-header-mobile-actions .az-icon-button{width:36px;height:36px;min-width:36px}
  .site-branding{max-width:118px;height:40px}
  .site-branding .custom-logo-link,.site-branding .az-brand-logo{max-width:118px;height:40px}
  .site-branding img,.site-branding .custom-logo,.site-branding .az-brand-logo img{max-width:114px;max-height:36px}
}


/* v2.3 — closed mobile menu must not exist in the scroll geometry.
   Do not park hidden fixed panels off-canvas with transform: the root
   scrolling area on some mobile Chromium/WebView builds includes them. */
.az-mobile-menu{display:none!important;transform:none!important;visibility:hidden!important}
.az-mobile-menu.is-open{display:block!important;transform:none!important;visibility:visible!important}

@media (max-width:980px){
  .az-mobile-menu{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:min(460px,100%)!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    contain:layout paint;
  }
  .az-mobile-menu.is-open{animation:azMobileMenuIn .22s ease-out both}
  @keyframes azMobileMenuIn{from{opacity:.01;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
}

@media (max-width:620px){
  .az-mobile-menu{width:100%!important;max-width:100%!important}
}
