/* ============================================================================
   Strawberry for Beauty — global chrome
   header · mega · search · drawer · footer · floating WhatsApp

   Scope: everything lives under .sfb-nav / .sfb-drawer / .sfb-foot / .sfb-wa-*
   or a body.sfb-* class. No bare element selectors, so this file cannot leak
   into the 3D landing pages or the WooCommerce block templates.

   #DE2227 is the only accent, and it is used for interaction and emphasis —
   never as a large background field.
   ========================================================================== */

:root {
	--sfb-red:      #DE2227;
	--sfb-red-dark: #B71C20;
	--sfb-ink:      #171314;
	--sfb-ink-2:    #241D1F;
	--sfb-paper:    #FFFFFF;
	--sfb-mute:     #7A7175;
	--sfb-line:     rgba(23, 19, 20, .10);
	--sfb-line-dk:  rgba(255, 255, 255, .12);

	--sfb-nav-h:    76px;
	--sfb-ease:     cubic-bezier(.22, .61, .36, 1);

	--sfb-f-head:   var(--sfb-cairo);
	--sfb-f-body:   var(--sfb-cairo);
	--sfb-f-num:    var(--sfb-cairo);
}

@media (max-width: 782px) {
	:root { --sfb-nav-h: 64px; }
}

/* Never inherit the page's box model. The drawer is exactly 360px wide with
   ~40px of horizontal padding; under content-box that is a 400px panel on a
   360px phone, i.e. guaranteed horizontal scroll. Scoped to our own trees so
   it cannot alter WooCommerce or the 3D pages. */
.sfb-nav, .sfb-nav *,
.sfb-drawer, .sfb-drawer *,
.sfb-scrim,
.sfb-foot, .sfb-foot *,
.sfb-wa-float, .sfb-wa-float * { box-sizing: border-box; }

/* The block pipeline wraps template parts in an extra element; neutralise it
   so it cannot introduce a stray box or margin around a fixed header. */
.wp-block-template-part:has(> .sfb-nav),
.wp-block-template-part:has(> .sfb-foot) { display: contents; }

/* Fixed header would otherwise sit on top of the first section. Pages with a
   full-bleed hero behind the bar opt out. */
body.sfb-chrome:not(.sfb-over-hero) { padding-top: var(--sfb-nav-h); }

/* Skip link — the first element after <body> (printed by sfb_sf_canvas_open()).
   Visually hidden until it takes keyboard focus, then a small pill at the
   inline-start corner of the viewport. Nothing animates (no `top`, no
   box-shadow transition): it simply appears. The focus ring is the brand red. */
body.sfb-chrome .sfb-skip {
	position: absolute;
	inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}
body.sfb-chrome .sfb-skip:focus,
body.sfb-chrome .sfb-skip:focus-visible {
	position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200;
	inline-size: auto; block-size: auto; margin: 0; padding: .7rem 1.1rem;
	overflow: visible; clip: auto; clip-path: none; white-space: normal;
	background: var(--sfb-paper); color: var(--sfb-ink);
	font-family: var(--sfb-cairo); font-size: .9rem; line-height: 1.4; text-decoration: none;
	border-radius: 10px;
	outline: 3px solid var(--sfb-red); outline-offset: 2px;
}

/* The skip target is focused by script/hash navigation, not by Tab — no page-wide
   ring around it — and must clear the fixed header when it scrolls into view. */
body.sfb-chrome #sfb-main { scroll-margin-block-start: var(--sfb-nav-h); }
body.sfb-chrome #sfb-main:focus { outline: none; }

/* ---------------------------------------------------------------- header -- */

.sfb-nav {
	position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 70;
	font-family: var(--sfb-cairo);
	background: var(--sfb-paper);

	/* Declared, not inherited. Every colour in this bar resolves from `inherit`
	   — .sfb-nav__links a, .sfb-ico and .sfb-brand__words .t all take
	   currentColor — so until this line existed the header's legibility was
	   decided by whatever set `body { color }`: the block theme's
	   --wp--preset--color--contrast on the shop, something else entirely on the
	   classic 3D pipeline, and anything a plugin cares to set tomorrow. A header
	   must not be one theme.json edit away from grey-on-white. */
	color: var(--sfb-ink);

	border-block-end: 1px solid var(--sfb-line);
	/* only transform/opacity/colour animate — never height */
	transition: background .28s var(--sfb-ease), border-color .28s var(--sfb-ease),
	            box-shadow .28s var(--sfb-ease), color .28s var(--sfb-ease);

	/* The bar owns its own box, explicitly.
	   assets/hall/hall-home.css still carries the homepage's *previous* header
	   under this same class name — the markup moved to template-parts/sfb-header.php
	   in the 2026-08-18 chrome session but that stylesheet was not cleaned out, and
	   it is a vendor drop that gets overwritten wholesale on every hall release, so
	   it cannot be relied on to stay clean. Its `display:flex` turned this element
	   into the flex row (that job belongs to .sfb-nav__in), which shrink-wrapped the
	   header content and made the search panel a sibling column instead of a bar
	   underneath; its padding added 32px to a bar whose height must never change.
	   Restating the defaults here is what keeps the homepage header identical to
	   every other page's, whatever loads before us. */
	display: block;
	padding: 0;
	gap: normal;
	justify-content: normal;
	align-items: normal;
}

/* A transparent bar over a live 3D canvas has no contrast guarantee: the hall
   stage is dark at rest but bright wherever a lit device passes under the text.
   This is the backing that makes the white legible in both cases. It fades out
   as .is-stuck brings the solid background in, so the two never stack. */
.sfb-nav.is-over-hero::after {
	content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; z-index: -1;
	block-size: calc(var(--sfb-nav-h) * 2);
	background: linear-gradient(to bottom, rgba(6, 6, 10, .74), rgba(6, 6, 10, .32) 46%, transparent);
	pointer-events: none;
	transition: opacity .28s var(--sfb-ease);
}
.sfb-nav.is-over-hero.is-stuck::after { opacity: 0; }

.sfb-nav.is-over-hero:not(.is-stuck) .sfb-nav__links a,
.sfb-nav.is-over-hero:not(.is-stuck) .sfb-brand__words { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.sfb-nav.is-over-hero:not(.is-stuck) .sfb-ico svg { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); }

.sfb-nav__in {
	display: flex; align-items: center; gap: 1.25rem;
	block-size: var(--sfb-nav-h);
	max-inline-size: 1440px; margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2.25rem);
}

/* Transparent over a hero, solid once she scrolls past it. Height never
   changes between the two states, so nothing below can jump. */
.sfb-nav.is-over-hero {
	background: transparent;
	border-block-end-color: transparent;
	color: #fff;
}
/* Opaque, not frosted.
   This bar used to be rgba(255,255,255,.82) over a 14px backdrop blur. Frosted
   glass is only safe over content you control, and this header floats over
   whatever the page happens to be scrolled to — a product photo, the dark hall,
   a category banner. At 82% over a dark image the bar lands around 0.82
   luminance, which holds --sfb-ink at a comfortable ratio but drops the red
   brand mark (#DE2227, L=0.168) to roughly 3.2:1 — under the 4.5:1 floor, and
   drifting with every image behind it. Contrast that changes as she scrolls is
   the "عدم تباين" report.

   Opaque white fixes the ratio at a known 4.8:1 for the red and 15:1 for the
   ink, on every page, over every image. The blur is dropped rather than kept at
   a higher alpha because it does nothing once the layer is opaque, and it was
   costing a compositor pass on every scroll frame. Separation now comes from
   the hairline and shadow, which is the more durable way to say "this is a
   surface above the page" anyway. */
.sfb-nav.is-stuck {
	background: var(--sfb-paper);
	border-block-end-color: var(--sfb-line);
	box-shadow: 0 1px 3px rgba(23, 19, 20, .05), 0 6px 22px rgba(23, 19, 20, .07);
	color: var(--sfb-ink);
}

/* brand ------------------------------------------------------------------- */

.sfb-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; flex: 0 0 auto; }
.sfb-logo { display: block; block-size: 44px; inline-size: auto; }
.sfb-brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.sfb-brand__words .n {
	font-family: var(--sfb-cairo); font-weight: 600; font-size: 1.12rem;
	color: var(--sfb-red);
}
.sfb-brand__words .t {
	font-family: var(--sfb-cairo); font-weight: 500; font-size: .58rem;
	letter-spacing: .22em; color: currentColor; opacity: .72;
}
.sfb-nav.is-over-hero:not(.is-stuck) .sfb-brand__words .n { color: #fff; }

@media (max-width: 600px) {
	.sfb-brand__words { display: none; }
	.sfb-logo { block-size: 38px; }
}

/* links ------------------------------------------------------------------- */

.sfb-nav__links { flex: 1 1 auto; display: flex; justify-content: center; }
.sfb-nav__links > ul { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.sfb-nav__links li { position: relative; }

.sfb-nav__links a {
	position: relative; display: inline-flex; align-items: center; gap: .28rem;
	padding: .45rem .1rem;
	font-family: var(--sfb-cairo); font-weight: 500; font-size: 1.02rem;
	color: inherit; text-decoration: none; white-space: nowrap;
	transition: color .2s var(--sfb-ease);
}

/* the red rule is drawn from the right, because the reading order is RTL */
.sfb-nav__links a::after {
	content: ""; position: absolute; inset-block-end: 0; inset-inline: 0;
	block-size: 2px; background: var(--sfb-red);
	transform: scaleX(0); transform-origin: right center;
	transition: transform .3s var(--sfb-ease);
}
.sfb-nav__links a:hover::after,
.sfb-nav__links a:focus-visible::after,
.sfb-nav__links a[aria-current="page"]::after,
.sfb-nav__links li.is-open > a::after { transform: scaleX(1); }
.sfb-nav__links a:hover { color: var(--sfb-red); }
/* the page you are on reads red too — but only on a solid bar; over the 3D hero the bar is white-on-dark */
.sfb-nav:not(.is-over-hero) .sfb-nav__links a[aria-current="page"],
.sfb-nav.is-stuck .sfb-nav__links a[aria-current="page"] { color: var(--sfb-red); font-weight: 700; }
.sfb-nav__links a:focus-visible { outline: 2px solid var(--sfb-red); outline-offset: 4px; border-radius: 6px; }

.sfb-caret { inline-size: 14px; block-size: 14px; transition: transform .25s var(--sfb-ease); }
.sfb-nav__links li.is-open .sfb-caret { transform: rotate(180deg); }

@media (max-width: 980px) {
	.sfb-nav__links { display: none; }
}

/* mega -------------------------------------------------------------------- */

.sfb-mega {
	position: absolute; inset-block-start: calc(100% + 14px);

	/* The panel hangs directly under its trigger: `inset-inline-start` resolves
	   to `right` under RTL — which this whole site is — so the panel's start edge
	   lands on the trigger's start edge and it opens inward, away from the screen
	   edge. Both directions are handled by the logical property, so no physical
	   `left`/`right` is needed.

	   It was centred on the trigger before (`left: 50%` + `translateX(-50%)`),
	   which spread 620px of panel evenly either side of a ~60px word and read as
	   floating loose of "الأجهزة" rather than belonging to it. */
	inset-inline-start: 0; inset-inline-end: auto;
	transform: translateY(-6px);

	inline-size: min(780px, calc(100vw - 2rem));
	background: var(--sfb-paper); color: var(--sfb-ink);
	border: 1px solid var(--sfb-line); border-radius: 16px;
	box-shadow: 0 18px 50px rgba(23, 19, 20, .13);
	padding: 1.4rem 1.6rem;
	opacity: 0; visibility: hidden;
	transition: opacity .22s var(--sfb-ease), transform .22s var(--sfb-ease), visibility .22s;
}
.sfb-mega[hidden] { display: block; } /* [hidden] is the a11y state; CSS drives the reveal */
.sfb-nav__links li.is-open .sfb-mega {
	opacity: 1; visibility: visible; transform: translateY(0);
}

/* Bridges the 14px gap between the trigger and the panel. Without it the pointer
   crosses dead space on its way down, `mouseleave` fires on the <li>, and the
   panel closes before she can reach a link. It inherits `visibility` from the
   panel, so it cannot swallow clicks while the menu is shut. */
.sfb-mega::before {
	content: ""; position: absolute;
	inset-inline: 0; inset-block-start: -16px; block-size: 16px;
}

.sfb-mega__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 1.4rem 2rem; }
.sfb-mega__in:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.sfb-mega__h {
	font-family: var(--sfb-cairo); font-weight: 600; font-size: .82rem;
	letter-spacing: .06em; color: var(--sfb-mute);
	margin: 0 0 .7rem; padding-block-end: .55rem;
	border-block-end: 1px solid var(--sfb-line);
}
.sfb-mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sfb-mega a {
	display: flex; align-items: center; justify-content: space-between; gap: .8rem;
	padding: .5rem .6rem; border-radius: 9px;
	font-size: .92rem; color: var(--sfb-ink); text-decoration: none;
	transition: background .18s var(--sfb-ease), color .18s var(--sfb-ease);
}
.sfb-mega a::after { content: none; }
.sfb-mega a:hover { background: rgba(222, 34, 39, .06); color: var(--sfb-red); }

/* The panel sits inside <nav class="sfb-nav__links">, so the over-hero halo set
   on `.sfb-nav.is-over-hero:not(.is-stuck) .sfb-nav__links a` was matching every
   link in here too. That shadow exists to keep white bar text legible against
   the live 3D hall behind it; on the panel's white paper it is just a dark
   smudge under the text. Same specificity as the rule it cancels, so it has to
   stay below it in the file. Front page only, which is where it was reported. */
.sfb-nav.is-over-hero:not(.is-stuck) .sfb-mega a { text-shadow: none; }
.sfb-num {
	font-family: var(--sfb-cairo); font-weight: 500; font-size: .72rem;
	color: var(--sfb-mute); font-variant-numeric: tabular-nums;
}

/* Anchored to its trigger, the panel opens inward — leftward, under RTL. The bar
   hides its links below 981px, so the narrow end of the desktop range is where a
   620px panel would reach the far edge; it steps down before that happens. */
@media (max-width: 1200px) {
	.sfb-mega { inline-size: min(620px, calc(100vw - 2rem)); }
	.sfb-mega__in { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 1.2rem 1.4rem; }
}

/* devices: a two-column grid of cut-out thumbnails + names (transform/opacity only) */
.sfb-mega__devs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .5rem; }
.sfb-mega__dev { justify-content: flex-start; gap: .75rem; padding: .4rem .5rem; }
.sfb-mega__img {
	flex: 0 0 auto; display: grid; place-items: center;
	inline-size: 52px; block-size: 52px; border-radius: 14px;
	background: linear-gradient(150deg, #fff, #fbede8);
	border: 1px solid var(--sfb-line); overflow: hidden;
}
.sfb-mega__img img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 4px; transition: transform .35s var(--sfb-ease); }
.sfb-mega__dev:hover .sfb-mega__img img { transform: scale(1.12) rotate(-4deg); }
.sfb-mega__t { flex: 1 1 auto; min-inline-size: 0; font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* actions ----------------------------------------------------------------- */

.sfb-nav__acts { display: flex; align-items: center; gap: .3rem; flex: 0 0 auto; }

.sfb-ico {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	inline-size: 46px; block-size: 46px;
	border: 0; background: none; padding: 0; cursor: pointer;
	color: inherit; text-decoration: none; border-radius: 14px;
	transition: background .18s var(--sfb-ease), color .18s var(--sfb-ease), transform .25s var(--sfb-ease);
}
.sfb-ico svg { inline-size: 23px; block-size: 23px; }
.sfb-ico:hover { color: var(--sfb-red); background: rgba(222, 34, 39, .08); transform: translateY(-1px); }
.sfb-ico:focus-visible { outline: 2px solid var(--sfb-red); outline-offset: 2px; }

.sfb-cart-count {
	position: absolute; inset-block-start: 5px; inset-inline-start: 5px;
	min-inline-size: 19px; block-size: 19px; padding-inline: 4px;
	box-shadow: 0 0 0 2px var(--sfb-paper);
	display: grid; place-items: center;
	background: var(--sfb-red); color: #fff; border-radius: 999px;
	/* 700, not 600: the shared font request ships Space Grotesk at 400/500/700,
	   so 600 would be synthetically bolded and read fuzzy at 10px. */
	font-family: var(--sfb-cairo); font-weight: 700; font-size: .66rem;
	font-variant-numeric: tabular-nums; line-height: 1;
}
.sfb-cart-count[hidden] { display: none; }

.sfb-burger { display: none; }
@media (max-width: 980px) { .sfb-burger { display: inline-flex; } }
@media (max-width: 420px)  { .sfb-ico--wa { display: none; } }

/* search ------------------------------------------------------------------ */

.sfb-search {
	border-block-start: 1px solid var(--sfb-line);
	background: var(--sfb-paper); color: var(--sfb-ink);
}
.sfb-search[hidden] { display: none; }
.sfb-search form {
	display: flex; gap: .6rem; align-items: center;
	max-inline-size: 1440px; margin-inline: auto;
	padding: .85rem clamp(1rem, 3vw, 2.25rem);
}
.sfb-search input[type="search"] {
	flex: 1 1 auto; min-inline-size: 0;
	font-family: var(--sfb-cairo); font-size: 1rem; color: var(--sfb-ink);
	padding: .7rem .95rem;
	border: 1px solid var(--sfb-line); border-radius: 11px; background: #FAF8F8;
}
.sfb-search input[type="search"]:focus { outline: none; border-color: var(--sfb-red); background: #fff; }
/* The UA placeholder grey lands near 4.3:1 on this field's #FAF8F8 — just under
   the floor, and it is the only instruction the search box gives. Pinned to a
   tone that clears it. */
.sfb-search input[type="search"]::placeholder { color: #6B6367; opacity: 1; }
.sfb-search button {
	font-family: var(--sfb-cairo); font-weight: 700; font-size: .92rem;
	color: #fff; background: var(--sfb-red);
	border: 0; border-radius: 11px; padding: .72rem 1.4rem; cursor: pointer;
	transition: background .18s var(--sfb-ease);
}
.sfb-search button:hover { background: var(--sfb-red-dark); }

/* ---------------------------------------------------------------- drawer -- */

.sfb-scrim {
	position: fixed; inset: 0; z-index: 85;
	background: rgba(15, 11, 12, .52);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .34s var(--sfb-ease);
}
.sfb-scrim[hidden] { display: none; }
.sfb-scrim.is-on { opacity: 1; }

.sfb-drawer {
	position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 90;
	inline-size: 360px; max-inline-size: 100vw;
	background: var(--sfb-paper); color: var(--sfb-ink);
	font-family: var(--sfb-cairo);
	display: flex; flex-direction: column; gap: .35rem;
	padding: 1.1rem 1.25rem 2rem;
	overflow-y: auto; overscroll-behavior: contain;
	box-shadow: -18px 0 50px rgba(15, 11, 12, .18);
	/* transform, never `right` — compositor-only, and it cannot reflow */
	transform: translateX(100%);
	transition: transform .38s var(--sfb-ease);
}
.sfb-drawer[hidden] { display: flex; }      /* [hidden] is the a11y state only */
.sfb-drawer:not(.is-open) { visibility: hidden; }
.sfb-drawer.is-open { transform: translateX(0); visibility: visible; }

/* Same story as .sfb-nav above: hall-home.css still styles the drawer this page
   used to have, and its `.sfb-drawer a { opacity: 0 }` — an entrance animation
   keyed to a `.open` class this drawer never gets — left every link in the panel
   invisible on the homepage. Opening the burger there showed a blank white sheet.
   Only .sfb-drawer__nav li re-declares opacity below, which is why the category,
   account, WhatsApp and social rows were the ones that vanished.
   `justify-content` is restated for the same reason: theirs centred the column. */
.sfb-drawer a { opacity: 1; transform: none; }
.sfb-drawer { justify-content: flex-start; }

@media (max-width: 480px) { .sfb-drawer { inline-size: 100vw; } }

.sfb-drawer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sfb-drawer__brand .sfb-logo { block-size: 78px; }
.sfb-drawer__x {
	inline-size: 44px; block-size: 44px; flex: 0 0 auto;
	display: grid; place-items: center;
	border: 1px solid var(--sfb-line); border-radius: 12px;
	background: none; color: var(--sfb-ink); cursor: pointer;
	transition: background .18s var(--sfb-ease), color .18s var(--sfb-ease);
}
.sfb-drawer__x svg { inline-size: 19px; block-size: 19px; }
.sfb-drawer__x:hover { background: rgba(222, 34, 39, .07); color: var(--sfb-red); }

.sfb-drawer__nav ul { list-style: none; margin: .6rem 0 .3rem; padding: 0; }
.sfb-drawer__nav li {
	opacity: 0; transform: translateX(14px);
	transition: opacity .3s var(--sfb-ease), transform .3s var(--sfb-ease);
	transition-delay: calc(var(--i, 0) * 40ms);
}
.sfb-drawer.is-open .sfb-drawer__nav li { opacity: 1; transform: none; }
.sfb-drawer__nav a {
	display: block; padding: .72rem .2rem;
	font-family: var(--sfb-cairo); font-weight: 600; font-size: 1.12rem;
	color: var(--sfb-ink); text-decoration: none;
	border-block-end: 1px solid var(--sfb-line);
	transition: color .18s var(--sfb-ease);
}
.sfb-drawer__nav a:hover { color: var(--sfb-red); }

.sfb-acc { border-block-end: 1px solid var(--sfb-line); }
.sfb-acc__h {
	inline-size: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: .8rem; padding: .8rem .2rem;
	background: none; border: 0; cursor: pointer;
	font-family: var(--sfb-cairo); font-weight: 700; font-size: .95rem;
	color: var(--sfb-ink); text-align: start;
}
.sfb-acc__h svg { inline-size: 17px; block-size: 17px; flex: 0 0 auto; transition: transform .25s var(--sfb-ease); }
.sfb-acc__h[aria-expanded="true"] svg { transform: rotate(180deg); }
.sfb-acc__h[aria-expanded="true"] { color: var(--sfb-red); }
.sfb-acc__p[hidden] { display: none; }
.sfb-acc__p ul { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .1rem; }
.sfb-acc__p a {
	display: flex; align-items: center; justify-content: space-between; gap: .7rem;
	padding: .55rem .6rem; border-radius: 9px;
	font-size: .9rem; color: var(--sfb-ink); text-decoration: none;
	transition: background .18s var(--sfb-ease), color .18s var(--sfb-ease);
}
.sfb-acc__p a:hover { background: rgba(222, 34, 39, .06); color: var(--sfb-red); }

.sfb-drawer__acct { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 .2rem; }
.sfb-drawer__acct a {
	position: relative;
	display: flex; flex-direction: column; align-items: center; gap: .35rem;
	padding: .9rem .5rem; border-radius: 13px;
	border: 1px solid var(--sfb-line);
	font-size: .85rem; color: var(--sfb-ink); text-decoration: none;
	transition: border-color .18s var(--sfb-ease), color .18s var(--sfb-ease);
}
.sfb-drawer__acct a:hover { border-color: var(--sfb-red); color: var(--sfb-red); }
.sfb-drawer__acct svg { inline-size: 21px; block-size: 21px; }
.sfb-cart-count--inline { inset-block-start: 8px; inset-inline-start: 8px; }

.sfb-wa-wide {
	display: flex; align-items: center; justify-content: center; gap: .55rem;
	margin: .85rem 0 1rem; padding: .95rem 1rem;
	border-radius: 13px; background: #25D366; color: #fff;
	font-family: var(--sfb-cairo); font-weight: 700; font-size: .98rem;
	text-decoration: none;
	transition: transform .2s var(--sfb-ease), background .2s var(--sfb-ease);
}
.sfb-wa-wide svg { inline-size: 21px; block-size: 21px; }
.sfb-wa-wide:hover { background: #1FB855; transform: translateY(-2px); }

/* --------------------------------------------------------------- social -- */

.sfb-social { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; flex-wrap: wrap; }
.sfb-social a {
	display: grid; place-items: center;
	inline-size: 44px; block-size: 44px;      /* ≥44px touch target */
	border-radius: 12px; color: inherit; text-decoration: none;
	transition: color .2s var(--sfb-ease), background .2s var(--sfb-ease), transform .2s var(--sfb-ease);
}
.sfb-social svg {
	inline-size: 20px; block-size: 20px;
	/* per-icon optical correction — see sfb_social_links() */
	transform: scale(var(--sfb-ico-scale, 1));
}
.sfb-social a:hover { transform: translateY(-2px); }
.sfb-social a[aria-label*="فيسبوك"]:hover  { color: #1877F2; background: rgba(24, 119, 242, .10); }
.sfb-social a[aria-label*="إنستغرام"]:hover { color: #E1306C; background: rgba(225, 48, 108, .10); }
.sfb-social a[aria-label*="تيك توك"]:hover  { color: #25F4EE; background: rgba(255, 255, 255, .10); }
.sfb-social a[aria-label*="سناب"]:hover     { color: #111; background: #FFFC00; }
.sfb-social a[aria-label*="يوتيوب"]:hover   { color: #FF0000; background: rgba(255, 0, 0, .10); }

.sfb-social--drawer a { border: 1px solid var(--sfb-line); }

/* ---------------------------------------------------------------- footer -- */

.sfb-foot {
	/* transparent on purpose: the CTA band straddles the top edge, so only .sfb-foot__body is black */
	color: rgba(255, 255, 255, .82);
	font-family: var(--sfb-cairo); font-size: .96rem; line-height: 1.85;
	margin-block-start: 0;
}
.sfb-foot__body { background: var(--sfb-ink); border-block-start: 1px solid var(--sfb-line-dk); }

/* call-to-action band: overlaps the top edge, so the page above ends in a red
   shape instead of a hard cut into black. Red is a field here on purpose — it is
   the closing statement of the page, the same band the contact page ends with. */
.sfb-foot.has-cta .sfb-foot__body { border-block-start: 0; }
/* top half shows the page, bottom half is the footer's black: the band sits across the seam */
.sfb-foot__cta-wrap { background: linear-gradient(to bottom, transparent 50%, var(--sfb-ink) 50%); }
.sfb-foot__cta-wrap > .sfb-foot__cta { max-inline-size: calc(1440px - 2 * clamp(1rem, 3vw, 2.25rem)); margin-inline: auto; }
.sfb-foot__cta-wrap { padding-inline: clamp(1rem, 3vw, 2.25rem); }
.sfb-foot__cta {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; flex-wrap: wrap;
	padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.4rem, 3.4vw, 3rem);
	border-radius: 24px; color: #fff;
	background: linear-gradient(120deg, var(--sfb-red-dark), var(--sfb-red));
	box-shadow: 0 30px 60px -30px rgba(222, 34, 39, .65);
}
.sfb-foot__cta::before {
	content: ""; position: absolute; z-index: -1; inset-inline-start: -90px; inset-block-start: 50%;
	inline-size: 320px; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 68%);
	border: 1.5px solid rgba(255, 255, 255, .14); pointer-events: none;
}
.sfb-foot__cta-txt h2 { margin: 0; font-family: var(--sfb-cairo); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.35; color: #fff; }
.sfb-foot__cta-txt p { margin: .25rem 0 0; font-size: clamp(.96rem, 1.2vw, 1.1rem); color: rgba(255, 255, 255, .94); }
.sfb-foot__cta-acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.sfb-foot__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-block-size: 50px; padding: 0 1.5rem; border-radius: 999px;
	font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
	transition: transform .25s var(--sfb-ease), background .2s var(--sfb-ease);
}
.sfb-foot__btn svg { inline-size: 20px; block-size: 20px; flex: 0 0 auto; }
.sfb-foot__btn--light { background: #fff; color: var(--sfb-red); }
.sfb-foot__btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72); }
.sfb-foot__btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.sfb-foot__btn:hover { transform: translateY(-2px); }
.sfb-foot__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sfb-foot__in {
	display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.5rem 2.5rem;
	max-inline-size: 1440px; margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2.25rem) 2.5rem;
}
/* the band already covers the seam, so the columns start a little under it */
.sfb-foot.has-cta .sfb-foot__in { padding-block-start: clamp(1.75rem, 3.4vw, 3rem); }
/* no product categories → three columns instead of three plus a hole */
@media (min-width: 1025px) { .sfb-foot__in--3 { grid-template-columns: 1.4fr 1fr 1.3fr; } }
@media (max-width: 1024px) { .sfb-foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .sfb-foot__in { grid-template-columns: 1fr; gap: 2rem; } }

.sfb-foot__brand { display: inline-block; }
.sfb-foot__brand .sfb-logo { block-size: 96px; }
.sfb-foot__blurb { margin: .9rem 0 1rem; color: rgba(255, 255, 255, .74); max-inline-size: 34ch; }

/* headings: a short red rule under each, so the columns read as a set */
.sfb-foot__h {
	position: relative;
	font-family: var(--sfb-cairo); font-weight: 700; font-size: 1.05rem;
	color: #fff; margin: 0 0 1.15rem; padding-block-end: .7rem;
}
.sfb-foot__h::after {
	content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
	inline-size: 28px; block-size: 2px; background: var(--sfb-red); border-radius: 2px;
}
.sfb-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sfb-foot__list a {
	color: rgba(255, 255, 255, .82); text-decoration: none;
	display: inline-flex; align-items: center; gap: .55rem;
	transition: color .18s var(--sfb-ease), transform .18s var(--sfb-ease);
}
.sfb-foot__list a:hover { color: #fff; transform: translateX(-3px); }
.sfb-foot a:focus-visible, .sfb-foot button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.sfb-foot__list--contact li { display: flex; }
.sfb-foot__list--contact svg { inline-size: 18px; block-size: 18px; flex: 0 0 auto; color: var(--sfb-red); }
.sfb-foot__addr { flex-direction: column; align-items: flex-start; gap: .35rem; }
.sfb-foot__addr > a { align-items: flex-start; color: rgba(255, 255, 255, .78); }
.sfb-foot__addr > a svg { margin-block-start: .45rem; }
.sfb-foot__list a.sfb-foot__maplink {
	font-weight: 700; font-size: .9rem; color: #fff;
	padding: .35rem .9rem; border-radius: 999px; align-items: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.sfb-foot__maplink svg { inline-size: 16px; block-size: 16px; color: #fff; margin: 0; transition: transform .25s var(--sfb-ease); }
.sfb-foot__list a.sfb-foot__maplink:hover { background: rgba(222, 34, 39, .22); box-shadow: inset 0 0 0 1px var(--sfb-red); transform: none; }
.sfb-foot__maplink:hover svg { transform: translateX(-4px); }
.sfb-ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--sfb-cairo); font-weight: 500; }

.sfb-foot .sfb-social { margin-inline-start: -.55rem; }
.sfb-foot .sfb-social a { color: rgba(255, 255, 255, .82); }

.sfb-foot__bar {
	border-block-start: 1px solid var(--sfb-line-dk);
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem 1.5rem; flex-wrap: wrap;
	max-inline-size: 1440px; margin-inline: auto;
	/* the floating WhatsApp button lives bottom-left: keep the bar's content clear of it */
	padding: 1.25rem clamp(1rem, 3vw, 2.25rem); padding-left: max(clamp(1rem, 3vw, 2.25rem), 92px);
}
.sfb-foot__copy { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.sfb-pay { list-style: none; display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.sfb-pay li { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.sfb-pay__i { inline-size: 36px; block-size: 24px; flex: 0 0 auto; color: rgba(255, 255, 255, .7); }
.sfb-foot__top {
	display: grid; place-items: center; inline-size: 44px; block-size: 44px;
	border: 0; border-radius: 50%; padding: 0; cursor: pointer; color: #fff;
	background: rgba(255, 255, 255, .1);
	transition: background .2s var(--sfb-ease), transform .25s var(--sfb-ease);
}
.sfb-foot__top svg { inline-size: 20px; block-size: 20px; }
.sfb-foot__top:hover { background: var(--sfb-red); transform: translateY(-3px); }
@media (max-width: 900px) {
	/* on phones the WhatsApp float sits higher (bottom: 92px): leave room under the bar instead */
	.sfb-foot__bar { padding-left: clamp(1rem, 3vw, 2.25rem); padding-bottom: 5.5rem; }
}
@media (max-width: 640px) {
	.sfb-foot__cta { flex-direction: column; align-items: flex-start; }
	.sfb-foot__cta-acts, .sfb-foot__btn { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.sfb-foot *, .sfb-foot *::before, .sfb-foot *::after { transition: none !important; }
}

/* ------------------------------------------------- floating WhatsApp CTA -- */

.sfb-wa-float {
	position: fixed;
	/* `left`, deliberately physical. inset-inline-start would resolve to the
	   right-hand edge in this RTL document, which is the one place it must
	   not sit. */
	left: 20px;
	bottom: 24px;
	z-index: 60;                                   /* under the drawer (90) */
	inline-size: 56px; block-size: 56px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: #25D366; color: #fff;
	box-shadow: 0 8px 26px rgba(37, 211, 102, .34);
	text-decoration: none;
	transition: transform .22s var(--sfb-ease), box-shadow .22s var(--sfb-ease), opacity .22s var(--sfb-ease);
}
.sfb-wa-float svg { inline-size: 28px; block-size: 28px; }
.sfb-wa-float:hover { transform: scale(1.07); box-shadow: 0 12px 32px rgba(37, 211, 102, .46); }

/* clears the sticky "أضيفي إلى السلة" bar on the 3D pages */
@media (max-width: 900px) { .sfb-wa-float { bottom: 92px; } }

/* out of the way while the drawer is open */
body.sfb-drawer-open .sfb-wa-float { opacity: 0; pointer-events: none; transform: scale(.8); }

.sfb-wa-float__tip {
	position: absolute; inset-inline-start: calc(100% + 12px);
	white-space: nowrap;
	background: var(--sfb-ink); color: #fff;
	font-family: var(--sfb-cairo); font-size: .8rem;
	padding: .5rem .8rem; border-radius: 9px;
	opacity: 0; transform: translateX(-6px); pointer-events: none;
	transition: opacity .22s var(--sfb-ease), transform .22s var(--sfb-ease);
}
.sfb-wa-float:hover .sfb-wa-float__tip { opacity: 1; transform: translateX(0); }
@media (max-width: 900px) { .sfb-wa-float__tip { display: none; } }

/* a gentle heartbeat, until she interacts with anything */
@keyframes sfb-wa-pulse {
	0%, 88%, 100% { box-shadow: 0 8px 26px rgba(37, 211, 102, .34); }
	92%           { box-shadow: 0 8px 26px rgba(37, 211, 102, .34), 0 0 0 12px rgba(37, 211, 102, .16); }
	96%           { box-shadow: 0 8px 26px rgba(37, 211, 102, .34), 0 0 0 20px rgba(37, 211, 102, 0); }
}
.sfb-wa-float:not(.is-calm) { animation: sfb-wa-pulse 4s ease-in-out infinite; }

/* ------------------------------------------------------------------ a11y -- */

.sfb-nav a:focus-visible,
.sfb-nav button:focus-visible,
.sfb-drawer a:focus-visible,
.sfb-drawer button:focus-visible,
.sfb-foot a:focus-visible,
.sfb-foot button:focus-visible,
.sfb-wa-float:focus-visible {
	outline: 2px solid var(--sfb-red);
	outline-offset: 3px;
	border-radius: 8px;
}
.sfb-nav.is-over-hero:not(.is-stuck) a:focus-visible,
.sfb-nav.is-over-hero:not(.is-stuck) button:focus-visible { outline-color: #fff; }

body.sfb-drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.sfb-nav, .sfb-mega, .sfb-drawer, .sfb-drawer__nav li,
	.sfb-scrim, .sfb-wa-float, .sfb-wa-float__tip, .sfb-social a,
	.sfb-foot__list a, .sfb-caret, .sfb-acc__h svg {
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
	.sfb-wa-float:not(.is-calm) { animation: none; }
	.sfb-nav__links a::after { transition: none; }
}
