/* ============================================================================
   Strawberry for Beauty — Homepage hero · the niche wall
   Loaded only when home-hero/loader.php picks the 'niche' variant.

   A light hero: warm plaster, one red (#DE2227) for the second headline
   line, the CTA, the prices and the hairlines. Everything is scoped under
   .sfb-niche (plus the two body-class blocks for the theme header and the
   site header over the hero). transform / opacity are the only things that
   animate.

   Layers (back → front)
     stage background  the wall colour, so the frame is right before any image
     canvas            the live 3D scene (desktop, once idle) — whole stage
     area › case       the poster + the nine product links laid over it in %
     type              the copy (start side; above the wall on phones)
   ========================================================================== */

/* Theme header off on this page (the file only loads here). */
body.sfb-has-hero .wp-site-blocks > header,
body.sfb-has-hero #header,
body.sfb-has-hero #masthead,
body.sfb-has-hero .site-header { display: none !important; }
body.sfb-has-hero .wp-site-blocks > .sfb-home3d { margin-block-start: 0; }
body.sfb-has-hero { margin: 0; }
body.sfb-has-hero #wp--skip-link--target { scroll-margin-top: var(--sfb-nav-h, 0px); }

/* The site header over a LIGHT hero: dark ink, no dark backing, no glow. */
body.sfb-hero-light .sfb-nav.is-over-hero:not(.is-stuck) { color: #2A1B1C; }
body.sfb-hero-light .sfb-nav.is-over-hero::after { display: none; }
body.sfb-hero-light .sfb-nav.is-over-hero:not(.is-stuck) .sfb-nav__links a,
body.sfb-hero-light .sfb-nav.is-over-hero:not(.is-stuck) .sfb-brand__words { text-shadow: none; }
body.sfb-hero-light .sfb-nav.is-over-hero:not(.is-stuck) .sfb-ico svg { filter: none; }
body.sfb-hero-light .sfb-nav.is-over-hero:not(.is-stuck) .sfb-brand__words .n { color: #DE2227; }

/* ------------------------------------------------------------------ base -- */
.sfb-niche {
	--n-red:     #DE2227;
	--n-red-ink: #B8191E;
	--n-ink:     #2A1B1C;   /* 14.6:1 on the wall */
	--n-ink-2:   #6E5A58;   /* 5.4:1 on the wall */
	--n-wall:    #EEE0D5;   /* sampled from the poster edge */
	--n-wall-hi: #F2E5DA;
	--n-wall-lo: #E6D7CB;
	--n-f:       var(--sfb-cairo, Cairo), "Segoe UI", Tahoma, Arial, sans-serif;

	--n-g:   clamp(20px, 5vw, 96px);           /* page gutter */
	--n-col: clamp(300px, 32vw, 500px);        /* copy column */
	--n-gap: clamp(16px, 2vw, 40px);
	--na:    var(--na-wide, 1.0);            /* the case's aspect (poster map) */

	position: relative;
	width: 100%;
	color: var(--n-ink);
	font-family: var(--n-f);
	background: var(--n-wall);
	overflow: hidden;      /* not contain:paint — the phone sheet is position:fixed */
	isolation: isolate;
}
.sfb-niche *, .sfb-niche *::before, .sfb-niche *::after { box-sizing: border-box; }
.sfb-niche .sfb-ar { letter-spacing: 0 !important; }

.sfb-niche .sfb-stage {
	position: relative;
	min-height: calc(100svh - var(--sfb-nav-h, 0px));
	background:
		radial-gradient(46% 70% at 30% 50%, var(--n-wall-hi), transparent 75%),
		linear-gradient(180deg, var(--n-wall) 0%, var(--n-wall) 70%, var(--n-wall-lo) 100%);
}
@supports not (height: 100svh) {
	.sfb-niche .sfb-stage { min-height: calc(100vh - var(--sfb-nav-h, 0px)); }
}
/* the hero ends on a soft floor shadow before the dark rail below */
.sfb-niche .sfb-stage::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 56px;
	background: linear-gradient(180deg, transparent, rgba(120, 80, 70, .12));
	pointer-events: none;
	z-index: 4;
}

/* ---------------------------------------------------------------- canvas -- */
.sfb-niche__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0;
	transition: opacity .7s ease;
	pointer-events: none;
}
.sfb-niche.is-3d .sfb-niche__canvas { opacity: 1; }

/* ------------------------------------------------------------ area · case -- */
.sfb-niche__area {
	position: absolute;
	z-index: 2;
	top: calc(var(--sfb-nav-h, 0px) + clamp(4px, 1svh, 12px));
	bottom: clamp(18px, 3svh, 36px);
	inset-inline-start: calc(var(--n-g) + var(--n-col) + var(--n-gap));
	inset-inline-end: clamp(8px, 2vw, 40px);
	container-type: size;
	display: grid;
	place-items: center;
	pointer-events: none;
}
.sfb-niche__case {
	position: relative;
	width: min(100cqw, calc(100cqh * var(--na)));
	aspect-ratio: var(--na);
}
@supports not (height: 1cqh) {
	.sfb-niche__case { width: min(100%, calc((100vh - 180px) * var(--na))); }
}
.sfb-niche picture { display: contents; }
.sfb-niche__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: fill;
	/* feathered edges: the poster melts into the wall colour around it */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
	mask-composite: intersect;
	transition: opacity .7s ease;
}
.sfb-niche.is-3d .sfb-niche__poster { opacity: 0; }

/* --------------------------------------------------------------- devices -- */
.sfb-niche .sfb-devices { position: absolute; inset: 0; z-index: 3; }
.sfb-niche .sfb-device {
	position: absolute;
	left: calc(var(--wx) * 100%);
	top: calc(var(--wy) * 100%);
	width: calc(var(--ww) * 100%);
	height: calc(var(--wh) * 100%);
	border-radius: 999px 999px 6px 6px / 46% 46% 6px 6px;   /* the arch */
	pointer-events: auto;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.sfb-niche .sfb-device:focus-visible { outline: 2px solid var(--n-red); outline-offset: 3px; }

.sfb-niche__tag {
	/* hangs in the band UNDER the niche (the scene leaves room for it), so it
	   never covers the product: name, a hairline, the price — one clean line */
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translate(-50%, 6px);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 14px 7px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 24px -14px rgba(42, 27, 28, .55), 0 0 0 1px rgba(42, 27, 28, .06);
	border: 1px solid transparent;
	font-size: clamp(12px, .82vw, 14px);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--n-ink);
	transition: transform .35s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.sfb-niche__tag strong { font-weight: 700; }
.sfb-niche__tag small {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 1em;
	font-weight: 800;
	color: var(--n-red);
}
.sfb-niche__tag small::before { content: ""; width: 1px; height: 1em; background: rgba(42, 27, 28, .18); }
.sfb-niche__tag del { opacity: .55; margin-inline-end: .3em; font-weight: 500; color: var(--n-ink-2); }
.sfb-niche__tag ins { text-decoration: none; }
.sfb-niche .sfb-device:hover .sfb-niche__tag,
.sfb-niche .sfb-device:focus-visible .sfb-niche__tag { transform: translate(-50%, 3px); border-color: rgba(222, 34, 39, .6); }

/* «اضغطي على أي جهاز» — a first-visit nudge above the wall */
.sfb-niche .sfb-pick {
	position: absolute;
	z-index: 4;
	top: 0;
	left: 50%;
	transform: translate(-50%, -60%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .82);
	font: 600 12.5px/1.3 var(--n-f);
	color: var(--n-ink-2);
	white-space: nowrap;
	pointer-events: none;
	transition: opacity .45s ease, transform .45s ease;
}
.sfb-niche .sfb-pick__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--n-red); animation: sfb-n-pulse 1.8s ease-in-out infinite; }
@keyframes sfb-n-pulse { 50% { transform: scale(1.6); opacity: .45; } }
.sfb-niche.is-picked .sfb-pick { opacity: 0; transform: translate(-50%, -90%); }

/* ------------------------------------------------------------------ copy -- */
.sfb-niche .sfb-type { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sfb-niche .sfb-copy {
	position: absolute;
	top: calc(50% + var(--sfb-nav-h, 0px) / 2);
	inset-inline-start: var(--n-g);
	width: var(--n-col);
	transform: translateY(-50%);
	pointer-events: auto;
}
.sfb-niche .sfb-eyebrow {
	margin: 0 0 18px;
	font: 600 12px/1 ui-monospace, Menlo, monospace;
	letter-spacing: .3em;
	text-transform: uppercase;
	text-align: right;
	color: var(--n-red);
}
.sfb-niche .sfb-headline {
	margin: 0;
	font-family: var(--n-f);
	font-size: clamp(36px, 3.7vw, 62px);
	font-weight: 800;
	line-height: 1.16;
	color: var(--n-ink);
}
.sfb-niche .sfb-headline * { font-family: inherit; font-weight: inherit; }
.sfb-niche .sfb-line { display: block; }
.sfb-niche .sfb-line--red { color: var(--n-red); }
.sfb-niche .sfb-divider { display: block; width: 64px; height: 2px; margin: 18px 0; background: var(--n-red); }
.sfb-niche .sfb-sub { margin: 0; max-width: 30em; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85; color: var(--n-ink-2); }
.sfb-niche .sfb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sfb-niche .sfb-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 30px;
	border-radius: 999px;
	border: 1px solid var(--n-red);
	background: var(--n-red);
	color: #fff;
	font: 700 15px/1 var(--n-f);
	text-decoration: none;
	box-shadow: 0 14px 30px -12px rgba(222, 34, 39, .55);
	transition: background-color .3s ease, transform .3s ease;
}
.sfb-niche .sfb-cta:hover { background: var(--n-red-ink); color: #fff; }
.sfb-niche .sfb-cta:active { transform: translateY(1px); }
.sfb-niche .sfb-cta:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 3px; }

.sfb-niche .sfb-quizlink {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .4em;
	margin-top: 16px;
	padding: 4px 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: 400 14px/1.6 var(--n-f);
	color: var(--n-ink-2);
}
.sfb-niche .sfb-quizlink[hidden] { display: none; }
.sfb-niche .sfb-quizlink__go {
	color: var(--n-ink);
	font-weight: 700;
	background: linear-gradient(var(--n-red), var(--n-red)) no-repeat 100% 100% / 100% 1px;
	padding-bottom: 2px;
}
.sfb-niche .sfb-quizlink:focus-visible { outline: 2px solid var(--n-red); outline-offset: 4px; border-radius: 2px; }

/* ------------------------------------------------------------- reveal ---- */
@media (prefers-reduced-motion: no-preference) {
	.sfb-niche .sfb-copy > * { animation: sfb-n-lift .8s cubic-bezier(.16, 1, .3, 1) backwards; }
	.sfb-niche .sfb-copy > :nth-child(2) { animation-delay: .08s; }
	.sfb-niche .sfb-copy > :nth-child(3) { animation-delay: .16s; }
	.sfb-niche .sfb-copy > :nth-child(4) { animation-delay: .24s; }
	.sfb-niche .sfb-copy > :nth-child(5) { animation-delay: .32s; }
	.sfb-niche .sfb-copy > :nth-child(6) { animation-delay: .4s; }
	.sfb-niche .sfb-niche__tag { animation: sfb-n-fade .8s ease .5s backwards; }
}
@keyframes sfb-n-lift { from { opacity: 0; transform: translateY(14px); } }
@keyframes sfb-n-fade { from { opacity: 0; } }

/* ---------------------------------------------- phones / portrait tablets -- */
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
	.sfb-niche {
		--na: var(--na-tall, .7032);
		--n-copy-top: calc(var(--sfb-nav-h, 64px) + 12px);
		--n-copy-h: 268px;                         /* eyebrow-less copy, measured */
		--n-area-top: calc(var(--n-copy-top) + var(--n-copy-h) + 22px);
	}
	.sfb-niche .sfb-stage {
		min-height: max(calc(100svh - var(--sfb-nav-h, 0px)),
		                calc(var(--n-area-top) + 96vw / var(--na-tall, .7032) + 24px));
	}
	.sfb-niche .sfb-copy {
		top: var(--n-copy-top);
		inset-inline: 20px;
		width: auto;
		transform: none;
	}
	.sfb-niche .sfb-eyebrow { display: none; }
	.sfb-niche .sfb-headline { font-size: 34px; line-height: 1.14; }
	.sfb-niche .sfb-divider { margin: 12px 0; width: 48px; }
	.sfb-niche .sfb-sub { font-size: 14px; line-height: 1.75; }
	.sfb-niche .sfb-actions { margin-top: 16px; }
	.sfb-niche .sfb-actions .sfb-cta { flex: 1 1 100%; min-height: 48px; font-size: 14.5px; }
	.sfb-niche .sfb-quizlink { margin-top: 8px; font-size: 13px; }

	.sfb-niche__area {
		top: var(--n-area-top);
		bottom: 18px;
		inset-inline: 2vw;
	}
	.sfb-niche .sfb-device { left: calc(var(--tx) * 100%); top: calc(var(--ty) * 100%); width: calc(var(--tw) * 100%); height: calc(var(--th) * 100%); }
	.sfb-niche__tag { flex-direction: column; gap: 0; padding: 3px 10px 4px; font-size: 11px; transform: translate(-50%, 3px); }
	.sfb-niche__tag small { font-size: 10.5px; }
	.sfb-niche__tag small::before { display: none; }
	.sfb-niche .sfb-device:hover .sfb-niche__tag { transform: translate(-50%, 1px); }
	.sfb-niche .sfb-pick { font-size: 12px; padding: 5px 12px 6px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
	.sfb-niche { --n-copy-h: 300px; }
	.sfb-niche .sfb-copy { inset-inline: 40px; }
	.sfb-niche .sfb-headline { font-size: 52px; }
	.sfb-niche .sfb-sub { font-size: 17px; }
	.sfb-niche .sfb-actions .sfb-cta { flex: 0 1 auto; }
	.sfb-niche__tag { font-size: 13px; }
}
/* short phones */
@media (max-width: 768px) and (max-height: 700px) {
	.sfb-niche { --n-copy-h: 244px; }
	.sfb-niche .sfb-headline { font-size: 30px; }
}

/* the WhatsApp button leaves the wall's corner while the hero is on screen
   (quiz.js sets html.sfb-hero-in) and comes back below it */
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
	html.sfb-hero-in .sfb-wa-float { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
}

/* Desktop: the wall gets the whole screen height (owner, 2026-10-21 — the
   cabinet is height-bound, so every pixel of height is cabinet). */
@media (min-width: 1101px), (min-width: 769px) and (orientation: landscape) {
	.sfb-niche .sfb-stage { min-height: max(100svh, 640px); }
	.sfb-niche__area {
		top: calc(var(--sfb-nav-h, 0px) + 6px);
		bottom: 10px;
		inset-inline-start: calc(var(--n-g) + var(--n-col) + clamp(8px, 1.2vw, 24px));
		inset-inline-end: clamp(8px, 1.6vw, 32px);
	}
	.sfb-niche { --n-col: clamp(300px, 29vw, 470px); }
	.sfb-niche .sfb-pick { display: none; }   /* the tags already say "tap me" */
}
@supports not (height: 100svh) {
	@media (min-width: 1101px) { .sfb-niche .sfb-stage { min-height: max(100vh, 640px); } }
}

@media (prefers-reduced-motion: reduce) {
	.sfb-niche__canvas, .sfb-niche__poster, .sfb-niche__tag, .sfb-niche .sfb-pick { transition: none; }
	.sfb-niche .sfb-pick__dot { animation: none; }
}


/* =====================================================================
   PHASE 3 · focus, tour, panel, dots (2026-10-23)
   ===================================================================== */

/* the tour door, beside «تصفحي كل المنتجات» */
.sfb-niche .sfb-cta--tour {
	background: rgba(255, 255, 255, .6);
	border-color: rgba(42, 27, 28, .18);
	color: var(--n-ink);
	box-shadow: none;
	gap: 12px;
	padding-inline: 14px 24px;
	cursor: pointer;
}
.sfb-niche .sfb-cta--tour:hover { background: #fff; color: var(--n-ink); border-color: rgba(42, 27, 28, .35); }
.sfb-niche .sfb-cta--tour[hidden] { display: none; }
.sfb-niche .sfb-cta--tour__chip { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--n-red); box-shadow: 0 4px 12px rgba(222, 34, 39, .35); }
.sfb-niche .sfb-cta--tour__icon { width: 10px; height: 10px; background: #fff; clip-path: polygon(18% 8%, 100% 50%, 18% 92%); transform: scaleX(-1); margin-inline-end: 1px; }
html[dir="ltr"] .sfb-niche .sfb-cta--tour__icon { transform: none; }

/* ---- focus: the camera has the stage ------------------------------------ */
.sfb-niche.is-focus .sfb-niche__canvas { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.sfb-niche.is-focus .sfb-niche__canvas:active { cursor: grabbing; }
.sfb-niche .sfb-devices { transition: opacity .4s ease; }
.sfb-niche.is-focus .sfb-devices { opacity: 0; pointer-events: none; }
.sfb-niche.is-focus .sfb-device { pointer-events: none; }
.sfb-niche .sfb-copy { transition: opacity .4s ease, visibility 0s linear 0s; }
/* the copy steps aside while a product is open (the zoomed arch grows into it) */
.sfb-niche.is-focus .sfb-copy { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
/* lift the hero over the next sections so the phone sheet (fixed) is not covered */
.sfb-niche.is-focus { z-index: 5; }
/* the quiz teaser toast steps aside while a product is open */
html.sfb-tour-open .sfq-teaser { opacity: 0; visibility: hidden; pointer-events: none; }

/* loading (phones: the first tap fetches the scene) */
.sfb-niche .sfb-nload {
	position: absolute; z-index: 7;
	left: 50%; top: calc(var(--n-area-top, 50%) + 40px);
	transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0; padding: 10px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 12px 30px -14px rgba(42, 27, 28, .5);
	font: 600 13.5px/1.3 var(--n-f);
	color: var(--n-ink);
}
.sfb-niche .sfb-nload[hidden] { display: none; }
.sfb-niche .sfb-nload__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(222, 34, 39, .25); border-top-color: var(--n-red); animation: sfb-n-spin .8s linear infinite; }
@keyframes sfb-n-spin { to { transform: rotate(360deg); } }
@media (min-width: 1101px), (min-width: 769px) and (orientation: landscape) {
	.sfb-niche .sfb-nload { top: 50%; left: 34%; }
}

/* ---- the panel ------------------------------------------------------------ */
.sfb-niche .sfb-npanel {
	position: absolute; z-index: 8;
	top: calc(50% + var(--sfb-nav-h, 0px) / 2);
	inset-inline-start: var(--n-g);
	width: min(430px, var(--n-col));
	max-height: calc(100% - var(--sfb-nav-h, 0px) - 40px);
	overflow: auto;
	transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 12px;
	padding: 26px 26px 22px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(14px) saturate(1.1);
	backdrop-filter: blur(14px) saturate(1.1);
	box-shadow: 0 30px 70px -30px rgba(42, 27, 28, .45), 0 0 0 1px rgba(42, 27, 28, .05);
	color: var(--n-ink);
	font-family: var(--n-f);
	text-align: start;
	animation: sfb-n-panel .5s cubic-bezier(.16, 1, .3, 1);
}
.sfb-niche .sfb-npanel[hidden] { display: none; }
@keyframes sfb-n-panel { from { opacity: 0; transform: translateY(calc(-50% + 14px)); } }
.sfb-niche .sfb-npanel__close {
	position: absolute; top: 14px; inset-inline-end: 14px;
	width: 38px; height: 38px; display: grid; place-items: center;
	border: 1px solid rgba(42, 27, 28, .14); border-radius: 50%;
	background: #fff; color: var(--n-ink-2); cursor: pointer; font-size: 13px;
	transition: color .25s ease, border-color .25s ease;
}
.sfb-niche .sfb-npanel__close:hover { color: var(--n-ink); border-color: rgba(42, 27, 28, .4); }
.sfb-niche .sfb-npanel__meta { display: flex; align-items: center; gap: 12px; margin: 0; padding-inline-end: 44px; }
.sfb-niche .sfb-npanel__count { font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--n-red); }
.sfb-niche .sfb-npanel__cat { font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--n-ink-2); }
.sfb-niche .sfb-npanel__title { margin: 0; font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; line-height: 1.35; outline: none; }
.sfb-niche .sfb-npanel__price { margin: 0; font-size: 22px; font-weight: 800; color: var(--n-red); }
.sfb-niche .sfb-npanel__price del { color: var(--n-ink-2); opacity: .6; font-weight: 500; font-size: .75em; margin-inline-end: .4em; }
.sfb-niche .sfb-npanel__price ins { text-decoration: none; }
.sfb-niche .sfb-npanel__price[hidden], .sfb-niche .sfb-npanel__features[hidden], .sfb-niche .sfb-npanel__cart[hidden] { display: none; }
.sfb-niche .sfb-npanel__features { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.sfb-niche .sfb-npanel__features li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--n-ink); }
.sfb-niche .sfb-npanel__features li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--n-red); transform: translateY(-2px); }
.sfb-niche .sfb-npanel__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sfb-niche .sfb-npanel__cart, .sfb-niche .sfb-npanel__primary {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: 999px;
	font: 700 15px/1 var(--n-f); text-decoration: none; cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
.sfb-niche .sfb-npanel__cart { flex: 1 1 auto; border: 1px solid var(--n-red); background: var(--n-red); color: #fff; box-shadow: 0 12px 26px -14px rgba(222, 34, 39, .7); }
.sfb-niche .sfb-npanel__cart:hover { background: var(--n-red-ink); }
.sfb-niche .sfb-npanel__cart.is-busy { opacity: .7; pointer-events: none; }
.sfb-niche .sfb-npanel__primary { border: 1px solid rgba(42, 27, 28, .22); background: #fff; color: var(--n-ink); }
.sfb-niche .sfb-npanel__primary:hover { border-color: var(--n-ink); color: var(--n-ink); }
.sfb-niche .sfb-npanel :focus-visible { outline: 2px solid var(--n-red); outline-offset: 3px; }
.sfb-niche .sfb-npanel__msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--n-ink); }
.sfb-niche .sfb-npanel__view { color: var(--n-red-ink); font-weight: 700; margin-inline-start: 6px; }
.sfb-niche .sfb-npanel__view[hidden] { display: none; }
.sfb-niche .sfb-npanel__hint { margin: 0; font-size: 12.5px; color: var(--n-ink-2); }

/* tour controls + chapter bar */
.sfb-niche .sfb-npanel__tour { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(42, 27, 28, .1); }
.sfb-niche .sfb-npanel__tour[hidden] { display: none; }
.sfb-niche .sfb-npanel__prev, .sfb-niche .sfb-npanel__next, .sfb-niche .sfb-npanel__play {
	position: relative; width: 40px; height: 40px; flex: none;
	border: 1px solid rgba(42, 27, 28, .16); border-radius: 50%; background: #fff; cursor: pointer;
}
.sfb-niche .sfb-npanel__play { width: 48px; height: 48px; border-color: var(--n-red); background: var(--n-red); }
.sfb-niche .sfb-npanel__prev span, .sfb-niche .sfb-npanel__next span { position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid var(--n-ink); border-left: 2px solid var(--n-ink); }
.sfb-niche .sfb-npanel__next span { transform: translateX(1px) rotate(-45deg); }                 /* ‹ next, RTL */
.sfb-niche .sfb-npanel__prev span { transform: translateX(-1px) rotate(135deg); }                /* › previous */
html[dir="ltr"] .sfb-niche .sfb-npanel__next span { transform: translateX(-1px) rotate(135deg); }
html[dir="ltr"] .sfb-niche .sfb-npanel__prev span { transform: translateX(1px) rotate(-45deg); }
.sfb-niche .sfb-npanel__playicon { position: absolute; inset: 0; margin: auto; width: 12px; height: 14px; background: #fff; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.sfb-niche .sfb-npanel__play[aria-pressed="false"] .sfb-npanel__playicon { clip-path: polygon(18% 8%, 100% 50%, 18% 92%); transform: scaleX(-1); width: 13px; }
html[dir="ltr"] .sfb-niche .sfb-npanel__play[aria-pressed="false"] .sfb-npanel__playicon { transform: none; }
.sfb-niche .sfb-npanel__chapters { flex: 1 1 100%; display: flex; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.sfb-niche .sfb-npanel__chapters li { flex: 1; height: 3px; border-radius: 2px; background: rgba(42, 27, 28, .12); overflow: hidden; }
.sfb-niche .sfb-npanel__chapters i { display: block; height: 100%; background: var(--n-red); transform: scaleX(0); transform-origin: 100% 50%; }
html[dir="ltr"] .sfb-niche .sfb-npanel__chapters i { transform-origin: 0 50%; }
.sfb-niche .sfb-npanel__chapters li.is-done i { transform: scaleX(1); }
.sfb-niche.is-counting .sfb-npanel__chapters li.is-now i { animation: sfb-n-chapter var(--stop, 5600ms) linear forwards; }
.sfb-niche:not(.is-playing) .sfb-npanel__chapters li.is-now i { transform: scaleX(.5); }
@keyframes sfb-n-chapter { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- dots on the product (CSS overlay buttons, never model-viewer slots) -- */
.sfb-niche .sfb-ndots { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.sfb-niche .sfb-ndots .dot-btn {
	position: absolute; left: 0; top: 0;
	width: 26px; height: 26px; margin: -13px 0 0 -13px;
	border: 0; padding: 0; border-radius: 50%;
	background: transparent; cursor: pointer;
	pointer-events: auto;
	opacity: 0;
	transition: opacity .35s ease;
}
.sfb-niche .sfb-ndots .dot-btn::before {                     /* the red dot */
	content: ""; position: absolute; inset: 7px; border-radius: 50%;
	background: var(--n-red); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.sfb-niche .sfb-ndots .dot-btn::after {                      /* its pulse */
	content: ""; position: absolute; inset: 3px; border-radius: 50%;
	border: 2px solid rgba(222, 34, 39, .55);
	animation: sfb-n-dot 1.8s ease-out infinite;
}
@keyframes sfb-n-dot { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.sfb-niche.is-dots .sfb-ndots .dot-btn { opacity: 1; transition-delay: calc(var(--i) * .3s); }
.sfb-niche.is-dots .sfb-ndots .dot-btn.is-away { opacity: 0; pointer-events: none; transition-delay: 0s; }
.sfb-niche .dot-btn__label {
	position: absolute; bottom: calc(100% + 8px); left: 50%;
	transform: translate(-50%, 4px);
	padding: 6px 12px; border-radius: 10px;
	background: var(--n-ink); color: #fff;
	font: 700 12.5px/1.3 var(--n-f); white-space: nowrap;
	opacity: 0; pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.sfb-niche .sfb-ndots .dot-btn:hover .dot-btn__label,
.sfb-niche .sfb-ndots .dot-btn:focus-visible .dot-btn__label,
.sfb-niche .sfb-ndots .dot-btn.is-open .dot-btn__label { opacity: 1; transform: translate(-50%, 0); }
.sfb-niche .sfb-ndots .dot-btn:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 2px; }

/* ---- phones: the panel is a sheet ---------------------------------------- */
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
	.sfb-niche .sfb-actions .sfb-cta--tour { flex: 1 1 100%; }
	.sfb-niche .sfb-npanel {
		position: fixed; z-index: 90;
		top: auto; bottom: 10px; inset-inline: 10px;
		width: auto; max-height: 46svh;
		transform: none;
		padding: 18px 18px calc(14px + env(safe-area-inset-bottom, 0px));
		gap: 8px; border-radius: 20px;
		animation-name: sfb-n-sheet;
	}
	@keyframes sfb-n-sheet { from { opacity: 0; transform: translateY(24px); } }
	.sfb-niche .sfb-npanel__title { font-size: 19px; }
	.sfb-niche .sfb-npanel__price { font-size: 18px; }
	.sfb-niche .sfb-npanel__features li { font-size: 13.5px; }
	.sfb-niche .sfb-npanel__features { gap: 4px; }
	.sfb-niche .sfb-npanel__cart, .sfb-niche .sfb-npanel__primary { min-height: 44px; font-size: 14px; flex: 1 1 0; padding: 0 12px; }
	.sfb-niche .sfb-npanel__hint { display: none; }
	.sfb-niche .sfb-npanel__close { top: 10px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.sfb-niche .sfb-npanel { animation: none; }
	.sfb-niche .sfb-ndots .dot-btn::after, .sfb-niche .sfb-nload__spin { animation: none; }
	.sfb-niche.is-counting .sfb-npanel__chapters li.is-now i { animation: none; transform: scaleX(.5); }
}


/* =====================================================================
   DIRECTION 2026-10-26 · warm white wall, light-pink niches (owner brief)
   «صالونك في بيتك» in red; the supporting line and hint in charcoal.
   «تصفّحي المنتجات» → #sfb-collection. A product opens its page.
   ===================================================================== */
.sfb-niche {
	--n-wall:    #F6EDE9;   /* sampled from the new poster edge */
	--n-wall-hi: #FBF5F2;
	--n-wall-lo: #F2E7E2;
	--n-green:   #302B2B;   /* legacy token name; charcoal, one red accent only */
	--n-ink-2:   #4B4445;   /* dark grey: 9.1:1 on the wall */
}
.sfb-niche .sfb-stage::after { background: linear-gradient(180deg, transparent, rgba(150, 100, 95, .07)); }

.sfb-niche .sfb-headline {
	font-size: clamp(48px, 6.3vw, 112px);
	line-height: 1.06;
	color: var(--n-red);
}
.sfb-niche .sfb-tagline {
	margin: clamp(14px, 1.6vw, 26px) 0 0;
	font-size: clamp(19px, 1.95vw, 34px);
	font-weight: 700;
	line-height: 1.4;
	color: var(--n-green);
}
.sfb-niche .sfb-sub {
	margin-top: clamp(14px, 1.6vw, 28px);
	font-size: clamp(16px, 1.4vw, 24px);
	font-weight: 500;
	line-height: 1.6;
	color: var(--n-ink-2);
}
.sfb-niche .sfb-actions { margin-top: clamp(22px, 2.4vw, 40px); }
.sfb-niche .sfb-cta {
	min-height: clamp(52px, 4.2vw, 68px);
	padding: 0 clamp(30px, 2.8vw, 48px);
	font-size: clamp(15px, 1.25vw, 20px);
	gap: 14px;
}
/* the chevron points where she is going: «<» in Arabic, «>» in English */
.sfb-niche .sfb-cta__chev {
	width: 9px; height: 9px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .3s ease;
}
html[dir="ltr"] .sfb-niche .sfb-cta__chev { transform: rotate(135deg); }
.sfb-niche .sfb-cta:hover .sfb-cta__chev { transform: translateX(-3px) rotate(-45deg); }
html[dir="ltr"] .sfb-niche .sfb-cta:hover .sfb-cta__chev { transform: translateX(3px) rotate(135deg); }
.sfb-niche .sfb-quizlink { margin-top: clamp(14px, 1.4vw, 24px); font-size: clamp(14px, 1.05vw, 17px); }
.sfb-niche .sfb-quizlink__go {
	color: var(--n-ink-2);
	font-weight: 500;
	background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 100% 1px;
}
.sfb-niche .sfb-quizlink:hover .sfb-quizlink__go { color: var(--n-ink); }

/* tags: white pills under each arch — name, then the live price in red */
.sfb-niche__tag {
	/* sized from the viewport HEIGHT: the desktop wall is height-bound, so the
	   band under each niche scales with it and the pill never reaches the
	   next arch (checked 1024×768 → 1920×1080) */
	padding: .32em 1.25em .38em;
	box-shadow: 0 8px 22px -14px rgba(120, 70, 66, .45), 0 0 0 1px rgba(120, 70, 66, .07);
	font-size: clamp(11px, 1.72svh, 15px);
	transform: translate(-50%, 4px);
}
.sfb-niche .sfb-device:hover .sfb-niche__tag,
.sfb-niche .sfb-device:focus-visible .sfb-niche__tag { box-shadow: 0 10px 24px -12px rgba(222, 34, 39, .45), 0 0 0 1px rgba(222, 34, 39, .35); }

/* desktop: copy column a touch wider for the bigger headline */
@media (min-width: 1101px), (min-width: 769px) and (orientation: landscape) {
	.sfb-niche { --n-col: clamp(320px, 31vw, 540px); }
}

/* phones: copy on top, the 3 × 3 wall below */
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
	.sfb-niche { --n-copy-h: 222px; }
	.sfb-niche .sfb-headline { font-size: 40px; line-height: 1.1; }
	.sfb-niche .sfb-headline .sfb-line { display: inline; }
	.sfb-niche .sfb-headline .sfb-line + .sfb-line::before { content: " "; }
	.sfb-niche .sfb-tagline { margin-top: 8px; font-size: 19px; }
	.sfb-niche .sfb-sub { margin-top: 8px; font-size: 15px; }
	.sfb-niche .sfb-actions { margin-top: 16px; }
	.sfb-niche .sfb-cta { min-height: 50px; font-size: 15.5px; }
	.sfb-niche .sfb-quizlink { margin-top: 10px; font-size: 14px; }
	.sfb-niche__tag { padding: 2px 10px 3px; font-size: 11px; line-height: 1.15; transform: translate(-50%, 3px); }
	.sfb-niche__tag small { font-size: 10.5px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
	.sfb-niche { --n-copy-h: 290px; }
	.sfb-niche .sfb-headline { font-size: 60px; }
	.sfb-niche .sfb-tagline { font-size: 24px; }
	.sfb-niche .sfb-sub { font-size: 18px; }
}
@media (max-width: 768px) and (max-height: 700px) {
	.sfb-niche { --n-copy-h: 244px; }
	.sfb-niche .sfb-headline { font-size: 34px; }
}

/* the header already carries WhatsApp (owner's header spec), so the floating
   button stays off the wall at every size while the hero is on screen */
html.sfb-hero-in .sfb-wa-float { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }

/* Homepage copy refinement: one aligned column, a clear primary action. */
.sfb-niche {
 --n-wall: #FBEDEA;
 --n-wall-hi: #FFF8F5;
 --n-wall-lo: #FBE6E3;
 --n-green: #302B2B;
}
.sfb-niche .sfb-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.sfb-niche .sfb-headline { font-size: clamp(48px, 5.6vw, 92px); line-height: 1.2; text-wrap: balance; }
.sfb-niche .sfb-tagline { color: #302B2B; font-size: clamp(19px, 1.65vw, 27px); line-height: 1.6; margin-top: 20px; text-wrap: balance; }
.sfb-niche .sfb-sub { font-size: clamp(14px, 1.12vw, 18px); line-height: 1.8; margin-top: 8px; color: #685959; }
.sfb-niche .sfb-actions { flex-direction: column; align-items: stretch; width: min(100%, 300px); gap: 12px; margin-top: 28px; }
.sfb-niche .sfb-actions .sfb-cta { min-height: 54px; padding: 14px 24px; font-size: 16px; gap: 14px; }
.sfb-niche .sfb-actions .sfb-cta--tour { background: #FFF8F5; border-color: rgba(48, 43, 43, .2); color: #302B2B; box-shadow: none; flex: 0 0 auto; }
.sfb-niche .sfb-quizlink { font-size: 14px; margin-top: 14px; }
.sfb-niche ::selection { background: #DE2227; color: #fff; }
.sfb-niche :focus-visible { outline: 3px solid #DE2227; outline-offset: 4px; }
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 320px; }
 .sfb-niche .sfb-copy { align-items: center; text-align: center; }
 .sfb-niche .sfb-headline { font-size: clamp(32px, 7.8vw, 42px); line-height: 1.35; }
 .sfb-niche .sfb-tagline { font-size: 18px; margin-top: 10px; }
 .sfb-niche .sfb-sub { font-size: 14px; margin-top: 6px; }
 .sfb-niche .sfb-actions { width: min(100%, 340px); margin-top: 18px; gap: 10px; }
 .sfb-niche .sfb-actions .sfb-cta { min-height: 48px; padding: 12px 20px; font-size: 15px; }
 .sfb-niche .sfb-quizlink { margin-top: 10px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 350px; }
 .sfb-niche .sfb-headline { font-size: 54px; }
 .sfb-niche .sfb-tagline { font-size: 22px; }
}

/* Hero editorial alignment: keep the existing reveal and 3D interactions. */
.sfb-niche .sfb-copy { max-width: 510px; }
.sfb-niche .sfb-headline { font-size: clamp(48px, 5vw, 82px); line-height: 1.13; }
.sfb-niche .sfb-tagline { margin-top: 18px; line-height: 1.45; }
.sfb-niche .sfb-sub { margin-top: 8px; line-height: 1.65; }
.sfb-niche .sfb-actions { width: min(100%, 310px); gap: 10px; margin-top: 24px; }
.sfb-niche .sfb-quizlink { margin-top: 16px; }
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 320px; }
 .sfb-niche .sfb-copy { max-width: none; }
 .sfb-niche .sfb-headline { font-size: clamp(32px, 7.8vw, 42px); line-height: 1.25; }
 .sfb-niche .sfb-tagline { margin-top: 8px; }
 .sfb-niche .sfb-actions { width: min(100%, 340px); margin-top: 16px; }
 .sfb-niche .sfb-quizlink { margin-top: 10px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 350px; }
 .sfb-niche .sfb-headline { font-size: 54px; }
}

/* Hero copy: a quiet introduction and clear, tactile actions. */
.sfb-niche .sfb-copy-label {
 display: flex; align-items: center; gap: 10px;
 margin: 0 0 15px; color: #685959;
 font: 700 11px/1.3 var(--n-f); letter-spacing: .16em; text-transform: uppercase;
}
.sfb-niche .sfb-copy-label::after { content: ""; width: 32px; height: 1px; background: #DE2227; }
.sfb-niche .sfb-headline { line-height: 1.15; }
.sfb-niche .sfb-tagline { margin-top: 20px; }
.sfb-niche .sfb-sub { margin-top: 10px; line-height: 1.8; }
.sfb-niche .sfb-actions { margin-top: 25px; }
.sfb-niche .sfb-actions .sfb-cta { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.sfb-niche .sfb-cta--tour__chip { box-shadow: none; }
.sfb-niche .sfb-copy-meta { display: flex; align-items: center; gap: 8px; margin: 15px 0 0; color: #685959; font: 600 12px/1.5 var(--n-f); }
.sfb-niche .sfb-copy-meta span { color: #DE2227; }
.sfb-niche .sfb-quizlink { margin-top: 9px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .sfb-niche .sfb-actions .sfb-cta:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
 .sfb-niche .sfb-actions .sfb-cta, .sfb-niche .sfb-cta__chev { transition: none; }
 .sfb-niche .sfb-cta:hover .sfb-cta__chev { transform: rotate(-45deg); }
 html[dir="ltr"] .sfb-niche .sfb-cta:hover .sfb-cta__chev { transform: rotate(135deg); }
}
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 375px; }
 .sfb-niche .sfb-copy-label { margin-bottom: 8px; font-size: 10px; }
 .sfb-niche .sfb-tagline { margin-top: 8px; }
 .sfb-niche .sfb-sub { margin-top: 5px; }
 .sfb-niche .sfb-actions { margin-top: 14px; }
 .sfb-niche .sfb-copy-meta { margin-top: 10px; }
 .sfb-niche .sfb-quizlink { margin-top: 6px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 405px; }
}

/* Reference-inspired copy, confined to the existing hero column. */
.sfb-niche .sfb-copy { align-items: center; text-align: center; }
.sfb-niche .sfb-copy-label { color: #DE2227; justify-content: center; gap: 12px; }
.sfb-niche .sfb-copy-label::after { order: 1; width: 42px; }
.sfb-niche .sfb-copy-label svg { order: 2; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sfb-niche .sfb-headline { color: #302526; }
.sfb-niche .sfb-headline .sfb-line + .sfb-line { color: #DE2227; }
.sfb-niche .sfb-tagline { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; font-size: clamp(17px, 1.5vw, 25px); }
.sfb-niche .sfb-tagline::before, .sfb-niche .sfb-tagline::after { content: ""; flex: 0 1 38px; height: 1px; background: #DE2227; }
.sfb-niche .sfb-sub { max-width: 34ch; }
.sfb-niche .sfb-actions { width: min(100%, 390px); }
.sfb-niche .sfb-copy-benefits { display: flex; justify-content: center; width: 100%; padding: 0; margin: 20px 0 0; list-style: none; }
.sfb-niche .sfb-copy-benefits li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 5px; color: #302526; font: 700 12px/1.5 var(--n-f); }
.sfb-niche .sfb-copy-benefits li + li { border-inline-start: 1px solid rgba(222, 34, 39, .22); }
.sfb-niche .sfb-copy-benefits svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sfb-niche .sfb-copy-meta { justify-content: center; padding: 5px 18px; border-radius: 999px; background: rgba(222, 34, 39, .09); color: #302526; }
@media (max-width: 768px), (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 450px; }
 .sfb-niche .sfb-copy-label { margin-bottom: 4px; }
 .sfb-niche .sfb-copy-label svg { width: 22px; height: 22px; }
 .sfb-niche .sfb-headline .sfb-line { display: inline; }
 .sfb-niche .sfb-tagline { font-size: 17px; gap: 8px; }
 .sfb-niche .sfb-tagline::before, .sfb-niche .sfb-tagline::after { flex-basis: 22px; }
 .sfb-niche .sfb-copy-benefits { margin-top: 12px; }
 .sfb-niche .sfb-copy-benefits li { font-size: 11px; }
 .sfb-niche .sfb-copy-benefits svg { width: 20px; height: 20px; }
 .sfb-niche .sfb-copy-meta { margin-top: 8px; }
}
@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
 .sfb-niche { --n-copy-h: 485px; }
}
