/* ==========================================================================
   EWHS Header Builder – frontend styles
   All widget styling is driven by CSS custom properties set from Elementor.
   ========================================================================== */

.ewhs-header,
.ewhs-navmenu,
.ewhs-drawer,
.elementor-widget[class*="elementor-widget-ewhs-"] {
	--ewhs-accent: #2563eb;
	--ewhs-bg: #ffffff;
	--ewhs-text: #111827;
	--ewhs-muted: #6b7280;
	--ewhs-line: #e5e7eb;
	--ewhs-link: var(--ewhs-text);
	--ewhs-link-hover: var(--ewhs-accent);
	--ewhs-pill-bg: rgba(37, 99, 235, .1);
	--ewhs-dd-bg: #ffffff;
	--ewhs-dd-link: #111827;
	--ewhs-dd-hover: var(--ewhs-accent);
	--ewhs-dd-width: 220px;
	--ewhs-menu-gap: 28px;
	--ewhs-menu-justify: center;
	--ewhs-icon-size: 22px;
	--ewhs-icon-color: var(--ewhs-text);
	--ewhs-icon-hover: var(--ewhs-accent);
	--ewhs-icon-gap: 14px;
	--ewhs-badge-bg: var(--ewhs-accent);
	--ewhs-badge-color: #ffffff;
	--ewhs-height: 78px;
	--ewhs-pad: 20px;
	--ewhs-container: 1240px;
	--ewhs-logo-w: 160px;
	--ewhs-topbar-bg: #111827;
	--ewhs-topbar-text: #e5e7eb;
	--ewhs-navbar-bg: transparent;
	--ewhs-field-bg: #f3f4f6;
	--ewhs-field-border: transparent;
	--ewhs-field-radius: 999px;
	--ewhs-radius: 18px;
	--ewhs-stuck-bg: var(--ewhs-bg);
	--ewhs-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Direction helpers ------------------------------------------------------ */
.ewhs-header, .ewhs-drawer, .ewhs-bottombar, .ewhs-navmenu { --ewhs-start: left; --ewhs-end: right; --ewhs-arrow-next: "›"; }
[dir="rtl"] .ewhs-header, .ewhs-header[dir="rtl"],
[dir="rtl"] .ewhs-drawer, .ewhs-drawer[dir="rtl"],
.ewhs-bottombar[dir="rtl"], .ewhs-navmenu[dir="rtl"], [dir="rtl"] .ewhs-navmenu { --ewhs-start: right; --ewhs-end: left; --ewhs-arrow-next: "‹"; }
/* Arabic script must never be letter-spaced or case-transformed (breaks letter joining). */
[dir="rtl"] .ewhs-nav a, [dir="rtl"] .ewhs-topbar, [dir="rtl"] .ewhs-cta, [dir="rtl"] .ewhs-logo__text,
[dir="rtl"] .ewhs-catbtn, [dir="rtl"] .ewhs-mobile-nav a { letter-spacing: 0 !important; text-transform: none !important; }

/* Color schemes ---------------------------------------------------------- */
.ewhs-scheme--dark {
	--ewhs-bg: #0f172a;
	--ewhs-text: #f1f5f9;
	--ewhs-muted: #94a3b8;
	--ewhs-line: #1e293b;
	--ewhs-field-bg: #1e293b;
	--ewhs-topbar-bg: #020617;
	--ewhs-dd-bg: #1e293b;
	--ewhs-dd-link: #e2e8f0;
	--ewhs-pill-bg: rgba(255, 255, 255, .08);
	--ewhs-navbar-bg: #111c33;
}
.ewhs-scheme--brand {
	--ewhs-bg: var(--ewhs-accent);
	--ewhs-text: #ffffff;
	--ewhs-link-hover: #ffffff;
	--ewhs-icon-hover: #ffffff;
	--ewhs-badge-bg: #ffffff;
	--ewhs-badge-color: var(--ewhs-accent);
	--ewhs-field-bg: rgba(255, 255, 255, .16);
	--ewhs-pill-bg: rgba(255, 255, 255, .18);
	--ewhs-navbar-bg: rgba(0, 0, 0, .12);
}
.ewhs-scheme--brand .ewhs-search__input { color: #fff; }
.ewhs-scheme--brand .ewhs-search__input::placeholder { color: rgba(255, 255, 255, .75); }

/* Base -------------------------------------------------------------------- */
.ewhs-header {
	background: var(--ewhs-bg);
	color: var(--ewhs-text);
	position: relative;
	z-index: 50;
	transition: background-color .3s, box-shadow .3s;
}
.ewhs-header *,
.ewhs-drawer * { box-sizing: border-box; }
.ewhs-header a { color: inherit; text-decoration: none; }

.ewhs-container {
	width: 100%;
	max-width: var(--ewhs-container);
	margin: 0 auto;
	padding-inline: var(--ewhs-pad);
}
.ewhs-row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--ewhs-height);
	transition: min-height .3s var(--ewhs-ease);
}
.ewhs-row--3 { display: grid; grid-template-columns: 1fr auto 1fr; }
.ewhs-row--center { justify-content: center; min-height: 52px; }
.ewhs-row--menu { justify-content: var(--ewhs-menu-justify); min-height: 50px; }
.ewhs-col { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ewhs-col--start, .ewhs-col--end { flex-shrink: 0; }
.ewhs-col--grow { flex: 1 1 auto; }
.ewhs-col--menu { justify-content: var(--ewhs-menu-justify); }
.ewhs-col--center { justify-content: center; }
.ewhs-col--end { justify-content: flex-end; margin-inline-start: auto; }
.ewhs-row--3 .ewhs-col--end { margin-inline-start: 0; }

.ewhs-mobile-only { display: none; }

/* Logo -------------------------------------------------------------------- */
.ewhs-logo a { display: inline-flex; flex-direction: column; line-height: 1.1; color: inherit; text-decoration: none; }
/* High specificity so Elementor's `.elementor img { max-width:100%; height:auto }` and theme rules can't override. */
.ewhs-logo { flex: none; line-height: 0; }
.ewhs-logo a img.ewhs-logo__img,
.elementor .ewhs-logo a img.ewhs-logo__img {
	display: block;
	width: var(--ewhs-logo-w) !important;
	max-width: 100% !important;
	height: var(--ewhs-logo-h, auto) !important;
	max-height: none !important;
	object-fit: contain;
	object-position: var(--ewhs-start, left) center;
	transition: width .3s var(--ewhs-ease), height .3s var(--ewhs-ease);
}
.ewhs-col--center .ewhs-logo a img.ewhs-logo__img { object-position: center; }
.ewhs-logo a { line-height: 1.1; }
.ewhs-logo__text { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ewhs-logo__tagline { font-size: .75rem; opacity: .7; margin-top: 2px; }

/* Menu -------------------------------------------------------------------- */
.ewhs-nav .ewhs-menu,
.ewhs-nav .ewhs-menu ul { list-style: none; margin: 0; padding: 0; }
.ewhs-nav > .ewhs-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: var(--ewhs-menu-justify); gap: 0 var(--ewhs-menu-gap); }
.ewhs-nav .ewhs-menu li { position: relative; }
.ewhs-nav > .ewhs-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 0;
	font-weight: 500;
	color: var(--ewhs-link);
	text-decoration: none;
	position: relative;
	transition: color .2s;
}
.ewhs-nav > .ewhs-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 6px; height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-inline-start: 4px;
	opacity: .7;
}
.ewhs-nav > .ewhs-menu > li > a:hover,
.ewhs-nav > .ewhs-menu > li.current-menu-item > a,
.ewhs-nav > .ewhs-menu > li.current-menu-ancestor > a { color: var(--ewhs-link-hover); }

/* Hover effects */
.ewhs-fx-underline .ewhs-nav > .ewhs-menu > li > a::before,
.ewhs-fx-overline .ewhs-nav > .ewhs-menu > li > a::before {
	content: ""; position: absolute; left: 0; right: 0; height: 2px;
	background: var(--ewhs-link-hover);
	transform: scaleX(0); transform-origin: var(--ewhs-start, left); transition: transform .25s var(--ewhs-ease);
}
.ewhs-fx-underline .ewhs-nav > .ewhs-menu > li > a::before { bottom: 4px; }
.ewhs-fx-overline .ewhs-nav > .ewhs-menu > li > a::before { top: 4px; }
.ewhs-fx-underline .ewhs-nav > .ewhs-menu > li > a:hover::before,
.ewhs-fx-underline .ewhs-nav > .ewhs-menu > li.current-menu-item > a::before,
.ewhs-fx-overline .ewhs-nav > .ewhs-menu > li > a:hover::before,
.ewhs-fx-overline .ewhs-nav > .ewhs-menu > li.current-menu-item > a::before { transform: scaleX(1); }
.ewhs-fx-pill .ewhs-nav > .ewhs-menu { gap: 0 calc(var(--ewhs-menu-gap) / 3); }
.ewhs-fx-pill .ewhs-nav > .ewhs-menu > li > a { padding: 8px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.ewhs-fx-pill .ewhs-nav > .ewhs-menu > li > a:hover,
.ewhs-fx-pill .ewhs-nav > .ewhs-menu > li.current-menu-item > a { background: var(--ewhs-pill-bg); }

/* Dropdowns */
.ewhs-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -16px;
	min-width: var(--ewhs-dd-width);
	background: var(--ewhs-dd-bg);
	padding: 8px 0 !important;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .05);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s var(--ewhs-ease), visibility .2s;
	z-index: 100;
}
.ewhs-nav .sub-menu .sub-menu { top: -8px; inset-inline-start: 100%; }
.ewhs-nav li:hover > .sub-menu,
.ewhs-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ewhs-nav .sub-menu a {
	display: block; padding: 9px 18px; color: var(--ewhs-dd-link); font-size: .94em; text-decoration: none;
	transition: color .15s, padding .15s;
}
.ewhs-nav .sub-menu a:hover { color: var(--ewhs-dd-hover); padding-inline-start: 22px; }
.ewhs-nav .sub-menu li.menu-item-has-children > a::after { content: var(--ewhs-arrow-next, "›"); float: var(--ewhs-end, right); opacity: .6; }

/* Vertical nav (nav menu widget) */
.ewhs-nav--vertical > .ewhs-menu { flex-direction: column; align-items: flex-start; gap: 0; }
.ewhs-nav--vertical .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding-inline-start: 14px !important; padding-inline-end: 0 !important; }

/* Icon buttons & badges -------------------------------------------------- */
.ewhs-actions { display: flex; align-items: center; gap: var(--ewhs-icon-gap); }
.ewhs-actions > div { display: flex; }
.ewhs-icon-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: none; border: 0; padding: 6px; margin: 0; cursor: pointer;
	color: var(--ewhs-icon-color) !important; text-decoration: none; line-height: 1;
	transition: color .2s, transform .2s;
	box-shadow: none; min-height: 0;
}
.ewhs-icon-btn:hover,
.ewhs-icon-btn:focus-visible { color: var(--ewhs-icon-hover) !important; background: none; }
.ewhs-icon-btn:active { transform: scale(.94); }
.ewhs-icon { display: inline-flex; width: var(--ewhs-icon-size); height: var(--ewhs-icon-size); flex: none; }
.ewhs-icon svg { width: 100%; height: 100%; display: block; }
.ewhs-cart__count,
.ewhs-badge {
	position: absolute; top: -2px; inset-inline-end: -4px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px;
	background: var(--ewhs-badge-bg); color: var(--ewhs-badge-color);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	transition: transform .3s var(--ewhs-ease);
}
.ewhs-cart__count.is-bump { animation: ewhs-bump .5s var(--ewhs-ease); }
.ewhs-cart--hide-empty .ewhs-cart__count.is-empty { display: none; }
@keyframes ewhs-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.4); } }

.ewhs-account__label { font-size: .9em; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ewhs-cart__total { font-weight: 600; font-size: .92em; margin-inline-start: 4px; }
.ewhs-cart, .ewhs-account, .ewhs-search--icon { position: relative; display: flex; align-items: center; }

/* CTA */
.ewhs-cta {
	display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
	background: var(--ewhs-accent); color: #fff !important; font-weight: 600; font-size: .92em;
	text-decoration: none; white-space: nowrap; transition: filter .2s, transform .2s;
}
.ewhs-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Dropdown panels (cart, account, search) -------------------------------- */
.ewhs-cart__panel,
.ewhs-account__menu,
.ewhs-search__dropdown {
	position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 120;
	background: #fff; color: #111827;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .05);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s var(--ewhs-ease), visibility .2s;
}
.ewhs-cart__panel::before,
.ewhs-account__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ewhs-cart--dropdown:hover .ewhs-cart__panel,
.ewhs-cart--dropdown.is-open .ewhs-cart__panel,
.ewhs-account:hover .ewhs-account__menu,
.ewhs-account:focus-within .ewhs-account__menu,
.ewhs-search--icon.is-open .ewhs-search__dropdown { opacity: 1; visibility: visible; transform: none; }
.ewhs-cart__panel { width: 340px; padding: 18px; }
.ewhs-account__menu { list-style: none; margin: 0; padding: 8px 0; min-width: 200px; }
.ewhs-account__menu a { display: block; padding: 8px 18px; color: inherit; text-decoration: none; font-size: .92em; }
.ewhs-account__menu a:hover { background: #f3f4f6; color: var(--ewhs-accent); }
.ewhs-search__dropdown { width: min(420px, 90vw); padding: 12px; }

/* Mini cart content (works in dropdown + drawer) */
.ewhs-mini-cart-content .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.ewhs-drawer .ewhs-mini-cart-content .woocommerce-mini-cart { max-height: none; }
.ewhs-mini-cart-content .woocommerce-mini-cart-item {
	position: relative; display: block; padding: 12px 0 !important; padding-inline-end: 28px !important; border-bottom: 1px solid #f1f1f1; font-size: .92em; line-height: 1.4; min-height: 80px;
}
.ewhs-mini-cart-content .woocommerce-mini-cart-item a:not(.remove) { color: #111827; font-weight: 600; text-decoration: none; display: block; }
.ewhs-mini-cart-content .woocommerce-mini-cart-item img { float: var(--ewhs-start, left); width: 60px !important; height: 60px; object-fit: cover; margin: 0 !important; margin-inline-end: 12px !important; border-radius: 8px; }
.ewhs-mini-cart-content .woocommerce-mini-cart-item .quantity { color: #6b7280; display: block; margin-top: 4px; }
.ewhs-mini-cart-content .remove { position: absolute; inset-inline-end: 0; top: 12px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; color: #9ca3af !important; text-decoration: none; font-size: 18px; }
.ewhs-mini-cart-content .remove:hover { background: #fee2e2; color: #dc2626 !important; }
.ewhs-mini-cart-content .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; margin: 0; font-size: 1em; }
.ewhs-mini-cart-content .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ewhs-mini-cart-content .woocommerce-mini-cart__buttons .button {
	display: block; text-align: center; padding: 12px; border-radius: 8px; margin: 0 !important;
	background: #f3f4f6; color: #111827; font-weight: 600; text-decoration: none; font-size: .9em;
}
.ewhs-mini-cart-content .woocommerce-mini-cart__buttons .checkout { background: var(--ewhs-accent, #2563eb); color: #fff; }
.ewhs-mini-cart-content .woocommerce-mini-cart__empty-message { text-align: center; padding: 30px 0; color: #6b7280; margin: 0; }

/* Search ------------------------------------------------------------------ */
.ewhs-search { position: relative; width: 100%; }
.ewhs-search--icon { width: auto; }
.ewhs-search__form {
	display: flex; align-items: center; width: 100%; margin: 0;
	background: var(--ewhs-field-bg); border: 1px solid var(--ewhs-field-border);
	border-radius: var(--ewhs-field-radius); overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.ewhs-search__form:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ewhs-accent) 25%, transparent); border-color: var(--ewhs-accent); }
.ewhs-search__dropdown .ewhs-search__form { --ewhs-field-bg: #f3f4f6; }
.ewhs-search__input {
	flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
	padding: 10px 16px !important; height: 44px; font-size: .95em; color: inherit; margin: 0;
}
.ewhs-search__cat {
	border: 0 !important; background: transparent !important; height: 44px; padding: 0 14px !important; max-width: 170px;
	border-inline-end: 1px solid var(--ewhs-line) !important; font-size: .9em; color: inherit; cursor: pointer; border-radius: 0; margin: 0; box-shadow: none;
}
.ewhs-search__submit {
	display: inline-flex; align-items: center; justify-content: center; border: 0; margin: 4px; cursor: pointer;
	width: 38px; height: 36px; padding: 0; border-radius: var(--ewhs-field-radius);
	background: transparent; color: inherit; --ewhs-icon-size: 18px; transition: background .2s, color .2s;
}
.ewhs-search--full .ewhs-search__submit,
.ewhs-search__submit:hover { background: var(--ewhs-accent); color: #fff; }
.ewhs-search--full .ewhs-search__submit { width: 52px; }
.ewhs-header--shop .ewhs-search--full { max-width: 720px; margin: 0 auto; }

.ewhs-search__results {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 130;
	background: #fff; color: #111827; border-radius: 12px; overflow: hidden;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .05);
	max-height: 70vh; overflow-y: auto;
}
.ewhs-search__dropdown .ewhs-search__results { position: static; box-shadow: none; margin-top: 8px; }
.ewhs-search__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit !important; text-decoration: none; transition: background .15s; }
.ewhs-search__item:hover, .ewhs-search__item.is-active { background: #f3f4f6; }
.ewhs-search__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.ewhs-search__item-title { font-weight: 600; font-size: .92em; line-height: 1.3; }
.ewhs-search__item-price { font-size: .85em; color: #6b7280; }
.ewhs-search__item-price del { opacity: .6; margin-inline-end: 4px; }
.ewhs-search__all { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: .9em; color: var(--ewhs-accent) !important; border-top: 1px solid #f1f1f1; text-decoration: none; }
.ewhs-search__empty { padding: 18px; text-align: center; color: #6b7280; font-size: .92em; }
.ewhs-search.is-loading .ewhs-search__submit .ewhs-icon { animation: ewhs-pulse 1s infinite; }
@keyframes ewhs-pulse { 50% { opacity: .3; } }

/* Top bar & navbar -------------------------------------------------------- */
.ewhs-topbar { background: var(--ewhs-topbar-bg); color: var(--ewhs-topbar-text); font-size: 13px; }
.ewhs-topbar .ewhs-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 38px; }
.ewhs-topbar a { color: inherit; text-decoration: none; opacity: .9; }
.ewhs-topbar a:hover { opacity: 1; }
.ewhs-topbar__contact { display: flex; gap: 18px; }
.ewhs-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; --ewhs-icon-size: 14px; }
.ewhs-topbar__text { text-align: center; font-weight: 500; }
.ewhs-topbar__menu { display: flex; justify-content: flex-end; }
.ewhs-topbar__menu .ewhs-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.ewhs-topbar__menu .sub-menu { display: none; }

.ewhs-header__navbar { background: var(--ewhs-navbar-bg); border-top: 1px solid var(--ewhs-line); }
.ewhs-header--shop .ewhs-header__main { border-bottom: 0; }
.ewhs-header__mobile-search { padding-bottom: 12px; }

/* Layout-specific tweaks -------------------------------------------------- */
.ewhs-header--centered .ewhs-col--start .ewhs-search { max-width: 260px; }
.ewhs-header--split .ewhs-nav--left > .ewhs-menu { justify-content: flex-start; }
.ewhs-header--split .ewhs-col--end { gap: 24px; }
.ewhs-header--split .ewhs-nav--right > .ewhs-menu { justify-content: flex-end; }
.ewhs-header--minimal .ewhs-burger { display: inline-flex; }
.ewhs-header--minimal .ewhs-col--end { gap: var(--ewhs-icon-gap); }
.ewhs-header--boxed { background: transparent; padding: 14px var(--ewhs-pad) 0; }
.ewhs-header--boxed .ewhs-header__main {
	max-width: var(--ewhs-container); margin: 0 auto; background: var(--ewhs-bg);
	border-radius: var(--ewhs-radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .04);
}
.ewhs-header--boxed .ewhs-header__main .ewhs-container { max-width: none; }
.ewhs-header--boxed .ewhs-topbar { border-radius: var(--ewhs-radius); margin: 0 auto 10px; max-width: var(--ewhs-container); }

/* Responsive switching ---------------------------------------------------- */
.ewhs-bp--always .ewhs-mobile-only { display: inline-flex; }
.ewhs-navmenu.ewhs-bp--always .ewhs-desktop-only { display: none; }
/* "Always burger": hide every desktop menu, keep the icons. */
.ewhs-header.ewhs-bp--always .ewhs-nav,
.ewhs-header.ewhs-bp--always .ewhs-col--menu,
.ewhs-header.ewhs-bp--always .ewhs-header__navbar { display: none !important; }
.ewhs-header.ewhs-bp--always .ewhs-burger { display: inline-flex; }

@media (max-width: 1024px) {
	.ewhs-bp--tablet .ewhs-desktop-only { display: none !important; }
	.ewhs-bp--tablet .ewhs-mobile-only { display: inline-flex; }
	.ewhs-bp--tablet .ewhs-header__mobile-search.ewhs-mobile-only { display: block; }
	.ewhs-bp--tablet.ewhs-header .ewhs-row--3 { grid-template-columns: auto 1fr auto; }
	.ewhs-bp--tablet.ewhs-header--split .ewhs-col--center,
	.ewhs-bp--tablet.ewhs-header--centered .ewhs-col--center { justify-content: center; }
}
@media (max-width: 767px) {
	.ewhs-bp--mobile .ewhs-desktop-only { display: none !important; }
	.ewhs-bp--mobile .ewhs-mobile-only { display: inline-flex; }
	.ewhs-bp--mobile .ewhs-header__mobile-search.ewhs-mobile-only { display: block; }
	.ewhs-bp--mobile.ewhs-header .ewhs-row--3 { grid-template-columns: auto 1fr auto; }
	.ewhs-header { --ewhs-height: 64px; --ewhs-pad: 16px; --ewhs-logo-w: 120px; }
	.ewhs-row { gap: 12px; }
	.ewhs-topbar .ewhs-container { grid-template-columns: 1fr; text-align: center; min-height: 34px; }
	.ewhs-topbar__contact, .ewhs-topbar__menu { display: none; }
	.ewhs-cart__total { display: none; }
	.ewhs-header--boxed { padding: 8px 8px 0; }
}

/* Drawers (mobile menu + cart) ------------------------------------------- */
.ewhs-drawer { position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; }
.ewhs-drawer.is-open { visibility: visible; pointer-events: auto; }
.ewhs-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.ewhs-drawer.is-open .ewhs-drawer__overlay { opacity: 1; }
.ewhs-drawer__panel {
	position: absolute; top: 0; bottom: 0; width: min(380px, 88vw);
	background: #fff; color: #111827; display: flex; flex-direction: column;
	box-shadow: 0 0 40px rgba(0, 0, 0, .2);
	transition: transform .35s var(--ewhs-ease);
}
/* Drawer side is logical: "start" = left in LTR, right in RTL. */
.ewhs-drawer__panel--start { inset-inline-start: 0; transform: translateX(-100%); }
.ewhs-drawer__panel--end { inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .ewhs-drawer__panel--start,
.ewhs-drawer[dir="rtl"] .ewhs-drawer__panel--start { transform: translateX(100%); }
[dir="rtl"] .ewhs-drawer__panel--end,
.ewhs-drawer[dir="rtl"] .ewhs-drawer__panel--end { transform: translateX(-100%); }
.ewhs-drawer.is-open .ewhs-drawer__panel { transform: none; }
.ewhs-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f1f1f1; --ewhs-icon-color: #111827; --ewhs-logo-w: 120px; }
.ewhs-drawer__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ewhs-cart-drawer .ewhs-drawer__body { display: block; }
.ewhs-drawer .ewhs-search__results { position: static; box-shadow: none; border: 1px solid #f1f1f1; margin-top: 8px; }
.ewhs-mobile-nav .ewhs-menu,
.ewhs-mobile-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.ewhs-mobile-nav li { position: relative; border-bottom: 1px solid #f3f4f6; }
.ewhs-mobile-nav a { display: block; padding-block: 14px; padding-inline: 0 44px; color: #111827; text-decoration: none; font-weight: 500; }
.ewhs-mobile-nav .current-menu-item > a { color: var(--ewhs-accent); }
.ewhs-mobile-nav .sub-menu { display: none; padding-inline-start: 14px; }
.ewhs-mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.ewhs-mobile-nav .sub-menu a { font-weight: 400; padding-block: 10px; padding-inline: 0 44px; font-size: .95em; }
.ewhs-mobile-nav li.is-open > .sub-menu { display: block; }
.ewhs-submenu-toggle {
	position: absolute; inset-inline-end: 0; top: 6px; width: 38px; height: 38px; border: 0; background: #f3f4f6; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #111827; --ewhs-icon-size: 18px;
}
.ewhs-submenu-toggle .ewhs-icon { transition: transform .25s; }
li.is-open > .ewhs-submenu-toggle .ewhs-icon { transform: rotate(180deg); }
.ewhs-mobile-account { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: #111827; text-decoration: none; font-weight: 600; margin-top: auto; }

body.ewhs-locked { overflow: hidden; }

/* Site header wrapper behaviours (sticky / transparent / shrink / hide) --- */
.ewhs-site-header { position: relative; z-index: 990; width: 100%; transition: transform .35s var(--ewhs-ease); }
.ewhs-site-header .elementor-section-wrap > .elementor-section,
.ewhs-site-header > .elementor > .e-con { margin: 0; }
.ewhs-site-header--sticky { position: sticky; top: 0; }
body.admin-bar .ewhs-site-header--sticky { top: 32px; }
.ewhs-site-header--transparent { position: absolute; left: 0; right: 0; top: 0; }
body.admin-bar .ewhs-site-header--transparent { top: 32px; }
.ewhs-site-header--transparent.ewhs-site-header--sticky { position: fixed; }
.ewhs-site-header--transparent .ewhs-header:not(.ewhs-header--boxed),
.ewhs-site-header--transparent .ewhs-header__navbar { background: transparent; --ewhs-line: rgba(255, 255, 255, .15); }
.ewhs-site-header--transparent:not(.is-scrolled) .ewhs-header { --ewhs-text: #fff; --ewhs-link: #fff; --ewhs-icon-color: #fff; --ewhs-field-bg: rgba(255, 255, 255, .15); }
.ewhs-site-header--transparent:not(.is-scrolled) .ewhs-search__input { color: #fff; }
.ewhs-site-header.is-scrolled .ewhs-header:not(.ewhs-header--boxed) { background: var(--ewhs-stuck-bg); box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.ewhs-site-header.is-shrunk .ewhs-header__main .ewhs-row { min-height: calc(var(--ewhs-height) * .78); }
.ewhs-site-header.is-shrunk .ewhs-logo a img.ewhs-logo__img {
	width: calc(var(--ewhs-logo-w) * var(--ewhs-logo-shrink, .8)) !important;
	height: calc(var(--ewhs-logo-h) * var(--ewhs-logo-shrink, .8)) !important; /* invalid → auto when no height set */
}
.ewhs-site-header.is-shrunk .ewhs-topbar { display: none; }
.ewhs-site-header.is-hidden { transform: translateY(-110%); }

@media (max-width: 782px) {
	body.admin-bar .ewhs-site-header--sticky,
	body.admin-bar .ewhs-site-header--transparent { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .ewhs-site-header--sticky { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ewhs-header *, .ewhs-drawer *, .ewhs-site-header { transition: none !important; animation: none !important; }
}

.ewhs-header .screen-reader-text,
.ewhs-drawer .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Fixes / refinements ----------------------------------------------------- */
.ewhs-header:hover,
.ewhs-header:focus-within { z-index: 60; }
.ewhs-logo__text { white-space: nowrap; }

.ewhs-nav > .ewhs-menu > li > a { white-space: nowrap; }
@media (max-width: 767px) {
	.ewhs-header--minimal .ewhs-actions .ewhs-desktop-only { display: none !important; }
}

/* Reset theme button styles (Hello Elementor & others add borders/backgrounds to <button>). */
.ewhs-header button.ewhs-icon-btn,
.ewhs-drawer button.ewhs-icon-btn,
.ewhs-header button.ewhs-icon-btn:hover,
.ewhs-header button.ewhs-icon-btn:focus,
.ewhs-drawer button.ewhs-icon-btn:hover,
.ewhs-drawer button.ewhs-icon-btn:focus {
	border: 0 !important;
	background: transparent !important;
	border-radius: 8px;
	box-shadow: none !important;
	padding: 6px !important;
	min-width: 0;
	width: auto;
}
.ewhs-header button.ewhs-icon-btn:focus-visible,
.ewhs-drawer button.ewhs-icon-btn:focus-visible { outline: 2px solid var(--ewhs-accent); outline-offset: 2px; }
.ewhs-header button.ewhs-search__submit,
.ewhs-drawer button.ewhs-search__submit,
.ewhs-drawer button.ewhs-submenu-toggle { border: 0 !important; box-shadow: none !important; }
.ewhs-drawer button.ewhs-submenu-toggle:hover { background: #e5e7eb !important; color: #111827 !important; }

/* ==========================================================================
   Customizable drawer + search button colors (v1.0.2)
   !important is used on buttons so theme rules (e.g. Hello Elementor's pink
   button background) can never leak in.
   ========================================================================== */
.ewhs-drawer {
	--ewhs-drawer-bg: #ffffff;
	--ewhs-drawer-text: #111827;
	--ewhs-drawer-hover: var(--ewhs-accent);
	--ewhs-drawer-line: #f1f1f1;
	--ewhs-drawer-overlay: rgba(15, 23, 42, .5);
	--ewhs-drawer-close: #111827;
	--ewhs-drawer-width: 380px;
	--ewhs-toggle-bg: #f3f4f6;
	--ewhs-toggle-color: #111827;
	--ewhs-toggle-radius: 8px;
}
.ewhs-drawer .ewhs-drawer__overlay { background: var(--ewhs-drawer-overlay); }
.ewhs-drawer .ewhs-drawer__panel { background: var(--ewhs-drawer-bg); color: var(--ewhs-drawer-text); width: min(var(--ewhs-drawer-width), 88vw); }
.ewhs-drawer .ewhs-drawer__head { border-bottom-color: var(--ewhs-drawer-line); --ewhs-icon-color: var(--ewhs-drawer-close); --ewhs-icon-hover: var(--ewhs-drawer-hover); }
.ewhs-drawer .ewhs-mobile-nav li { border-bottom-color: var(--ewhs-drawer-line); }
.ewhs-drawer .ewhs-mobile-nav a,
.ewhs-drawer .ewhs-mobile-account { color: var(--ewhs-drawer-text); }
.ewhs-drawer .ewhs-mobile-nav a:hover,
.ewhs-drawer .ewhs-mobile-nav .current-menu-item > a,
.ewhs-drawer .ewhs-mobile-account:hover { color: var(--ewhs-drawer-hover); }
.ewhs-drawer .ewhs-logo a { color: var(--ewhs-drawer-text); }

.ewhs-drawer button.ewhs-submenu-toggle,
.ewhs-drawer button.ewhs-submenu-toggle:focus {
	background: var(--ewhs-toggle-bg) !important;
	color: var(--ewhs-toggle-color) !important;
	border-radius: var(--ewhs-toggle-radius) !important;
	border: 0 !important;
	padding: 0 !important;
	width: 38px; height: 38px;
}
.ewhs-drawer button.ewhs-submenu-toggle:hover,
.ewhs-drawer li.is-open > button.ewhs-submenu-toggle {
	background: var(--ewhs-toggle-hover-bg, var(--ewhs-toggle-bg)) !important;
	color: var(--ewhs-toggle-hover-color, var(--ewhs-toggle-color)) !important;
	filter: brightness(.95);
}

/* Search submit button – everywhere (header, dropdown, drawer) */
/* Defaults live in var() fallbacks so values set on any ancestor (widget, drawer) are inherited. */
.ewhs-search .ewhs-search__form button.ewhs-search__submit,
.ewhs-search .ewhs-search__form button.ewhs-search__submit:focus {
	background: var(--ewhs-sbtn-bg, transparent) !important;
	color: var(--ewhs-sbtn-color, currentColor) !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: var(--ewhs-sbtn-radius, var(--ewhs-field-radius)) !important;
}
.ewhs-search .ewhs-search__form button.ewhs-search__submit:hover {
	background: var(--ewhs-sbtn-hover-bg, var(--ewhs-accent)) !important;
	color: var(--ewhs-sbtn-hover-color, #ffffff) !important;
}
.ewhs-search--full .ewhs-search__form button.ewhs-search__submit,
.ewhs-search--full .ewhs-search__form button.ewhs-search__submit:focus {
	background: var(--ewhs-sbtn-bg, var(--ewhs-accent)) !important;
	color: var(--ewhs-sbtn-color, #ffffff) !important;
}
.ewhs-search .ewhs-search__input { color: var(--ewhs-field-text, inherit) !important; }
.ewhs-search .ewhs-search__input::placeholder { color: var(--ewhs-field-placeholder, currentColor); opacity: .6; }
.ewhs-drawer .ewhs-search__form { background: var(--ewhs-field-bg); }
.ewhs-drawer .ewhs-mini-cart-content .woocommerce-mini-cart-item a:not(.remove),
.ewhs-drawer .ewhs-mini-cart-content .woocommerce-mini-cart__total { color: var(--ewhs-drawer-text); }
.ewhs-drawer .ewhs-mini-cart-content .woocommerce-mini-cart-item { border-bottom-color: var(--ewhs-drawer-line); }
.ewhs-mini-cart-content .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: var(--ewhs-cd-btn2-bg, #f3f4f6) !important; color: var(--ewhs-cd-btn2-color, #111827) !important; border: 0 !important;
}
.ewhs-mini-cart-content .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--ewhs-cd-btn-bg, var(--ewhs-accent, #2563eb)) !important; color: var(--ewhs-cd-btn-color, #fff) !important; border: 0 !important;
}

/* ==========================================================================
   v1.1 – Glass scheme, Mega store layout, bottom bar, RTL refinements
   ========================================================================== */

/* Glass scheme */
.ewhs-scheme--glass {
	--ewhs-bg: rgba(255, 255, 255, .62);
	--ewhs-stuck-bg: rgba(255, 255, 255, .78);
	--ewhs-field-bg: rgba(255, 255, 255, .55);
	--ewhs-navbar-bg: rgba(255, 255, 255, .35);
	--ewhs-line: rgba(255, 255, 255, .5);
}
.ewhs-scheme--glass:not(.ewhs-header--boxed),
.ewhs-scheme--glass.ewhs-header--boxed .ewhs-header__main {
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border: 1px solid rgba(255, 255, 255, .55);
}

/* Mega store: categories button + hotline + promo */
.ewhs-row--cats { min-height: 52px; gap: 20px; }
.ewhs-catmenu { position: relative; align-self: stretch; display: flex; }
.ewhs-header button.ewhs-catbtn,
.ewhs-header button.ewhs-catbtn:hover,
.ewhs-header button.ewhs-catbtn:focus {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--ewhs-accent) !important; color: #fff !important; border: 0 !important;
	padding: 0 18px !important; margin: 0; min-width: 240px; font-weight: 600; font-size: .95em; cursor: pointer;
	border-radius: 0; box-shadow: none !important; --ewhs-icon-size: 18px;
}
.ewhs-catbtn > span:not(.ewhs-icon) { flex: 1; text-align: start; }
.ewhs-catmenu__list {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 120; width: 100%; min-width: 240px;
	list-style: none; margin: 0; padding: 6px 0; background: #fff; color: #111827;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .05); border-radius: 0 0 10px 10px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ewhs-ease), visibility .2s;
}
.ewhs-catmenu:hover .ewhs-catmenu__list,
.ewhs-catmenu.is-open .ewhs-catmenu__list,
.ewhs-catmenu:focus-within .ewhs-catmenu__list { opacity: 1; visibility: visible; transform: none; }
.ewhs-catmenu__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; color: inherit !important; text-decoration: none; font-size: .93em; }
.ewhs-catmenu__list a:hover { background: #f3f4f6; color: var(--ewhs-accent) !important; }
.ewhs-catmenu__count { font-size: .8em; color: #9ca3af; }
.ewhs-promo { white-space: nowrap; font-weight: 600; font-size: .9em; color: var(--ewhs-accent); }
.ewhs-scheme--brand .ewhs-promo, .ewhs-scheme--dark .ewhs-promo { color: inherit; }
.ewhs-header--categories .ewhs-col--menu { --ewhs-menu-justify: flex-start; }
.ewhs-header--categories .ewhs-search--full { max-width: 680px; margin-inline: auto; }
.ewhs-hotline { display: inline-flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none; --ewhs-icon-size: 26px; }
.ewhs-hotline .ewhs-icon { color: var(--ewhs-accent); }
.ewhs-scheme--brand .ewhs-hotline .ewhs-icon { color: inherit; }
.ewhs-hotline > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.ewhs-hotline small { font-size: .75em; opacity: .7; }
.ewhs-hotline bdi { font-weight: 700; }

/* Mobile bottom bar (portaled to <body>) */
.ewhs-bottombar {
	--ewhs-bb-bg: #ffffff; --ewhs-bb-color: #6b7280; --ewhs-bb-active: var(--ewhs-accent, #2563eb);
	--ewhs-badge-bg: var(--ewhs-bb-active); --ewhs-badge-color: #fff; --ewhs-icon-size: 22px;
	position: fixed; inset-inline: 0; bottom: 0; z-index: 9990;
	display: none; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: var(--ewhs-bb-bg); box-shadow: 0 -4px 20px rgba(15, 23, 42, .08); border-top: 1px solid rgba(15, 23, 42, .06);
	padding-bottom: env(safe-area-inset-bottom);
	font-family: inherit;
}
.ewhs-bottombar .ewhs-bottombar__item,
.ewhs-bottombar button.ewhs-bottombar__item,
.ewhs-bottombar button.ewhs-bottombar__item:hover,
.ewhs-bottombar button.ewhs-bottombar__item:focus {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	padding: 8px 4px !important; min-height: 60px; margin: 0;
	background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
	color: var(--ewhs-bb-color) !important; text-decoration: none; font-size: 11px; font-weight: 500; line-height: 1.1; cursor: pointer;
}
.ewhs-bottombar .ewhs-bottombar__item.is-active,
.ewhs-bottombar .ewhs-bottombar__item:hover { color: var(--ewhs-bb-active) !important; }
.ewhs-bottombar__icon { position: relative; display: inline-flex; }
.ewhs-bottombar .ewhs-cart__count { top: -6px; inset-inline-end: -10px; }
@media (max-width: 1024px) {
	.ewhs-bottombar--tablet { display: grid; }
	body.ewhs-has-bottombar-tablet { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
	.ewhs-bottombar--mobile { display: grid; }
	body.ewhs-has-bottombar-mobile { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* RTL refinements */
[dir="rtl"] .ewhs-search__input { text-align: right; }
[dir="rtl"] .ewhs-search__submit .ewhs-icon,
[dir="rtl"] .ewhs-header .ewhs-icon--search { transform: scaleX(-1); }
.ewhs-header[dir="rtl"], .ewhs-drawer[dir="rtl"], .ewhs-bottombar[dir="rtl"] { text-align: right; }
.ewhs-header bdi, .ewhs-drawer bdi { unicode-bidi: isolate; }

/* ==========================================================================
   v1.2 – "Added to cart" popup
   ========================================================================== */
.ewhs-toast {
	--ewhs-toast-accent: var(--ewhs-accent, #2563eb);
	position: fixed; z-index: 100000; bottom: 24px; inset-inline-end: 24px;
	width: min(360px, calc(100vw - 32px)); padding: 16px; box-sizing: border-box;
	background: #fff; color: #111827; border-radius: 14px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .22), 0 0 0 1px rgba(15, 23, 42, .06);
	font-size: 14px; line-height: 1.4; font-family: inherit;
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.ewhs-toast.is-visible { opacity: 1; transform: none; }
.ewhs-toast[dir="rtl"] { text-align: right; }
.ewhs-toast__row { display: flex; align-items: center; gap: 12px; padding-inline-end: 22px; }
.ewhs-toast__row img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.ewhs-toast__check {
	width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
	background: #dcfce7; color: #16a34a; font-weight: 700; font-size: 18px;
}
.ewhs-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ewhs-toast__body small { color: #16a34a; font-weight: 600; font-size: 12px; }
.ewhs-toast__body strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ewhs-toast__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ewhs-toast a.ewhs-toast__btn {
	display: block; text-align: center; padding: 10px 12px; border-radius: 9px; text-decoration: none !important;
	background: #f3f4f6; color: #111827 !important; font-weight: 600; font-size: 13px; transition: filter .15s;
}
.ewhs-toast a.ewhs-toast__btn--primary { background: var(--ewhs-toast-accent); color: #fff !important; }
.ewhs-toast a.ewhs-toast__btn:hover { filter: brightness(.95); }
.ewhs-toast button.ewhs-toast__close,
.ewhs-toast button.ewhs-toast__close:hover,
.ewhs-toast button.ewhs-toast__close:focus {
	position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; padding: 0 !important; margin: 0;
	border: 0 !important; background: transparent !important; color: #9ca3af !important; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px; box-shadow: none !important;
}
.ewhs-toast--error { border-inline-start: 4px solid #dc2626; }
.ewhs-toast--error strong { color: #b91c1c; }
@media (max-width: 767px) {
	.ewhs-toast { inset-inline: 12px; width: auto; bottom: 12px; }
	body[class*="ewhs-has-bottombar"] .ewhs-toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1024px) {
	body.ewhs-has-bottombar-tablet .ewhs-toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
/* Loading state on buttons we handle */
form.cart button.loading, .add_to_cart_button.loading { opacity: .65; pointer-events: none; }

/* ==========================================================================
   v1.3 – Fantasy & Gaming styles: display fonts, emblem logo, patterns, glow,
   text login button, framed icons. Everything is driven by classes on .ewhs-header
   so it can be combined with any layout and colour scheme.
   ========================================================================== */

/* Display fonts. The Arabic font comes first: it only contains Arabic glyphs
   (unicode-range), so Latin text falls through to the display font. */
.ewhs-font--cinzel    { --ewhs-display-font: 'EWHS Ruqaa', 'EWHS Cinzel', 'Cinzel', Georgia, serif; --ewhs-btn-font: 'EWHS Kufi', 'EWHS Mono', ui-monospace, monospace; }
.ewhs-font--uncial    { --ewhs-display-font: 'EWHS Ruqaa', 'EWHS Uncial', Georgia, serif; --ewhs-btn-font: var(--ewhs-display-font); }
.ewhs-font--marcellus { --ewhs-display-font: 'EWHS Ruqaa', 'EWHS Marcellus SC', Georgia, serif; --ewhs-btn-font: var(--ewhs-display-font); }
.ewhs-font--orbitron  { --ewhs-display-font: 'EWHS Kufi', 'EWHS Orbitron', system-ui, sans-serif; --ewhs-btn-font: var(--ewhs-display-font); }
.ewhs-font--press     { --ewhs-display-font: 'EWHS Kufi', 'EWHS Press Start', ui-monospace, monospace; --ewhs-btn-font: var(--ewhs-display-font); }
.ewhs-font--mono      { --ewhs-display-font: 'EWHS Kufi', 'EWHS Mono', ui-monospace, monospace; --ewhs-btn-font: var(--ewhs-display-font); }

.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-logo__text,
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-nav > .ewhs-menu > li > a,
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-cta,
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-catbtn,
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-logo__monogram { font-family: var(--ewhs-display-font); }
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-nav > .ewhs-menu > li > a { letter-spacing: .04em; font-weight: 600; }
.ewhs-font--cinzel .ewhs-nav > .ewhs-menu > li > a,
.ewhs-font--marcellus .ewhs-nav > .ewhs-menu > li > a { font-size: 1.06em; }
.ewhs-font--press .ewhs-nav > .ewhs-menu > li > a { font-size: 11px; line-height: 1.8; font-weight: 400; }
.ewhs-font--press .ewhs-logo__text { font-size: 15px; line-height: 1.5; }
.ewhs-font--orbitron .ewhs-nav > .ewhs-menu > li > a { text-transform: uppercase; font-size: .9em; letter-spacing: .12em; }
.ewhs-font--mono .ewhs-nav > .ewhs-menu > li > a { font-weight: 400; letter-spacing: .02em; }
.ewhs-font--mono .ewhs-nav > .ewhs-menu > li > a::after,
.ewhs-font--press .ewhs-nav > .ewhs-menu > li > a::after { opacity: .9; }
[dir="rtl"].ewhs-header[class*="ewhs-font--"] .ewhs-nav > .ewhs-menu > li > a,
.ewhs-header[dir="rtl"][class*="ewhs-font--"] .ewhs-nav > .ewhs-menu > li > a { font-size: 1.08rem; letter-spacing: 0; text-transform: none; }

/* Logo: name next to the logo + emblem frames */
.ewhs-logo__name { display: inline-flex; flex-direction: column; }
.ewhs-logo--with-text a { flex-direction: row !important; align-items: center; gap: 14px; }
.ewhs-logo__text { color: var(--ewhs-logo-color, inherit); }
.ewhs-logo--with-text .ewhs-logo__text,
.ewhs-logo--frame .ewhs-logo__text { color: var(--ewhs-logo-color, var(--ewhs-accent)); }
.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-logo--with-text .ewhs-logo__text {
	text-transform: uppercase; letter-spacing: .1em; font-size: 1.7rem; font-weight: 700; white-space: nowrap;
}
.ewhs-font--press .ewhs-logo--with-text .ewhs-logo__text { font-size: 15px !important; letter-spacing: .04em !important; }

.ewhs-logo__mark {
	--ewhs-frame-size-v: var(--ewhs-frame-size, 54px);
	position: relative; flex: none; display: block;
	width: var(--ewhs-frame-size-v); height: var(--ewhs-frame-size-v); padding: 2px; box-sizing: border-box;
	background: linear-gradient(145deg, color-mix(in srgb, var(--ewhs-accent) 55%, #fff), var(--ewhs-accent) 45%, color-mix(in srgb, var(--ewhs-accent) 60%, #000));
	transition: transform .3s var(--ewhs-ease), box-shadow .3s;
}
.ewhs-logo__inner {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden;
	background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--ewhs-accent) 22%, #2a2a30), #0d0d10 70%);
}
.ewhs-logo a .ewhs-logo__mark img.ewhs-logo__img,
.elementor .ewhs-logo a .ewhs-logo__mark img.ewhs-logo__img {
	width: 80% !important; height: 80% !important; max-width: none !important; max-height: none !important; object-fit: contain; object-position: center;
}
.ewhs-logo__monogram { color: var(--ewhs-accent); font-weight: 700; font-size: calc(var(--ewhs-frame-size-v) * .42); line-height: 1; }
.ewhs-logo--frame-circle .ewhs-logo__mark, .ewhs-logo--frame-circle .ewhs-logo__inner { border-radius: 50%; }
.ewhs-logo--frame-square .ewhs-logo__mark { border-radius: 8px; }
.ewhs-logo--frame-square .ewhs-logo__inner { border-radius: 6px; }
.ewhs-logo--frame-hex .ewhs-logo__mark, .ewhs-logo--frame-hex .ewhs-logo__inner { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.ewhs-logo--frame-shield .ewhs-logo__mark, .ewhs-logo--frame-shield .ewhs-logo__inner { clip-path: polygon(50% 0, 100% 14%, 96% 60%, 50% 100%, 4% 60%, 0 14%); }
.ewhs-logo--frame-shield .ewhs-logo__mark { height: calc(var(--ewhs-frame-size-v) * 1.12); }
.ewhs-logo a:hover .ewhs-logo__mark { transform: scale(1.04); }
.ewhs-site-header.is-shrunk .ewhs-logo__mark { --ewhs-frame-size-v: calc(var(--ewhs-frame-size, 54px) * var(--ewhs-logo-shrink, .8)); }
.ewhs-drawer .ewhs-logo__mark { --ewhs-frame-size-v: 40px; }
.ewhs-drawer .ewhs-logo--with-text .ewhs-logo__text { font-size: 1.1rem; }

/* Background patterns (drawn on top of the header colour) */
.ewhs-header.ewhs-pattern--stars {
	background-image:
		radial-gradient(1px 1px at 23px 18px, rgba(255,255,255,.55), transparent 60%),
		radial-gradient(1px 1px at 117px 64px, rgba(255,255,255,.35), transparent 60%),
		radial-gradient(1.5px 1.5px at 171px 23px, color-mix(in srgb, var(--ewhs-accent) 80%, #fff), transparent 60%),
		radial-gradient(1px 1px at 61px 83px, rgba(255,255,255,.3), transparent 60%),
		radial-gradient(1px 1px at 213px 77px, rgba(255,255,255,.45), transparent 60%),
		radial-gradient(1px 1px at 269px 41px, rgba(255,255,255,.25), transparent 60%);
	background-size: 300px 100px;
}
.ewhs-header.ewhs-pattern--grid {
	background-image:
		linear-gradient(color-mix(in srgb, var(--ewhs-accent) 14%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ewhs-accent) 14%, transparent) 1px, transparent 1px);
	background-size: 28px 28px;
}
.ewhs-header.ewhs-pattern--scanlines {
	background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.ewhs-header.ewhs-pattern--dots {
	background-image: radial-gradient(color-mix(in srgb, var(--ewhs-accent) 22%, transparent) 1px, transparent 1.5px);
	background-size: 18px 18px;
}
.ewhs-header[class*="ewhs-pattern--"]:not(.ewhs-pattern--none) .ewhs-header__navbar { background-color: var(--ewhs-navbar-bg); }

/* Glow */
.ewhs-glow .ewhs-header__main { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ewhs-accent) 35%, transparent); }
.ewhs-glow.ewhs-header { box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--ewhs-accent) 45%, transparent); }
.ewhs-glow .ewhs-logo__mark { box-shadow: 0 0 0 3px rgba(0,0,0,.45), 0 0 18px color-mix(in srgb, var(--ewhs-accent) 55%, transparent); }
.ewhs-glow .ewhs-logo--with-text .ewhs-logo__text { text-shadow: 0 0 14px color-mix(in srgb, var(--ewhs-accent) 45%, transparent); }
.ewhs-glow .ewhs-nav > .ewhs-menu > li > a:hover { text-shadow: 0 0 10px color-mix(in srgb, var(--ewhs-link-hover) 70%, transparent); }
.ewhs-glow .ewhs-cart__count { box-shadow: 0 0 10px var(--ewhs-badge-bg); }
.ewhs-glow .ewhs-icon-btn:hover { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ewhs-icon-hover) 70%, transparent)); }

/* Text account button – e.g. "[ Login ]" */
.ewhs-header .ewhs-account__btn {
	display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
	padding: 8px 16px; border-radius: 3px; font-size: 14px; letter-spacing: .04em; line-height: 1.2;
	font-family: var(--ewhs-btn-font, inherit); text-decoration: none !important;
	color: var(--ewhs-alt, var(--ewhs-accent)) !important;
	border: 1px solid color-mix(in srgb, var(--ewhs-alt, var(--ewhs-accent)) 75%, transparent);
	background: color-mix(in srgb, var(--ewhs-alt, var(--ewhs-accent)) 7%, transparent);
	transition: background-color .2s, box-shadow .2s, color .2s;
}
.ewhs-header .ewhs-account__btn:hover { background: color-mix(in srgb, var(--ewhs-alt, var(--ewhs-accent)) 18%, transparent); }
.ewhs-glow .ewhs-account__btn { box-shadow: 0 0 12px -2px color-mix(in srgb, var(--ewhs-alt, var(--ewhs-accent)) 55%, transparent), inset 0 0 10px -4px color-mix(in srgb, var(--ewhs-alt, var(--ewhs-accent)) 60%, transparent); }
.ewhs-account__btn--brackets::before { content: "["; margin-inline-end: 6px; }
.ewhs-account__btn--brackets::after { content: "]"; margin-inline-start: 6px; }
.ewhs-account--button .ewhs-account__menu { top: calc(100% + 8px); }

/* Framed icons + square badge */
.ewhs-iconbox--square .ewhs-actions .ewhs-icon-btn,
.ewhs-iconbox--round .ewhs-actions .ewhs-icon-btn {
	width: 48px; height: 48px; padding: 0 !important;
	border: 1px solid color-mix(in srgb, var(--ewhs-accent) 80%, transparent) !important;
	background: color-mix(in srgb, var(--ewhs-accent) 5%, transparent) !important;
}
.ewhs-header.ewhs-iconbox--square .ewhs-actions .ewhs-icon-btn { border-radius: 3px; }
.ewhs-header.ewhs-iconbox--round .ewhs-actions .ewhs-icon-btn { border-radius: 50%; }
.ewhs-iconbox--square .ewhs-actions .ewhs-icon-btn:hover,
.ewhs-iconbox--round .ewhs-actions .ewhs-icon-btn:hover { background: color-mix(in srgb, var(--ewhs-accent) 14%, transparent) !important; }
.ewhs-iconbox--square .ewhs-actions, .ewhs-iconbox--round .ewhs-actions { --ewhs-icon-gap: 16px; }
.ewhs-iconbox--square .ewhs-cart__count, .ewhs-iconbox--round .ewhs-cart__count { top: -9px; inset-inline-end: -9px; }
.ewhs-badge--square .ewhs-cart__count,
.ewhs-badge--square .ewhs-badge { border-radius: 2px; min-width: 22px; height: 22px; line-height: 22px; font-size: 11px; }
@media (max-width: 767px) {
	.ewhs-iconbox--square .ewhs-actions .ewhs-icon-btn, .ewhs-iconbox--round .ewhs-actions .ewhs-icon-btn { width: 42px; height: 42px; }
	.ewhs-header[class*="ewhs-font--"]:not(.ewhs-font--none) .ewhs-logo--with-text .ewhs-logo__text { font-size: 1.15rem; letter-spacing: .06em; }
	.ewhs-logo__mark { --ewhs-frame-size-v: min(var(--ewhs-frame-size, 54px), 42px); }
}

/* Right-to-left: Arabic font first for everything (incl. spaces), Latin falls back to the display font. */
.ewhs-header[dir="rtl"].ewhs-font--cinzel    { --ewhs-display-font: 'EWHS Ruqaa RTL', 'EWHS Cinzel', Georgia, serif; --ewhs-btn-font: 'EWHS Kufi RTL', 'EWHS Mono', monospace; }
.ewhs-header[dir="rtl"].ewhs-font--uncial    { --ewhs-display-font: 'EWHS Ruqaa RTL', 'EWHS Uncial', Georgia, serif; }
.ewhs-header[dir="rtl"].ewhs-font--marcellus { --ewhs-display-font: 'EWHS Ruqaa RTL', 'EWHS Marcellus SC', Georgia, serif; }
.ewhs-header[dir="rtl"].ewhs-font--orbitron  { --ewhs-display-font: 'EWHS Kufi RTL', 'EWHS Orbitron', system-ui, sans-serif; }
.ewhs-header[dir="rtl"].ewhs-font--press     { --ewhs-display-font: 'EWHS Kufi RTL', 'EWHS Press Start', monospace; }
.ewhs-header[dir="rtl"].ewhs-font--mono      { --ewhs-display-font: 'EWHS Kufi RTL', 'EWHS Mono', monospace; }
.ewhs-header[dir="rtl"].ewhs-font--press .ewhs-logo--with-text .ewhs-logo__text { font-size: 1.5rem !important; }
.ewhs-header[dir="rtl"].ewhs-font--press .ewhs-nav > .ewhs-menu > li > a,
.ewhs-header[dir="rtl"].ewhs-font--press .ewhs-account__btn { font-size: 1rem; }
