/* App shell (client directive 2026-08-23, modelled on alzumarud-iq.com): the
   storefront behaves like a phone app on every screen size — sticky app bar
   (screen title, back button on inner screens), a hidden side drawer opened
   by the burger, and a fixed home: compact identity hero → every category as
   a large tile → services → customer reviews slider. Tokens only. */

.kh-app {
	--appbar-h: 56px;
	--drawer-w: 300px;
	--container-max: 1100px;
	--container-pad: 16px;
}

/* ---------- layout ---------- */
/* The off-canvas drawer sits past the start edge; clip so it never widens the page. */
html { overflow-x: hidden; overflow-x: clip; }
.app__body { min-height: 100svh; display: flex; flex-direction: column; }
#kh-content { flex: 1; }

/* ---------- app bar ---------- */
.appbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: var(--space-1);
	height: var(--appbar-h);
	padding-inline: var(--space-2);
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid var(--color-border);
}
.appbar .icon-btn { border-radius: var(--radius-pill); color: var(--color-text); }
/* Back: solid primary pill, arrow + the word "رجوع" — a real button, unmistakable on every inner screen. */
.appbar__back {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 42px;
	padding: 0 var(--space-4) 0 var(--space-3);
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--shadow-card);
}
.appbar__back svg { width: 22px; height: 22px; stroke-width: 2.4; }
.appbar__back:hover { background: var(--color-primary-hover); color: #fff; }
.appbar__back:active { transform: scale(0.97); }
/* Home: green disc right beside "back" — one tap straight to the front page from any inner screen. */
.appbar .appbar__home { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-card); display: inline-flex; align-items: center; justify-content: center; }
.appbar .appbar__home:hover { background: var(--color-primary-hover); color: #fff; }
.appbar .appbar__home svg { width: 22px; height: 22px; stroke-width: 2.2; }
.appbar__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Keep the title optically centred: pad the side that has no back button. */
.appbar__title:first-child { padding-inline-start: 44px; }
.appbar__actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }

/* ---------- drawer (hidden until the burger opens it, every screen size) ---------- */
.drawer__scrim {
	position: fixed;
	inset: 0;
	z-index: 69;
	background: rgba(24, 32, 25, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms var(--ease), visibility 0s linear 250ms;
}
.drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 70;
	width: min(var(--drawer-w), 86vw);
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	box-shadow: var(--shadow-lift);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 280ms var(--ease), visibility 0s linear 280ms;
}
html[dir='ltr'] .drawer { transform: translateX(-100%); }
html.is-drawer-open .drawer { transform: none; visibility: visible; transition: transform 280ms var(--ease); }
html.is-drawer-open .drawer__scrim { opacity: 1; visibility: visible; transition: opacity 250ms var(--ease); }
html.is-drawer-open, html.is-drawer-open body { overflow: hidden; }
.drawer__close { position: absolute; top: var(--space-2); inset-inline-end: var(--space-2); z-index: 1; color: #fff; border-radius: var(--radius-pill); }
.drawer__close:hover { background: rgba(255, 255, 255, 0.16); }
.drawer__brand {
	display: grid;
	justify-items: center;
	gap: var(--space-2);
	padding: calc(var(--space-8) + env(safe-area-inset-top)) var(--space-5) var(--space-6);
	text-align: center;
	color: #fff;
	background: linear-gradient(165deg, #17251c, var(--color-primary-deep) 55%, #1d2f24);
}
.drawer__logo {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	overflow: hidden;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}
/* The uploaded logo FILLS the circle (client: "سيركل مضبوط") — cover, not letterboxed contain. */
.drawer__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.drawer__name { font-family: var(--font-head); font-size: var(--text-body-lg); margin-top: var(--space-1); }
.drawer__tag { font-size: var(--text-small); color: #c4d0c1; margin-bottom: var(--space-2); }
.drawer__nav { display: grid; padding: var(--space-3); gap: 2px; }
.drawer__nav a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 48px;
	padding-inline: var(--space-3);
	border-radius: var(--radius-card);
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
	transition: background var(--dur-control) var(--ease), color var(--dur-control) var(--ease);
}
.drawer__nav a:hover { background: var(--color-secondary-soft); color: var(--color-primary); }
.drawer__nav a[aria-current] { background: var(--color-secondary-soft); color: var(--color-primary); font-weight: 700; }
.drawer__nav .btn__ico { width: 20px; height: 20px; color: var(--color-primary); }
.drawer__chev { margin-inline-start: auto; color: var(--color-text-muted); display: inline-flex; }
.drawer__chev .btn__ico { width: 16px; height: 16px; color: inherit; }
.drawer__foot { margin-top: auto; padding: var(--space-4) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); display: grid; gap: var(--space-2); }
.drawer__social { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.drawer__addr { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font-size: var(--text-small); color: var(--color-text-muted); }
.drawer__addr .btn__ico { flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; color: var(--color-primary); }
.basket-fab .btn__ico { width: 26px; height: 26px; }

/* ---------- home hero slider (manager-fed; falls back to the compact band) ---------- */
.hslider {
	position: relative;
	margin-top: var(--space-4);
	border-radius: var(--radius-sheet);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	background: var(--color-primary-deep);
	--hslider-h: clamp(240px, 52vw, 420px);
}
.hslider--small { --hslider-h: clamp(190px, 42vw, 320px); }
.hslider--large { --hslider-h: clamp(300px, 68vw, 560px); }
.hslider__track {
	display: flex;
	height: var(--hslider-h);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.hslider__track::-webkit-scrollbar { display: none; }
.hslide {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.hslide__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hslide__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: clamp(40px, 9vw, 64px) var(--space-5) var(--space-4);
	background: linear-gradient(to top, rgba(10, 28, 16, 0.78), rgba(10, 28, 16, 0));
	color: #fff;
}
.hslide__title { margin: 0 0 2px; font-size: clamp(1.2rem, 4.2vw, 1.9rem); font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hslide__subtitle {
	margin: 0;
	font-size: var(--text-small);
	opacity: 0.94;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hslider__logo {
	position: absolute;
	top: var(--space-3);
	inset-inline-start: var(--space-3);
	width: clamp(52px, 12vw, 76px);
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	object-fit: cover;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.18);
}
.hslider__dots {
	position: absolute;
	inset-inline: 0;
	bottom: var(--space-2);
	display: flex;
	justify-content: center;
	gap: 6px;
}
.hslider__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: width 200ms, background-color 200ms;
}
.hslider__dots button[aria-current='true'] { width: 22px; border-radius: 999px; background: #fff; }
/* Text slides (no photos yet): animated placeholder gradients + marketing copy. */
.hslide--text { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hslide--text::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--tone-grad, linear-gradient(130deg, var(--color-primary-deep), var(--color-primary), var(--color-primary-deep)));
	background-size: 260% 260%;
	animation: hslide-pan 14s ease-in-out infinite alternate;
}
.hslide--text::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
		radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1), transparent 38%);
}
.hslide--tone-1 { --tone-grad: linear-gradient(130deg, #0b3d24, #12854b, #0b3d24); }
.hslide--tone-2 { --tone-grad: linear-gradient(130deg, #6d5a22, #b9973f, #6d5a22); }
.hslide--tone-3 { --tone-grad: linear-gradient(130deg, #123a2a, #2f9e6e, #123a2a); }
.hslide--tone-4 { --tone-grad: linear-gradient(130deg, #0f3f3f, #1b8a7c, #0f3f3f); }
.hslide__center { position: relative; z-index: 1; max-width: 34em; padding: var(--space-4) var(--space-5) var(--space-6); }
.hslide--text .hslide__title { font-size: clamp(1.35rem, 5vw, 2.3rem); margin-bottom: 6px; }
.hslide--text .hslide__subtitle { font-size: clamp(0.85rem, 3vw, 1.05rem); -webkit-line-clamp: 3; }
@keyframes hslide-pan {
	from { background-position: 0% 30%; }
	to { background-position: 100% 70%; }
}
@media (prefers-reduced-motion: reduce) {
	.hslider__track { scroll-behavior: auto; }
	.hslide--text::before { animation: none; }
}

/* ---------- compact identity hero (no image) ---------- */
.hero {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-4);
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-sheet);
	background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
	color: #fff;
	box-shadow: var(--shadow-card);
}
.hero__logo {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	object-fit: cover;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.hero__inner { min-width: 0; }
.hero__title { font-size: clamp(1.35rem, 4vw, 1.9rem); font-weight: 800; margin: 0 0 2px; }
.hero__subtitle {
	margin: 0;
	font-size: var(--text-small);
	opacity: 0.92;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (min-width: 768px) {
	.hero { justify-content: center; text-align: center; padding-block: var(--space-6); }
	.hero__logo { width: 88px; height: 88px; }
}

/* ---------- sections, app rhythm ---------- */
.kh-app .section { padding-block: var(--space-5); }
.kh-app .section--soft { background: transparent; }
.kh-app .section__title { font-size: 1.25rem; margin-bottom: var(--space-4); }
.kh-app .section__title::after { width: 36px; height: 3px; margin-top: 4px; }
.kh-app .shead { margin-bottom: var(--space-3); align-items: center; }

/* ---------- product grid + compact card ---------- */
/* Column counts, card colour, radius and image ratio are manager-adjustable (بيانات المشتل › مظهر الصفحة الرئيسية); the var() fallbacks are the theme defaults. */
.pgrid { display: grid; gap: var(--space-3); grid-template-columns: repeat(var(--grid-cols-m, 2), minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(var(--grid-cols-t, 3), minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(var(--grid-cols-d, 4), minmax(0, 1fr)); } }

.pcard {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: var(--space-2);
	background: var(--card-bg, var(--color-surface));
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius, var(--radius-card));
	box-shadow: var(--shadow-card);
	transition: border-color var(--dur-card) var(--ease);
}
.pcard:hover { border-color: var(--color-secondary); }
.pcard__media {
	position: relative;
	display: block;
	text-decoration: none;
	aspect-ratio: var(--card-ratio, 1);
	border-radius: calc(var(--card-radius, var(--radius-card)) - 4px);
	overflow: hidden;
	background: var(--color-secondary-soft);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--text-micro);
	text-align: center;
	background: repeating-linear-gradient(45deg, var(--color-secondary-soft), var(--color-secondary-soft) 12px, #f1f4f0 12px, #f1f4f0 24px);
}
.pcard__placeholder--large { aspect-ratio: 1; border-radius: var(--radius-media); }
.pcard__badge {
	position: absolute;
	top: var(--space-2);
	inset-inline-start: var(--space-2);
	background: var(--color-primary);
	color: #fff;
	font-size: var(--text-micro);
	padding: 2px var(--space-2);
	border-radius: var(--radius-control);
}
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-1) 0; }
.pcard__name {
	margin: 0;
	font-family: var(--font-ar);
	font-size: var(--text-small);
	font-weight: 600;
	line-height: 1.4;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pcard__name a { text-decoration: none; color: var(--color-text); }
.pcard__meta { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-micro); }
.pcard__rating { color: var(--color-accent); }
.pcard__foot { margin-top: auto; padding-top: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.pcard__price { margin: 0; font-weight: 700; font-size: var(--text-small); color: var(--color-primary); }
.pcard__actions { display: flex; gap: var(--space-1); margin-inline-start: auto; }
.ibtn {
	width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--dur-control) var(--ease), transform var(--dur-control) var(--ease), filter var(--dur-control) var(--ease);
}
.ibtn .btn__ico { width: 18px; height: 18px; }
.ibtn--view { background: var(--color-accent-bright); color: var(--color-text); }
.ibtn--view:hover { filter: brightness(0.92); color: var(--color-text); }
.ibtn--add { background: var(--color-primary); }
.ibtn--add:hover { background: var(--color-primary-hover); }
.ibtn--wa { background: var(--color-whatsapp); color: #fff; }
.ibtn--wa:hover { color: #fff; background: var(--color-primary-hover); }
.ibtn.is-added { background: var(--color-success); }
.ibtn:active { transform: scale(0.94); }

.avail { display: inline-flex; align-items: center; gap: 5px; font-size: inherit; color: var(--color-success); }
.avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail--limited { color: var(--color-accent); }
.avail--out, .avail--soon, .avail--on_order { color: var(--color-text-muted); }

/* ---------- category screen: grid only ---------- */
.catalog { padding-top: var(--space-4); padding-bottom: var(--space-8); }
.kh-app .page-numbers { margin-top: var(--space-6); }

/* ---------- product screen ---------- */
.kh-app .product { padding-top: var(--space-4); }
@media (max-width: 900px) {
	.kh-app .product__panel { padding: var(--space-4); }
	.kh-app .product__name { font-size: 1.3rem; }
	.kh-app .product__price { font-size: 1.5rem; }
	.kh-app .gallery__main { border-radius: var(--radius-card); }
}

/* ---------- services: one row of compact icon tiles ---------- */
.svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) { .svcs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); } }
.svc {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-2);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	text-align: center;
	min-width: 0;
}
.svc__ico {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-secondary-soft);
	color: var(--color-primary);
}
.svc__ico .btn__ico { width: 26px; height: 26px; stroke-width: 1.8; }
.svc__name { flex: 1; margin: 0; font-family: var(--font-ar); font-size: var(--text-small); font-weight: 700; line-height: 1.35; }
.svc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 36px;
	padding-inline: var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--color-whatsapp);
	color: #fff;
	font-size: var(--text-small);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--dur-control) var(--ease);
}
.svc__btn:hover { background: var(--color-primary-hover); color: #fff; }
.svc__btn .btn__ico { width: 15px; height: 15px; }

/* ---------- home search pill (under the hero) ---------- */
.home-search { padding-top: var(--space-4); }
.spill {
	position: relative;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 54px;
	padding: 6px;
	padding-inline-start: var(--space-4);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-card);
	transition: border-color var(--dur-control) var(--ease), box-shadow var(--dur-control) var(--ease);
}
.spill:focus-within { border-color: var(--color-primary); box-shadow: var(--shadow-card), 0 0 0 3px rgba(14, 124, 67, 0.18); }
.spill__ico { display: grid; place-items: center; flex-shrink: 0; color: var(--color-primary); }
.spill__ico .btn__ico { width: 20px; height: 20px; }
.spill input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--color-text); }
.spill input:focus { outline: none; }
.spill input::-webkit-search-cancel-button { -webkit-appearance: none; }
.spill__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding-inline: var(--space-4);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.spill__btn:hover { background: var(--color-primary-hover); }
.spill__btn .btn__ico { width: 18px; height: 18px; }
@media (max-width: 479px) { .spill__btn { width: 42px; padding: 0; } .spill__btn span { display: none; } }
.spill__suggest {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline: 0;
	z-index: 30;
	margin: 0;
	padding: var(--space-2);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-media);
	box-shadow: var(--shadow-lift);
	max-height: 340px;
	overflow-y: auto;
	text-align: start;
}
.spill__suggest[hidden] { display: none; }

/* ---------- category tiles = service tiles (client directive 2026-08-24) ---------- */
#categories { padding-block: var(--space-6) var(--space-5); }
#services { padding-top: 0; }
/* Flex (not grid) so an incomplete last row sits centred; same tile width as the services grid (3 per row on phones, 6 from tablet). */
.svcs--cats { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; }
.svcs--cats > li { display: grid; min-width: 0; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--space-2)) / var(--cols)); }
@media (min-width: 768px) { .svcs--cats { --cols: 6; } .svcs--cats > li { flex-basis: calc((100% - (var(--cols) - 1) * var(--space-3)) / var(--cols)); } }
.svc__count { font-size: var(--text-micro); color: var(--color-text-muted); line-height: 1; }
.svc--cat { text-decoration: none; color: var(--color-text); transition: border-color var(--dur-card) var(--ease), transform var(--dur-card) var(--ease), box-shadow var(--dur-card) var(--ease); }
.svc--cat:hover { color: var(--color-text); border-color: var(--color-secondary); }
@media (prefers-reduced-motion: no-preference) { .svc--cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
.svc__ico--photo { overflow: hidden; }
.svc__ico--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ornamental divider between the categories and the services row. */
.divider { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); font-size: var(--text-small); font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--color-border)); }
.divider::after { background: linear-gradient(to right, transparent, var(--color-border)); }
.divider span { display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-primary); }
.divider .btn__ico { width: 15px; height: 15px; }
@media (max-width: 360px) { .svc__name { font-size: var(--text-micro); } .svc__ico { width: 44px; height: 44px; } }

/* ---------- clients strip: dark band, draggable auto-slider + arrows ---------- */
.clients {
	position: relative;
	overflow: hidden;
	margin-top: var(--space-4);
	padding-block: var(--space-7) var(--space-8);
	background: linear-gradient(160deg, #17251c, var(--color-primary-deep) 55%, #1d2f24);
	color: #fff;
}
.clients::before {
	content: '';
	position: absolute;
	top: -160px;
	inset-inline-end: 8%;
	width: 460px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(141, 157, 138, 0.25), transparent);
	pointer-events: none;
}
.clients__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.clients__kicker { margin: 0 0 2px; font-size: var(--text-small); color: #ffd98a; font-weight: 600; letter-spacing: 0.02em; }
.clients__title { color: #fff; margin: 0; }
.clients__title::after { background: linear-gradient(90deg, #ffd98a, rgba(255, 217, 138, 0.2)); }
.clients__nav { display: flex; gap: var(--space-2); flex-shrink: 0; }
.clients__arrow {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background var(--dur-control) var(--ease);
}
.clients__arrow:hover { background: #fff; color: var(--color-primary-deep); }
.clients__track { position: relative; padding-block: var(--space-2) var(--space-3); }
.ccard {
	position: relative;
	flex-shrink: 0;
	width: min(200px, 58vw);
	aspect-ratio: 3 / 4;
	scroll-snap-align: start;
	border-radius: var(--radius-media);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	display: grid;
	place-items: center;
}
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 18, 0) 40%, rgba(16, 24, 18, 0.85)); }
.ccard__initial { font-family: var(--font-head); font-size: 3.5rem; font-weight: 800; color: rgba(255, 255, 255, 0.35); }
.ccard__name {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	padding: var(--space-4) var(--space-3);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: var(--text-body);
	text-align: center;
	line-height: 1.35;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) { .ccard { width: 240px; } }
@media (prefers-reduced-motion: no-preference) {
	.ccard img { transition: transform 500ms var(--ease); }
	.ccard:hover img { transform: scale(1.05); }
}

/* ---------- secondary screens ---------- */
.kh-app .story { border-radius: var(--radius-sheet); margin-block: var(--space-4); }
.kh-app .story__inner { margin-inline: auto; }
.kh-app .trust .section__title--center::after { margin-inline: auto; }

/* ---------- footer (compact: address + copyright) ---------- */
.site-footer {
	margin-top: 0;
	padding: var(--space-5) var(--container-pad) calc(var(--space-6) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--color-border);
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--text-small);
}
.site-footer__addr { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); color: var(--color-text); font-weight: 500; }
.site-footer__addr .btn__ico { width: 16px; height: 16px; color: var(--color-primary); }
.site-footer__copy { margin: 0; }

/* ---------- page / empty ---------- */
.kh-app .page { padding-block: var(--space-5); }
.kh-app .empty--page { min-height: 50svh; display: grid; align-content: center; }

/* ---------- customer sheet: 3 fields before the first WhatsApp order ---------- */
[data-kh-customer] { z-index: 65; display: flex; align-items: flex-end; justify-content: center; }
[data-kh-customer][hidden] { display: none; }
.csheet {
	width: min(480px, 100%);
	max-height: 92svh;
	overflow-y: auto;
	padding: var(--space-5);
	padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	display: grid;
	gap: var(--space-4);
}
@media (min-width: 640px) {
	[data-kh-customer] { align-items: center; }
	.csheet { border-radius: var(--radius-card); }
}
.csheet__back {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	min-height: 40px;
	padding: 0 var(--space-3) 0 var(--space-2);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-secondary-soft);
	color: var(--color-primary);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.csheet__back svg { width: 20px; height: 20px; }
.csheet__title { margin: 0; font-size: var(--text-h3); }
.csheet__hint { margin: calc(-1 * var(--space-3)) 0 0; font-size: var(--text-small); color: var(--color-text-muted); }
.csheet .field input { min-height: 48px; }
.csheet__error { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: #f9efef; color: var(--color-danger); font-size: var(--text-small); }

/* App-bar basket: same green disc as the card "add" button, count badge on top. */
.appbar .appbar__basket, .appbar .appbar__basket:hover { color: #fff; }
.appbar__basket {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	margin-inline-end: var(--space-1);
}
.appbar__basket:hover { background: var(--color-primary-hover); color: #fff; }
.appbar__basket .btn__ico { width: 20px; height: 20px; }
.appbar__basket .icon-btn__count { top: -4px; inset-inline-end: -4px; background: var(--color-accent); color: var(--color-text); font-weight: 700; }

/* Basket panel: with the customer fields the footer is tall — scroll the whole panel, not just the items. */
.kh-app .overlay__panel--side { overflow-y: auto; }
.kh-app .basket__items { flex: 1 0 auto; overflow: visible; }
.kh-app .basket__head { position: sticky; top: calc(-1 * var(--space-5)); z-index: 1; margin-top: calc(-1 * var(--space-5)); padding: var(--space-4) 0; background: var(--color-surface); }

/* Customer details block inside the basket */
.bcust { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4) var(--space-4); margin: 0; background: var(--color-secondary-soft); display: grid; gap: var(--space-3); }
.bcust__title { font-weight: 700; padding-inline: var(--space-1); }
.bcust__req { color: var(--color-danger); }
.bcust__hint { margin: 0; font-size: var(--text-small); color: var(--color-text-muted); }
.bcust__hint.is-saved { color: var(--color-success); }
.bcust__grid { display: grid; gap: var(--space-2); }
.bcust .field input { min-height: 44px; background: var(--color-surface); }
.bcust .field input.is-invalid { border-color: var(--color-danger); }

/* POS (بيع مباشر): per-product discount box on basket lines + the review sheet */
.bitem__disc { display: inline-flex; align-items: center; gap: 6px; }
.bitem__disc label { font-size: var(--text-small); color: var(--color-text-muted); font-weight: 700; white-space: nowrap; }
.bitem__disc input { width: 58px; min-height: 38px; padding: 2px 6px; border: 1px solid var(--color-border); border-radius: var(--radius-control); font: inherit; font-size: 0.95rem; text-align: center; background: var(--color-surface); }
.bitem__price s { color: var(--color-text-muted); font-weight: 400; font-size: var(--text-small); margin-inline-start: 4px; }
.posrev__lines { display: grid; gap: var(--space-1); max-height: 40vh; overflow-y: auto; padding-inline-end: var(--space-1); }
.posrev__line { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0; padding: var(--space-2) 0; border-bottom: 1px dashed var(--color-border); font-size: var(--text-small); }
.posrev__line span { min-width: 0; }
.posrev__line b { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.posrev__totals { display: grid; gap: var(--space-1); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-secondary-soft); }
.posrev__totals p { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0; }
.posrev__totals b { font-variant-numeric: tabular-nums; }
.posrev__net { font-size: 1.15rem; font-weight: 800; color: var(--color-primary); border-top: 1px solid var(--color-border); padding-top: var(--space-2); margin-top: var(--space-1); }
.posrev__cust { color: var(--color-text-muted); font-size: var(--text-small); }
.appbar__returns, .appbar__admin { color: var(--color-primary); }
.appbar__install { color: var(--color-primary); }
.install-steps { margin: 0; padding-inline-start: var(--space-5); display: grid; gap: var(--space-3); line-height: 1.7; }
.install-steps[hidden] { display: none; }

/* Card quantity stepper (replaces the add button once the product is in the basket) */
.cqty { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-card); }
.cqty[hidden] { display: none; }
.cqty button { width: 34px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 1.25rem; font-weight: 700; cursor: pointer; border-radius: 999px; }
.cqty button:hover { background: rgba(255, 255, 255, 0.18); }
.cqty b { min-width: 22px; text-align: center; font-size: 1rem; font-variant-numeric: tabular-nums; }

.ibtn[hidden] { display: none; }

/* Small, quiet "added" toast: bottom centre, fades out by itself. */
.kh-app .kh-toast {
	width: auto;
	max-width: calc(100% - 32px);
	padding: 8px 16px;
	font-size: var(--text-small);
	gap: 0;
	bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
	background: rgba(24, 32, 25, 0.9);
	box-shadow: var(--shadow-card);
	pointer-events: none;
}
.kh-app .kh-toast.is-visible { pointer-events: none; }
.kh-app .kh-toast::before { content: '✓'; margin-inline-end: 8px; color: #7fd1a0; font-weight: 700; }

/* Area suggestions (chips under the input) */
.asug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.asug[hidden] { display: none; }
.asug button {
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-primary);
	border-radius: var(--radius-pill);
	padding: 6px 12px;
	font: inherit;
	font-size: var(--text-small);
	cursor: pointer;
}
.asug button:hover, .asug button:focus-visible { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Card = one tap target: the media link stretches over the whole card; the add button stays on top. */
.pcard { position: relative; }
.pcard__link { position: static; } /* So the ::after overlay spans the card, not just the image box. */
.pcard__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard__badge { z-index: 1; } /* Badge now positions against the card; same corner as before. */
.pcard__name a { position: relative; z-index: 1; }
.pcard__actions { position: relative; z-index: 2; }
.pcard .ibtn--add { width: 46px; height: 46px; box-shadow: var(--shadow-card); }
.pcard .ibtn--add .btn__ico { width: 26px; height: 26px; stroke-width: 2.6; }
.pcard .cqty { position: relative; z-index: 2; height: 46px; }
.pcard .cqty button { height: 46px; width: 38px; }
@media (hover: hover) { .pcard:hover { box-shadow: var(--shadow-lift); } }

/* Navigation progress bar */
.kh-progress {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	width: 0;
	height: 3px;
	z-index: 200;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 0 8px rgba(14, 124, 67, 0.6);
	opacity: 0;
	transition: opacity 200ms var(--ease);
	pointer-events: none;
}
.kh-progress.is-active { opacity: 1; animation: kh-progress 6s cubic-bezier(0.1, 0.6, 0.2, 1) forwards; }
@keyframes kh-progress { 0% { width: 0; } 15% { width: 40%; } 60% { width: 80%; } 100% { width: 95%; } }
/* Soften the old screen while the next one loads so the tap clearly "took". */
html.is-loading #kh-content { opacity: 0.6; transition: opacity 300ms var(--ease); }
html.is-loading { cursor: progress; }

/* Address = link to the contact screen (client directive 2026-08-26): pin icon, arrow, underline on hover. */
a.site-footer__addr { text-decoration: none; }
a.site-footer__addr:hover, a.drawer__addr--link:hover { color: var(--color-primary); text-decoration: underline; }
a.site-footer__addr .btn__ico:last-child { width: 14px; height: 14px; color: var(--color-text-muted); transform: scaleX(-1); }
html[lang='en'] a.site-footer__addr .btn__ico:last-child { transform: none; }
a.drawer__addr--link { text-decoration: none; }

/* ---------- home: videos gallery + newest products (client request 2026-08-29) ---------- */
/* Both sit under the services with the same section furniture; these only add the "show all" row. */
.section__more { margin: var(--space-5) 0 0; text-align: center; }
.section__more .btn__ico { width: 16px; height: 16px; }
/* One gallery cell: the clip keeps its own shape, the product line sits under it. */
.vitem { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.vitem__cap { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.vitem__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vitem__name { font-family: var(--font-ar); font-weight: 700; font-size: var(--text-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitem__price { font-size: var(--text-micro); color: var(--color-text-muted); }
.vitem__btn { flex-shrink: 0; }
/* Gallery: cards like the product grid, but each cell is as tall as its own clip
   — portrait stays portrait, landscape stays landscape. CSS columns (not grid)
   so mixed heights pack with no gaps; the clip's inline aspect-ratio does the rest. */
/* Column count per breakpoint comes precomputed from parts/videos.php (--vc-m/-t/-d = min(2|3|4, clips)):
   a short row spreads across the full width, centred, instead of hugging one side with an empty column. */
.vgrid--gallery { display: block; column-count: var(--vc-m, 2); column-gap: var(--space-3); max-width: 1000px; margin-inline: auto; }
@media (min-width: 700px) { .vgrid--gallery { column-count: var(--vc-t, 3); } }
@media (min-width: 1100px) { .vgrid--gallery { column-count: var(--vc-d, 4); } }
.vgrid--gallery .vitem {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 var(--space-3);
	gap: 0;
	background: var(--card-bg, var(--color-surface));
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius, var(--radius-card));
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
/* Inside a card the clip fills the width; the .vcard--tall viewport clamp (meant
   for a full-width product page) would leave it floating in the column. */
.vgrid--gallery .vcard { border-radius: 0; box-shadow: none; }
.vgrid--gallery .vcard--tall { width: 100%; margin-inline: 0; }
.vgrid--gallery .vitem__cap { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3); }
.vgrid--gallery .vitem__btn { justify-content: center; }

/* ---------- /latest/: the two controls the client asked for — category + search ---------- */
.lfilter { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-5); }
.lfilter__ico { display: none; }
.lfilter input[type="search"] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); font: inherit; }
.lfilter select { flex: 0 1 200px; min-width: 0; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); font: inherit; }
.lfilter input[type="search"]:focus, .lfilter select:focus { outline: none; border-color: var(--color-primary); }
.lfilter .btn { min-height: 44px; }
@media (max-width: 480px) {
	.lfilter input[type="search"] { flex-basis: 100%; }
	.lfilter select { flex: 1 1 auto; }
}

/* Product page: link from a product's own videos to the whole gallery. */
.product__videos-all { margin: var(--space-3) 0 0; }
.product__videos-all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Live suggestions under the /latest/ search box (same engine as the home pill). */
.lfilter { position: relative; }
.lfilter__suggest { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); }

/* ==========================================================================
   Client round 2026-09-02: discounted prices, product header strip + tabs +
   sticky buy bar, main-section tiles + services sheet, order review, blog,
   consultations, share, and the manager's storefront quick edit.
   ========================================================================== */

/* ---------- price with discount (cards) ---------- */
.pcard__price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcard__was { color: var(--color-text-muted); font-weight: 400; font-size: var(--text-micro); text-decoration: line-through; }
.pcard__badge--off { inset-inline-start: auto; inset-inline-end: var(--space-2); background: var(--color-accent-bright); color: var(--color-text); font-weight: 700; }

/* ---------- product header strip: name · price · discounted price · availability ---------- */
.pbar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0 var(--space-4); }
.pbar__main { min-width: 0; flex: 1; }
.kh-app .pbar .product__name { font-size: 1.25rem; margin: 0 0 4px; }
.pbar__price { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin: 0; }
.kh-app .pbar .product__price { font-size: 1.35rem; margin: 0; }
.product__was { color: var(--color-text-muted); font-size: var(--text-small); text-decoration: line-through; }
.product__off { font-size: var(--text-micro); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-accent-bright); color: var(--color-text); }
.pbar__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; font-size: var(--text-small); }
.pbar__tools { display: flex; gap: 2px; margin-top: 2px; }
.pbar__tools .icon-btn { width: 40px; height: 40px; border-radius: 50%; color: var(--color-primary); }
@media (min-width: 901px) { .kh-app .pbar .product__name { font-size: 1.6rem; } .kh-app .pbar .product__price { font-size: 1.6rem; } }

.product__layout--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .product__layout--solo .product__media { max-width: 640px; margin-inline: auto; } }

/* ---------- product tabs ---------- */
.ptabs { margin-top: var(--space-2); }
.ptabs__bar { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: var(--space-4); }
.ptabs__bar::-webkit-scrollbar { display: none; }
.ptabs__tab { flex: 1 0 auto; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-small); font-weight: 600; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ptabs__tab[aria-selected='true'] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ptabs__panel[hidden] { display: none; }
.ptabs__panel .prose { max-width: none; line-height: 1.9; }
.ptabs__panel .prose > :last-child { margin-bottom: 0; }
.ptabs__hint { margin: 0 0 var(--space-3); font-size: var(--text-small); }
.grown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 640px) { .grown { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grown .mosaic__item { aspect-ratio: 1; grid-column: auto; grid-row: auto; }

/* ---------- sticky buy bar: price at the start, action at the end (bottom-left in RTL) ---------- */
.buybar {
	position: sticky;
	bottom: 0;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin: var(--space-6) calc(-1 * var(--container-pad)) 0;
	padding: var(--space-2) var(--container-pad) calc(var(--space-2) + env(safe-area-inset-bottom));
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border-top: 1px solid var(--color-border);
}
.buybar__price { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.buybar__now { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--color-primary); white-space: nowrap; }
.buybar__now--text { font-size: var(--text-small); font-weight: 700; }
.buybar__was { font-size: var(--text-micro); color: var(--color-text-muted); text-decoration: line-through; }
.buybar__act { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.buybar .qty { background: var(--color-surface); }
.buybar .qty button { width: 38px; min-height: 42px; }
.buybar .qty input { width: 40px; }
.buybar .btn { min-height: 44px; padding-inline: var(--space-4); white-space: nowrap; font-weight: 700; }
@media (max-width: 380px) { .buybar .btn span { display: none; } .buybar .btn { width: 44px; padding: 0; } }
/* Floating bubble + toast sit above the bar on the product page. */
.single-kh_product .basket-fab { bottom: calc(var(--space-6) + 72px + env(safe-area-inset-bottom)); }
body.single-kh_product .kh-toast { bottom: calc(var(--space-4) + 76px + env(safe-area-inset-bottom)); }
/* The bar sits in the flow right under the product (client note 2026-09-02): on
   a phone it pins to the viewport bottom until you scroll down to it; on a wide
   screen it reads as a card closing the product block, before reviews/related. */
@media (min-width: 901px) {
	.buybar { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); -webkit-backdrop-filter: none; backdrop-filter: none; bottom: var(--space-3); }
	.buybar__now { font-size: 1.35rem; }
	.buybar .btn { padding-inline: var(--space-6); }
}

/* ---------- bottom sheets shared by services / order review / quick edit ---------- */
.overlay--sheet { z-index: 66; display: flex; align-items: flex-end; justify-content: center; }
.overlay--sheet[hidden] { display: none; }
@media (min-width: 640px) { .overlay--sheet { align-items: center; } }

/* ---------- main sections row (خدماتنا · الاستشارة · المدونة) + services sheet ---------- */
.svcs--main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) { .svcs--main { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; } }
.svc--btn { width: 100%; font: inherit; cursor: pointer; }
.svlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.svlist__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.svlist__item .svc__ico { width: 44px; height: 44px; flex-shrink: 0; }
.svlist__item .svc__ico .btn__ico { width: 22px; height: 22px; }
.svlist__name { flex: 1; min-width: 0; font-weight: 600; font-size: var(--text-small); }
.svlist__item .svc__btn { width: auto; padding-inline: var(--space-3); flex-shrink: 0; }

/* ---------- visitor order review ---------- */
.orev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.orev__actions .btn { min-height: 46px; padding-inline: var(--space-2); }

/* ---------- drawer: share row ---------- */
.drawer__share { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 48px; padding-inline: var(--space-3); border: 0; border-radius: var(--radius-card); background: none; font: inherit; font-weight: 500; color: var(--color-text); text-align: start; cursor: pointer; }
.drawer__share:hover { background: var(--color-secondary-soft); color: var(--color-primary); }
.drawer__share .btn__ico { width: 20px; height: 20px; color: var(--color-primary); }

/* ---------- blog ---------- */
.article-list { padding-block: var(--space-4) var(--space-8); }
.article-list__intro { text-align: center; font-size: var(--text-small); margin: 0 auto var(--space-5); max-width: 560px; }
.agrid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.acard { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; color: var(--color-text); }
.acard:hover { color: var(--color-text); border-color: var(--color-secondary); }
.acard__media { display: block; aspect-ratio: 16 / 9; background: var(--color-secondary-soft); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; }
.acard__body { display: grid; gap: 4px; padding: var(--space-3) var(--space-4) var(--space-4); }
.acard__title { margin: 0; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.4; }
.acard__date { font-size: var(--text-micro); color: var(--color-text-muted); }
.acard__excerpt { margin: 0; font-size: var(--text-small); color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { padding-block: var(--space-5) var(--space-8); }
.article__head, .article__cover, .article__body, .article__foot { max-width: 760px; margin-inline: auto; }
.article__title { font-size: 1.5rem; margin: 0 0 var(--space-2); }
.article__meta { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); font-size: var(--text-small); margin: 0 0 var(--space-4); }
.article__meta .icon-btn { width: 36px; height: 36px; border-radius: 50%; color: var(--color-primary); }
.article__cover { margin-bottom: var(--space-5); border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--shadow-card); }
.article__body { font-size: var(--text-body-lg); line-height: 1.9; }
.article__body img { border-radius: var(--radius-card); }
.article__foot { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- consultations ---------- */
.consult { padding-block: var(--space-4) var(--space-8); }
.cform { display: grid; gap: var(--space-3); max-width: 640px; margin: 0 auto var(--space-7); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-media); box-shadow: var(--shadow-card); }
.cform h2 { margin: 0; font-size: 1.15rem; }
.cform__hint { margin: 0; font-size: var(--text-small); color: var(--color-text-muted); }
.cform .field { margin: 0; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 480px) { .cform__row { grid-template-columns: 1fr; } }
.qa { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--space-3); max-width: 760px; }
.qa__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.qa__item summary { list-style: none; cursor: pointer; padding: var(--space-3) var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__q { flex: 1; min-width: 0; font-weight: 600; line-height: 1.5; }
.qa__meta { display: block; font-weight: 400; font-size: var(--text-micro); color: var(--color-text-muted); margin-top: 2px; }
.qa__chev { flex-shrink: 0; color: var(--color-primary); display: inline-flex; transition: transform 200ms; }
.qa__item[open] .qa__chev { transform: rotate(-90deg); }
.qa__body { padding: 0 var(--space-4) var(--space-4); }
.qa__text { white-space: pre-line; margin: 0 0 var(--space-3); color: var(--color-text-muted); font-size: var(--text-small); }
.qa__answer { border-inline-start: 3px solid var(--color-primary); padding: var(--space-2) var(--space-3); background: var(--color-secondary-soft); border-radius: var(--radius-control); line-height: 1.8; }
.qa__answer > :last-child { margin-bottom: 0; }
.qa__by { font-size: var(--text-micro); margin: 0 0 var(--space-1); }
.qa__more { display: inline-block; margin-top: var(--space-2); font-size: var(--text-small); }
.consult-single .qa__text { font-size: var(--text-body); color: var(--color-text); }

/* ---------- manager quick edit on the storefront ---------- */
.pcard .ibtn--edit { width: 38px; height: 38px; background: var(--color-surface); color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); }
.pcard .ibtn--edit:hover { color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.add-fab { position: fixed; left: var(--space-5); bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); z-index: 55; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--color-accent-bright); color: var(--color-text); display: grid; place-items: center; box-shadow: var(--shadow-lift); cursor: pointer; }
.add-fab .btn__ico { width: 26px; height: 26px; stroke-width: 2.6; }
.add-fab:hover { filter: brightness(0.94); }
.qedit { max-height: 92svh; }
.qedit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.qedit .field { margin: 0; }
.qedit .field__label { display: block; font-size: var(--text-small); font-weight: 500; margin-bottom: var(--space-1); }
.qedit .field select { width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-control); font: inherit; font-size: 16px; background: var(--color-surface); }
.qedit__cats { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 120px; overflow-y: auto; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-control); }
.qedit__cats label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-small); }
.qedit__pct { margin: calc(-1 * var(--space-2)) 0 0; min-height: 1.2em; font-size: var(--text-micro); font-weight: 700; color: var(--color-success); }
.qedit__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.qedit__actions .btn { flex: 1 1 auto; min-height: 46px; }
.qedit__delete { color: var(--color-danger); }
