/* ============================================================================
   Strawberry for Beauty — homepage diagnostic quiz
   Dark glass + the one accent (#DE2227). Scoped to .sfq / .sfq-teaser; the
   only outside selector is the WhatsApp button, which steps aside while the
   quiz is open on phones. transform + opacity only.
   ========================================================================== */

.sfq, .sfq-teaser {
	--q-ink:   #0E0B0C;
	--q-ink-2: #1A1517;
	--q-cream: #F3EDE9;
	--q-mist:  #A69FA1;
	--q-red:   #DE2227;
	--q-red-d: #B8191E;
	--q-line:  rgba(243, 237, 233, .12);
	--q-ease:  cubic-bezier(.16, 1, .3, 1);
	--q-f:     var(--sfb-cairo, "Cairo", "Segoe UI", Tahoma, sans-serif);
	font-family: var(--q-f);
	color: var(--q-cream);
}
.sfq *, .sfq-teaser * { box-sizing: border-box; font-family: inherit; }
.sfq [hidden], .sfq-teaser[hidden] { display: none !important; }
.sfq button, .sfq-teaser button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sfq :focus-visible, .sfq-teaser :focus-visible { outline: 2px solid var(--q-cream); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- teaser --
   A light card (2026-10-30, owner: «more creative and inviting»): three of
   the devices fanned in a blush disc with a slowly turning dashed ring and a
   red «؟», the question, four little steps for «٤ أسئلة», a red pill. */
.sfq-teaser {
	--t-ink:   #352A29;
	--t-stone: #6A5A55;
	--t-paper: #F9F7F2;
	position: fixed;
	z-index: 9990;
	right: 22px;
	bottom: 22px;
	display: flex;
	align-items: stretch;
	max-width: 410px;
	border: 1px solid rgba(53, 42, 41, .08);
	border-radius: 26px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(223, 122, 125, .16), transparent 55%),
		var(--t-paper);
	color: var(--t-ink);
	box-shadow: 0 34px 70px -28px rgba(53, 42, 41, .6), 0 10px 24px -14px rgba(53, 42, 41, .25);
	opacity: 0;
	transform: translateY(18px) scale(.96);
	transform-origin: 100% 100%;
	transition: opacity .45s ease, transform .7s var(--q-ease);
}
html[dir="ltr"] .sfq-teaser { right: auto; left: 22px; transform-origin: 0 100%; }
.sfq-teaser.is-in { opacity: 1; transform: none; }
.sfq-teaser :focus-visible { outline-color: var(--q-red); }

.sfq-teaser__open {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px 12px 14px;
	text-align: start;
	color: inherit;
}

/* the disc */
.sfq-teaser__art {
	position: relative;
	flex: none;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, #FCEFEC 0%, #F3D3D0 70%, #EBC0BE 100%);
	box-shadow: inset 0 -6px 14px rgba(223, 122, 125, .25);
}
.sfq-teaser__ring {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 1.5px dashed rgba(222, 34, 39, .38);
	animation: sfq-spin 18s linear infinite;
}
@keyframes sfq-spin { to { transform: rotate(360deg); } }
.sfq .sfq-teaser__p, .sfq-teaser .sfq-teaser__p {
	position: absolute;
	bottom: 8px;
	left: 50%;
	width: auto;
	height: 48px;
	max-width: none;
	object-fit: contain;
	filter: drop-shadow(0 5px 5px rgba(53, 42, 41, .3));
	transform-origin: 50% 100%;
	transition: transform .5s var(--q-ease);
}
.sfq-teaser .sfq-teaser__p--0 { transform: translateX(-50%) translateX(-14px) rotate(-16deg) scale(.86); }
.sfq-teaser .sfq-teaser__p--1 { transform: translateX(-50%) translateX(14px) rotate(16deg) scale(.86); }
.sfq-teaser .sfq-teaser__p--2 { transform: translateX(-50%); z-index: 1; height: 52px; }
.sfq-teaser__open:hover .sfq-teaser__p--0 { transform: translateX(-50%) translateX(-18px) rotate(-22deg) scale(.88); }
.sfq-teaser__open:hover .sfq-teaser__p--1 { transform: translateX(-50%) translateX(18px) rotate(22deg) scale(.88); }
.sfq-teaser__open:hover .sfq-teaser__p--2 { transform: translateX(-50%) translateY(-3px); }
.sfq-teaser__q {
	position: absolute;
	z-index: 2;
	top: -6px;
	inset-inline-end: -6px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--t-paper);
	background: var(--q-red);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	animation: sfq-nudge 3.2s ease-in-out infinite;
}
@keyframes sfq-nudge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-14deg) scale(1.08); } 86% { transform: rotate(10deg) scale(1.08); } }

.sfq-teaser__text { display: grid; gap: 3px; min-width: 0; }
.sfq-teaser__text strong { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--t-ink); }
.sfq-teaser__text > span:not(.sfq-teaser__steps) { font-size: 12.5px; line-height: 1.55; color: var(--t-stone); }
.sfq-teaser__steps { display: flex; gap: 4px; margin-top: 4px; }
.sfq-teaser__steps i { width: 14px; height: 3px; border-radius: 3px; background: rgba(53, 42, 41, .14); }
.sfq-teaser__steps i:first-child { background: var(--q-red); width: 22px; }

.sfq-teaser__cta {
	flex: none;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--q-red);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 10px 20px -10px rgba(222, 34, 39, .8);
	transition: background-color .3s ease;
}
.sfq-teaser__cta i {
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .3s var(--q-ease);
}
html[dir="ltr"] .sfq-teaser__cta i { transform: rotate(135deg); }
.sfq-teaser__open:hover .sfq-teaser__cta { background: var(--q-red-d); }
.sfq-teaser__open:hover .sfq-teaser__cta i { transform: translateX(-3px) rotate(-45deg); }
html[dir="ltr"] .sfq-teaser__open:hover .sfq-teaser__cta i { transform: translateX(3px) rotate(135deg); }

/* close: a small chip on the card's corner */
.sfq-teaser__x {
	position: absolute;
	top: -10px;
	inset-inline-end: -10px;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--t-ink) !important;
	color: var(--t-paper) !important;
	font-size: 11px;
	box-shadow: 0 6px 14px -6px rgba(53, 42, 41, .7);
	transition: transform .3s var(--q-ease);
}
.sfq-teaser__x:hover { transform: rotate(90deg); }

/* ---------------------------------------------------------------- dialog -- */
.sfq {
	width: min(600px, calc(100% - 32px));
	max-width: none;
	max-height: min(88svh, 760px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--q-line);
	border-radius: 20px;
	background: rgba(14, 11, 12, .94);
	-webkit-backdrop-filter: blur(18px) saturate(1.1);
	backdrop-filter: blur(18px) saturate(1.1);
	box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
	overflow: hidden;
}
.sfq::backdrop {
	background: rgba(6, 6, 10, .62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.sfq[open] { animation: sfq-in .5s var(--q-ease); }
@keyframes sfq-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.sfq__panel {
	display: flex;
	flex-direction: column;
	max-height: inherit;
	background: radial-gradient(80% 50% at 85% 0%, rgba(222, 34, 39, .14), transparent 70%);
}
.sfq__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 14px;
}
.sfq__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--q-mist); }
.sfq__x {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50% !important;
	border: 1px solid var(--q-line) !important;
	color: var(--q-mist) !important;
	font-size: 14px;
	transition: color .3s ease, border-color .3s ease;
}
.sfq__x:hover { color: var(--q-cream) !important; border-color: rgba(243, 237, 233, .4) !important; }

.sfq__progress { height: 2px; margin-inline: 22px; background: var(--q-line); overflow: hidden; border-radius: 2px; }
.sfq__progress span {
	display: block;
	height: 100%;
	background: var(--q-red);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform .6s var(--q-ease);
}
html[dir="ltr"] .sfq__progress span { transform-origin: 0 50%; }

.sfq__body { padding: 22px 22px 26px; overflow-y: auto; overscroll-behavior: contain; }

.sfq .is-enter { animation: sfq-step .5s var(--q-ease); }
@keyframes sfq-step { from { opacity: 0; transform: translateY(10px); } }

.sfq__count { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--q-red); }
.sfq__q { margin: 0 0 20px; font-size: clamp(22px, 4.6vw, 28px); font-weight: 600; line-height: 1.35; outline: none; }

.sfq__opts { display: grid; gap: 10px; }
.sfq__opt {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 12px 18px !important;
	border: 1px solid var(--q-line) !important;
	border-radius: 14px !important;
	background: var(--q-ink-2) !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-align: start;
	transition: border-color .3s ease, background-color .3s ease;
}
.sfq__opt::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid rgba(243, 237, 233, .3);
	transition: border-color .3s ease, background-color .3s ease;
}
.sfq__opt:hover { border-color: rgba(222, 34, 39, .7) !important; background: rgba(222, 34, 39, .08) !important; }
.sfq__opt:hover::after { border-color: var(--q-red); background: var(--q-red); box-shadow: inset 0 0 0 3px var(--q-ink-2); }

.sfq__back {
	margin-top: 18px;
	min-height: 40px;
	font-size: 14px;
	font-weight: 600;
	color: var(--q-mist) !important;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: rgba(243, 237, 233, .25);
}
.sfq__back:hover { color: var(--q-cream) !important; }

/* ---------------------------------------------------------------- result -- */
.sfq__pick {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin-top: 6px;
}
.sfq__img {
	height: 170px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	border-radius: 14px;
	background: radial-gradient(70% 60% at 50% 100%, rgba(222, 34, 39, .25), transparent 70%), var(--q-ink-2);
	overflow: hidden;
}
.sfq__img img { max-height: 92%; max-width: 92%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .5)); }
.sfq__info { display: grid; gap: 8px; }
.sfq__name { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.4; outline: none; }
.sfq__price { margin: 0; font-size: 17px; font-weight: 700; }
.sfq__why { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(243, 237, 233, .82); }
.sfq__routine {
	margin: 4px 0 0;
	padding: 10px 12px;
	border-inline-start: 2px solid var(--q-red);
	background: rgba(243, 237, 233, .04);
	font-size: 14px;
	line-height: 1.7;
	color: rgba(243, 237, 233, .86);
}
.sfq__routine strong { color: var(--q-cream); }

.sfq__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.sfq__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid rgba(243, 237, 233, .3);
	border-radius: 999px;
	color: var(--q-cream);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .3s ease, border-color .3s ease;
}
.sfq__btn:hover { border-color: var(--q-cream); color: var(--q-cream); }
.sfq__btn--red { background: var(--q-red); border-color: var(--q-red); color: #fff; }
.sfq__btn--red:hover { background: var(--q-red-d); border-color: var(--q-red-d); color: #fff; }
.sfq__link {
	min-height: 44px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--q-cream) !important;
	background: linear-gradient(var(--q-red), var(--q-red)) no-repeat 100% 100% / 100% 1px !important;
	padding-bottom: 2px !important;
}

.sfq__with { margin: 24px 0 10px; font-size: 13px; font-weight: 700; color: var(--q-mist); }
.sfq__more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sfq__mini {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 8px 12px 8px 8px;
	border: 1px solid var(--q-line);
	border-radius: 12px;
	background: var(--q-ink-2);
	color: var(--q-cream);
	text-decoration: none;
	transition: border-color .3s ease;
}
.sfq__mini:hover { border-color: rgba(222, 34, 39, .7); color: var(--q-cream); }
.sfq__mini img { width: 40px; height: 48px; object-fit: contain; flex: none; }
.sfq__mini-text { display: grid; gap: 2px; min-width: 0; }
.sfq__mini-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.sfq__mini-price { font-size: 12.5px; color: var(--q-mist); }

.sfq__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 18px; }
.sfq__note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--q-mist); text-decoration: none; }
a.sfq__note:hover { color: var(--q-cream); }

/* ------------------------------------------------------- phones: a sheet -- */
@media (max-width: 760px) {
	.sfq {
		width: 100%;
		max-height: 90svh;
		margin: auto 0 0;
		border-radius: 20px 20px 0 0;
		border-bottom: 0;
	}
	.sfq[open] { animation: sfq-up .55s var(--q-ease); }
	@keyframes sfq-up { from { transform: translateY(40px); opacity: 0; } }
	.sfq__head { padding: 14px 18px 10px; }
	.sfq__progress { margin-inline: 18px; }
	.sfq__body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
	.sfq__pick { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.sfq__img { height: 136px; }
	.sfq__name { font-size: 18px; }
	.sfq__ctas .sfq__btn { flex: 1 1 calc(50% - 10px); }
	.sfq__more { grid-template-columns: minmax(0, 1fr); }

	/* the teaser leaves the WhatsApp corner (bottom-left) free */
	.sfq-teaser { right: 12px; left: 80px; bottom: 14px; max-width: none; border-radius: 22px; }
	html[dir="ltr"] .sfq-teaser { left: 12px; right: 80px; }
	.sfq-teaser__open { padding: 10px; gap: 12px; flex: 1; }
	.sfq-teaser__art { width: 54px; height: 54px; }
	.sfq-teaser .sfq-teaser__p { height: 40px; bottom: 6px; }
	.sfq-teaser .sfq-teaser__p--2 { height: 44px; }
	.sfq-teaser__text > span:not(.sfq-teaser__steps) { display: none; }
	.sfq-teaser__text strong { font-size: 15px; }
	.sfq-teaser__cta { margin-inline-start: auto; }

	html.sfq-open .sfb-wa-float { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.sfq[open], .sfq .is-enter { animation: none; }
	.sfq-teaser, .sfq__progress span, .sfq-teaser__p, .sfq-teaser__x { transition: none; }
	.sfq-teaser__ring, .sfq-teaser__q { animation: none; }
}

/* ===================================================================== FAB ==
   2026-11-21: the hero's text link «محتارة؟ اكتشفي الأنسب لك» becomes this
   floating door to the quiz — a light disc with three of OUR devices fanned
   inside (same trio as the teaser card), a dashed turning ring, a red «؟», and
   a label that slides out on hover / focus (and once, by itself, for touch).
   The link stays in the markup, hidden here. One accent (#DE2227);
   transform + opacity only — the pulse is a scaled ring, never an animated
   shadow. Bottom-right: WhatsApp owns the bottom-left. */
.sfb-home3d .sfb-quizlink,
.sfb-niche .sfb-quizlink { display: none !important; }

.sfq-fab {
	--f-ink: #352A29; --f-stone: #6A5A55; --f-red: #DE2227;
	--f-ease: cubic-bezier(.16, 1, .3, 1);
	position: fixed;
	z-index: 9980;                       /* under the teaser card (9990) */
	right: 24px;
	bottom: 26px;
	display: block;
	inline-size: 76px; block-size: 76px;
	padding: 0; border: 0; border-radius: 50%;
	background: none;
	cursor: pointer;
	font-family: var(--sfb-cairo, "Cairo", "Segoe UI", Tahoma, sans-serif);
	transition: transform .35s var(--f-ease), opacity .3s ease, visibility 0s;
}
.sfq-fab[hidden] { display: none !important; }
.sfq-fab:focus-visible { outline: 3px solid var(--f-red); outline-offset: 4px; }

/* the disc */
.sfq-fab__disc {
	position: absolute; inset: 0; border-radius: 50%;
	background: radial-gradient(circle at 50% 28%, #fff 0%, #FCEFEC 52%, #F3D3D0 100%);
	box-shadow: 0 0 0 3px #fff, 0 16px 30px -10px rgba(53, 42, 41, .55);
}
.sfq-fab__ring {
	position: absolute; inset: -7px; border-radius: 50%;
	border: 1.5px dashed rgba(222, 34, 39, .45);
	pointer-events: none;
	animation: sfq-fab-spin 18s linear infinite;
}
.sfq-fab__pulse {
	position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid var(--f-red); opacity: 0; pointer-events: none;
	animation: sfq-fab-pulse 3.4s ease-out infinite;
}
.sfq-fab__p {
	position: absolute; bottom: 10px; left: 50%;
	width: auto; height: 52px; max-width: none; object-fit: contain;
	filter: drop-shadow(0 5px 5px rgba(53, 42, 41, .32));
	transform-origin: 50% 100%;
	transition: transform .5s var(--f-ease);
	pointer-events: none;
}
.sfq-fab__p--0 { transform: translateX(-50%) translateX(-16px) rotate(-16deg) scale(.86); }
.sfq-fab__p--1 { transform: translateX(-50%) translateX(16px) rotate(16deg) scale(.86); }
.sfq-fab__p--2 { transform: translateX(-50%); z-index: 1; height: 58px; }
.sfq-fab__q {
	position: absolute; z-index: 2; top: -4px; right: -4px;
	display: grid; place-items: center;
	inline-size: 28px; block-size: 28px; border-radius: 50%;
	border: 3px solid #fff; background: var(--f-red); color: #fff;
	font-size: 14px; font-weight: 800; line-height: 1;
	box-shadow: 0 6px 12px -4px rgba(222, 34, 39, .6);
	animation: sfq-fab-nudge 3.4s ease-in-out infinite;
}

/* the label */
.sfq-fab__tip {
	position: absolute; right: calc(100% + 16px); top: 50%;
	display: grid; gap: 2px; white-space: nowrap; text-align: start;
	padding: 11px 18px; border-radius: 18px;
	background: #fff; color: var(--f-ink);
	box-shadow: 0 18px 36px -14px rgba(53, 42, 41, .5), 0 0 0 1px rgba(53, 42, 41, .06);
	opacity: 0; transform: translate(12px, -50%); pointer-events: none;
	transition: opacity .25s ease, transform .4s var(--f-ease);
	animation: sfq-fab-tip 8s ease 4s 1 both;   /* one nudge for touch users, who have no hover */
}
.sfq-fab__tip strong { font-size: 15px; font-weight: 800; line-height: 1.35; }
.sfq-fab__tip span { font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--f-stone); }

@media (hover: hover) and (pointer: fine) {
	.sfq-fab:hover { transform: scale(1.06); }
	.sfq-fab:hover .sfq-fab__p--0 { transform: translateX(-50%) translateX(-20px) rotate(-22deg) scale(.9); }
	.sfq-fab:hover .sfq-fab__p--1 { transform: translateX(-50%) translateX(20px) rotate(22deg) scale(.9); }
	.sfq-fab:hover .sfq-fab__p--2 { transform: translateX(-50%) translateY(-4px); }
}
.sfq-fab:hover .sfq-fab__tip,
.sfq-fab:focus-visible .sfq-fab__tip { animation: none; opacity: 1; transform: translate(0, -50%); }
.sfq-fab:active { transform: scale(.96); }

/* steps aside for the teaser card, the quiz, the 3D tour and the drawer */
.sfq-teaser:not([hidden]) ~ .sfq-fab,
html.sfq-open .sfq-fab,
html.sfb-tour-open .sfq-fab,
body.sfb-drawer-open .sfq-fab {
	opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.8);
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

@keyframes sfq-fab-spin  { to { transform: rotate(360deg); } }
@keyframes sfq-fab-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sfq-fab-nudge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-14deg) scale(1.1); } 86% { transform: rotate(10deg) scale(1.1); } }
@keyframes sfq-fab-tip {
	0%      { opacity: 0; transform: translate(12px, -50%); }
	8%, 80% { opacity: 1; transform: translate(0, -50%); }
	100%    { opacity: 0; transform: translate(12px, -50%); }
}
@media (max-width: 480px) {
	.sfq-fab { right: 18px; bottom: 22px; inline-size: 64px; block-size: 64px; }
	.sfq-fab__p { height: 44px; bottom: 8px; }
	.sfq-fab__p--2 { height: 49px; }
	.sfq-fab__p--0 { transform: translateX(-50%) translateX(-13px) rotate(-16deg) scale(.86); }
	.sfq-fab__p--1 { transform: translateX(-50%) translateX(13px) rotate(16deg) scale(.86); }
	.sfq-fab__tip { padding: 9px 14px; }
	.sfq-fab__tip strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.sfq-fab, .sfq-fab * { animation: none !important; transition: none !important; }
}
