/* TasheelExpress v74.0 — Arabic header hard-lock.
   Scope: International AR + KSA AR only.
   Goal: exact isolated frames, no cross-frame sizing, no Latin wordmark in Arabic. */
@media (max-width:1180px){
  html[lang="ar"] .tx-global-header-v26 .txgh-inner{
    display:grid!important;
    grid-template-columns:54px 54px minmax(0,1fr) 220px 158px!important;
    grid-template-areas:"search menu spacer market brand"!important;
    direction:ltr!important;
    align-items:center!important;
    justify-items:stretch!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:88px!important;height:auto!important;
    padding:12px clamp(12px,2vw,22px)!important;
    gap:12px!important;box-sizing:border-box!important;overflow:visible!important;
  }
  html[lang="ar"] .tx-global-header-v26 .txgh-inner.tx-header-intl{
    grid-template-columns:54px 54px minmax(0,1fr) 112px 158px!important;
  }
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand{grid-area:brand!important;width:158px!important;height:64px!important;justify-self:end!important;overflow:hidden!important;contain:layout paint!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market{grid-area:market!important;width:220px!important;height:58px!important;justify-self:end!important;overflow:hidden!important;contain:layout paint!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl{width:112px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-menu{grid-area:menu!important;width:54px!important;height:54px!important;justify-self:center!important;overflow:hidden!important;contain:layout paint!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search{grid-area:search!important;display:grid!important;place-items:center!important;width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;justify-self:center!important;overflow:hidden!important;contain:layout paint!important;margin:0!important;padding:0!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-nav{grid-area:spacer!important;min-width:0!important;max-width:100%!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-mobile-inline-langs{display:none!important}

  /* Each frame owns its content and cannot size a sibling. */
  html[lang="ar"] .tx-global-header-v26 .txh-frame{min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;transform:none!important;translate:none!important;scale:1!important;isolation:isolate!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand>.txgh-logo{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;transform:none!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand>.txgh-logo img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;filter:none!important}

  /* Icon-only market switch on compact/tablet Arabic header. Hidden labels cannot affect width. */
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market>.tx-market-switch{display:flex!important;align-items:center!important;justify-content:stretch!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;overflow:hidden!important;direction:ltr!important;white-space:nowrap!important;transform:none!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market>.tx-market-switch>span,
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market>.tx-market-switch>a{flex:1 1 0!important;width:50%!important;min-width:0!important;max-width:50%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0 4px!important;overflow:hidden!important;box-sizing:border-box!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market .market-word{display:none!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{display:block!important;width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain!important;margin:0!important;transform:none!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl>.tx-market-ksa{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;margin:0!important;padding:4px!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl>.tx-market-ksa .label{display:none!important}

  html[lang="ar"] .tx-global-header-v26 .txh-frame-menu>.txgh-mobile{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;transform:none!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search>.txgh-langs,
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search>.txgh-login,
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search>.txgh-quote{display:none!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search>.tx-search-trigger{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;transform:none!important}

  /* Language dropdown remains its own Arabic RTL row. */
  html[lang="ar"] .tx-global-header-v26>.tx-language-rail-shell.tx-language-dropdown-shell{direction:rtl!important;width:100%!important;max-width:100%!important;min-width:0!important;clear:both!important;contain:layout paint!important}
}
@media (max-width:1040px){
  html[lang="ar"] .tx-global-header-v26 .txgh-inner{grid-template-columns:52px 52px minmax(0,1fr) 190px 132px!important;gap:10px!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-inner.tx-header-intl{grid-template-columns:52px 52px minmax(0,1fr) 96px 132px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand{width:132px!important;height:58px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market{width:190px!important;height:56px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl{width:96px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-menu,
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important}
}
@media (max-width:760px){
  html[lang="ar"] .tx-global-header-v26 .txgh-inner{grid-template-columns:48px 48px minmax(0,1fr) 148px 96px!important;min-height:78px!important;padding:10px!important;gap:6px!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-inner.tx-header-intl{grid-template-columns:48px 48px minmax(0,1fr) 76px 96px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand{width:96px!important;height:50px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market{width:148px!important;height:50px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl{width:76px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-menu,
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;max-height:24px!important}
}
@media (max-width:380px){
  html[lang="ar"] .tx-global-header-v26 .txgh-inner{grid-template-columns:42px 42px minmax(0,1fr) 120px 70px!important;padding:8px!important;gap:5px!important}
  html[lang="ar"] .tx-global-header-v26 .txgh-inner.tx-header-intl{grid-template-columns:42px 42px minmax(0,1fr) 60px 70px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-brand{width:70px!important;height:44px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market{width:120px!important;height:44px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market-intl{width:60px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-menu,
  html[lang="ar"] .tx-global-header-v26 .txgh-actions.txh-frame-search{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important}
  html[lang="ar"] .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;max-height:22px!important}
}
