/* 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}}
