/* ENJAZ V125 — final shared header geometry for ALL public pages.
   Fixes desktop overlap by using a bounded flex row, not an overflowing grid.
   Brand stays at the right, navigation gets a real flexible middle lane,
   tools stay in a fixed compact left lane. */
@media(min-width:1101px){
  html body.ez-site header.enjaz-global-header.ez-header.v81-header,
  html body.ez-site header.enjaz-global-header.ez-header.v81-header.is-scrolled,
  html body.ez-site header.enjaz-global-header.ez-header.is-scrolled,
  html body.ez-site header.enjaz-global-header,
  html body.ez-site header.ez-header{
    display:flex!important;flex-flow:row nowrap!important;direction:rtl!important;
    align-items:center!important;justify-content:space-between!important;
    gap:10px!important;width:100%!important;max-width:100%!important;
    min-width:0!important;height:76px!important;min-height:76px!important;max-height:76px!important;
    padding:7px 18px!important;margin:0!important;box-sizing:border-box!important;
    overflow:visible!important;
    background:#1B1C1E!important;background-color:#1B1C1E!important;
    background-image:linear-gradient(180deg,#242629 0%,#171819 100%)!important;
    color:#F7F7F5!important;border-bottom:2px solid #C5A04A!important;
    box-shadow:0 5px 18px rgba(0,0,0,.22)!important;
    opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }

  html body.ez-site header.enjaz-global-header .enjaz-global-brand.ez-brand,
  html body.ez-site header.ez-header .enjaz-global-brand.ez-brand{
    order:1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    flex:0 0 142px!important;width:142px!important;min-width:142px!important;max-width:142px!important;
    height:58px!important;min-height:0!important;margin:0!important;padding:0!important;
    overflow:hidden!important;
  }
  html body.ez-site header.enjaz-global-header .enjaz-global-brand.ez-brand img,
  html body.ez-site header.ez-header .enjaz-global-brand.ez-brand img{
    content:url('/assets/almosanda-logo.png')!important;
    display:block!important;width:138px!important;max-width:138px!important;
    height:49px!important;max-height:49px!important;min-width:0!important;min-height:0!important;
    object-fit:contain!important;object-position:right center!important;
    opacity:1!important;visibility:visible!important;filter:none!important;
  }

  html body.ez-site header.enjaz-global-header .ez-mobile-toggle,
  html body.ez-site header.ez-header .ez-mobile-toggle{display:none!important}

  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav{
    order:2!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;
    display:flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:center!important;
    flex-flow:row nowrap!important;gap:clamp(3px,.38vw,6px)!important;
    width:auto!important;min-width:0!important;max-width:none!important;height:56px!important;
    margin:0!important;padding:0!important;overflow:visible!important;white-space:nowrap!important;
    background:transparent!important;background-color:transparent!important;
    border:0!important;box-shadow:none!important;direction:rtl!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>a,
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details>summary,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>a,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>details>summary{
    display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;min-height:38px!important;height:38px!important;
    margin:0!important;padding:5px clamp(2px,.28vw,4px)!important;
    border:0!important;border-radius:5px!important;background:transparent!important;
    color:#F7F7F5!important;-webkit-text-fill-color:#F7F7F5!important;
    font-family:'Tajawal',Arial,sans-serif!important;
    font-size:clamp(9.5px,.76vw,11px)!important;font-weight:850!important;
    line-height:1.25!important;letter-spacing:0!important;text-align:center!important;
    text-decoration:none!important;white-space:nowrap!important;text-shadow:none!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>a:hover,
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details:hover>summary,
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details[open]>summary{
    color:#D9B86B!important;-webkit-text-fill-color:#D9B86B!important;
    background:rgba(197,160,74,.10)!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>details{
    position:relative!important;display:block!important;flex:0 1 auto!important;min-width:0!important;
    margin:0!important;padding:0!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav .enjaz-contact-support-link,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav .enjaz-contact-support-link{
    flex:0 0 auto!important;color:#D9B86B!important;-webkit-text-fill-color:#D9B86B!important;
    font-size:clamp(9.5px,.76vw,11px)!important;font-weight:900!important;
  }

  html body.ez-site header.enjaz-global-header .ez-header-search-tools,
  html body.ez-site header.ez-header .ez-header-search-tools{
    order:3!important;display:flex!important;flex:0 0 332px!important;
    flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;
    gap:6px!important;width:332px!important;min-width:332px!important;max-width:332px!important;
    height:54px!important;margin:0!important;padding:0!important;direction:rtl!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-language,
  html body.ez-site header.ez-header .ez-header-language{
    display:block!important;position:relative!important;flex:0 0 38px!important;
    width:38px!important;min-width:38px!important;height:38px!important;margin:0!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-language>summary,
  html body.ez-site header.ez-header .ez-header-language>summary{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    padding:0!important;border:1px solid #A98532!important;border-radius:50%!important;
    background:#C5A04A!important;color:#111213!important;-webkit-text-fill-color:#111213!important;
    font-size:12px!important;font-weight:900!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search,
  html body.ez-site header.ez-header .ez-header-search{
    display:flex!important;position:relative!important;flex:0 0 126px!important;
    align-items:center!important;width:126px!important;min-width:126px!important;max-width:126px!important;
    height:38px!important;margin:0!important;padding:0 3px 0 0!important;
    border:1px solid rgba(197,160,74,.75)!important;border-radius:22px!important;
    background:#303236!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search input,
  html body.ez-site header.ez-header .ez-header-search input{
    display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;
    height:36px!important;margin:0!important;padding:0 8px!important;border:0!important;outline:0!important;
    background:transparent!important;color:#F7F7F5!important;-webkit-text-fill-color:#F7F7F5!important;
    font-size:10px!important;line-height:1.2!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search input::placeholder,
  html body.ez-site header.ez-header .ez-header-search input::placeholder{
    color:#C6C8CA!important;-webkit-text-fill-color:#C6C8CA!important;opacity:1!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search button,
  html body.ez-site header.ez-header .ez-header-search button{
    display:flex!important;flex:0 0 32px!important;align-items:center!important;justify-content:center!important;
    width:32px!important;height:32px!important;min-width:32px!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:50%!important;background:#C5A04A!important;color:#111213!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search button svg,
  html body.ez-site header.ez-header .ez-header-search button svg{
    width:17px!important;height:17px!important;stroke:#111213!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-login-icon-v88,
  html body.ez-site header.ez-header .ez-header-login-icon-v88{
    display:flex!important;flex:0 0 150px!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;width:150px!important;min-width:150px!important;max-width:150px!important;
    height:38px!important;margin:0!important;padding:0 7px!important;box-sizing:border-box!important;
    border:1px solid rgba(197,160,74,.8)!important;border-radius:22px!important;
    background:#282A2D!important;color:#F7F7F5!important;-webkit-text-fill-color:#F7F7F5!important;
    font-family:'Tajawal',Arial,sans-serif!important;font-size:10px!important;font-weight:850!important;
    line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-login-icon-v88 svg,
  html body.ez-site header.ez-header .ez-header-login-icon-v88 svg{
    display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;
    stroke:#F7F7F5!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-login-icon-v88 .ez-header-login-label,
  html body.ez-site header.ez-header .ez-header-login-icon-v88 .ez-header-login-label{
    display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:clip!important;
    white-space:nowrap!important;color:#F7F7F5!important;-webkit-text-fill-color:#F7F7F5!important;
  }
}

/* Tablet / compact laptop: switch to the existing hamburger drawer before anything can overlap. */
@media(min-width:851px) and (max-width:1100px){
  html body.ez-site header.enjaz-global-header.ez-header.v81-header,
  html body.ez-site header.enjaz-global-header.ez-header.v81-header.is-scrolled,
  html body.ez-site header.enjaz-global-header,
  html body.ez-site header.ez-header{
    display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;
    grid-template-areas:"brand toggle" "tools tools" "nav nav"!important;
    align-items:center!important;gap:8px!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    padding:8px 14px!important;box-sizing:border-box!important;direction:rtl!important;overflow:visible!important;
  }
  html body.ez-site header.enjaz-global-header .enjaz-global-brand.ez-brand,
  html body.ez-site header.ez-header .enjaz-global-brand.ez-brand{
    grid-area:brand!important;display:flex!important;align-items:center!important;justify-self:start!important;
    width:100%!important;max-width:158px!important;min-width:0!important;height:44px!important;margin:0!important;
  }
  html body.ez-site header.enjaz-global-header .enjaz-global-brand.ez-brand img,
  html body.ez-site header.ez-header .enjaz-global-brand.ez-brand img{
    content:url('/assets/almosanda-logo.png')!important;width:150px!important;max-width:150px!important;
    height:44px!important;max-height:44px!important;object-fit:contain!important;object-position:right center!important;
  }
  html body.ez-site header.enjaz-global-header .ez-mobile-toggle,
  html body.ez-site header.ez-header .ez-mobile-toggle{
    grid-area:toggle!important;display:flex!important;align-items:center!important;justify-content:center!important;
    justify-self:end!important;width:44px!important;height:44px!important;min-width:44px!important;
    min-height:44px!important;border:1px solid #C5A04A!important;border-radius:11px!important;
    background:#282A2D!important;color:#F7F7F5!important;font-size:23px!important;
  }
  html body.ez-site header.enjaz-global-header .ez-header-search-tools,
  html body.ez-site header.ez-header .ez-header-search-tools{
    grid-area:tools!important;display:flex!important;flex-flow:row nowrap!important;
    align-items:center!important;justify-content:space-between!important;
    width:100%!important;min-width:0!important;max-width:100%!important;gap:8px!important;margin:0!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav{
    grid-area:nav!important;display:none!important;position:static!important;inset:auto!important;transform:none!important;
    flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;
    max-width:100%!important;max-height:min(62vh,520px)!important;overflow-y:auto!important;
    margin:0!important;padding:9px 0 3px!important;background:#1B1C1E!important;
    border-top:1px solid rgba(197,160,74,.55)!important;box-shadow:none!important;white-space:normal!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav.enjaz-nav-open,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav.enjaz-nav-open{display:flex!important}
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>a,
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details>summary,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>a,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>details>summary{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    width:100%!important;min-height:43px!important;margin:0!important;padding:9px 11px!important;
    color:#F7F7F5!important;background:transparent!important;font-size:14px!important;font-weight:800!important;
    text-align:right!important;border:0!important;border-radius:8px!important;
  }
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>details,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav>details{display:block!important;width:100%!important}
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav .enjaz-nav-dropdown-menu,
  html body.ez-site header.ez-header nav.enjaz-main-nav.ez-nav .enjaz-nav-dropdown-menu{
    display:grid!important;position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;
    grid-template-columns:1fr!important;gap:2px!important;margin:3px 0 7px!important;padding:7px!important;
    border:1px solid rgba(197,160,74,.4)!important;border-radius:9px!important;
    background:#242629!important;box-shadow:none!important;
  }
}

/* The desktop header's last link must never enter the login/search lane. */
@media(min-width:1101px){
  html body.ez-site header.enjaz-global-header nav.enjaz-main-nav.ez-nav>*{position:relative!important;z-index:1!important}
  html body.ez-site header.enjaz-global-header .ez-header-search-tools{position:relative!important;z-index:2!important}
}
