/* Zayt w Mouneh — mobile header brand/overlap fix
   Keeps the brand visible and centered while reserving dedicated control lanes. */

@media (max-width:760px){
  html body .site-header .nav.shell{
    display:grid!important;
    grid-template-columns:90px minmax(0,1fr) 90px!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:0!important;
  }

  html body .site-header .nav.shell>.nav-toggle{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    transform:none!important;
    grid-column:1!important;
    justify-self:start!important;
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 10px!important;
    gap:7px!important;
    overflow:hidden!important;
  }

  html body .site-header .nav.shell>.brand,
  html body .site-header .nav.shell:has(#zwmCustomerNotificationBell)>.brand{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    grid-column:2!important;
    justify-self:stretch!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    gap:5px!important;
    overflow:visible!important;
    z-index:2!important;
  }

  html body .site-header .nav.shell>.brand .brand-logo{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex:0 0 30px!important;
  }

  html body .site-header .nav.shell>.brand .brand-wordmark,
  html body .site-header .nav.shell:has(#zwmCustomerNotificationBell)>.brand .brand-wordmark{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
    font-size:.88rem!important;
    line-height:1!important;
  }

  html body .site-header .nav.shell>.nav-actions,
  html body .site-header .nav.shell>.nav-actions:has(#zwmCustomerNotificationBell){
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    transform:none!important;
    grid-column:3!important;
    justify-self:end!important;
    width:90px!important;
    min-width:90px!important;
    max-width:90px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:4px!important;
    overflow:visible!important;
    z-index:3!important;
  }

  html body .site-header .nav.shell>.nav-actions>#zwmCustomerNotificationBell{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    flex:0 0 40px!important;
  }

  html body .site-header .nav.shell>.nav-actions>#cartButton{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    flex:0 0 42px!important;
    margin:0!important;
    z-index:2!important;
  }

  html body .site-header .nav.shell>.nav-actions>.nav-search,
  html body .site-header .nav.shell>.nav-actions>.nav-instagram,
  html body .site-header .nav.shell>.nav-actions>#languageSwitch,
  html body .site-header .nav.shell>.nav-actions>.language-switch,
  html body .site-header .nav.shell>.nav-actions>#mounehRewardsButton,
  html body .site-header .nav.shell>.nav-actions>#mounehAccountButton{
    position:absolute!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    gap:0!important;
    overflow:hidden!important;
    clip-path:inset(50%)!important;
  }

  html[dir="rtl"] body .site-header .nav.shell>.nav-toggle{grid-column:3!important;justify-self:end!important}
  html[dir="rtl"] body .site-header .nav.shell>.nav-actions,
  html[dir="rtl"] body .site-header .nav.shell>.nav-actions:has(#zwmCustomerNotificationBell){grid-column:1!important;justify-self:start!important}

  /* Product/conversion shell: keep the full brand, then place controls on their own row. */
  html body .c6-product-header .c6-product-nav{
    display:grid!important;
    grid-template-columns:1fr!important;
    justify-items:center!important;
    align-items:center!important;
    min-height:0!important;
    padding:8px 0!important;
    gap:7px!important;
  }
  html body .c6-product-header .c6-brand{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    justify-content:center!important;
    justify-self:center!important;
    gap:7px!important;
    max-width:100%!important;
    font-size:.94rem!important;
    white-space:nowrap!important;
  }
  html body .c6-product-header .c6-brand img{width:34px!important;height:34px!important}
  html body .c6-product-header .c6-brand span{display:inline!important;visibility:visible!important;opacity:1!important}
  html body .c6-product-header .c6-nav-links{display:none!important}
  html body .c6-product-header .c6-nav-actions{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
  }
  html body .c6-product-header .zwm-customer-notification-popover{top:118px!important}

  /* Checkout/order shell: same brand treatment, without sacrificing actions. */
  html body .commerce-header .commerce-header-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    justify-items:center!important;
    min-height:0!important;
    padding:8px 0!important;
    gap:7px!important;
  }
  html body .commerce-header .commerce-brand{
    display:inline-flex!important;
    justify-content:center!important;
    justify-self:center!important;
    gap:7px!important;
    max-width:100%!important;
    white-space:nowrap!important;
  }
  html body .commerce-header .commerce-brand img{width:34px!important;height:34px!important}
  html body .commerce-header .commerce-brand span{display:inline!important;visibility:visible!important;opacity:1!important}
  html body .commerce-header .commerce-header-actions{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
  }
  html body .commerce-header .zwm-customer-notification-popover{top:118px!important}
}

@media (max-width:340px){
  html body .site-header .nav.shell{
    grid-template-columns:84px minmax(0,1fr) 84px!important;
  }
  html body .site-header .nav.shell>.nav-toggle{
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    padding:0 8px!important;
    gap:5px!important;
  }
  html body .site-header .nav.shell>.brand .brand-logo{
    width:27px!important;
    height:27px!important;
    min-width:27px!important;
    flex-basis:27px!important;
  }
  html body .site-header .nav.shell>.brand .brand-wordmark,
  html body .site-header .nav.shell:has(#zwmCustomerNotificationBell)>.brand .brand-wordmark{
    font-size:.78rem!important;
  }
  html body .site-header .nav.shell>.nav-actions,
  html body .site-header .nav.shell>.nav-actions:has(#zwmCustomerNotificationBell){
    width:84px!important;
    min-width:84px!important;
    max-width:84px!important;
  }
  html body .site-header .nav.shell>.nav-actions>#zwmCustomerNotificationBell{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    flex-basis:38px!important;
  }
}
