/* EHC 2.9 — a single unified premium Tajawal header, isolated from theme styles. */
.ehc-site-header{--ehc-sh-accent:#d88728;--ehc-sh-navy:#03162e;position:relative;z-index:90;background:transparent;color:#18364c;direction:rtl;font:500 15px/1.5 'Tajawal',Tahoma,Arial,sans-serif!important;padding:14px 24px;box-sizing:border-box}
.ehc-site-header,.ehc-site-header *{box-sizing:border-box}
.ehc-site-header a{text-decoration:none!important}
.ehc-site-header svg{display:block;width:20px;height:20px;flex:none}
.ehc-site-header input,.ehc-site-header button,.ehc-site-header summary{font-family:'Tajawal',Tahoma,Arial,sans-serif!important}
.ehc-site-header button:focus-visible,.ehc-site-header a:focus-visible,.ehc-site-header summary:focus-visible,.ehc-site-header input:focus-visible{outline:2px solid var(--ehc-sh-accent);outline-offset:3px}
.ehc-site-header.ehc-sh-sticky{position:sticky;top:0}
body.admin-bar .ehc-site-header.ehc-sh-sticky{top:32px}
.ehc-sh-container{max-width:1500px;width:100%;margin:0 auto}
.ehc-sh-shell{min-height:86px;display:flex;align-items:center;gap:clamp(10px,1.4vw,23px);padding:12px clamp(14px,1.6vw,25px);background:#fff;border:1px solid #e8edf2;border-radius:20px;box-shadow:0 9px 34px rgba(12,41,64,.09);position:relative}
.ehc-sh-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:0 0 auto;color:#142d41!important;padding-inline-end:clamp(8px,1vw,18px);border-inline-end:1px solid #e6ebf0}
.ehc-sh-logo-img{width:53px;height:53px;object-fit:contain;flex:none;border-radius:13px}
.ehc-sh-brand-mark{display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:15px;background:#112f4d;color:#f3c26d}
.ehc-sh-brand-mark svg{width:36px;height:36px}
.ehc-sh-brand-name{display:flex;flex-direction:column;max-width:160px;min-width:0;line-height:1.3}
.ehc-sh-brand-name strong{font-size:19px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ehc-sh-brand-name small{font-size:10.5px;font-weight:600;color:#8594a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;margin-top:5px}
.ehc-sh-navigation{display:flex;align-items:center;gap:clamp(8px,1.3vw,20px);min-width:0;flex:0 1 auto}
.ehc-sh-categories{position:relative;flex:none;z-index:30}.ehc-sh-categories>summary{min-height:46px;padding:0 15px;background:var(--ehc-sh-navy);color:white;cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;border-radius:12px;font-weight:800;font-size:13px;white-space:nowrap}
.ehc-sh-categories>summary svg{width:18px;height:18px;color:#e4ae61}.ehc-sh-categories summary::-webkit-details-marker,.ehc-sh-lang summary::-webkit-details-marker{display:none}.ehc-sh-chevron{font-size:15px;opacity:.65;margin-inline-start:3px}
.ehc-sh-categories[open]>summary{background:#224763}.ehc-sh-categories-menu,.ehc-sh-lang-panel{position:absolute;top:calc(100% + 14px);inset-inline-start:0;z-index:45;min-width:270px;background:#fff;border:1px solid #e5ebf0;box-shadow:0 20px 48px rgba(11,44,66,.17);border-radius:15px;padding:9px;max-height:420px;overflow:auto}
.ehc-sh-dd-heading{font-size:12px;font-weight:800;color:#7d8c9a;padding:9px 12px 11px;border-bottom:1px solid #ecf0f2;margin-bottom:5px}
.ehc-sh-categories-menu a,.ehc-sh-categories-menu .ehc-sh-no-cats{display:flex;align-items:center;justify-content:space-between;min-height:41px;gap:16px;padding:10px 12px;color:#2b4255!important;border-radius:9px;font-size:13px;font-weight:700}
.ehc-sh-categories-menu a:hover,.ehc-sh-lang-panel a:hover{background:#f4f7f9;color:#0d3450!important}.ehc-sh-category-all{background:#f7f9fb;color:#0c3048!important}.ehc-sh-category-link small{color:#8e9aab}.ehc-sh-category-link.is-child{padding-inline-start:28px}.ehc-sh-no-cats{font-size:12px;color:#8995a0}
.ehc-sh-links{display:flex;align-items:center;gap:clamp(9px,1.4vw,22px);min-width:0;white-space:nowrap}.ehc-sh-links a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;font-size:13.5px;font-weight:800;color:#3c5264!important;transition:color .15s}.ehc-sh-links a:hover,.ehc-sh-links a.is-current{color:var(--ehc-sh-accent)!important}
.ehc-sh-search{display:flex;align-items:center;flex:1 1 190px;max-width:none;min-width:95px;min-height:48px;border:1px solid #e7edf0;border-radius:14px;background:#f6f8fa;padding:4px 7px 4px 5px;gap:9px;margin-inline-start:0;box-shadow:inset 0 1px 2px rgba(24,55,77,.025)}
.ehc-sh-search>svg{width:19px;height:19px;color:#8e9dab;margin-inline-start:7px}.ehc-sh-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;flex:1;width:100%;min-width:0;color:#19364b!important;padding:8px 0!important;font:500 13px/1.6 'Tajawal',sans-serif!important}.ehc-sh-search input::placeholder{color:#9ba8b4}.ehc-sh-search button{display:grid;place-items:center;cursor:pointer;border:0;background:var(--ehc-sh-accent);color:#fff;width:38px;height:38px;flex:none;border-radius:11px}.ehc-sh-search button svg{width:20px;height:20px;transform:scaleX(-1)}
.ehc-sh-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ehc-sh-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-inline-start:2px}
.ehc-sh-lang{position:relative;z-index:40}.ehc-sh-lang>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:5px;min-width:61px;padding:7px 6px;color:#33495b;font-size:13px;font-weight:800;min-height:44px}.ehc-sh-lang>summary svg{width:19px;height:19px}.ehc-sh-lang-panel{min-width:164px;inset-inline-start:auto;inset-inline-end:0;padding:7px}.ehc-sh-lang-panel a{display:block;padding:10px 12px;border-radius:9px;color:#254058!important;font-size:13px;white-space:nowrap}.ehc-sh-lang-panel a.is-selected{background:#f0f5f8;font-weight:900}
.ehc-sh-action{position:relative;width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:12px;border:1px solid #e7ebef;background:#fff;color:#284358!important;transition:background .15s,border-color .15s}
.ehc-sh-action:hover{background:#f4f7f9;border-color:#c9d4dd}.ehc-sh-action svg{width:22px;height:22px}.ehc-sh-action>span:not(.ehc-sh-cart-count){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ehc-sh-cart{color:#fff!important;background:var(--ehc-sh-navy);border-color:var(--ehc-sh-navy)}.ehc-sh-cart:hover{background:#27455d;color:#fff!important}
.ehc-sh-cart-count{position:absolute;inset-inline-start:-4px;top:-7px;background:var(--ehc-sh-accent);color:#fff;border:2px solid #fff;border-radius:99px;padding:2px 5px;font:800 10px/1.3 'Tajawal',sans-serif;min-width:21px;text-align:center}
.ehc-sh-menu-toggle,.ehc-sh-search-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid #e1e8ed;background:#fff;color:#23465e;border-radius:12px;cursor:pointer}
.ehc-sh-dark .ehc-sh-shell{background:#102941;color:#fff;border-color:#25445c;box-shadow:0 12px 38px #0d243d30}.ehc-sh-dark .ehc-sh-brand{border-color:#31506a;color:#fff!important}.ehc-sh-dark .ehc-sh-brand-name small{color:#a9c2d3}.ehc-sh-dark .ehc-sh-links a{color:#d8e8f2!important}.ehc-sh-dark .ehc-sh-links a.is-current,.ehc-sh-dark .ehc-sh-links a:hover{color:#f4b35f!important}.ehc-sh-dark .ehc-sh-search{background:#1b3a53;border-color:#315069}.ehc-sh-dark .ehc-sh-search input{color:#fff!important}.ehc-sh-dark .ehc-sh-search input::placeholder{color:#9bb4c5}.ehc-sh-dark .ehc-sh-action{background:#193a54;border-color:#2e526b;color:#fff!important}.ehc-sh-dark .ehc-sh-cart{background:var(--ehc-sh-accent);border-color:var(--ehc-sh-accent)}.ehc-sh-dark .ehc-sh-lang>summary{color:#fff}.ehc-sh-dark .ehc-sh-menu-toggle,.ehc-sh-dark .ehc-sh-search-toggle{background:#25465d;color:#fff;border-color:#3b5b73}
@media(max-width:1250px){.ehc-site-header{padding:10px 16px}.ehc-sh-shell{gap:10px}.ehc-sh-brand{padding-inline-end:10px}.ehc-sh-brand-name{max-width:128px}.ehc-sh-brand-name strong{font-size:17px}.ehc-sh-links{gap:11px}.ehc-sh-links a{font-size:12.5px}.ehc-sh-search{max-width:250px}}
@media(max-width:1020px){.ehc-sh-shell{flex-wrap:wrap;min-height:74px;gap:9px}.ehc-sh-brand{margin-inline-end:auto}.ehc-sh-navigation{order:5;display:none;width:100%;flex-basis:100%;padding-top:12px;border-top:1px solid #e7edf2;align-items:stretch;flex-direction:column;gap:10px}.ehc-sh-menu-open .ehc-sh-navigation{display:flex}.ehc-sh-links{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%}.ehc-sh-links a{min-height:43px;padding:5px 12px;justify-content:flex-start;border-radius:8px}.ehc-sh-categories{width:100%}.ehc-sh-categories>summary{justify-content:flex-start}.ehc-sh-categories-menu{position:static;box-shadow:none;min-width:0;max-height:290px;margin-top:8px}.ehc-sh-search{order:4;display:none;max-width:none;width:100%;flex-basis:100%;margin:0}.ehc-sh-search-open .ehc-sh-search{display:flex}.ehc-sh-actions{margin-inline-start:0}.ehc-sh-menu-toggle,.ehc-sh-search-toggle{display:flex}.ehc-sh-dark .ehc-sh-navigation{border-color:#31506a}}
@media(max-width:580px){.ehc-site-header{padding:7px}.ehc-sh-shell{padding:10px 11px;border-radius:15px}.ehc-sh-brand{gap:7px;padding-inline-end:0;border:0}.ehc-sh-brand-mark,.ehc-sh-logo-img{width:41px;height:41px;border-radius:11px}.ehc-sh-brand-mark svg{width:27px;height:27px}.ehc-sh-brand-name{max-width:110px}.ehc-sh-brand-name strong{font-size:15px}.ehc-sh-brand-name small{font-size:9px}.ehc-sh-actions{gap:4px}.ehc-sh-lang>summary{min-width:47px;padding:5px 2px;font-size:12px}.ehc-sh-lang>summary svg{width:17px}.ehc-sh-lang .ehc-sh-chevron{display:none}.ehc-sh-action{width:37px;height:39px;border-radius:10px}.ehc-sh-action svg{width:19px;height:19px}.ehc-sh-menu-toggle,.ehc-sh-search-toggle{width:37px;height:39px;border-radius:10px}.ehc-sh-search{min-height:45px}}
@media(max-width:385px){.ehc-sh-brand-name{max-width:86px}.ehc-sh-brand-name strong{font-size:13px}.ehc-sh-brand-name small{display:none}.ehc-sh-lang>summary svg{display:none}.ehc-sh-lang>summary{min-width:30px}.ehc-sh-actions{gap:2px}}
@media(max-width:782px){body.admin-bar .ehc-site-header.ehc-sh-sticky{top:46px}}
@media print{.ehc-site-header{display:none!important}}

/* Keep the mobile tools in the same uninterrupted surface. */
@media(max-width:580px){.ehc-sh-shell{gap:5px}.ehc-sh-brand-name{max-width:94px}.ehc-sh-brand-mark,.ehc-sh-logo-img{width:38px;height:38px}.ehc-sh-brand-name strong{font-size:14px}.ehc-sh-lang>summary{min-width:30px;padding:2px}.ehc-sh-lang>summary svg{display:none}.ehc-sh-actions{gap:3px}.ehc-sh-action,.ehc-sh-menu-toggle,.ehc-sh-search-toggle{width:36px;height:38px}}

/* v3.0 header width presets — scoped to the plugin header only. */
.ehc-site-header .ehc-sh-container{max-width:var(--ehc-header-limit,1500px)}
.ehc-site-header.ehc-sh-width-full{padding:0!important}
.ehc-site-header.ehc-sh-width-full .ehc-sh-container{max-width:none!important;width:100%!important}
.ehc-site-header.ehc-sh-width-full .ehc-sh-shell{border-radius:0!important;border-inline:0!important;min-height:84px}
@media(max-width:700px){.ehc-site-header.ehc-sh-width-full .ehc-sh-shell{padding-inline:14px}}
/* V3.10: interactive mini-cart, tracking and flags. All controls stay light. */
.ehc-sh-nav-track{color:#ad7130!important}
.ehc-sh-lang>summary{display:flex;align-items:center;gap:7px;border:1px solid #e6edf2;border-radius:11px;padding:7px 10px;min-width:0;background:#fbfcfd;white-space:nowrap}
.ehc-sh-lang>summary img,.ehc-sh-lang-panel img{object-fit:cover;border:1px solid #e2e6e9;border-radius:3px;display:inline-block;width:27px;height:17px;flex:none}
.ehc-sh-lang-panel a{display:flex;align-items:center;gap:9px;justify-content:flex-start}
.ehc-sh-cart-wrap{position:relative;display:flex;align-items:center;z-index:55}
.ehc-sh-mini-toggle{position:absolute;width:18px;height:18px;bottom:-8px;inset-inline-end:-7px;background:#fff;border:1px solid #dde6ed;border-radius:6px;font-size:13px;cursor:pointer;color:#536c7e;display:grid;place-items:center}
.ehc-sh-mini-cart{position:absolute;top:calc(100% + 17px);inset-inline-end:0;width:min(350px,calc(100vw - 25px));max-height:min(470px,75vh);overflow:auto;background:#fff;border:1px solid #e4eaf0;border-radius:18px;padding:17px;box-shadow:0 22px 52px rgba(28,52,69,.16);visibility:hidden;opacity:0;pointer-events:none;transform:translateY(7px);transition:opacity .15s,transform .15s,visibility .15s;z-index:120;text-align:right;direction:rtl;color:#273f52}
.ehc-sh-cart-wrap:focus-within .ehc-sh-mini-cart,.ehc-sh-cart-wrap.ehc-mini-open .ehc-sh-mini-cart{visibility:visible;opacity:1;pointer-events:auto;transform:none}
@media(hover:hover) and (pointer:fine){.ehc-sh-cart-wrap:hover .ehc-sh-mini-cart{visibility:visible;opacity:1;pointer-events:auto;transform:none}}
.ehc-sh-mini-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid #edf1f4;font-weight:900;font-size:16px}.ehc-sh-mini-title span{background:#fff2df;color:#aa732e;border-radius:9px;padding:4px 7px;font-size:11px}
.ehc-sh-mini-row{display:flex!important;gap:10px;padding:11px 0;border-bottom:1px solid #f1f3f5;align-items:center;color:#2d4558!important;min-width:0}.ehc-sh-mini-thumb{background:#f7f8fb;display:grid;place-items:center;border-radius:9px;width:56px;height:52px;flex:none}.ehc-sh-mini-thumb img{width:100%;height:100%;object-fit:contain}.ehc-sh-mini-meta{min-width:0;display:grid;gap:6px}.ehc-sh-mini-meta strong{font-size:12px;font-weight:800;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ehc-sh-mini-meta small{font-size:11px;color:#9a6d36}
.ehc-sh-mini-more{font-size:11px;color:#8596a3}.ehc-sh-mini-total{display:flex;justify-content:space-between;align-items:center;padding:14px 0;font-size:13px;font-weight:800}.ehc-sh-mini-total strong{color:#b8782c;font-size:16px}.ehc-sh-mini-links{display:flex;gap:8px}.ehc-sh-mini-links a,.ehc-sh-mini-shop{display:grid;place-items:center;flex:1;min-height:41px;border-radius:10px;border:1px solid #efcf9e;color:#a66a29!important;font:800 12px 'Tajawal',sans-serif;text-decoration:none!important}.ehc-sh-mini-links a:last-child{background:#e3973c;color:#fff!important;border-color:#e3973c}.ehc-sh-mini-empty{padding:23px 6px;text-align:center;color:#8093a0}.ehc-sh-mini-shop{padding:11px;background:#fff8ec}
@media(max-width:1020px){.ehc-sh-nav-track{width:100%}.ehc-sh-mini-cart{inset-inline-end:0}}
@media(max-width:580px){.ehc-sh-track-action{width:34px!important}.ehc-sh-lang>summary{padding:5px;gap:3px}.ehc-sh-lang>summary span:not(.ehc-sh-chevron){display:none}.ehc-sh-lang>summary img{width:25px;height:16px}.ehc-sh-mini-toggle{width:15px;height:15px;bottom:-5px}}
/* Five functional header actions fit even on 320px devices without clipping. */
@media(max-width:455px){.ehc-site-header .ehc-sh-brand-name{display:none}.ehc-site-header .ehc-sh-shell{gap:4px}.ehc-site-header .ehc-sh-actions{gap:3px}}

/* V3.10.1 — account dropdown and arrow-free mini cart. */
.ehc-sh-mini-toggle{display:none!important}
.ehc-sh-account-wrap{position:relative;display:flex;align-items:center;z-index:56}
.ehc-sh-account-menu{position:absolute;top:calc(100% + 16px);inset-inline-end:0;
  width:min(310px,calc(100vw - 24px));max-width:calc(100vw - 24px);background:#fff;
  box-shadow:0 22px 55px rgba(33,61,78,.16);border:1px solid #e7edf1;
  border-radius:17px;padding:12px;direction:rtl;text-align:right;color:#284357;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(7px);
  transition:opacity .16s,transform .16s,visibility .16s;z-index:125}
.ehc-sh-account-wrap:focus-within .ehc-sh-account-menu,.ehc-sh-account-wrap.ehc-account-open .ehc-sh-account-menu{
  opacity:1;visibility:visible;pointer-events:auto;transform:none}
@media(hover:hover) and (pointer:fine){.ehc-sh-account-wrap:hover .ehc-sh-account-menu{opacity:1;visibility:visible;pointer-events:auto;transform:none}}
.ehc-sh-account-head{display:flex;align-items:center;gap:10px;padding:9px 7px 13px;margin-bottom:5px;border-bottom:1px solid #e9eff3;min-width:0}
.ehc-sh-account-head>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.ehc-sh-account-head strong{font:900 14px/1.3 'Tajawal',sans-serif;color:#253e50}
.ehc-sh-account-head small{font:500 12px/1.4 'Tajawal',sans-serif;overflow-wrap:anywhere;color:#8b9aa6}
.ehc-sh-account-avatar{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:12px;background:#fff3e4;color:#b37a34;font-size:20px;font-weight:900}
.ehc-sh-account-menu>a{display:flex;align-items:center;justify-content:space-between;gap:8px;
  border-radius:9px;padding:11px 12px;color:#344c60!important;text-decoration:none!important;
  font:800 13px/1.5 'Tajawal',sans-serif;min-height:40px}
.ehc-sh-account-menu>a:hover,.ehc-sh-account-menu>a:focus-visible{background:#f3f7fa}
.ehc-sh-account-menu>a.ehc-sh-account-primary{background:#f9eddc;color:#a76b2a!important}
.ehc-sh-account-menu>a.ehc-sh-account-exit{color:#a95644!important;border-top:1px solid #eef0f1;border-radius:0;margin-top:5px}
@media(max-width:580px){.ehc-sh-account-menu{inset-inline-end:-38px}}

/* Invisible 18px hover bridge lets the pointer cross into either dropdown without closing it. */
.ehc-sh-account-wrap::after,.ehc-sh-cart-wrap::after{content:"";position:absolute;top:100%;height:19px;inset-inline:-10px;pointer-events:none}
@media(hover:hover) and (pointer:fine){.ehc-sh-account-wrap:hover::after,.ehc-sh-cart-wrap:hover::after{pointer-events:auto}}
