/* =============================================================================
   house_mas_web.css — الهوية البصرية لواجهة موقع HOUSE MAS
   يُضمَّن عبر web_include_css في hooks.py (مع رقم إصدار من تاريخ تعديل الملف).
   كل التخصيص هنا؛ لا يُعدَّل أي ملف داخل apps/webshop أو apps/frappe.
   ============================================================================= */

/* --- Design tokens: the only place colours are defined -------------------
   Official HOUSE MAS brand v3 (docs/brand/BRAND.md, exact values from docs/brand/tokens.json, 2026-10-29):
   the orange is #f26522 (quieter on screen, prints close to it). 60/30/10: cream page + white/glass cards
   ~60%, navy ~30%, orange <=10% and only for graphics (dots, stripes, badges, one CTA); orange text uses
   --mh-accent-deep (#c1460b) on white and cream, never white on #f26522 (3.2:1).
   The old --mh-* names are kept so every rule below follows the tokens. */
:root {
	--mh-page: #fff0e0;        /* bg — Soft Cream, the page behind cards */
	--mh-bg: #ffffff;          /* surface — header, cards, inputs, menus */
	--mh-text: #12212b;        /* text — body copy on cream and white */
	--mh-ink: #02465b;         /* primary — navy: headings, links, main buttons, bars */
	--mh-ink-hover: #033a4b;   /* primary-hover (navy-700) */
	--mh-ink-deep: #021e28;    /* navy-900 — footer, text on orange fills */
	--mh-accent: #f26522;      /* accent (orange-500) — brand orange, graphics and the hero button on dark */
	--mh-accent-hover: #de500d; /* orange-600 — hover/pressed state of orange fills */
	--mh-accent-light: #f47f48; /* orange-400 — orange on dark surfaces (text, icons, the split circle) */
	--mh-accent-deep: #c1460b; /* cta / accent-text (orange-700) — CTA fill (white text), orange text on white */
	--mh-cta-hover: #a83c09;   /* cta-hover */
	--mh-warm: #f8a882;        /* orange-200 — warm text on navy */
	--mh-muted: #fff0e0;       /* accent-soft — soft fill inside white surfaces */
	--mh-muted-border: #ffd8b0; /* orange-100 — border of accent-soft badges */
	--mh-placeholder: #e8ebed; /* steel-100 — image placeholders, neutral badges */
	--mh-focus: #2f7a93;       /* focus ring, 2px */
	--mh-success: #276b43;
	--mh-success-soft: #e7f4ec;
	--mh-danger: #b42318;
	--mh-danger-soft: #fdecea;
	--mh-warning: #8a6100;
	--mh-warning-soft: #fff6c7;
	--mh-info: #02465b;
	--mh-info-soft: #e6eef1;
	--mh-radius: 10px;         /* radius-md — buttons, inputs, cards */
	--mh-radius-lg: 16px;      /* radius-lg — dialogs, hero cards */
	--mh-radius-xl: 22px;      /* hero card, app card */

	--mh-line: #ecd9c6;        /* border — card borders and dividers */
	--mh-line-strong: #808b94; /* border-strong — inputs, steppers (>=3:1 on cream and white) */
	--mh-ink-soft: #5b6670;    /* text-muted */
	--mh-on-ink: #ffffff;      /* text-on-dark */
	--mh-on-ink-soft: rgba(255, 255, 255, 0.78);
	--mh-on-accent: var(--mh-ink-deep); /* on-accent: never white on #f26522 */
	--mh-shadow-sm: 0 1px 2px rgba(2, 30, 40, 0.08);
	--mh-shadow-md: 0 8px 24px rgba(2, 30, 40, 0.14);

	/* Glass (design 2026-11): translucent white over the page's soft glows, blurred; a dark variant on photos
	   and navy. Browsers without backdrop-filter get a nearly opaque fill (@supports below). */
	--mh-glass: rgba(255, 255, 255, 0.6);
	--mh-glass-strong: rgba(255, 255, 255, 0.82);
	--mh-glass-line: rgba(255, 255, 255, 0.75);
	--mh-glass-dark: rgba(2, 30, 40, 0.56);
	--mh-glass-dark-line: rgba(255, 255, 255, 0.24);
	--mh-blur: 18px;
	--mh-glass-shadow: 0 10px 32px rgba(2, 30, 40, 0.1);

	/* Cairo only, self-hosted (public/fonts/fonts.css) */
	--mh-font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mh-maxw: 1180px;
	--mh-gap: 24px;
	--mh-section-y: clamp(40px, 6vw, 72px);
}

/* Map Frappe's theme variables onto the tokens */
:root {
	--font-stack: var(--mh-font);
	--text-color: var(--mh-text);
	--heading-color: var(--mh-ink);
	--text-muted: var(--mh-ink-soft);
	--primary: var(--mh-ink);
	--primary-color: var(--mh-ink);
	--btn-primary: var(--mh-ink);
	--bg-color: var(--mh-page);
	--fg-color: var(--mh-bg);
	--card-bg: var(--mh-bg);
	--control-bg: var(--mh-bg);
	--control-bg-on-gray: var(--mh-bg);
	--border-color: var(--mh-line);
	--border-radius: var(--mh-radius);
	--border-radius-sm: 6px;
	--border-radius-md: var(--mh-radius);
	--border-radius-lg: var(--mh-radius-lg);
}

body {
	background: var(--mh-page);
	color: var(--mh-text);
	font-family: var(--mh-font);
}

/* Soft glows behind every page (what the glass blurs): an orange one at the top end corner, a navy one at the
   bottom start corner, apricot in the middle. Fixed, so they stay put while the page scrolls; the body's cream
   is painted on the canvas underneath. Logical corners: in RTL the orange glow sits top-left. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(55vw 55vw at 100% -10%, rgba(242, 101, 34, 0.18), transparent 60%),
		radial-gradient(50vw 50vw at 0% 110%, rgba(2, 70, 91, 0.16), transparent 60%),
		radial-gradient(45vw 45vw at 50% 55%, rgba(255, 216, 176, 0.4), transparent 65%);
}

[dir="rtl"] body::before {
	background:
		radial-gradient(55vw 55vw at 0% -10%, rgba(242, 101, 34, 0.18), transparent 60%),
		radial-gradient(50vw 50vw at 100% 110%, rgba(2, 70, 91, 0.16), transparent 60%),
		radial-gradient(45vw 45vw at 50% 55%, rgba(255, 216, 176, 0.4), transparent 65%);
}

/* Glass card: translucent white, blurred, a thin white edge and a soft shadow. --dark on photos and navy. */
.mh-glass {
	background: var(--mh-glass);
	border: 1px solid var(--mh-glass-line);
	box-shadow: var(--mh-glass-shadow);
	-webkit-backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
	backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
}

.mh-glass--dark {
	background: var(--mh-glass-dark);
	border-color: var(--mh-glass-dark-line);
	color: var(--mh-on-ink);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.mh-glass { background: rgba(255, 255, 255, 0.93); }
	.mh-glass--dark { background: rgba(2, 30, 40, 0.9); }
}

h1, h2, h3, h4, h5, .page-title {
	color: var(--mh-ink);
	font-weight: 700;
	line-height: 1.3;
}

a { color: var(--mh-ink); }
a:hover { color: var(--mh-ink-hover); }

/* Focus ring from the brand: 2px focus colour, outside the control */
:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; }

/* الأرقام والكلمات اللاتينية داخل نص عربي تبقى بالاتجاه الصحيح */
[dir="rtl"] .mh-ltr { direction: ltr; unicode-bidi: isolate; }

/* --- ترويسة المتجر ------------------------------------------------------- */
/* القالب: house_mas/templates/includes/navbar/navbar.html */
.mh-header {
	/* above the hero that follows it, so its menus and the search panel never paint under the hero's
	   positioned content. No backdrop-filter here: the header sits on the cream page, where a blur shows
	   nothing, and in Chromium a filtered header let the hero's blurred card bleed through its open menus. */
	position: relative;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid var(--mh-glass-line);
}

/* Signed-in distributor (class set by the inline script in navbar.html): invitations out, status in */
.mh-is-distributor .mh-hide-distributor,
html:not(.mh-is-distributor) .mh-show-distributor { display: none !important; }

/* الشريط العلوي: ثقة ورقم المبيعات */
.mh-topbar { background: var(--mh-ink); color: var(--mh-on-ink); font-size: 0.82rem; }

.mh-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.mh-trust { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }

.mh-trust__item,
.mh-trust__item a,
.mh-topbar__phone { display: inline-flex; align-items: center; gap: 7px; }

.mh-trust__item { color: var(--mh-on-ink-soft); }
.mh-trust__item a { color: inherit; }
.mh-trust__item a:hover { color: #fff; }

.mh-topbar__phone { color: #fff; font-weight: 700; }
.mh-topbar__phone:hover { color: var(--mh-warm); }

/* طرف الشريط: انتماء الشركة ثم رقم المبيعات، بينهما فاصل رفيع */
.mh-topbar__end { display: flex; align-items: center; gap: 14px; }

/* زر اللغة (STOREFRONT_I18N_SPEC D9): أول طرف الشريط، بفاصل رفيع مثل سطر الانتماء */
.mh-lang {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	padding-inline-end: 14px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.22);
}

.mh-lang:hover { color: var(--mh-warm); }
.mh-lang:focus-visible { outline: 2px solid var(--mh-warm); outline-offset: 2px; }

/* النص لاتيني داخل عنصر يتبع اتجاه الصفحة، فيقع الفاصل في جهة الهاتف دائماً */
.mh-topbar__member {
	color: var(--mh-on-ink-soft);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
	padding-inline-end: 14px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.22);
}

.mh-topbar svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* الصف الأوسط: الشعار والبحث والأيقونات */
.mh-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(14px, 3vw, 40px);
	padding-block: 14px;
}

.mh-brand { flex: none; display: inline-flex; align-items: center; line-height: 1; }

/* The official one-line logo (navbar.html), at its own proportions; never recoloured or cropped */
.mh-brand__logo { display: block; height: 54px; width: auto; }

.mh-search { position: relative; display: flex; flex: 1 1 auto; max-width: 560px; margin-inline: auto; }

.mh-search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding-inline: 14px;
	border: 1px solid var(--mh-line-strong);
	border-start-end-radius: 0;
	border-end-end-radius: 0;
	border-radius: var(--mh-radius) 0 0 var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-ink);
	font: inherit;
	font-size: 0.95rem;
}

[dir="rtl"] .mh-search__input { border-radius: 0 var(--mh-radius) var(--mh-radius) 0; }

.mh-search__input:focus { outline: 2px solid var(--mh-focus); outline-offset: -1px; border-color: var(--mh-focus); }

.mh-search__btn {
	flex: none;
	width: 58px;
	border: 1px solid var(--mh-ink);
	background: var(--mh-ink);
	color: #fff;
	border-radius: 0 var(--mh-radius) var(--mh-radius) 0;
	cursor: pointer;
}

[dir="rtl"] .mh-search__btn { border-radius: var(--mh-radius) 0 0 var(--mh-radius); }

.mh-search__btn:hover { background: var(--mh-ink-hover); border-color: var(--mh-ink-hover); }

.mh-search__btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.mh-search__panel {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline: 0;
	z-index: 1040;
	max-height: 62vh;
	overflow: auto;
	padding: 6px;
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow-md);
}

.mh-search__hit {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--mh-radius);
	color: var(--mh-ink);
	font-size: 0.92rem;
}

.mh-search__hit:hover { background: var(--mh-muted); color: var(--mh-ink); }
.mh-search__hit img { width: 36px; height: 36px; object-fit: contain; flex: none; }

.mh-search__thumb {
	width: 36px;
	height: 36px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mh-muted);
	color: var(--mh-ink-soft);
	font-weight: 800;
	font-size: 0.8rem;
	border-radius: var(--mh-radius);
}

.mh-search__empty { padding: 10px; color: var(--mh-ink-soft); font-size: 0.9rem; }

.mh-search__more {
	display: block;
	padding: 9px;
	text-align: center;
	font-weight: 700;
	color: var(--mh-accent-deep);
	border-top: 1px solid var(--mh-line);
}

/* الأيقونات: الدخول والسلة */
.mh-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex: none; }

.mh-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--mh-radius);
	color: var(--mh-ink);
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}

.mh-action:hover { background: var(--mh-muted); color: var(--mh-ink); }

.mh-action svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mh-action__icon { position: relative; display: inline-flex; }

.mh-cart-count {
	position: absolute;
	top: -7px;
	inset-inline-end: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mh-accent);
	color: var(--mh-on-accent);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.mh-cart-total { font-weight: 800; }

.mh-burger {
	display: none;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	background: none;
	color: var(--mh-ink);
	padding: 6px 8px;
	cursor: pointer;
}

.mh-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* شريط الأقسام */
.mh-nav { border-top: 1px solid var(--mh-line); }

.mh-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; list-style: none; margin: 0; padding: 0; }

.mh-nav__link {
	display: inline-block;
	padding: 12px 14px;
	border-bottom: 2px solid transparent;
	color: var(--mh-ink);
	font-weight: 700;
	font-size: 0.92rem;
}

.mh-nav__link:hover { color: var(--mh-accent-deep); }
.mh-nav__link.is-active { border-bottom-color: var(--mh-accent); }
.mh-nav .dropdown-toggle::after { margin-inline-start: 6px; }

/* the two links drawn from code (navbar.html): categories and the app, each with a small icon */
.mh-nav__link svg {
	width: 18px;
	height: 18px;
	margin-inline-end: 6px;
	vertical-align: -4px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mh-nav__link--cats { color: var(--mh-ink); }
.mh-nav__link--app svg { color: var(--mh-accent-deep); }

/* قائمة الأقسام: عمود لكل مجموعة رئيسية مع مجموعاتها الفرعية */
.dropdown-menu.mh-mega.show {
	display: grid;
	/* أربعة أعمدة ثابتة العرض: ما زاد ينزل صفاً جديداً، ولا يبقى عمود فارغ */
	grid-template-columns: repeat(4, 200px);
	gap: 6px 16px;
	padding: 14px;
	border-radius: var(--mh-radius-lg);
}

/* اللوحة تنسدل من حافة العنصر إلى داخل الصفحة */
[dir="rtl"] .mh-mega { left: auto; right: 0; }

/* عنوان العمود: المجموعة الرئيسية */
.mh-mega__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0.4rem 0.5rem;
	border-radius: var(--mh-radius);
	color: var(--mh-ink);
	font-weight: 800;
	font-size: 0.93rem;
	line-height: 1.3;
}

.mh-mega__item:hover,
.mh-mega__item.is-active { color: var(--mh-accent-deep); background: rgba(255, 255, 255, 0.6); }

/* the main group's picture (Item Group.image), or its first letter */
.mh-mega__pic {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--mh-bg);
	box-shadow: inset 0 0 0 1px var(--mh-line);
	color: var(--mh-ink-soft);
	font-size: 1rem;
}

.mh-mega__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* المجموعات الفرعية تحته */
.mh-mega__list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.mh-mega__list .dropdown-item { font-size: 0.89rem; color: var(--mh-ink-soft); }
.mh-mega__list .dropdown-item:hover { color: var(--mh-ink); }
.mh-mega__list .dropdown-item.is-active { color: var(--mh-accent-deep); background: none; }

.mh-mega__all {
	grid-column: 1 / -1;
	border-top: 1px solid var(--mh-line);
	margin-top: 4px;
	padding: 0.7rem 0.7rem 0.2rem;
	font-weight: 700;
	color: var(--mh-accent-deep);
}
.mh-nav__cta { margin-inline-start: auto; }

.dropdown-menu {
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow-md);
	padding: 0.35rem;
}

/* menus (navbar.html adds .mh-glass for the edge and shadow): opaque white, after bootstrap's own rule. They open
   over the hero's dark card, where even 4% of transparency shows its white title through the panel. */
.dropdown-menu.mh-glass {
	background: var(--mh-bg);
	border-color: var(--mh-glass-line);
	box-shadow: var(--mh-shadow-md);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

[dir="rtl"] .dropdown-menu { text-align: right; }

.dropdown-item {
	border-radius: var(--mh-radius);
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.45rem 0.7rem;
}

.dropdown-item:hover,
.dropdown-item.is-active { background: rgba(255, 255, 255, 0.7); color: var(--mh-ink); }

/* زر «سجّل كموزع» (call_to_action في Website Settings) */
.mh-nav__cta .mh-btn { font-size: 0.88rem; padding: 0.4rem 1rem; }

@media (min-width: 992px) {
	/* شريط الأقسام مفتوح دائماً على الحاسوب: ‎.collapse‎ من bootstrap يخفيه افتراضاً */
	.mh-nav__collapse { display: block !important; }
}

@media (max-width: 991px) {
	.mh-trust { display: none; }
	.mh-burger { display: inline-flex; }
	.mh-header__inner { flex-wrap: wrap; gap: 12px; }
	.mh-search { order: 3; flex-basis: 100%; max-width: none; margin-inline: 0; }
	.mh-nav__list { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
	.mh-nav__link { padding: 11px 2px; border-bottom: 1px solid var(--mh-line); }
	.mh-nav__link.is-active { border-bottom-color: var(--mh-line); color: var(--mh-accent-deep); }
	/* داخل القائمة المطوية تنساب اللوائح مع العناصر بدل أن تطفو فوق الصفحة */
	.mh-nav .dropdown-menu,
	.mh-nav .dropdown-menu.mh-glass { position: static; float: none; border: 0; box-shadow: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline-start: 12px; }
	.mh-mega__pic { width: 30px; height: 30px; border-radius: 8px; }
	.dropdown-menu.mh-mega.show { grid-template-columns: 1fr; min-width: auto; padding: 4px 0 4px 12px; gap: 0; }
	.mh-mega__all { padding-inline: 0.7rem; }
	.mh-nav__cta { margin: 10px 0 4px; }
}

@media (max-width: 575px) {
	/* The logo shrinks on phones so it stays on one row with the icons */
	.mh-brand__logo { height: 40px; }
	/* على الجوال تبقى الأيقونات وحدها ليتسع السطر للشعار: العدّاد يكفي عن المجموع */
	.mh-action > span:not(.mh-action__icon) { display: none; }
	.mh-topbar__inner { justify-content: center; }
}

/* --- الأزرار العامة ------------------------------------------------------- */
.btn { border-radius: var(--mh-radius); font-weight: 600; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
	background: var(--mh-ink);
	border-color: var(--mh-ink);
	color: #fff;
}

.btn-primary:hover { background: var(--mh-ink-hover); border-color: var(--mh-ink-hover); color: #fff; }

.mh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border-radius: var(--mh-radius);
	font-weight: 700;
	font-size: 0.98rem;
	padding: 0.7rem 1.5rem;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* The page's one call to action (brand "btn-accent" = cta): deep burnt orange with white text, 4.6:1 */
.mh-btn--accent { background: var(--mh-accent-deep); border-color: var(--mh-accent-deep); color: #fff; }
.mh-btn--accent:hover { background: var(--mh-cta-hover); border-color: var(--mh-cta-hover); color: #fff; }

/* Primary button: navy with white text */
.mh-btn--ink { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.mh-btn--ink:hover { background: var(--mh-ink-hover); border-color: var(--mh-ink-hover); color: #fff; }

.mh-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.mh-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.mh-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	color: var(--mh-ink);
	border-bottom: 2px solid var(--mh-accent);
	padding-bottom: 2px;
}

.mh-link:hover { color: var(--mh-accent-deep); }

/* --- الصفحة الرئيسية ------------------------------------------------------ */
/* Home: frappe's web.html always draws .page-breadcrumbs, empty here but with 16px of top padding — a cream strip
   between the menu and the hero. The home page has no breadcrumbs, so the empty box goes. */
.page-breadcrumbs:has(+ .mh-home) { display: none; }

.mh-wrap {
	max-width: var(--mh-maxw);
	margin-inline: auto;
	padding-inline: 16px;
}

.mh-section { padding-block: var(--mh-section-y); }
.mh-section--muted { background: var(--mh-bg); }

/* section head: the title at the start, an optional «all …» link at the end; no sub-line (less text) */
.mh-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(18px, 3vw, 30px);
}

.mh-section__title {
	font-size: clamp(1.4rem, 2.8vw, 1.9rem);
	font-weight: 800;
	margin: 0;
}

.mh-section__sub { color: var(--mh-ink-soft); margin: 0; font-size: 1rem; }

.mh-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: 0.92rem;
	color: var(--mh-accent-deep);
	white-space: nowrap;
}

.mh-section__more:hover { color: var(--mh-cta-hover); }

/* arrows drawn inline (home.html: arrow()) follow the reading direction */
.mh-section__more svg,
.mh-slide__btn svg,
.mh-appcard__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 200ms;
}

[dir="rtl"] .mh-section__more svg,
[dir="rtl"] .mh-slide__btn svg,
[dir="rtl"] .mh-appcard__btn svg { transform: scaleX(-1); }

/* Hero: full-width picture slides (home.html; the track is a CSS scroll-snap strip, house_mas_web.js adds
   autoplay, arrows and dots). Each slide: the picture, a shade on the text side, and a dark glass card. */
.mh-hero {
	position: relative;
	overflow: hidden;
	background: var(--mh-ink-deep);
	color: var(--mh-on-ink);
}

.mh-slides {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mh-slides::-webkit-scrollbar { display: none; }
.mh-slides:focus-visible { outline: 2px solid var(--mh-accent-light); outline-offset: -4px; }

.mh-slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 52vw, 620px);
}

.mh-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* darker on the text side (inline start), clear on the picture side */
.mh-slide__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(2, 30, 40, 0.8) 0%, rgba(2, 30, 40, 0.42) 48%, rgba(2, 30, 40, 0.08) 100%);
}

[dir="rtl"] .mh-slide__shade {
	background: linear-gradient(270deg, rgba(2, 30, 40, 0.8) 0%, rgba(2, 30, 40, 0.42) 48%, rgba(2, 30, 40, 0.08) 100%);
}

.mh-slide__inner { position: relative; z-index: 1; width: 100%; padding-block: 56px 72px; }

.mh-slide__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 540px;
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--mh-radius-xl);
}

.mh-slide__kicker {
	padding: 4px 12px;
	border: 1px solid rgba(248, 168, 130, 0.65);
	border-radius: 999px;
	color: var(--mh-warm);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.mh-slide__title {
	margin: 0;
	color: var(--mh-on-ink);
	font-size: clamp(1.7rem, 3.6vw, 2.8rem);
	font-weight: 800;
	line-height: 1.25;
}

.mh-slide__text { margin: 0; color: #e6eef1; font-size: 1.02rem; line-height: 1.7; }

/* the one CTA of the hero, on dark glass: brand orange with navy-900 text (5.5:1), never white on it */
.mh-glass--dark .mh-btn--accent {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--mh-accent);
	border-color: var(--mh-accent);
	color: var(--mh-on-accent);
}

.mh-glass--dark .mh-btn--accent:hover { background: var(--mh-accent-light); border-color: var(--mh-accent-light); color: var(--mh-on-accent); }
.mh-glass--dark .mh-btn--accent:focus-visible { outline: 2px solid #8ccbe0; outline-offset: 2px; }
.mh-slide__btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .mh-slide__btn:hover svg { transform: scaleX(-1) translateX(3px); }

.mh-slides__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: var(--mh-ink);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 160ms, color 160ms;
}

.mh-slides__nav:hover { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-on-accent); }
.mh-slides__nav--prev { inset-inline-start: 16px; }
.mh-slides__nav--next { inset-inline-end: 16px; }

.mh-slides__nav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[dir="rtl"] .mh-slides__nav svg { transform: scaleX(-1); }

.mh-slides__dots {
	position: absolute;
	bottom: 20px;
	inset-inline: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.mh-slides__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: width 200ms, background 200ms;
}

.mh-slides__dot:hover { background: rgba(255, 255, 255, 0.85); }
.mh-slides__dot.is-active { width: 28px; background: var(--mh-accent); }
.mh-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* الأقسام: صورة دائرية وعنوان لا غير */
.mh-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.mh-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 18px 12px 20px;
	border-radius: var(--mh-radius-lg);
	color: var(--mh-text);
	text-align: center;
	transition: transform 180ms, box-shadow 180ms;
}

.mh-cat:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-md); color: var(--mh-ink); }

.mh-cat__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--mh-bg);
	box-shadow: inset 0 0 0 1px var(--mh-line);
}

.mh-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 520ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.mh-cat:hover .mh-cat__media img { transform: scale(1.08); }
.mh-cat__media--blank { color: var(--mh-ink-soft); font-weight: 800; font-size: 1.5rem; }
.mh-cat__title { font-size: 0.95rem; font-weight: 800; line-height: 1.35; }

/* سلاسل Deli الأربع — شعار السلسلة ولونها وصورة صفّ أدواتها وسطر واحد */
.mh-series {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.mh-series__card {
	--tone: var(--mh-ink);
	--tone-ink: var(--mh-ink);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--mh-radius-lg);
	color: var(--mh-text);
	transition: transform 200ms, box-shadow 200ms;
}

/* شريط لون السلسلة أعلى البطاقة */
.mh-series__card::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 4px;
	background: var(--tone);
	z-index: 1;
}

.mh-series__card:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-md); color: var(--mh-text); }

/* ألوان Deli الرسمية؛ ‎--tone-ink‎ نسخة داكنة تُقرأ على الأبيض */
.mh-series__card--red { --tone: #c1123c; --tone-ink: #a30f33; }
.mh-series__card--yellow { --tone: #f2c200; --tone-ink: #8a6f00; }
.mh-series__card--home { --tone: #f08a3c; --tone-ink: #b4601c; }
.mh-series__card--garden { --tone: #7ab648; --tone-ink: #4c7c22; }

.mh-series__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mh-bg); }

.mh-series__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.mh-series__card:hover .mh-series__media img { transform: scale(1.07); }

.mh-series__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	padding: 14px 16px 18px;
}

.mh-series__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 0.2rem; }

/* شعار «home Series» أعرض من شارات deli، فيُقيَّد عرضه ليتساوى الصف */
.mh-series__logo { height: 20px; width: auto; max-width: 100px; object-fit: contain; display: block; }

.mh-series__tag {
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--mh-muted);
	border: 1px solid var(--mh-muted-border);
	color: var(--mh-ink);
	font-size: 0.72rem;
	font-weight: 800;
}

.mh-series__title { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.mh-series__text { color: var(--mh-ink-soft); line-height: 1.6; font-size: 0.88rem; }

@media (max-width: 991px) {
	.mh-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
	.mh-series { grid-template-columns: 1fr; }
	.mh-series__media { aspect-ratio: 16 / 9; }
}

/* منصات البطارية */
.mh-platforms__strip { display: flex; flex-wrap: wrap; gap: 12px; }

.mh-chip {
	flex: 1 1 140px;
	border-radius: var(--mh-radius-lg);
	padding: 1rem 1rem;
	text-align: center;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: 0.02em;
	color: var(--mh-ink);
	transition: transform 160ms, box-shadow 160ms;
}

.mh-chip:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow-md); color: var(--mh-ink); }

.mh-chip small {
	display: block;
	font-family: var(--mh-font);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mh-ink-soft);
	letter-spacing: 0;
	margin-top: 0.2rem;
}

/* لماذا HOUSE MAS: أيقونة وعنوان */
.mh-why { padding-block: 0 var(--mh-section-y); }
.mh-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.mh-why__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: var(--mh-radius-lg);
}

.mh-why__item svg { flex: none; width: 36px; height: 36px; color: var(--mh-accent); }
.mh-why__title { font-size: 1.05rem; font-weight: 800; margin: 0; }

/* تطبيق HOUSE MAS: بطاقة كحلية بباترن النقاط (BRAND.md) وهالة برتقالية، وفوقها زجاج داكن */
.mh-app-cta { padding-block: 0 var(--mh-section-y); }

.mh-appcard {
	position: relative;
	overflow: hidden;
	padding: clamp(22px, 4vw, 48px);
	border-radius: var(--mh-radius-xl);
	background:
		radial-gradient(42% 70% at 88% 18%, rgba(242, 101, 34, 0.55), transparent 70%),
		radial-gradient(circle, rgba(255, 216, 176, 0.15) 1.3px, transparent 1.8px) 0 0 / 18px 18px,
		var(--mh-ink);
	box-shadow: var(--mh-shadow-md);
}

[dir="rtl"] .mh-appcard {
	background:
		radial-gradient(42% 70% at 12% 18%, rgba(242, 101, 34, 0.55), transparent 70%),
		radial-gradient(circle, rgba(255, 216, 176, 0.15) 1.3px, transparent 1.8px) 0 0 / 18px 18px,
		var(--mh-ink);
}

.mh-appcard__glass {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	max-width: 560px;
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--mh-radius-lg);
}

.mh-appcard__mark { width: 56px; height: 56px; }
.mh-appcard__eyebrow { margin: 0; color: var(--mh-warm); font-size: 0.9rem; font-weight: 700; }

.mh-appcard__title {
	margin: 0;
	color: var(--mh-on-ink);
	font-size: clamp(1.25rem, 2.6vw, 1.8rem);
	font-weight: 800;
	line-height: 1.4;
}

.mh-appcard__btn { margin-top: 6px; }
.mh-appcard__platforms { margin: 0; color: #a9c7d2; font-size: 0.85rem; font-weight: 700; }

/* Distributor invitation as the brand "split card": a navy half at the start, an orange half at the end with a
   lighter circle in its outer top corner. Logical properties only (inline-start/end), so in RTL the navy half
   is on the right and the circle sits top-left. */
.mh-join { padding-block: 0 var(--mh-section-y); }

.mh-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 240px;
	border-radius: var(--mh-radius-xl);
	overflow: hidden;
	box-shadow: var(--mh-shadow-md);
}

.mh-split__half {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(24px, 4vw, 40px);
}

.mh-split__half--navy { background: var(--mh-ink); color: var(--mh-on-ink); }

/* text on brand orange is navy-900 (5.5:1), never white (3.2:1) */
.mh-split__half--orange { background: var(--mh-accent); color: var(--mh-on-accent); overflow: hidden; }

/* the circle: orange-400 over orange-500, cut by the card's corner */
.mh-split__half--orange::before {
	content: "";
	position: absolute;
	inset-block-start: -72px;
	inset-inline-end: -72px;
	width: 210px;
	height: 210px;
	border-radius: 50%;
	background: var(--mh-accent-light);
	pointer-events: none;
}

.mh-split__half--orange > * { position: relative; }

.mh-split__eyebrow { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.mh-split__half--navy .mh-split__eyebrow { color: var(--mh-warm); }

.mh-split__title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.35; }
.mh-split__half--navy .mh-split__title { color: var(--mh-on-ink); }
.mh-split__half--orange .mh-split__title { color: var(--mh-on-accent); }

/* white pill, orange text: accent-text on white (4.5:1+); the arrow follows the reading direction */
.mh-split__btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--mh-accent-deep);
	font-weight: 800;
	box-shadow: var(--mh-shadow-sm);
	transition: box-shadow 160ms, color 160ms;
}

.mh-split__btn:hover { color: var(--mh-cta-hover); box-shadow: var(--mh-shadow-md); }
.mh-split__btn:focus-visible { outline: 2px solid var(--mh-ink-deep); outline-offset: 2px; }

.mh-split__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[dir="rtl"] .mh-split__btn svg { transform: scaleX(-1); }
[dir="rtl"] .mh-split__btn.mh-show-distributor svg { transform: none; } /* a check mark does not mirror */

/* --- صفحات webshop: بطاقات منتجات زجاجية ---------------------------------- */
.item-card .card,
.product-container,
.list-row,
.filters-section {
	background: var(--mh-glass);
	border: 1px solid var(--mh-glass-line);
	border-radius: var(--mh-radius-lg);
	box-shadow: var(--mh-glass-shadow);
	-webkit-backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
	backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.item-card .card, .product-container, .list-row, .filters-section { background: rgba(255, 255, 255, 0.93); }
}

.item-card .card { height: 100%; overflow: hidden; }
.item-card .card:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow-md); }

/* Product photos mostly have white grounds: their frame stays white, inset in the glass card */
.card-img-container { background: var(--mh-bg); border-radius: var(--mh-radius); margin: 8px 8px 0; overflow: hidden; }
.no-image { background: var(--mh-placeholder); border-radius: var(--mh-radius); color: var(--mh-ink-soft); }

/* the filters column (webshop product_ui: .filters-section) is one glass panel */
.filters-section { padding: 16px; align-self: flex-start; }
.filters-section .filters-title { font-weight: 800; color: var(--mh-ink); }

.card-img-top.no-image { font-weight: 700; }

.product-title { color: var(--mh-ink); font-weight: 600; }
.product-category { color: var(--mh-ink-soft); font-size: 0.82rem; }
/* Prices in accent-text: orange text is allowed on white surfaces only (4.6:1), as here */
/* (webshop_cart.scss nests its own rule under these two parents, so ours names them too) */
.product-price,
.item-card-group-section .product-price,
.product-container .item-cart .product-price { color: var(--mh-accent-deep); font-weight: 700; }

.product-info-green { color: var(--mh-success); font-weight: 600; }
.out-of-stock { color: var(--mh-danger); font-weight: 600; }

[dir="rtl"] .card.text-left,
[dir="rtl"] .card-body.text-left,
[dir="rtl"] .product-container .text-left { text-align: right !important; }

body.product-page { background: var(--mh-page); }

/* صفحة المنتج: سطر «رقم SAP · الباركود» تحت «رمز المادة» (templates/generators/item/item_add_to_cart.html) */
.product-code:has(+ .mh-product-ids) { margin-bottom: 0; padding-bottom: 0.25rem; }
.product-code.mh-product-ids { padding-top: 0; display: flex; flex-wrap: wrap; column-gap: 1rem; }
.mh-product-ids .product-item-code { padding: 0; }
.mh-product-ids .mh-product-id { unicode-bidi: isolate; }

/* بطاقة فارغة أسفل صفحة الصنف (مواصفات/محتوى/مراجعات غير مفعّلة) */
/* (:has لا يتداخل، فالشرطان متجاوران) */
.product-container:has(.product-page-content):not(:has(.product-page-content *)) { display: none; }

/* شرائح المجموعات الفرعية أعلى صفحة المجموعة */
.scroll-categories .category-pill {
	background: var(--mh-glass-strong);
	color: var(--mh-ink);
	border: 1px solid var(--mh-glass-line);
	border-radius: 999px;
	font-weight: 600;
	-webkit-backdrop-filter: blur(var(--mh-blur));
	backdrop-filter: blur(var(--mh-blur));
}

.scroll-categories a:hover > .category-pill { border-color: var(--mh-accent); color: var(--mh-ink); }

/* أزرار تبديل العرض (قائمة/شبكة) — قاعدة webshop مربوطة بالمعرّف #toggle-view */
#toggle-view .btn {
	background: var(--mh-glass-strong);
	border: 1px solid var(--mh-glass-line);
	box-shadow: none;
}

#toggle-view .btn .icon { stroke: var(--mh-ink-soft); }

#toggle-view .btn-primary {
	background: var(--mh-ink);
	border-color: var(--mh-ink);
	box-shadow: none;
}

#toggle-view .btn-primary .icon { stroke: #fff; }

/* عرض القائمة: إطار الصورة */
.list-row .list-image { border-color: var(--mh-line) !important; border-radius: var(--mh-radius) !important; overflow: hidden; }
.no-image-list { background: var(--mh-placeholder); color: var(--mh-ink-soft); font-weight: 700; }

/* List view (webshop product_ui/list.js): each product row is a glass card (rule above) */
.list-row { padding-block: 14px; margin-inline: 0; }

.list-row .list-image { background: var(--mh-bg); }

/* فلاتر وقوائم المنتجات */
.filter-block, .filter-lookup-wrapper, .cart-container .cart-items-header {
	border-color: var(--mh-line);
}

.filters-section .filter-block:last-child { padding-bottom: 0 !important; border-bottom: 0; }

.page_content .breadcrumb-container, .page-breadcrumbs { padding-top: 1rem; }

/* --- نموذج الويب --------------------------------------------------------- */
/* input outlines in border-strong: >=3:1 on white and cream (WCAG 1.4.11) */
.web-form-wrapper .form-control,
.page_content .form-control {
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-ink);
	min-height: 40px;
}

/* Frappe marks empty mandatory fields .has-error from the start and draws them with
   var(--error-border), which website pages do not define: the border vanished. Same outline as the rest. */
.web-form-wrapper .frappe-control.has-error input.form-control { border: 1px solid var(--mh-line-strong); }

.web-form-wrapper .form-control:focus,
.page_content .form-control:focus {
	border-color: var(--mh-focus);
	box-shadow: 0 0 0 2px var(--mh-focus);
}

.web-form-wrapper .control-label,
.page_content .control-label {
	font-weight: 600;
	color: var(--mh-ink);
	margin-bottom: 0.3rem;
}

.web-form .submit-btn,
.web-form .submit-btn:not(:disabled):not(.disabled):active {
	background: var(--mh-accent-deep);
	border-color: var(--mh-accent-deep);
	color: #fff;
	font-weight: 700;
}

.web-form .submit-btn:hover { background: var(--mh-cta-hover); border-color: var(--mh-cta-hover); color: #fff; }

/* --- التذييل -------------------------------------------------------------- */
.web-footer {
	background: var(--mh-ink-deep);
	color: var(--mh-on-ink-soft);
	margin-top: 0;
	padding-block: clamp(40px, 6vw, 64px) 24px;
	flex-shrink: 0;
	border-top: 0;
}

.web-footer .container { max-width: var(--mh-maxw); }

.web-footer a, .web-footer .footer-link { color: var(--mh-on-ink-soft); }
.web-footer a:hover, .web-footer .footer-link:hover { color: #fff; }

.web-footer .footer-group-label {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 0.9rem;
}

.web-footer .footer-group-links { max-height: none; flex-wrap: nowrap; }
.web-footer .footer-group-links li { margin-bottom: 0.5rem; font-size: 0.92rem; }

/* أربعة أعمدة متساوية بدل توزيع Bootstrap الافتراضي (col-sm-2 لكل مجموعة) */
.web-footer .footer-grouped-links .footer-group {
	flex: 0 0 25%;
	max-width: 25%;
	margin-bottom: 1.5rem;
}

.web-footer .footer-info {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	font-size: 0.86rem;
	color: var(--mh-on-ink-soft);
}

.web-footer .footer-powered { color: var(--mh-on-ink-soft); }
[dir="rtl"] .web-footer .footer-col-right { text-align: left; }

/* --- الشاشات الصغيرة ------------------------------------------------------ */
@media (max-width: 991px) {
	.web-footer .footer-grouped-links .footer-group { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 767px) {
	/* hero: the picture fills a tall frame, the glass card sits low, the shade darkens the bottom */
	.mh-slide { min-height: clamp(500px, 118vw, 640px); align-items: flex-end; }
	.mh-slide__inner { padding-block: 24px 60px; }
	.mh-slide__card { max-width: none; width: 100%; gap: 10px; }
	.mh-slide__shade,
	[dir="rtl"] .mh-slide__shade { background: linear-gradient(180deg, rgba(2, 30, 40, 0.1) 0%, rgba(2, 30, 40, 0.35) 45%, rgba(2, 30, 40, 0.8) 100%); }
	.mh-slides__nav { display: none; }
	.mh-section__head { flex-wrap: wrap; }
	.mh-cats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
	.mh-cat { padding: 14px 8px 16px; }
	.mh-cat__media { width: 76px; height: 76px; }
	.mh-why__grid { grid-template-columns: 1fr; gap: 10px; }
	.mh-why__item { padding: 14px 16px; }
	.mh-appcard__glass { max-width: none; }
	/* the split card stacks: navy above, orange below */
	.mh-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.mh-split__half { min-height: 200px; }
	.mh-split__half--orange::before { width: 150px; height: 150px; inset-block-start: -52px; inset-inline-end: -52px; }
	.mh-chip { flex: 1 1 calc(50% - 12px); }
	/* عرض القائمة في webshop: col-2 للصورة يضيق إلى شريط على الجوال */
	.list-row .list-image { flex: 0 0 96px; max-width: 96px; padding: 0; }
	.list-row .list-image + [class*="col-"] { flex: 1 1 0; max-width: none; }
}

/* --- السلة والدفع والحساب --------------------------------------------- */

.mh-toast {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-start: 20px;
	z-index: 1090;
	background: var(--mh-ink);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow-md);
	display: none;
}

.mh-toast.is-open { display: block; }
.mh-toast a { color: var(--mh-warm); font-weight: 700; margin-inline-start: 0.4rem; }

/* حقول النماذج */
.mh-field { display: block; margin-bottom: 0.85rem; }

.mh-field__label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }

.mh-field__input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-ink);
	font-family: inherit;
	font-size: 0.97rem;
}

.mh-field__input:focus { outline: 2px solid var(--mh-focus); outline-offset: 1px; border-color: var(--mh-focus); }

.mh-field__hint { display: block; color: var(--mh-ink-soft); font-size: 0.82rem; margin-top: 0.25rem; }

.mh-radio,
.mh-check { display: inline-flex; align-items: center; gap: 0.4rem; margin-inline-end: 1.2rem; font-weight: 600; }

/* the form message <p class="mh-error"> (register, checkout) — not the error page wrapper div.mh-error */
p.mh-error:not(:empty) {
	color: var(--mh-danger);
	background: var(--mh-danger-soft);
	border-radius: var(--mh-radius);
	padding: 8px 12px;
	margin: 0 0 0.75rem;
}

/* زر بحدّ على خلفية فاتحة (‎--ghost‎ أبيض، وهو للهيرو الداكن وحده) */
.mh-btn--line { background: transparent; border-color: var(--mh-line-strong); color: var(--mh-ink); }
.mh-btn--line:hover { border-color: var(--mh-ink); background: var(--mh-bg); color: var(--mh-ink); }

.mh-btn.is-disabled { opacity: 0.5; pointer-events: none; }

/* صفحتا السلة والدفع: عمود الأسطر + بطاقة الملخّص */
.mh-cart,
.mh-checkout,
.mh-account,
.mh-auth { padding-block: clamp(28px, 5vw, 56px); }

.mh-cart__grid,
.mh-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	align-items: start;
	gap: clamp(20px, 3vw, 36px);
}

.mh-cart__lines,
.mh-checkout__form,
.mh-cart__summary,
.mh-checkout__summary {
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius-lg);
	box-shadow: var(--mh-shadow-sm);
	padding: 20px;
}

.mh-cart__lines { padding-block: 4px; }

.mh-cart__summary,
.mh-checkout__summary {
	position: sticky;
	top: 90px;
}

.mh-cart__summary-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 1rem; }

.mh-sum { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }
.mh-sum--save { color: var(--mh-accent-deep); font-weight: 700; }
.mh-sum--total {
	border-top: 1px solid var(--mh-line-strong);
	margin-top: 8px;
	padding-top: 12px;
	font-size: 1.12rem;
	font-weight: 800;
}

.mh-cart__hint { color: var(--mh-ink-soft); font-size: 0.85rem; margin: 0.9rem 0 1rem; }
.mh-cart__grid .mh-btn { display: block; width: 100%; text-align: center; }
.mh-cart__grid [hidden] { display: none !important; } /* the rule above would show a hidden button */
.mh-cart__checkout { margin-bottom: 8px; }
/* OPTION_A_SPEC S1: a guest or a consumer orders from the nearest distributor in the app */
.mh-cart__to-app { margin-bottom: 8px; }
.mh-sales-note { color: var(--mh-ink-soft); font-size: 0.9rem; margin: 0.75rem 0 0; }

/* سطر الصنف في السلة */
.mh-cart__row {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto auto 28px;
	grid-template-areas: "media body qty amount remove";
	align-items: center;
	gap: 14px;
	padding-block: 16px;
	border-bottom: 1px solid var(--mh-line);
}

.mh-cart__thumb { grid-area: media; }
.mh-cart__info { grid-area: body; }
.mh-cart__qty { grid-area: qty; }
.mh-cart__amount { grid-area: amount; }
.mh-cart__remove { grid-area: remove; }

.mh-cart__row:first-child { border-top: 1px solid var(--mh-line); }

.mh-cart__thumb {
	display: block;
	width: 76px;
	height: 76px;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	background: #fff;
	overflow: hidden;
}

.mh-cart__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* بلا صورة: أول حرفين من اسم الصنف، كما يفعل webshop في بطاقاته */
.mh-cart__thumb--blank {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mh-placeholder);
	color: var(--mh-ink-soft);
	font-weight: 800;
	font-size: 1.1rem;
}

.mh-cart__name { display: block; font-weight: 700; color: var(--mh-ink); }
.mh-cart__name:hover { color: var(--mh-accent-deep); }
.mh-cart__unit { color: var(--mh-ink-soft); font-size: 0.88rem; margin: 0.25rem 0 0; }
.mh-was { text-decoration: line-through; margin-inline-end: 8px; }
.mh-money { white-space: nowrap; unicode-bidi: isolate; }

.mh-cart__row--off .mh-cart__unit { color: var(--mh-danger); }

.mh-cart__qty { display: inline-flex; align-items: center; gap: 6px; }

.mh-qty {
	width: 30px;
	height: 30px;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
}

.mh-qty:hover { border-color: var(--mh-ink); }

.mh-qty__input {
	width: 3.4rem;
	height: 30px;
	padding: 0 4px;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	color: var(--mh-ink);
	font: inherit;
	font-weight: 700;
	text-align: center;
}

.mh-cart__amount { font-weight: 800; white-space: nowrap; }

.mh-cart__remove {
	border: 0;
	background: none;
	color: var(--mh-ink-soft);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.mh-cart__remove:hover { color: var(--mh-danger); }

/* صفحة الدفع */
.mh-checkout__heading { font-size: 1.1rem; font-weight: 800; margin: 1.6rem 0 0.9rem; }
.mh-checkout__form > .mh-checkout__heading:first-child { margin-top: 0; }

.mh-checkout__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-block: 6px;
	font-size: 0.92rem;
}

.mh-checkout__line-amount { white-space: nowrap; }
.mh-sum strong { white-space: nowrap; }

.mh-checkout__lines { border-bottom: 1px solid var(--mh-line-strong); padding-bottom: 8px; margin-bottom: 8px; }
.mh-checkout__back { display: inline-block; margin-top: 1rem; font-weight: 700; }
.mh-checkout__account { border-top: 1px solid var(--mh-line); margin-top: 1.4rem; padding-top: 0.4rem; }
.mh-checkout__account-fields { margin-top: 0.9rem; }
.mh-checkout__submit { margin-top: 1.2rem; }
.mh-checkout__done p { line-height: 1.9; }

/* حساب المتجر: التسجيل و«حسابي» */
.mh-auth { max-width: 480px; }
.mh-auth__lead { color: var(--mh-ink-soft); margin-bottom: 1.4rem; }
.mh-auth__alt { margin-top: 1rem; font-size: 0.9rem; }

.mh-account { max-width: 860px; }
.mh-account__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mh-account__logout-form { margin: 0; }
.mh-account__logout {
	font: inherit;
	font-weight: 700;
	color: var(--mh-ink-soft);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.mh-account__logout:hover { color: var(--mh-danger); }

.mh-account__card {
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	box-shadow: var(--mh-shadow-sm);
	border-radius: var(--mh-radius-lg);
	padding: 20px;
	margin-top: 18px;
}

.mh-account__card--accent { background: var(--mh-muted); border-color: var(--mh-muted-border); }
.mh-account__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.9rem; }
.mh-account__card p { margin-bottom: 0.9rem; }

.mh-account__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mh-account__links a {
	display: block;
	padding: 10px 14px;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	color: var(--mh-ink);
	font-weight: 700;
	text-decoration: none;
}
.mh-account__links a:hover { border-color: var(--mh-ink); }

.mh-account__facts { display: grid; gap: 6px; margin: 0; }
.mh-account__facts > div { display: flex; gap: 10px; }
.mh-account__facts dt { min-width: 5.5rem; color: var(--mh-ink-soft); font-weight: 600; }
.mh-account__facts dd { margin: 0; font-weight: 700; }

.mh-order { background: var(--mh-muted); border-radius: var(--mh-radius); padding: 14px 16px; margin-bottom: 12px; }
.mh-order:last-child { margin-bottom: 0; }

.mh-order__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--mh-line);
}

.mh-order__id { font-weight: 800; }
.mh-order__date { color: var(--mh-ink-soft); font-size: 0.88rem; }

.mh-order__state {
	background: var(--mh-placeholder);
	color: var(--mh-ink-soft);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.82rem;
	font-weight: 700;
}

/* order status chips: the app's colours (BRAND.md decision 103), text colour on its -soft ground */
.mh-order__state--warning { background: var(--mh-warning-soft); color: var(--mh-warning); }
.mh-order__state--success { background: var(--mh-success-soft); color: var(--mh-success); }
.mh-order__state--info { background: var(--mh-info-soft); color: var(--mh-info); }
.mh-order__state--danger { background: var(--mh-danger-soft); color: var(--mh-danger); }
.mh-order__state--neutral { background: var(--mh-placeholder); color: var(--mh-ink-soft); }

.mh-order__total { margin-inline-start: auto; }

.mh-order__items { list-style: none; margin: 8px 0 0; padding: 0; }
.mh-order__items li { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; font-size: 0.9rem; }

.mh-signup-link { margin-top: 1rem; text-align: center; }

@media (max-width: 991px) {
	.mh-cart__grid,
	.mh-checkout__grid { grid-template-columns: minmax(0, 1fr); }
	.mh-cart__summary,
	.mh-checkout__summary { position: static; }
	/* على الجوال يُراجَع الملخّص قبل تعبئة النموذج، كما في المتاجر المعتادة */
	.mh-checkout__summary { order: -1; }
	.mh-checkout__grid { display: flex; flex-direction: column; }
}

@media (max-width: 575px) {
	.mh-cart__row {
		grid-template-columns: 60px minmax(0, 1fr) auto;
		grid-template-areas:
			"media body   remove"
			"media qty    amount";
		align-items: start;
		row-gap: 10px;
		column-gap: 10px;
	}
	.mh-cart__thumb { width: 60px; height: 60px; align-self: start; }
	.mh-cart__qty,
	.mh-cart__amount { align-self: center; }
	.mh-cart__amount { text-align: end; }
	.mh-account__head { flex-direction: column; gap: 4px; }
}

/* Search results (www/search.html): white product cards on the cream page */
.mh-results { padding-block: clamp(28px, 5vw, 56px); }
.mh-results__count,
.mh-results__empty { color: var(--mh-ink-soft); margin: 0 0 1.2rem; }

.mh-results__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: var(--mh-gap);
}

.mh-card {
	display: flex;
	flex-direction: column;
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	box-shadow: var(--mh-shadow-sm);
	overflow: hidden;
}

.mh-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: var(--mh-bg);
	padding: 12px;
}

.mh-card__media img { width: 100%; height: 100%; object-fit: contain; }

.mh-card__media--blank { background: var(--mh-placeholder); color: var(--mh-ink-soft); font-weight: 800; font-size: 1.6rem; }

.mh-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 14px 16px; border-top: 1px solid var(--mh-line); }
.mh-card__name { color: var(--mh-ink); font-weight: 700; line-height: 1.5; }
.mh-card__name:hover { color: var(--mh-ink-hover); }
.mh-card__price { margin: auto 0 0; color: var(--mh-accent-deep); font-weight: 800; }
.mh-card__price .mh-was { color: var(--mh-ink-soft); font-weight: 600; }
.mh-card__price--none { color: var(--mh-ink-soft); font-weight: 600; font-size: 0.9rem; }
.mh-card__buy { width: 100%; }

/* صفحة الخطأ العربية (نطاق المتجر) */
.mh-error { text-align: center; padding: 64px 0 80px; }
.mh-error__code { font-size: 3.5rem; font-weight: 800;
	color: var(--mh-accent-deep); margin: 0 0 4px; line-height: 1; }
.mh-error__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 10px; }
.mh-error__text { color: var(--mh-ink-soft); margin: 0 auto 28px; max-width: 46ch; }
.mh-error__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .mh-error { padding: 40px 0 56px; } .mh-error__code { font-size: 2.6rem; } }

/* --- الحركة: Lenis وGSAP ومؤثرات React Bits (public/js/house_mas_motion.js) ---------------------- */
/* Lenis 1.3.26 (lenis/dist/lenis.css, MIT): the page keeps its native height while Lenis drives the scroll */
html.lenis,
html.lenis body { height: auto; }

.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }

.lenis.lenis-smooth iframe { pointer-events: none; }

.lenis.lenis-autoToggle {
	transition-property: overflow;
	transition-duration: 1ms;
	transition-behavior: allow-discrete;
}

/* Colour of the Star Border: the brand's cream */
.hm-hero,
.mh-hero,
[data-mh-star] {
	--mh-star-color: var(--mh-page);
}

/* the hero's main button carries the Star Border canvas: the button must sit above its glass card */
.mh-slide__btn.mh-star { z-index: 1; }

/* Blur Text: the hero title waits hidden for its words. html.mh-intro is set before the title is drawn
   (navbar.html) only when motion is allowed; if the script is slow or never runs, the title shows itself
   after 1.5s (and a script arriving later leaves it as it is). */
@media (prefers-reduced-motion: no-preference) {
	html.mh-intro .hm-content h1:not(.mh-blur--ready),
	html.mh-intro [data-mh-blur]:not(.mh-blur--ready) {
		opacity: 0;
		animation: mh-failsafe 0s 1.5s forwards;
	}
}

@keyframes mh-failsafe {
	to { opacity: 1; }
}

/* <mh-word>, not <span>: a heading's own `h1 span` rules (the hero colours its second line) must not reach it */
.mh-blur__word { display: inline-block; }

/* Star Border: the canvas sits under the button's text and over its fill, bleeding 48px for the glow */
.mh-star { position: relative; isolation: isolate; }

.mh-star__light {
	position: absolute;
	top: -48px;
	left: -48px;
	z-index: -1;
	width: calc(100% + 96px);
	height: calc(100% + 96px);
	pointer-events: none;
}

/* Count Up: digits of equal width, so the line does not shake while it counts */
[data-count] { font-variant-numeric: tabular-nums; }

/* Privacy policy (Web Page «privacy»: both languages in one page, sections #ar then #en): the English shop opens
   on the English text, after the language links (STOREFRONT_I18N_SPEC P4) */
html[lang="en"] .hm-privacy { display: flex; flex-direction: column; }
html[lang="en"] .hm-privacy > .hm-lang { order: -2; }
html[lang="en"] .hm-privacy > #en { order: -1; }

/* --- المتجر بلغتين: الاتجاهان (STOREFRONT_I18N_SPEC P5) ------------------------------------------- */
/* Hero (Web Page «hero») in the English shop: its text stays on the right, over the dark side, as in Arabic (D8);
   the pictures are not mirrored — the logos printed on the tools would read backwards. Phones keep the text above
   the picture in both languages. */
@media (min-width: 769px) {
	html[dir="ltr"] .hm-hero .hm-content { inset-inline-start: auto; inset-inline-end: 0; }
}

/* Arabic content left in the English shop (item descriptions and specifications, a name without an English one):
   each paragraph takes the direction of its own text, so Arabic reads and aligns right to left */
html[dir="ltr"] .product-description,
html[dir="ltr"] .item-website-specification td,
html[dir="ltr"] .product-title,
html[dir="ltr"] .mh-card__name,
html[dir="ltr"] .mh-cart__name,
html[dir="ltr"] .mh-search__hit span {
	unicode-bidi: plaintext;
	text-align: start;
}

/* Distributor app download page: /download (www/download.html) */
.mh-app { max-width: 46rem; padding-block: clamp(28px, 5vw, 56px); }
.mh-app__head { text-align: center; margin-bottom: 28px; }
.mh-app__mark { display: block; margin: 0 auto 16px; }
.mh-app__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--mh-ink); margin: 0 0 0.6rem; }
.mh-app__lead { color: var(--mh-text); font-size: 1.05rem; line-height: 1.8; margin: 0 auto 0.6rem; max-width: 36rem; }
.mh-app__note,
.mh-app__meta,
.mh-app__hint { color: var(--mh-ink-soft); line-height: 1.8; }
.mh-app__meta { margin: 0.6rem 0 0; }
.mh-app__num { font-weight: 700; color: var(--mh-text); }
.mh-app__card {
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius-lg);
	box-shadow: var(--mh-shadow-sm);
	padding: 20px;
	margin-bottom: 20px;
}
.mh-app__h2 { font-size: 1.25rem; font-weight: 800; color: var(--mh-ink); margin: 0 0 1rem; }
.mh-app__h3 { font-size: 1.02rem; font-weight: 800; color: var(--mh-text); margin: 1.4rem 0 0.6rem; }
.mh-app__download { width: 100%; font-size: 1.05rem; padding-block: 0.9rem; }
.mh-app__notes { background: var(--mh-muted); border: 1px solid var(--mh-muted-border); border-radius: var(--mh-radius);
	padding: 12px 14px; margin-top: 1rem; }
.mh-app__notes .mh-app__h3 { margin-top: 0; }
.mh-app__notes p { white-space: pre-line; margin: 0; line-height: 1.8; }
.mh-app__steps { padding-inline-start: 1.4rem; margin: 0; line-height: 1.9; }
.mh-app__steps li + li { margin-top: 0.3rem; }
.mh-app__hint { margin: 1rem 0 0; }
.mh-app__verify { margin-top: 1rem; color: var(--mh-ink-soft); }
.mh-app__verify summary { cursor: pointer; font-weight: 700; }
.mh-app__verify code { display: block; margin-top: 0.5rem; padding: 8px 10px; background: var(--mh-page); border-radius: var(--mh-radius);
	color: var(--mh-text); font-size: 0.82rem; word-break: break-all; }
.mh-app__foot { text-align: center; }

/* /warranty: the check behind the label's QR (OPTION_A_SPEC S3b) — model, status, expiry only */
.mh-warranty { padding-block: 24px 48px; max-width: 46rem; }
.mh-warranty__title { margin-bottom: 1rem; }
.mh-warranty__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.mh-warranty__form .mh-field { flex: 1 1 16rem; margin: 0; }
.mh-warranty__result { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--mh-radius); border: 1px solid var(--mh-line); background: var(--mh-bg); }
.mh-warranty__result p { margin: 0.25rem 0; }
.mh-warranty__result.is-active { background: var(--mh-success-soft); border-color: var(--mh-success); }
.mh-warranty__result.is-expired { background: var(--mh-warning-soft); border-color: var(--mh-warning); }
.mh-warranty__result.is-unknown, .mh-warranty__result.is-invalid { background: var(--mh-danger-soft); border-color: var(--mh-danger); }
.mh-warranty__result.is-active .mh-warranty__state { color: var(--mh-success); font-weight: 700; }
.mh-warranty__result.is-expired .mh-warranty__state { color: var(--mh-warning); font-weight: 700; }
.mh-warranty__result.is-unknown .mh-warranty__state, .mh-warranty__result.is-invalid .mh-warranty__state { color: var(--mh-danger); font-weight: 700; }
.mh-warranty__serial { font-weight: 700; color: var(--mh-ink); }
.mh-warranty__label { color: var(--mh-ink-soft); }
.mh-warranty__policy-title { margin-top: 2.5rem; }
.mh-warranty__text { color: var(--mh-ink-soft); line-height: 1.9; }
.mh-warranty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* =============================================================================
   صفحة المنتج (تصميم 2026-11): معرض الصور، بطاقة المعلومات، صندوق الشراء، الشريط اللاصق على الهاتف،
   وجدول المواصفات. القالب templates/generators/item/item_image.html والسلوك في house_mas_web.js
   (mount_gallery، mount_buy_box). أسماء webshop باقية في الـ HTML فتتبعها قواعده؛ ما يلي يعلوها.
   ============================================================================= */
.product-container.item-main { padding: clamp(16px, 2.5vw, 32px); }
/* room between the last card and the footer (webshop's page ends flush against it) */
body.product-page main.container { padding-bottom: clamp(40px, 6vw, 72px); }
.product-container.item-main .row.mb-5 { margin-bottom: 0 !important; row-gap: 8px; }

/* --- Gallery: a white square stage (product photos have white grounds), the thumbnails in a strip under it --- */
.mh-gallery { display: flex; flex-direction: column; align-items: stretch; }
.mh-gallery .product-image,
.mh-gallery__stage {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	padding: 0 !important;
	background: var(--mh-bg);
	border: 1px solid var(--mh-line) !important;
	border-radius: var(--mh-radius-lg);
	overflow: hidden;
	box-shadow: var(--mh-shadow-sm);
}

.mh-gallery__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	color: inherit;
}

.mh-gallery__open:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: -4px; border-radius: var(--mh-radius-lg); }

.mh-gallery__img,
.mh-gallery .website-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	display: block;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease;
}

.mh-gallery__stage:hover .mh-gallery__img { transform: scale(1.04); }
.mh-gallery__img.is-switching { opacity: 0; }

.mh-gallery__zoom {
	position: absolute;
	inset-inline-end: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--mh-glass-strong);
	border: 1px solid var(--mh-glass-line);
	color: var(--mh-ink);
	box-shadow: var(--mh-shadow-sm);
	-webkit-backdrop-filter: blur(var(--mh-blur));
	backdrop-filter: blur(var(--mh-blur));
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
	pointer-events: none;
}

.mh-gallery__stage:hover .mh-gallery__zoom,
.mh-gallery__open:focus-visible .mh-gallery__zoom { opacity: 1; transform: none; }
.mh-gallery__zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mh-gallery__count {
	position: absolute;
	inset-inline-start: 12px;
	top: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mh-glass-dark);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(var(--mh-blur));
	backdrop-filter: blur(var(--mh-blur));
	pointer-events: none;
	unicode-bidi: isolate;
	direction: ltr;
}

/* thumbnails: one strip, scrolls sideways on narrow screens; webshop's column classes are overridden */
.mh-gallery__thumbs.item-slideshow {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 2px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.mh-gallery__thumbs::-webkit-scrollbar { display: none; }

.mh-gallery__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	box-shadow: inset 0 0 0 1px var(--mh-line);
	scroll-snap-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	overflow: hidden;
}

.mh-gallery__thumb:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--mh-line), var(--mh-shadow-sm); }
.mh-gallery__thumb.is-active { border-color: var(--mh-accent-deep); box-shadow: none; }
.mh-gallery__thumb:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; }

.mh-gallery__thumb .item-slideshow-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	padding: 6px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	display: block;
	opacity: 0.85;
	transition: opacity 0.18s ease;
}

.mh-gallery__thumb.is-active .item-slideshow-image,
.mh-gallery__thumb:hover .item-slideshow-image { opacity: 1; }

/* --- Details column --- */
.product-details { padding-inline-start: clamp(0px, 2vw, 24px); }
.product-details .product-title.col-11 { padding: 0; max-width: 100%; flex: 1 1 auto; }

.product-details .product-title {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	color: var(--mh-ink);
	margin-bottom: 0.5rem;
}

/* meta line: group chip, then «code · SAP · barcode» as quiet pairs */
.product-details .product-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--mh-ink-soft);
	font-size: 0.88rem;
	margin: 0 0 4px;
	padding: 0;
}

.product-details .product-code .product-item-group {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--mh-muted);
	border: 1px solid var(--mh-muted-border);
	color: var(--mh-ink);
	font-weight: 700;
	font-size: 0.8rem;
	margin: 0;
}

.product-details .product-code .product-item-code { color: var(--mh-ink-soft); font-weight: 600; padding: 0; }
.product-details .product-code span[itemprop="name"]:not(.product-item-code),
.product-details .mh-product-id { color: var(--mh-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.product-details .product-code:has(+ .mh-product-ids) { margin-bottom: 0; }

/* the price card */
.product-details .item-cart {
	margin: 18px 0 0 !important;
	padding: 18px 20px 6px;
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius-lg);
	box-shadow: var(--mh-shadow-sm);
}

.product-details .item-cart > .col-md-12 { padding: 0; }

.product-details .item-cart .product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--mh-accent-deep);
	letter-spacing: -0.01em;
}

.product-details .item-cart .product-price [itemprop] { unicode-bidi: isolate; direction: ltr; }
.product-details .item-cart .product-price s { color: var(--mh-ink-soft); font-weight: 500; font-size: 0.95rem; }
.product-details .item-cart .product-price .in-green { color: var(--mh-success); font-weight: 700; font-size: 0.9rem; }
.product-details .item-cart .product-price .formatted-price { color: var(--mh-ink-soft); font-size: 0.85rem; font-weight: 500; margin: 0 !important; }

/* stock state as a pill */
.product-details .item-cart .has-stock,
.product-details .item-cart .no-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
}

.product-details .item-cart .has-stock { background: var(--mh-success-soft); color: var(--mh-success); }
.product-details .item-cart .no-stock { background: var(--mh-danger-soft); color: var(--mh-danger) !important; }

.product-details .item-cart .has-stock::before,
.product-details .item-cart .no-stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.product-details .item-cart .mt-6 { margin-top: 18px !important; }
.product-details .item-cart .mb-5 { margin-bottom: 12px !important; }
.product-details .item-cart .mb-4.d-flex { margin-bottom: 0 !important; flex-wrap: wrap; align-items: center; gap: 10px; }

/* quantity stepper + the one main button (house_mas_web.js: mount_buy_box) */
.mh-buy__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-radius);
	background: var(--mh-bg);
	overflow: hidden;
	height: 48px;
}

.mh-buy__qty .mh-qty {
	width: 44px;
	height: 46px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mh-ink);
	font-size: 1.25rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

.mh-buy__qty .mh-qty:hover { background: var(--mh-muted); }
.mh-buy__qty .mh-qty:active { background: var(--mh-muted-border); }
.mh-buy__qty .mh-qty:disabled { opacity: 0.4; cursor: default; background: transparent; }
.mh-buy__qty .mh-qty:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: -3px; }

.mh-buy__qty .mh-qty__input {
	width: 3.2rem;
	height: 46px;
	border: 0;
	border-radius: 0;
	border-inline: 1px solid var(--mh-line);
	font-size: 1.05rem;
	-moz-appearance: textfield;
}

.mh-buy__qty .mh-qty__input::-webkit-outer-spin-button,
.mh-buy__qty .mh-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mh-buy__qty .mh-qty__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--mh-focus); }

.mh-buy__total {
	flex-basis: 100%;
	margin: 2px 0 0;
	font-size: 0.9rem;
	color: var(--mh-ink-soft);
}

.mh-buy__total strong { color: var(--mh-ink); font-weight: 800; unicode-bidi: isolate; }

.product-container .btn-add-to-cart,
.mh-sticky-cta .btn-add-to-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--mh-radius);
	background: var(--mh-ink);
	border: 1px solid var(--mh-ink);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	width: auto !important;
	margin: 0 !important;
	box-shadow: 0 6px 18px rgba(2, 70, 91, 0.22);
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.product-container .btn-add-to-cart .icon,
.mh-sticky-cta .btn-add-to-cart .icon { width: 20px; height: 20px; stroke: currentColor; }
.product-container .btn-add-to-cart > span,
.mh-sticky-cta .btn-add-to-cart > span { margin: 0 !important; display: inline-flex; }
.product-container .btn-add-to-cart:hover,
.mh-sticky-cta .btn-add-to-cart:hover { background: var(--mh-ink-hover); border-color: var(--mh-ink-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(2, 70, 91, 0.28); }
.product-container .btn-add-to-cart:active,
.mh-sticky-cta .btn-add-to-cart:active { transform: translateY(0) scale(0.98); box-shadow: var(--mh-shadow-sm); }
.product-container .btn-add-to-cart:focus-visible,
.mh-sticky-cta .btn-add-to-cart:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 3px; }
.product-container .btn-add-to-cart:disabled,
.product-container .btn-add-to-cart[aria-busy="true"],
.mh-sticky-cta .btn-add-to-cart[aria-busy="true"] { opacity: 0.75; cursor: progress; transform: none; }

/* the «added» state: green with a check mark for a moment (house_mas_web.js mh:added) */
.product-container .btn-add-to-cart.is-added,
.product-container .btn-add-to-cart.is-added:hover,
.mh-sticky-cta .btn-add-to-cart.is-added,
.mh-sticky-cta .btn-add-to-cart.is-added:hover { background: var(--mh-success); border-color: var(--mh-success); color: #fff; transform: none; box-shadow: 0 6px 18px rgba(39, 107, 67, 0.25); }
.product-container .btn-add-to-cart .mh-buy__check,
.mh-sticky-cta .btn-add-to-cart .mh-buy__check { display: none; }
.product-container .btn-add-to-cart.is-added .mh-buy__check,
.mh-sticky-cta .btn-add-to-cart.is-added .mh-buy__check { display: inline-flex; }
.product-container .btn-add-to-cart.is-added .icon,
.mh-sticky-cta .btn-add-to-cart.is-added .icon { display: none; }
.mh-buy__check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.product-details .mh-sales-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: var(--mh-radius);
	background: var(--mh-info-soft);
	border-inline-start: 3px solid var(--mh-ink);
	color: var(--mh-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.product-details .product-description {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--mh-line);
	color: var(--mh-text);
	line-height: 1.8;
	unicode-bidi: plaintext;
}

.product-details .product-description > p:first-child b,
.product-details .product-description > p:first-child strong { color: var(--mh-ink); font-weight: 800; }
.product-details .product-description ul { padding-inline-start: 1.2rem; margin: 0.4rem 0 0; }
.product-details .product-description li { margin-bottom: 0.25rem; }
.product-details .product-description li::marker { color: var(--mh-accent); }

/* --- specifications --- */
.item-website-specification .col-md-11 { max-width: 100%; flex: 0 0 100%; padding: 0; }
.item-website-specification .product-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px !important; }
.item-website-specification .table { margin: 0; border-collapse: separate; border-spacing: 0; }
.item-website-specification .table td { padding: 10px 14px; border-top: 0; border-bottom: 1px solid var(--mh-line); vertical-align: top; font-size: 0.93rem; }
.item-website-specification .table tr:last-child td { border-bottom: 0; }
.item-website-specification .table tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.55); }
.item-website-specification .spec-label { width: 36%; color: var(--mh-ink-soft); font-weight: 600; }
.item-website-specification .spec-content { color: var(--mh-text); font-weight: 600; unicode-bidi: plaintext; }
.item-website-specification .table tr:first-child td:first-child { border-start-start-radius: var(--mh-radius); }
.item-website-specification .table tr:first-child td:last-child { border-start-end-radius: var(--mh-radius); }

/* --- sticky buy bar: phones only, appears when the main button has scrolled away (mount_buy_box) --- */
.mh-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 1040;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--mh-glass-strong);
	border-top: 1px solid var(--mh-glass-line);
	box-shadow: 0 -8px 24px rgba(2, 30, 40, 0.12);
	-webkit-backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
	backdrop-filter: blur(var(--mh-blur)) saturate(1.5);
	transform: translateY(110%);
	transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mh-sticky-cta__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.mh-sticky-cta__name { font-size: 0.82rem; font-weight: 700; color: var(--mh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-sticky-cta__price { font-size: 1.05rem; font-weight: 800; color: var(--mh-accent-deep); unicode-bidi: isolate; direction: ltr; align-self: flex-start; }
.mh-sticky-cta .btn-add-to-cart { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

@media (max-width: 767.98px) {
	.mh-sticky-cta { display: flex; }
	.mh-sticky-cta.is-visible { transform: none; }
	html.mh-lightbox-open .mh-sticky-cta { transform: translateY(110%); }
	/* the bar covers the bottom of the footer, not a cream band under it */
	body.product-page footer.web-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
	/* the «added» toast sits above the bar, not on it */
	body.product-page .mh-toast { inset-block-end: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.product-details { padding-inline-start: 0; }
	.product-container.item-main { padding: 14px; }
	.mh-gallery__thumb { width: 60px; height: 60px; }
	.product-details .item-cart { padding: 14px 14px 4px; }
	.product-container .btn-add-to-cart { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
	.mh-gallery__zoom { opacity: 1; transform: none; }
}

/* --- Lightbox: the whole screen, navy glass behind, the picture in the middle, thumbnails under it --- */
html.mh-lightbox-open, html.mh-lightbox-open body { overflow: hidden !important; }

.mh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	flex-direction: column;
	color: #fff;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.mh-lightbox.is-open { display: flex; }
.mh-lightbox.is-shown { opacity: 1; }

.mh-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 20, 28, 0.86);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.mh-lightbox__backdrop { background: rgba(2, 20, 28, 0.96); }
}

.mh-lightbox__top,
.mh-lightbox__stage,
.mh-lightbox__thumbs { position: relative; z-index: 1; }

.mh-lightbox__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px clamp(14px, 3vw, 28px);
}

.mh-lightbox__count {
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--mh-on-ink-soft);
	unicode-bidi: isolate;
	direction: ltr;
}

.mh-lightbox__actions { display: flex; gap: 8px; }

.mh-lightbox__btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--mh-glass-dark-line);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.mh-lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.mh-lightbox__btn:active { transform: scale(0.94); }
.mh-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mh-lightbox__btn[aria-pressed="true"] { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-on-accent); }
.mh-lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mh-lightbox__stage {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(56px, 8vw, 96px);
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.mh-lightbox__frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mh-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	/* a white sheet under the picture: product photos with a transparent ground would otherwise float on the navy glass */
	background: var(--mh-bg);
	padding: clamp(8px, 1.5vw, 20px);
	border-radius: var(--mh-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	cursor: zoom-in;
	transform-origin: center;
	transition: opacity 0.26s ease, transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: transform, opacity;
}

.mh-lightbox__img.is-switching { opacity: 0; transform: scale(0.985); }
.mh-lightbox.is-zoomed .mh-lightbox__img { cursor: zoom-out; transition: opacity 0.26s ease; }
.mh-lightbox.is-zoomed.is-panning .mh-lightbox__img { cursor: grabbing; }
.mh-lightbox.is-zoomed .mh-lightbox__stage { touch-action: none; }

.mh-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--mh-glass-dark-line);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}

.mh-lightbox__nav:hover { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-on-accent); }
.mh-lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.mh-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mh-lightbox__nav--prev { inset-inline-start: clamp(10px, 2vw, 24px); }
.mh-lightbox__nav--next { inset-inline-end: clamp(10px, 2vw, 24px); }
.mh-lightbox__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .mh-lightbox__nav svg { transform: scaleX(-1); }
.mh-lightbox.is-zoomed .mh-lightbox__nav,
.mh-lightbox--single .mh-lightbox__nav,
.mh-lightbox--single .mh-lightbox__thumbs { opacity: 0; pointer-events: none; }

.mh-lightbox__thumbs {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px clamp(14px, 3vw, 28px) calc(16px + env(safe-area-inset-bottom, 0px));
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.mh-lightbox__thumbs::-webkit-scrollbar { display: none; }

.mh-lightbox__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--mh-radius);
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	opacity: 0.55;
	overflow: hidden;
	scroll-snap-align: center;
	transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mh-lightbox__thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.mh-lightbox__thumb.is-active { opacity: 1; border-color: var(--mh-accent); }
.mh-lightbox__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mh-lightbox__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; display: block; }

@media (max-width: 767.98px) {
	.mh-lightbox__stage { padding: 0 8px; }
	.mh-lightbox__nav { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.14); }
	.mh-lightbox__nav--prev { inset-inline-start: 6px; }
	.mh-lightbox__nav--next { inset-inline-end: 6px; }
	.mh-lightbox__thumb { width: 52px; height: 52px; }
	.mh-lightbox__img { border-radius: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.mh-gallery__img, .mh-gallery .website-image, .mh-gallery__zoom, .mh-gallery__thumb, .mh-lightbox, .mh-lightbox__img,
	.mh-lightbox__nav, .mh-lightbox__thumb, .mh-sticky-cta, .product-container .btn-add-to-cart, .mh-sticky-cta .btn-add-to-cart { transition: none !important; }
	.mh-gallery__stage:hover .mh-gallery__img { transform: none; }
}

/* --- صفحة المنتجات: شريط الأدوات والترقيم والفلاتر (webshop product_ui + house_mas_web.js patch_listing) ----- */
/* webshop's toolbar: its second search box goes (the header has one); the results count takes its place, then the
   filters button (phones) and webshop's view toggles */
.item-card-group-section .toolbar.mh-toolbar { align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.mh-toolbar > .input-group { display: none !important; }
.mh-toolbar__count { flex: 1 1 auto; min-height: 1.5rem; font-weight: 700; font-size: 0.95rem; color: var(--mh-ink-soft); }
.mh-toolbar .toggle-container { flex: 0 0 auto; width: auto; max-width: none; display: flex; gap: 6px; }
.mh-toolbar #toggle-view { float: none; }
.mh-toolbar #toggle-view .btn { margin: 0 !important; }
.mh-filter-toggle { display: none; }

/* the pager, centred under the products: a page number between two pill buttons */
.mh-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 28px 0 8px; }
.mh-pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.6rem 1.25rem;
	border-radius: 999px;
	border: 1px solid var(--mh-line-strong);
	background: var(--mh-glass-strong);
	color: var(--mh-ink);
	font-weight: 700;
	font-size: 0.95rem;
	box-shadow: var(--mh-shadow-sm);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.mh-pager__btn > * { pointer-events: none; }
.mh-pager__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mh-pager__btn--prev { flex-direction: row-reverse; }
.mh-pager__btn--prev svg { transform: scaleX(-1); }
[dir="rtl"] .mh-pager__btn svg { transform: scaleX(-1); }
[dir="rtl"] .mh-pager__btn--prev svg { transform: none; }
.mh-pager__btn:hover:not(:disabled) { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; transform: translateY(-1px); }
.mh-pager__btn:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; }
.mh-pager__btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.mh-pager__state { font-weight: 700; color: var(--mh-ink); font-size: 0.95rem; min-width: 7rem; text-align: center; }

/* chips of the active filters, above the products; each one takes its filter off */
.mh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 14px; }
.mh-chips[hidden] { display: none; }
.mh-chips__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--mh-ink);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	transition: background 0.15s ease;
}
.mh-chips__chip > * { pointer-events: none; }
.mh-chips__chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mh-chips__chip:hover { background: var(--mh-accent-deep); color: #fff; }
.mh-chips__chip:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; }
.mh-chips__clear { margin-inline-start: 4px; font-weight: 700; font-size: 0.85rem; color: var(--mh-accent-deep); }
.mh-chips__clear:hover { color: var(--mh-cta-hover); text-decoration: underline; }

/* the filters column: one glass panel that stays in view, blocks that fold, boxes in the brand colour */
.filters-section { position: sticky; top: 16px; }
.filters-section .title-section { border-bottom: 1px solid var(--mh-line); margin-bottom: 14px !important; padding-bottom: 6px; }
.filters-section .filters-title { font-size: 1.05rem; margin-bottom: 0.5rem !important; }
.filters-section .clear-filters {
	margin-bottom: 0.5rem !important;
	padding: 2px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--mh-accent-deep);
}
.filters-section .clear-filters:hover { border-color: var(--mh-accent-deep); color: var(--mh-cta-hover); text-decoration: none; }
.filters-section .filter-block { padding-bottom: 12px !important; margin-bottom: 12px !important; border-bottom: 1px solid var(--mh-line); }
.filters-section .filter-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px !important;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mh-ink);
	cursor: pointer;
	user-select: none;
}
.filters-section .filter-label::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-inline-end: 6px;
	border-right: 2px solid var(--mh-ink-soft);
	border-bottom: 2px solid var(--mh-ink-soft);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}
.filters-section .filter-label:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; border-radius: 4px; }
.filters-section .filter-block.is-collapsed .filter-label::after { transform: rotate(-135deg); }
.filters-section .filter-block.is-collapsed .filter-options,
.filters-section .filter-block.is-collapsed .filter-lookup-input { display: none; }
.filters-section .filter-lookup-wrapper { padding: 0; border: 0; }
.filters-section .checkbox { margin: 0; }
.filters-section .checkbox label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 5px 0;
	min-height: 0;
	font-weight: 500;
	cursor: pointer;
}
.filters-section .product-filter {
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	accent-color: var(--mh-accent-deep);
	cursor: pointer;
}
.filters-section .checkbox .label-area { font-size: 0.92rem; color: var(--mh-text); padding: 0; }
.filters-section .checkbox label:hover .label-area { color: var(--mh-ink); }
.filters-section .filter-lookup-input { border: 1px solid var(--mh-line-strong); border-radius: var(--mh-radius); background: var(--mh-bg); }

/* phones: the filters are a sheet from the bottom; its head, foot and backdrop exist only there */
.mh-sheet__head, .mh-sheet__foot, .mh-sheet-backdrop { display: none; }

@media (max-width: 767px) {
	.mh-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 0.45rem 0.9rem;
		border: 1px solid var(--mh-line-strong);
		border-radius: 999px;
		background: var(--mh-glass-strong);
		color: var(--mh-ink);
		font-weight: 700;
		font-size: 0.9rem;
	}
	.mh-filter-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
	.mh-filter-toggle:focus-visible { outline: 2px solid var(--mh-focus); outline-offset: 2px; }
	.mh-filter-toggle__n {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--mh-accent-deep);
		color: #fff;
		font-size: 0.75rem;
		font-weight: 800;
	}
	.mh-filter-toggle__n[hidden] { display: none; }

	#product-filters.filters-section { position: static; }
	#product-filters.mh-sheet-open {
		display: block !important;
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1095;
		max-height: 86vh;
		overflow-y: auto;
		margin: 0 !important;
		padding: 0 16px 16px;
		border-radius: 20px 20px 0 0;
		border: 0;
		background: var(--mh-bg);
		box-shadow: 0 -12px 40px rgba(2, 30, 40, 0.25);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		animation: mh-sheet-up 0.22s ease-out;
	}
	#product-filters.mh-sheet-open .title-section { display: none !important; }
	.mh-sheet-open .mh-sheet__head {
		display: flex;
		align-items: center;
		gap: 10px;
		position: sticky;
		top: 0;
		z-index: 1;
		padding: 14px 0 10px;
		margin-bottom: 12px;
		border-bottom: 1px solid var(--mh-line);
		background: var(--mh-bg);
	}
	.mh-sheet__title { flex: 1 1 auto; font-weight: 800; font-size: 1.05rem; color: var(--mh-ink); }
	.mh-sheet__clear { font-weight: 700; font-size: 0.85rem; color: var(--mh-accent-deep); }
	.mh-sheet__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: 1px solid var(--mh-line-strong);
		border-radius: 999px;
		background: var(--mh-bg);
		color: var(--mh-ink);
	}
	.mh-sheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
	.mh-sheet-open .mh-sheet__foot {
		display: block;
		position: sticky;
		bottom: 0;
		margin-top: 8px;
		padding: 12px 0 0;
		border-top: 1px solid var(--mh-line);
		background: var(--mh-bg);
	}
	.mh-sheet__show { width: 100%; }
	.mh-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1094; background: rgba(2, 30, 40, 0.45); }
	.mh-sheet-backdrop[hidden] { display: none; }
	body.mh-sheet-lock { overflow: hidden; }

	/* the list view on a phone: a small picture at the start, the text beside it, the button under them */
	.products-list { margin-inline: 0 !important; }
	.list-row { flex-wrap: nowrap; align-items: flex-start; padding: 12px !important; }
	.list-row > .list-image { flex: 0 0 92px; max-width: 92px; height: 92px; margin-inline-end: 12px; padding: 0; }
	/* the body is a column: webshop's title wrapper dissolves (display: contents) so the button can go last */
	.list-row > .col-10 { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; padding: 0; display: flex; flex-direction: column; }
	.list-row > .col-10 > div[style] { display: contents !important; }
	.list-row .col-8[style] { flex: none; max-width: 100%; margin: 0 !important; padding: 0; }
	.list-row .cart-action-container { order: 10; flex: none; max-width: 100%; display: flex; justify-content: flex-start; margin-top: 10px; padding: 0; }
	.list-row .product-price { margin-top: 4px; }
	.list-row .btn-add-to-cart-list { visibility: visible; margin: 0; }
	.list-row .product-code { font-size: 0.8rem; }
}

@keyframes mh-sheet-up {
	from { transform: translateY(24px); opacity: 0.6; }
	to { transform: none; opacity: 1; }
}

/* the grid on a phone: two cards a row; the pager is one row of three: a button, the page, a button */
@media (max-width: 575px) {
	.mh-pager { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
	.mh-pager__btn { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
	.mh-pager__state { min-width: 0; font-size: 0.9rem; }
	#products-grid-area { margin-inline: -6px !important; }
	#products-grid-area .item-card { flex: 0 0 50%; max-width: 50%; min-width: 0; padding: 0 6px; margin-bottom: 12px; } /* webshop: min-width 300px */
	.item-card-group-section .card-img-container { height: 150px; margin: 6px 6px 0; }
	.item-card-group-section .card-img { max-height: 150px; margin-top: 0.5rem; }
	.item-card-group-section .no-image { height: 150px; }
	.item-card .card-body { padding: 10px; }
	.item-card .product-title { font-size: 0.9rem; line-height: 1.35; }
	.item-card .btn-add-to-cart-list { visibility: visible; }
}

/* --- صفحة المنتجات: البطاقات (2026-11-10) -----------------------------------------------------------------------
   One card everywhere: the listing's webshop card looks like the search card (.mh-card) — a white card, the picture
   flush with its top edge on a white square, then name, group, price, stock and the button at the bottom. The grid
   is a real CSS grid (webshop's col-sm-4 with min-width 300px left an empty column), and webshop's two <br> under
   the toolbar are gone, so the cards start right under the count and the chips. */
#product-listing > br { display: none; }
.item-card-group-section .toolbar.mh-toolbar { margin-bottom: 14px; }
.item-card-group-section .mh-chips { margin-top: 0; }

#products-grid-area {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
	margin: 0 !important;
}
#products-grid-area.hidden { display: none; }
#products-grid-area .item-card { flex: none; width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; }

.item-card .card,
.list-row {
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	box-shadow: var(--mh-shadow-sm);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.item-card .card { display: flex; flex-direction: column; margin: 0; }

.item-card-group-section .card-img-container {
	position: relative;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	border-radius: 0;
	border-bottom: 1px solid var(--mh-line);
	background: #fff;
}
.item-card-group-section .card-img-container > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.item-card-group-section .card-img { width: 100%; height: 100%; max-height: none; margin: 0; object-fit: contain; }
.item-card-group-section .card-img-container .no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	font-size: 1.6rem;
}

.item-card .card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px 14px 14px; }
.item-card .card-body > div:first-child { margin-top: 0 !important; }
.item-card .product-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3em;
}
.item-card .product-category { margin: 0; }
.item-card .product-price { margin-top: 6px; font-size: 1.05rem; font-weight: 800; }
.item-card .out-of-stock, .item-card .product-info-green { margin: 0 !important; font-size: 0.85rem; }
/* the button sits at the card's bottom whatever the text above it; shown always (webshop: on hover only) */
.item-card .card-body > .btn-add-to-cart-list { margin-top: auto !important; }
.item-card .card-body > .out-of-stock + .btn-add-to-cart-list,
.item-card .card-body > .product-price + .btn-add-to-cart-list { padding-top: 0.55rem; }
.item-card .card-body > a:last-child { margin: 0; }
.item-card .card-body > a:last-child .btn-add-to-cart-list { margin-top: 8px !important; }
.item-card .card-body > .btn-add-to-cart-list.hidden + a:last-child { margin-top: auto; }
.item-card .btn-add-to-cart-list {
	visibility: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 0.5rem 0.6rem;
	border-radius: var(--mh-radius);
	font-size: 0.9rem;
	font-weight: 700;
	white-space: normal;
	line-height: 1.3;
}
.item-card .btn-add-to-cart-list.hidden { display: none; }
.item-card .btn-add-to-cart-list > span { margin: 0 !important; display: inline-flex; }
.item-card .product-price { margin-bottom: 10px; }
.item-card .out-of-stock { margin-top: -8px !important; margin-bottom: 10px !important; }

/* list view: the picture is a white square on the row's start edge, no second frame around it */
.products-list.mt-6 { margin-top: 0 !important; margin-inline: 0 !important; }
.list-row { align-items: center; padding: 12px !important; margin-bottom: 12px !important; }
.list-row .list-image {
	flex: 0 0 112px;
	max-width: 112px;
	height: 112px;
	padding: 0;
	border: 1px solid var(--mh-line) !important;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.list-row .list-image > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.list-row .list-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; padding: 6px; }
.list-row .no-image-list { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 0; font-size: 1.3rem; }
.list-row .list-image + [class*="col-"] { flex: 1 1 0; max-width: none; }
.list-row .btn-add-to-cart-list { visibility: visible; }

/* the filters panel: starts level with the toolbar, a white panel like the cards, readable section titles */
.filters-section {
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	box-shadow: var(--mh-shadow-sm);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.filters-section .title-section { margin-bottom: 12px !important; padding-bottom: 10px; align-items: center !important; }
.filters-section .filters-title,
.filters-section .clear-filters { margin-bottom: 0 !important; }
#product-filters .filter-block .filter-label { font-size: 0.92rem !important; font-weight: 700 !important; color: var(--mh-ink); text-transform: none; letter-spacing: 0; }

@media (max-width: 575px) {
	#products-grid-area { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-inline: 0 !important; }
	#products-grid-area .item-card { flex: none; max-width: none; padding: 0; margin: 0; }
	.item-card-group-section .card-img-container { height: auto; margin: 0; }
	.item-card-group-section .card-img { max-height: none; margin: 0; }
	.item-card-group-section .no-image { height: auto; }
	.item-card .card-body { padding: 10px; }
	.item-card .btn-add-to-cart-list { font-size: 0.82rem; padding: 0.45rem 0.4rem; }
	.item-card .btn-add-to-cart-list > span { display: none; }
	.list-row .list-image { flex: 0 0 92px; max-width: 92px; height: 92px; }
}

/* --- تفاصيل صغيرة (مراجعة المتجر 2026-11-10) -------------------------------------------------------------------
   the basket's rows: no rule against the card's own top and bottom edges; a product with no description: no lone
   rule under the sales note; the search card reads like the listing card (two-line name, the same placeholder). */
.mh-cart__row:first-child { border-top: 0; }
.mh-cart__row:last-child { border-bottom: 0; }
.product-details .product-description:not(:has(> *)) { border-top: 0; margin-top: 0; padding-top: 0; }
.mh-card__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3em;
	font-size: 0.95rem;
}
.item-card-group-section .card-img-container .no-image,
.list-row .no-image-list { background: var(--mh-placeholder); color: var(--mh-ink-soft); font-weight: 800; }
/* the product page on a phone: the details column sat against the card's start edge with an empty gutter on the
   other side (webshop's desktop column paddings) */
@media (max-width: 767px) {
	.product-container .product-details { flex: 0 0 100%; width: 100% !important; max-width: 100% !important; padding-inline: 16px !important; margin-inline: 0 !important; }
	.product-container .product-details .item-cart { margin-inline: 0 !important; }
}

/* --- «من نحن» /about والقسم التعريفي في الرئيسية (house_mas/storefront/about.py، brand_pages/about.html) ------------- */
/* the Web Page's own «text_align: Left» (an inline style on its article) must not decide: text follows the language */
.mh-about { color: var(--mh-text); text-align: start; }
/* every text is in the page twice (<span lang="ar"> and <span lang="en">): only the visitor's language shows */
html[lang="ar"] .mh-about [lang="en"],
html[lang="en"] .mh-about [lang="ar"] { display: none; }
/* the hero sits right under the menu: no empty breadcrumbs row above it (as on the home page) */
.page-content-wrapper:has(.mh-about) .page-breadcrumbs { display: none; }
.mh-about__hero {
	background:
		radial-gradient(42% 90% at 92% 0%, rgba(242, 101, 34, 0.45), transparent 70%),
		var(--mh-ink);
	color: var(--mh-on-ink);
	padding-block: clamp(36px, 7vw, 84px);
}
[dir="ltr"] .mh-about__hero {
	background:
		radial-gradient(42% 90% at 8% 0%, rgba(242, 101, 34, 0.45), transparent 70%),
		var(--mh-ink);
}
.mh-about__hero h1 { margin: 0; color: var(--mh-on-ink); font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; line-height: 1.2; }
.mh-about__hero h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 16px;
	border-radius: 2px;
	background: var(--mh-accent);
}
.mh-about__tagline { margin: 16px 0 0; max-width: 40ch; color: var(--mh-on-ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; line-height: 1.7; }

.mh-about__body.mh-wrap { max-width: 900px; padding-block: clamp(28px, 5vw, 56px) 0; display: grid; gap: clamp(22px, 3.5vw, 34px); }
.mh-about__block { padding-inline-start: 18px; border-inline-start: 4px solid var(--mh-accent); }
.mh-about__block h2,
.mh-about__commit h2 { margin: 0 0 10px; color: var(--mh-ink); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; }
.mh-about__block p { margin: 0; font-size: 1.05rem; line-height: 1.95; }

.mh-about__commit.mh-wrap { padding-block: clamp(32px, 5vw, 56px) 0; }
.mh-about__commit h2 { margin-bottom: 18px; }
.mh-about__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mh-about__card {
	padding: 20px;
	background: var(--mh-bg);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius-lg);
	box-shadow: var(--mh-shadow-sm);
}
.mh-about__icon { display: inline-flex; width: 46px; height: 46px; padding: 9px; border-radius: 12px; background: var(--mh-muted); color: var(--mh-accent-deep); }
.mh-about__icon svg { width: 100%; height: 100%; }
.mh-about__card h3 { margin: 14px 0 6px; color: var(--mh-ink); font-size: 1.1rem; font-weight: 800; }
.mh-about__card p { margin: 0; line-height: 1.8; color: var(--mh-text); }

.mh-about__member { margin: clamp(32px, 5vw, 56px) 0 0; padding-block: 22px clamp(28px, 4vw, 44px); border-top: 1px solid var(--mh-line); text-align: center; color: var(--mh-ink-soft); font-weight: 700; }

@media (max-width: 991px) { .mh-about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
	.mh-about__cards { grid-template-columns: 1fr; }
	.mh-about__block { padding-inline-start: 14px; }
}

/* the home page's short introduction: one glass card, the text, a «Read more» button */
.mh-about-intro { padding-block: 0 var(--mh-section-y); }
.mh-about-intro__card { display: grid; justify-items: start; gap: 14px; padding: clamp(20px, 4vw, 40px); border-radius: var(--mh-radius-xl); }
.mh-about-intro__card p { margin: 0; max-width: 78ch; font-size: 1.05rem; line-height: 1.95; }
.mh-about-intro .mh-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .mh-about-intro .mh-btn svg { transform: scaleX(-1); }

/* --- شريط العلامة تحت الشرائح: شعار Deli وجملة «صُمّمت في ألمانيا» (www/home.html: brand) ------------------------------ */
.mh-brandstrip { background: var(--mh-bg); border-bottom: 1px solid var(--mh-line); }
.mh-brandstrip__in { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 44px); padding-block: clamp(18px, 3vw, 30px); }
.mh-brandstrip__logo { width: auto; height: clamp(54px, 7vw, 84px); flex: none; }
.mh-brandstrip__rule { align-self: stretch; width: 2px; border-radius: 1px; background: var(--mh-line); }
.mh-brandstrip__text { display: grid; gap: 2px; margin: 0; }
.mh-brandstrip__text strong { color: var(--mh-ink); font-size: clamp(1.3rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.3; }
.mh-brandstrip__text span { color: var(--mh-ink-soft); font-size: clamp(0.9rem, 1.6vw, 1.05rem); font-weight: 600; }
/* the home's first section keeps its own top padding below the strip */
@media (max-width: 420px) {
	.mh-brandstrip__in { gap: 14px; }
	.mh-brandstrip__logo { height: 46px; }
	.mh-brandstrip__text strong { font-size: 1.15rem; }
}

/* --- الترويسة: شعار Deli في طرف صف الشعار، وزر الحساب الواحد (2026-11-14، طلب المالك) --------------------------------
   the account button carries both labels; .mh-is-distributor (navbar script) shows «Approved distributor» with a check,
   as a navy pill so the status reads at a glance */
.mh-header__deli { display: inline-flex; align-items: center; margin-inline-start: 10px; padding-inline-start: 14px; border-inline-start: 1px solid var(--mh-line); }
.mh-header__deli img { display: block; width: auto; height: 34px; }
.mh-is-distributor .mh-action--account { background: var(--mh-ink); color: var(--mh-on-ink); padding-inline: 14px; }
.mh-is-distributor .mh-action--account:hover { background: var(--mh-ink-hover); color: var(--mh-on-ink); }
.mh-action__check { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 991px) {
	.mh-header__deli { margin-inline-start: 2px; padding-inline-start: 6px; }
	.mh-header__deli img { height: 24px; }
}
/* a phone: the logo, the icons, Deli and the menu button on one row — Deli smaller, the icons tighter */
@media (max-width: 575px) {
	.mh-header__deli { margin-inline-start: 0; padding-inline-start: 0; border: 0; }
	.mh-header__deli img { height: 18px; }
	.mh-actions { gap: 0; }
	.mh-action { padding: 8px 7px; }
	/* on a phone the account button keeps its icon only: the check tells a distributor apart */
	.mh-is-distributor .mh-action--account { padding-inline: 10px; }
}
