/* Header repair v2: one clean top row; site navigation lives in the menu dropdown. */
header{position:sticky!important;top:0;z-index:1000!important;isolation:isolate;background:rgba(7,21,48,.98)!important}
header .w.hd{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;height:auto!important;min-height:68px!important;padding:8px 0!important;position:relative!important}
header .logo{order:1!important;flex:0 0 auto!important;min-width:0!important;height:auto!important;margin:0!important;gap:8px!important}
header .logo img{height:38px!important;max-width:46px!important}
header .logo b{font-size:clamp(17px,1.7vw,23px)!important;white-space:nowrap!important}
header #mb.menu{order:2!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:1px solid rgba(43,196,255,.35)!important;border-radius:12px!important;background:rgba(255,255,255,.05)!important;color:#eaf4ff!important;cursor:pointer!important}
header #mb.menu::before{content:"☰";font-size:21px;line-height:1}
header #nav{display:none!important;position:absolute!important;top:calc(100% + 1px)!important;inset-inline:0!important;z-index:10000!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:4px!important;min-width:0!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;padding:12px!important;margin:0!important;background:#0a1b36!important;border:1px solid rgba(43,196,255,.24)!important;border-radius:0 0 16px 16px!important;box-shadow:0 20px 45px #0007!important}
header #nav.open{display:flex!important}
header #nav a{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:42px!important;padding:10px 14px!important;border-radius:10px!important;font-size:14px!important;white-space:normal!important;color:#dbeaff!important}
header #nav a:hover,header #nav a.on{background:rgba(43,196,255,.14)!important;color:#fff!important}
header #shop-actions.shop-actions{order:3!important;display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:6px!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important}
header #shop-actions>*{flex:0 0 auto!important;height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:12px!important;white-space:nowrap!important}
header #shop-actions>.shop-cart-bubble{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;flex:0 0 38px!important}
header #shop-actions>details{height:38px!important;min-height:38px!important}
header #shop-actions>details>summary{height:38px!important;min-height:38px!important;padding:0 9px!important;font-size:12px!important}
header #shop-actions .wt-welcome-chip{height:38px!important;min-width:68px!important;padding:0 9px!important}
header .lang{order:4!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;height:38px!important;min-height:38px!important;padding:0 10px!important;margin:0!important;font-size:12px!important}
header #shop-actions .wt-settings-dropdown,header #shop-actions .wt-admin-dropdown{z-index:10001!important}
@media(max-width:1050px){
 header .w.hd{flex-wrap:wrap!important;row-gap:7px!important}
 header .logo{order:1!important;margin-inline-end:auto!important}
 header #mb.menu{order:2!important}
 header .lang{order:3!important}
 header #shop-actions.shop-actions{order:4!important;flex:1 0 100%!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;padding:3px 0!important}
 header #shop-actions.shop-actions::-webkit-scrollbar{display:none!important}
 header #nav{top:100%!important}
}
@media(max-width:560px){
 header .logo b{font-size:17px!important}
 header .logo img{height:32px!important;max-width:38px!important}
 header #shop-actions>*{padding:0 8px!important;font-size:11px!important}
 header #shop-actions .wt-welcome-chip{min-width:60px!important}
 header #shop-actions .wt-welcome-chip strong{max-width:78px;overflow:hidden;text-overflow:ellipsis}
 header #shop-actions>details>summary{padding:0 8px!important}
 header #nav{position:fixed!important;top:var(--wt-header-bottom,110px)!important;inset-inline:10px!important;max-height:calc(100dvh - 130px)!important;border-radius:15px!important}
}

/* Final emergency override: no overlapping rows; navigation opens only from the menu button. */
html body header{position:sticky!important;top:0!important;z-index:5000!important;isolation:isolate!important}
html body header .w.hd{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:68px!important;height:auto!important;padding:8px 12px!important;box-sizing:border-box!important}
html body header .logo{order:1!important;flex:0 0 auto!important;min-width:0!important;margin:0!important}
html body header #mb.menu{order:2!important;display:inline-flex!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important;align-items:center!important;justify-content:center!important;padding:0!important}
html body header #mb.menu::before{content:"☰"!important;font-size:21px!important}
html body header #nav{display:none!important;position:absolute!important;top:100%!important;inset-inline:12px!important;z-index:6000!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:4px!important;width:auto!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;padding:12px!important;margin:0!important;background:#0b1b35!important;border:1px solid rgba(43,196,255,.3)!important;border-radius:0 0 16px 16px!important;box-shadow:0 18px 40px #0006!important}
html body header #nav.open{display:flex!important}
html body header #nav a{display:flex!important;min-height:42px!important;align-items:center!important;justify-content:flex-start!important;padding:10px 14px!important;white-space:normal!important}
html body header #shop-actions.shop-actions{order:3!important;display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;border:0!important}
html body header #shop-actions.shop-actions::-webkit-scrollbar{display:none!important}
html body header #shop-actions>*{flex:0 0 auto!important;min-height:36px!important;height:36px!important;padding:0 8px!important;font-size:12px!important;white-space:nowrap!important}
html body header #shop-actions>.shop-cart-bubble{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important}
html body header #shop-actions>details,html body header #shop-actions>details>summary{height:36px!important;min-height:36px!important}
html body header #shop-actions>details>summary{padding:0 8px!important;font-size:11px!important}
html body header #shop-actions .wt-welcome-chip{min-width:58px!important;height:36px!important;padding:0 7px!important}
html body header #shop-actions .wt-welcome-small{font-size:9px!important}
html body header #shop-actions .wt-welcome-chip strong{font-size:11px!important;max-width:68px!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body header .lang{order:4!important;flex:0 0 auto!important;height:36px!important;min-height:36px!important;padding:0 8px!important;margin:0!important;font-size:11px!important}
html body.wt-light-theme header{background:#fff!important;border-bottom:1px solid #dbe5f0!important}
html body.wt-light-theme header #mb.menu{color:#183450!important;background:#f4f8fc!important;border-color:#d5e2ef!important}
html body.wt-light-theme header #nav{background:#fff!important;border-color:#dbe5f0!important}
html body.wt-light-theme header #nav a{color:#203854!important}
html body.wt-light-theme header #nav a:hover,html body.wt-light-theme header #nav a.on{background:#e8f5ff!important;color:#0867ad!important}
@media(max-width:1050px){
 html body header .w.hd{flex-wrap:nowrap!important;gap:5px!important;padding-inline:8px!important}
 html body header .logo b{font-size:clamp(15px,2vw,19px)!important}
 html body header .logo img{height:32px!important;max-width:38px!important}
 html body header #shop-actions.shop-actions{flex:1 1 0!important;justify-content:flex-start!important}
 html body header #shop-actions>*{padding-inline:6px!important;font-size:10px!important}
 html body header #shop-actions>details>summary{padding-inline:6px!important;font-size:10px!important}
 html body header .lang{padding-inline:6px!important}
}
@media(max-width:650px){
 html body header .w.hd{min-height:60px!important}
 html body header #shop-actions .wt-settings-menu,html body header #shop-actions .wt-admin-menu{display:none!important}
 html body header #shop-actions .wt-welcome-chip{min-width:52px!important}
 html body header #shop-actions .shop-nav-link{font-size:10px!important}
 html body header #nav{position:fixed!important;top:66px!important;inset-inline:8px!important;max-height:calc(100dvh - 82px)!important;border-radius:14px!important}
}

/* Follow-up polish: hide the old menu label and make header spacing intentional. */
html body header #mb.menu{font-size:0!important;letter-spacing:0!important;overflow:hidden!important}
html body header #mb.menu::before{font-size:21px!important;content:"☰"!important}
html body header .w.hd{gap:10px!important;padding-inline:18px!important}
html body header .logo{margin-inline-start:0!important}
html body header #shop-actions.shop-actions{gap:7px!important}
html body header #shop-actions .wt-settings-dropdown button#wt-theme-toggle{font-size:0!important}
html body header #shop-actions .wt-settings-dropdown button#wt-theme-toggle::after{content:"الوضع الفاتح";font-size:13px!important}
html body header #shop-actions .wt-settings-dropdown button#wt-theme-dark{font-size:0!important}
html body header #shop-actions .wt-settings-dropdown button#wt-theme-dark::after{content:"الوضع الداكن";font-size:13px!important}
@media(min-width:1051px){
 html body header .w.hd{min-height:72px!important}
 html body header #nav{inset-inline:18px!important}
}

/* Storefront header redesign: clean logo area, compact actions, clear menu. */
html body header{background:#0b1830!important;border-bottom:1px solid rgba(40,190,255,.17)!important}
html body header .w.hd{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:14px!important;min-height:76px!important;padding:10px 20px!important;box-sizing:border-box!important}
html body header .logo{order:4!important;flex:0 0 auto!important;margin:0!important;display:flex!important;align-items:center!important;gap:9px!important}
html body header .logo b{font-size:22px!important;letter-spacing:.2px!important;color:#f3f8ff!important}
html body header .logo img{width:42px!important;height:42px!important;object-fit:contain!important}
html body header #mb.menu{order:3!important;display:inline-flex!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;align-items:center!important;justify-content:center!important;background:#122746!important;color:#e7f5ff!important;border:1px solid #284b72!important;border-radius:13px!important;font-size:0!important}
html body header #mb.menu::before{content:"☰"!important;font-size:21px!important}
html body header #nav{display:none!important;position:absolute!important;top:100%!important;right:20px!important;left:auto!important;width:min(320px,calc(100vw - 40px))!important;z-index:6000!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:12px!important;margin:0!important;background:#0d203d!important;border:1px solid #24476d!important;border-radius:0 0 16px 16px!important;box-shadow:0 20px 50px #0006!important}
html body header #nav.open{display:flex!important}
html body header #nav a{display:flex!important;align-items:center!important;min-height:42px!important;padding:10px 13px!important;border-radius:10px!important;color:#dcecff!important;white-space:normal!important}
html body header #nav a:hover,html body header #nav a.on{background:#173a60!important;color:#fff!important}
html body header #shop-actions.shop-actions{order:2!important;display:flex!important;flex:1 1 auto!important;min-width:0!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:8px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important}
html body header #shop-actions>*{height:40px!important;min-height:40px!important;padding:0 13px!important;font-size:12px!important;border-radius:12px!important;box-sizing:border-box!important}
html body header #shop-actions .wt-store-link{background:linear-gradient(135deg,#087fe4,#22b7ed)!important;color:#fff!important;border:0!important;font-weight:800!important}
html body header #shop-actions .wt-welcome-chip{min-width:92px!important;height:40px!important;padding:0 12px!important;justify-content:center!important;border-color:#25486d!important;background:#112744!important}
html body header #shop-actions .wt-welcome-small{color:#a9c4e0!important}
html body header #shop-actions .wt-welcome-chip strong{color:#fff!important}
html body header #shop-actions .wt-settings-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;text-decoration:none!important;border:1px solid #2b4b70!important;background:#112744!important;color:#e8f4ff!important;font-weight:700!important}
html body header #shop-actions .wt-settings-link:hover{background:#193b60!important;border-color:#28b9ee!important}
html body header #shop-actions>details>summary{height:40px!important;min-height:40px!important;padding:0 13px!important}
html body header .lang{order:1!important;height:40px!important;min-height:40px!important;padding:0 13px!important;margin:0!important;border-radius:12px!important}
html body.wt-light-theme header{background:#fff!important;border-bottom:1px solid #dbe5ef!important}
html body.wt-light-theme header .logo b{color:#153454!important}
html body.wt-light-theme header #mb.menu,html body.wt-light-theme header #shop-actions .wt-settings-link,html body.wt-light-theme header #shop-actions>.shop-nav-link,html body.wt-light-theme header .lang{background:#f5f9fd!important;color:#1b3856!important;border-color:#d5e2ef!important}
html body.wt-light-theme header #shop-actions .wt-welcome-chip{background:#f5f9fd!important;border-color:#d5e2ef!important}
html body.wt-light-theme header #shop-actions .wt-welcome-chip strong{color:#1b3856!important}
@media(max-width:850px){
 html body header .w.hd{gap:8px!important;padding:8px 10px!important}
 html body header .logo b{font-size:17px!important}
 html body header .logo img{width:34px!important;height:34px!important}
 html body header #shop-actions.shop-actions{gap:5px!important;overflow-x:auto!important;scrollbar-width:none!important}
 html body header #shop-actions.shop-actions::-webkit-scrollbar{display:none!important}
 html body header #shop-actions>*{padding:0 8px!important;font-size:11px!important;flex:0 0 auto!important}
 html body header #shop-actions .wt-welcome-chip{min-width:62px!important}
 html body header .lang{padding:0 8px!important;font-size:11px!important}
}
@media(max-width:560px){
 html body header .w.hd{min-height:62px!important}
 html body header #shop-actions .wt-admin-menu{display:none!important}
 html body header #nav{position:fixed!important;top:70px!important;right:8px!important;left:8px!important;width:auto!important;max-height:calc(100dvh - 85px)!important;overflow:auto!important;border-radius:15px!important}
}


/* Storefront header v3: intentional RTL order, clear grouping, standout store CTA. */
html body header{width:100%!important;background:#0b1830!important}
html body header .w.hd{direction:rtl!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:78px!important;padding:10px clamp(14px,3vw,34px)!important}
html body header .logo{order:1!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;white-space:nowrap!important}
html body header .logo b{font-size:clamp(18px,1.8vw,24px)!important;letter-spacing:.2px!important}
html body header .logo img{width:42px!important;height:42px!important;object-fit:contain!important}
html body header #mb.menu{order:2!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;border-radius:13px!important}
html body header #shop-actions.shop-actions{order:3!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
html body header #shop-actions>*{flex:0 0 auto!important;height:40px!important;min-height:40px!important;padding:0 13px!important;border-radius:12px!important;font-size:12px!important;white-space:nowrap!important}
html body header #shop-actions .wt-store-link{order:-1!important;min-width:100px!important;justify-content:center!important;background:linear-gradient(135deg,#087fe4 0%,#20b8ef 100%)!important;color:#fff!important;border:1px solid #31c3ff!important;box-shadow:0 7px 22px #0c9bea45!important;font-size:13px!important;font-weight:800!important}
html body header #shop-actions .wt-store-link:hover{transform:translateY(-1px)!important;box-shadow:0 10px 26px #0c9bea60!important}
html body header #shop-actions .wt-settings-link,html body header #shop-actions>details>summary,html body header #shop-actions>.shop-nav-link{background:#122744!important;border:1px solid #29496c!important;color:#eaf4ff!important}
html body header #shop-actions .wt-welcome-chip{min-width:94px!important;align-items:center!important;text-align:center!important;background:#122744!important;border-color:#29496c!important}
html body header #shop-actions .wt-welcome-chip strong{max-width:130px!important;color:#fff!important}
html body header .lang{order:4!important;flex:0 0 auto!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 13px!important}
html body header #nav{direction:rtl!important;right:clamp(14px,3vw,34px)!important;left:auto!important}
html body.wt-light-theme header{background:#fff!important}
html body.wt-light-theme header #shop-actions .wt-store-link{background:linear-gradient(135deg,#087fcb,#20a9df)!important;color:#fff!important}
html body.wt-light-theme header #shop-actions .wt-settings-link,html body.wt-light-theme header #shop-actions>details>summary,html body.wt-light-theme header #shop-actions>.shop-nav-link{background:#f5f9fd!important;color:#1b3856!important;border-color:#d5e2ef!important}
html body.wt-light-theme header #shop-actions .wt-welcome-chip{background:#f5f9fd!important;border-color:#d5e2ef!important}
html body.wt-light-theme header #shop-actions .wt-welcome-chip strong{color:#1b3856!important}
@media(max-width:1050px){
 html body header .w.hd{gap:7px!important;padding:8px 10px!important;min-height:68px!important}
 html body header .logo b{font-size:17px!important}
 html body header .logo img{width:34px!important;height:34px!important}
 html body header #shop-actions.shop-actions{flex:1 1 0!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
 html body header #shop-actions.shop-actions::-webkit-scrollbar{display:none!important}
 html body header #shop-actions>*{height:36px!important;min-height:36px!important;padding:0 8px!important;font-size:11px!important}
 html body header #shop-actions .wt-store-link{min-width:auto!important;font-size:11px!important}
 html body header #shop-actions .wt-welcome-chip{min-width:62px!important}
 html body header .lang{height:36px!important;min-height:36px!important;padding:0 8px!important;font-size:11px!important}
}
@media(max-width:620px){
 html body header .w.hd{flex-wrap:wrap!important;row-gap:7px!important}
 html body header .logo{order:1!important}
 html body header #mb.menu{order:2!important}
 html body header .lang{order:3!important;margin-inline-start:auto!important}
 html body header #shop-actions.shop-actions{order:4!important;flex:1 0 100%!important;max-width:100%!important}
 html body header #shop-actions .wt-admin-menu{display:none!important}
 html body header #nav{position:fixed!important;top:110px!important;right:8px!important;left:8px!important;width:auto!important;max-height:calc(100dvh - 125px)!important;overflow:auto!important;border-radius:15px!important}
}


/* Store visibility fix: restore the mobile bottom navigation after header overrides. */
@media (max-width:640px){
 html body{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
 html body header #shop-actions.shop-actions{
  position:fixed!important;left:12px!important;right:12px!important;
  bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  top:auto!important;z-index:9000!important;width:auto!important;max-width:none!important;
  min-width:0!important;flex:initial!important;display:flex!important;
  flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:space-around!important;gap:4px!important;
  height:66px!important;min-height:66px!important;margin:0!important;padding:6px!important;
  overflow-x:auto!important;overflow-y:visible!important;
  border:1px solid rgba(43,196,255,.3)!important;border-radius:22px!important;
  background:rgba(8,22,48,.97)!important;box-shadow:0 12px 34px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;
 }
 html body header #shop-actions>*{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;min-width:0!important;max-width:none!important;
  height:48px!important;min-height:48px!important;padding:0 10px!important;
  font-size:12px!important;white-space:nowrap!important;border-radius:14px!important;
 }
 html body header #shop-actions .wt-store-link{
  flex:1 1 auto!important;background:linear-gradient(135deg,#168be8,#2bc4ff)!important;
  color:#04142d!important;font-weight:800!important;border:0!important;
 }
 html body header #shop-actions .shop-cart-bubble{
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;
  height:44px!important;min-height:44px!important;padding:0!important;
  border-radius:14px!important;background:linear-gradient(135deg,#2bc4ff,#3d82ff)!important;
  color:#04142d!important;
 }
 html body header #shop-actions .shop-cart-bubble svg{width:22px!important;height:22px!important}
 html body header #shop-actions .wt-settings-link{padding-inline:8px!important}
 html body .fab{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;z-index:8000!important}
}
