/* ==========================================================================
   Fashion Store demo — KOVA
   Editorial and soft: ivory, espresso ink, blush and bordeaux; square corners,
   ink hairlines, Playfair Display. A short KOVA intro, then a split hero slider.
   Every rule is under .fs-body, every class starts with fs-. Layout answers
   to the demo's width (container "demo").

   1. Fonts   2. Tokens & base   3. Buttons   4. Ticker & header
   5. Hero   6. Collections   7. Shop   8. Sale   9. Edit, perks, join
   10. Footer   11. Drawer, modal, toast   12. Motion   13. Narrower widths
   ========================================================================== */

/* 1. Fonts (SIL Open Font License): Playfair Display + Jost in English, Reem Kufi
   + IBM Plex Sans Arabic in Arabic (400–600 only). --------------------------- */
@font-face {
	font-family: "FS Playfair";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-400-900-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "FS Playfair";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-400-900-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "FS Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-300-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "FS Reem";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/reemkufi-400-600-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "FS Plex";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/plexar-400-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "FS Plex";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/plexar-500-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "FS Plex";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/plexar-600-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}


/* 2. Tokens & base ----------------------------------------------------------- */
.fs-body {
	/* Ivory paper, espresso ink, blush and a bordeaux accent. "signal" keeps its
	   role (the accent) from the first version. */
	--fs-bone: #f6f1ea;
	--fs-bone-2: #ece3d7;
	--fs-ink: #1d1916;
	--fs-signal: #8a2c3b;
	--fs-blush: #e8cfc4;
	--fs-muted: #6f665d;
	--fs-serif: "FS Playfair", "Didot", Georgia, serif;
	--fs-sans: "FS Jost", "Helvetica Neue", Arial, sans-serif;
	--fs-enter: 1.55s; /* When the hero starts moving: just after the intro. */
	--fs-ease: cubic-bezier(0.7, 0, 0.2, 1);
	--fs-pad: clamp(16px, 3.4cqi, 48px);
	--fs-dir: 1; /* -1 right to left: mirrors slides and nudges. */
	--fs-start: left;
	--fs-end: right;

	margin: 0;
	font-family: var(--fs-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--fs-ink);
	background: var(--fs-bone);
	-webkit-font-smoothing: antialiased;
}

:where(.fs-body) *,
:where(.fs-body) *::before,
:where(.fs-body) *::after {
	box-sizing: border-box;
}

:where(.fs-body) h1,
:where(.fs-body) h2,
:where(.fs-body) h3,
:where(.fs-body) h4,
:where(.fs-body) p,
:where(.fs-body) ul,
:where(.fs-body) ol {
	margin: 0;
	padding: 0;
}

:where(.fs-body) ul,
:where(.fs-body) ol {
	list-style: none;
}

:where(.fs-body) a {
	color: inherit;
	text-decoration: none;
}

:where(.fs-body) button,
:where(.fs-body) input {
	font: inherit;
	color: inherit;
	border-radius: 0;
}

:where(.fs-body) svg {
	display: block;
}

.fs-body :focus-visible {
	outline: 2px solid var(--fs-signal);
	outline-offset: 3px;
}

.fs-body [id] {
	scroll-margin-top: 80px;
}

.fs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.fs-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: square;
}

.fs-body em {
	font-family: var(--fs-serif);
	font-style: italic;
	font-weight: 500;
}

/* Photos: they fill their frame. Positioned photos get an explicit size. */
.fs-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Arabic: its own fonts, no letter-spacing (it breaks the joined letters), no
   slanted italics. */
[dir="rtl"] .fs-body {
	--fs-dir: -1;
	--fs-start: right;
	--fs-end: left;
}

[lang="ar"] .fs-body {
	--fs-serif: "FS Reem", "FS Playfair", Georgia, serif;
	--fs-sans: "FS Plex", "FS Jost", Tahoma, sans-serif;
}

/* Later slides, and the first one when it comes back, move at once. */
.fs-slide:not(:first-child),
.fs-hero.is-started {
	--fs-enter: 0s;
}

[lang="ar"] .fs-body * {
	font-style: normal;
	letter-spacing: 0;
}

/* Arabic letters rise above and fall below the Latin line: taller headings. */
[lang="ar"] .fs-body :is(h1, h2, h3, h2 span) {
	line-height: 1.35;
}

[dir="rtl"] .fs-body .fs-icon--arrow {
	scale: -1 1;
}

/* 3. Buttons --------------------------------------------------------------- */
.fs-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 26px;
	overflow: hidden;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid var(--fs-ink);
	cursor: pointer;
	isolation: isolate;
	transition: color 0.35s var(--fs-ease);
}

/* The fill wipes in from the side on hover. */
.fs-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: scaleX(0);
	transform-origin: var(--fs-end);
	transition: transform 0.45s var(--fs-ease);
}

.fs-btn:hover::before {
	transform: scaleX(1);
	transform-origin: var(--fs-start);
}

.fs-btn .fs-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.35s var(--fs-ease);
}

.fs-btn:hover .fs-icon {
	transform: translateX(calc(4px * var(--fs-dir)));
}

.fs-btn--ink {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-btn--ink::before {
	background: var(--fs-signal);
}

.fs-btn--bone {
	color: var(--fs-ink);
	background: var(--fs-bone);
	border-color: var(--fs-bone);
}

.fs-btn--bone::before {
	background: var(--fs-ink);
}

.fs-btn--bone:hover {
	color: var(--fs-bone);
}

.fs-btn--signal {
	color: #ffffff;
	background: var(--fs-signal);
	border-color: var(--fs-signal);
}

.fs-btn--signal::before {
	background: var(--fs-ink);
}

.fs-btn--block {
	width: 100%;
}

.fs-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.fs-link {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 4px;
	transition: background-size 0.4s var(--fs-ease);
}

.fs-link:hover {
	background-size: 0 1px;
	background-position: 100% 100%;
}

.fs-iconbtn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

/* 4. Ticker & header ------------------------------------------------------- */
.fs-ticker {
	overflow: hidden;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-ticker__track {
	display: flex;
	width: max-content;
	animation: fs-ticker 28s linear infinite;
}

.fs-ticker p {
	display: flex;
}

.fs-ticker span {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	padding: 10px 14px;
	white-space: nowrap;
}

.fs-ticker span::after {
	content: "✦";
	color: var(--fs-signal);
}

@keyframes fs-ticker {
	to {
		transform: translateX(calc(-50% * var(--fs-dir)));
	}
}

.fs-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--fs-bone);
	border-bottom: 1px solid var(--fs-ink);
	transition: box-shadow 0.3s;
}

.fs-header.is-scrolled {
	box-shadow: 0 10px 30px -20px rgb(0 0 0 / 0.5);
}

.fs-header__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
	padding-inline: var(--fs-pad);
}

.fs-nav {
	display: flex;
	gap: 28px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.fs-nav a {
	position: relative;
	padding-block: 6px;
}

.fs-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: var(--fs-end);
	transition: transform 0.4s var(--fs-ease);
}

.fs-nav a:hover::after {
	transform: scaleX(1);
	transform-origin: var(--fs-start);
}

.fs-nav__sale {
	color: var(--fs-signal);
}

.fs-logo {
	grid-column: 2;
	font-family: var(--fs-serif);
	font-size: 2.3rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1;
}

.fs-tools {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
}

.fs-lang {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	font-family: var(--fs-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--fs-ink);
	border: 1px solid var(--fs-ink);
	transition: color 0.25s, background-color 0.25s;
}

.fs-lang:hover {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-lang:lang(ar) {
	font-family: "FS Reem", serif;
}

.fs-bagbtn__count {
	position: absolute;
	top: 4px;
	inset-inline-end: 2px;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--fs-signal);
	border-radius: 9px;
}

.fs-bagbtn.is-bumped .fs-bagbtn__count {
	animation: fs-bump 0.5s var(--fs-ease);
}

@keyframes fs-bump {
	40% {
		transform: scale(1.5);
	}
}

.fs-burger {
	display: none;
}

.fs-burger .fs-icon:last-child,
.fs-burger[aria-expanded="true"] .fs-icon:first-child {
	display: none;
}

.fs-burger[aria-expanded="true"] .fs-icon:last-child {
	display: block;
}

.fs-search {
	padding: 14px var(--fs-pad);
	border-top: 1px solid var(--fs-ink);
}

.fs-search[hidden] {
	display: none;
}

.fs-search__in {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 720px;
	margin: 0 auto;
	border-bottom: 1px solid var(--fs-ink);
}

.fs-search input {
	flex: 1;
	min-height: 48px;
	font-family: var(--fs-serif);
	font-size: 1.4rem;
	font-style: italic;
	background: none;
	border: 0;
	outline: none;
}

/* 5. Hero slider ------------------------------------------------------------- */
/* Split like a magazine spread: words on one page, the photo on the other.
   A new photo wipes up over the old one; the words rise line by line. Without
   JavaScript only the first slide shows. */
.fs-hero {
	position: relative;
	min-height: min(90vh, 880px);
	overflow: hidden;
	background: var(--fs-bone);
	border-bottom: 1px solid var(--fs-ink);
}

.fs-slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1.08fr;
	visibility: hidden;
}

.fs-slide.is-active {
	z-index: 2;
	visibility: visible;
}

/* The old slide stays underneath while the new photo wipes over it. */
.fs-slide.is-leaving {
	z-index: 1;
	visibility: visible;
	transition: visibility 0s 1.2s;
}

.fs-slide__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding: clamp(40px, 6cqi, 96px) var(--fs-pad) clamp(110px, 12cqi, 150px);
	background: var(--fs-bone);
	border-inline-end: 1px solid var(--fs-ink);
}

.fs-slide.is-leaving .fs-slide__text {
	opacity: 0;
	transition: opacity 0.4s;
}

.fs-slide__media {
	position: relative;
	overflow: hidden;
	background: var(--fs-bone-2);
	clip-path: inset(100% 0 0 0);
	transition: clip-path 1.2s var(--fs-ease);
}

.fs-slide.is-active .fs-slide__media,
.fs-slide.is-leaving .fs-slide__media {
	clip-path: inset(0 0 0 0);
}

.fs-slide__media .fs-photo {
	transform: scale(1.12);
	transition: transform 7s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.fs-slide.is-active .fs-slide__media .fs-photo {
	transform: scale(1);
}

/* A soft blush wash from the gutter, so the photo meets the paper gently. */
.fs-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(calc(90deg * var(--fs-dir)), rgb(232 207 196 / 0.35), transparent 35%);
	pointer-events: none;
}

.fs-issue {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.fs-issue span {
	padding: 6px 14px;
	border: 1px solid var(--fs-ink);
}

.fs-issue span + span {
	border-inline-start: 0;
}

.fs-issue span:first-child {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-hero__title {
	font-family: var(--fs-serif);
	font-size: clamp(3.6rem, 1.4rem + 9.5cqi, 9.5rem);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.025em;
}

.fs-hero__title em {
	font-weight: 400;
	color: var(--fs-signal);
}

[lang="ar"] .fs-hero__title {
	font-size: clamp(3rem, 1.2rem + 7.6cqi, 7.6rem);
	font-weight: 600;
	line-height: 1.3;
}

/* Each headline line rises out of its own mask. */
.fs-mask {
	display: block;
	overflow: hidden;
	padding-block: 0.02em 0.08em;
}

.fs-mask > * {
	display: inline-block;
}

.fs-hero__lead {
	max-width: 30em;
	font-size: 1.05rem;
	color: var(--fs-muted);
}

.fs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.fs-slide.is-active .fs-issue,
.fs-slide.is-active .fs-hero__lead,
.fs-slide.is-active .fs-hero__actions {
	animation: fs-rise 0.9s var(--fs-ease) both;
}

.fs-slide.is-active .fs-mask > * {
	animation: fs-line 1.1s var(--fs-ease) both;
}

.fs-slide.is-active .fs-issue {
	animation-delay: calc(var(--fs-enter) + 0.05s);
}

.fs-slide.is-active .fs-mask:nth-child(1) > * {
	animation-delay: calc(var(--fs-enter) + 0.15s);
}

.fs-slide.is-active .fs-mask:nth-child(2) > * {
	animation-delay: calc(var(--fs-enter) + 0.3s);
}

.fs-slide.is-active .fs-hero__lead {
	animation-delay: calc(var(--fs-enter) + 0.5s);
}

.fs-slide.is-active .fs-hero__actions {
	animation-delay: calc(var(--fs-enter) + 0.62s);
}

.fs-sticker {
	position: absolute;
	top: 7%;
	inset-inline-end: 4%;
	z-index: 3;
	width: clamp(90px, 12cqi, 132px);
	animation: fs-spin 18s linear infinite;
}

.fs-sticker circle {
	fill: var(--fs-ink);
}

/* The ring text is Latin: keep it left to right so it stays on its path in Arabic. */
.fs-sticker text {
	direction: ltr;
	unicode-bidi: isolate;
	font-family: var(--fs-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	fill: var(--fs-bone);
}

@keyframes fs-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Controls along the foot of the words: big counter, named tabs, arrows. */
.fs-slider__ui {
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: clamp(18px, 3cqi, 36px);
	width: calc(100% / 2.08);
	padding: 22px var(--fs-pad);
	border-top: 1px solid var(--fs-ink);
	background: var(--fs-bone);
	animation: fs-rise 0.9s var(--fs-ease) calc(var(--fs-enter) + 0.7s) both;
}

.fs-slider__count {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--fs-serif);
	line-height: 1;
}

.fs-slider__count b {
	font-size: 2.6rem;
	font-weight: 400;
	font-style: italic;
}

.fs-slider__count span {
	font-size: 0.95rem;
	color: var(--fs-muted);
}

.fs-slider__tabs {
	display: flex;
	flex: 1;
	gap: 14px;
}

.fs-slider__tabs button {
	display: grid;
	flex: 1;
	gap: 8px;
	padding: 4px 0;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-align: start;
	text-transform: uppercase;
	color: var(--fs-muted);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.3s;
}

.fs-slider__tabs button[aria-selected="true"],
.fs-slider__tabs button:hover {
	color: var(--fs-ink);
}

.fs-slider__tabs i {
	position: relative;
	display: block;
	height: 1px;
	background: rgb(28 25 23 / 0.25);
}

.fs-slider__tabs i::after {
	content: "";
	position: absolute;
	inset: -1px 0;
	background: var(--fs-signal);
	transform: scaleX(0);
	transform-origin: var(--fs-start);
}

.fs-slider__tabs button[aria-selected="true"] i::after {
	transform: scaleX(1);
}

.fs-hero.is-playing .fs-slider__tabs button[aria-selected="true"] i::after {
	animation: fs-fill var(--fs-slide-time, 6s) linear both;
}

.fs-hero.is-paused .fs-slider__tabs button[aria-selected="true"] i::after {
	animation-play-state: paused;
}

@keyframes fs-fill {
	from {
		transform: scaleX(0);
	}
}

.fs-slider__arrows {
	display: flex;
	gap: 6px;
}

.fs-slider__arrow {
	border: 1px solid var(--fs-ink);
	transition: color 0.25s, background-color 0.25s;
}

.fs-slider__arrow:hover {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

[dir="rtl"] .fs-slider__arrow .fs-icon {
	scale: -1 1;
}

.fs-body:not(.fs-ready) .fs-slider__ui {
	display: none;
}

/* The page never scrolls sideways, even while a photo settles from its zoom. */
.fs-body main {
	overflow-x: clip;
}

/* 6. Collections ----------------------------------------------------------- */
.fs-collections {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	grid-template-rows: repeat(2, minmax(260px, 34vh));
	gap: 1px;
	background: var(--fs-ink);
	border-bottom: 1px solid var(--fs-ink);
}

.fs-collection {
	position: relative;
	overflow: hidden;
	background: var(--fs-tile);
}

.fs-collection--tall {
	grid-row: span 2;
}

.fs-collection .fs-photo {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	transition: transform 0.9s var(--fs-ease);
}

.fs-collection:hover .fs-photo {
	transform: scale(1.06);
}

.fs-collection__label {
	position: absolute;
	inset-inline-start: 20px;
	bottom: 18px;
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 8px 16px 10px;
	font-family: var(--fs-serif);
	font-size: clamp(1.6rem, 1rem + 2cqi, 2.8rem);
	font-weight: 700;
	line-height: 1;
	background: var(--fs-bone);
	border: 1px solid var(--fs-ink);
}

.fs-collection__label small {
	font-family: var(--fs-sans);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.fs-collection__label em {
	font-size: 0.7em;
	color: var(--fs-signal);
}

/* 7. Shop ------------------------------------------------------------------ */
.fs-shop {
	border-bottom: 1px solid var(--fs-ink);
}

.fs-shop__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(48px, 7cqi, 96px) var(--fs-pad) 28px;
}

.fs-shop__head h2,
.fs-join h2 {
	font-family: var(--fs-serif);
	font-size: clamp(2.6rem, 1.4rem + 5cqi, 5.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.fs-shop__head em,
.fs-join h2 em {
	color: var(--fs-signal);
}

.fs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.fs-tab {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: none;
	border: 1px solid var(--fs-ink);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.fs-tab:hover {
	background: var(--fs-bone-2);
}

.fs-tab[aria-pressed="true"] {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-shop__empty {
	padding: 0 var(--fs-pad) 40px;
	font-family: var(--fs-serif);
	font-size: 1.6rem;
	font-style: italic;
}

/* A grid of ink hairlines: the gaps show the ink behind. */
.fs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--fs-ink);
	border-top: 1px solid var(--fs-ink);
}

.fs-product {
	display: flex;
	flex-direction: column;
	background: var(--fs-bone);
}

.fs-product[hidden] {
	display: none;
}

.fs-product__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--fs-tile);
}

.fs-product__media .fs-photo {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	transition: transform 0.8s var(--fs-ease);
}

.fs-product:hover .fs-product__media .fs-photo {
	transform: scale(1.05);
}

.fs-badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	padding: 4px 10px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-badge--sale {
	background: var(--fs-signal);
}

/* Quick add: slides up on hover where there is hover, always shown on touch. */
.fs-quick {
	position: absolute;
	inset-inline: 10px;
	bottom: 10px;
	display: grid;
	gap: 8px;
	padding: 10px;
	background: var(--fs-bone);
	border: 1px solid var(--fs-ink);
	transition: transform 0.45s var(--fs-ease), opacity 0.3s;
}

@media (hover: hover) {
	.fs-product:not(:hover, :focus-within) .fs-quick {
		opacity: 0;
		transform: translateY(calc(100% + 14px));
	}
}

.fs-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.fs-size {
	flex: 1 0 auto;
	min-width: 38px;
	min-height: 34px;
	padding: 0 8px;
	font-size: 0.75rem;
	font-weight: 600;
	background: none;
	border: 1px solid rgb(17 17 17 / 0.25);
	cursor: pointer;
}

.fs-size:hover {
	border-color: var(--fs-ink);
}

.fs-size[aria-pressed="true"] {
	color: var(--fs-bone);
	background: var(--fs-ink);
	border-color: var(--fs-ink);
}

.fs-quick .fs-btn {
	min-height: 42px;
}

.fs-product__info {
	display: grid;
	gap: 6px;
	padding: 16px 16px 20px;
}

.fs-product h3 {
	font-family: var(--fs-serif);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.fs-price {
	display: flex;
	gap: 10px;
	font-size: 0.9rem;
}

.fs-price s {
	color: var(--fs-muted);
}

.fs-price s + b {
	color: var(--fs-signal);
}

.fs-swatches {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.fs-swatch {
	width: 20px;
	height: 20px;
	padding: 0;
	background: var(--fs-sw);
	border: 1px solid rgb(17 17 17 / 0.3);
	border-radius: 50%;
	cursor: pointer;
	transition: box-shadow 0.2s;
}

.fs-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px var(--fs-bone), 0 0 0 3px var(--fs-ink);
}

.fs-swatches__name {
	font-size: 0.78rem;
	color: var(--fs-muted);
}

/* 8. Sale ------------------------------------------------------------------- */
.fs-sale {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	color: var(--fs-bone);
	background: var(--fs-signal);
	border-bottom: 1px solid var(--fs-ink);
}

.fs-sale__in {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 22px;
	padding: clamp(48px, 7cqi, 100px) var(--fs-pad);
}

.fs-sale__kicker {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.fs-sale h2 {
	font-family: var(--fs-serif);
	font-size: clamp(2.2rem, 1.2rem + 4cqi, 4.6rem);
	font-weight: 600;
	line-height: 1;
}

.fs-sale h2 span {
	display: block;
	font-size: 1.9em;
	font-style: italic;
	font-weight: 800;
	line-height: 0.9;
}

.fs-countdown {
	display: flex;
	gap: 8px;
}

.fs-countdown span {
	display: grid;
	justify-items: center;
	min-width: 72px;
	padding: 10px 6px;
	border: 1px solid var(--fs-bone);
}

.fs-countdown b {
	font-family: var(--fs-serif);
	font-size: 2rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.fs-countdown small {
	font-size: 0.65rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fs-sale__art {
	position: relative;
	min-height: 320px;
	background: var(--fs-ink);
}

.fs-sale__art .fs-photo {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	filter: grayscale(0.15);
}

/* 9. Edit, perks, join ------------------------------------------------- */
.fs-edit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5cqi, 80px);
	align-items: center;
	padding: clamp(56px, 8cqi, 120px) var(--fs-pad);
	border-bottom: 1px solid var(--fs-ink);
}

.fs-edit__quote {
	font-family: var(--fs-serif);
	font-size: clamp(2rem, 1rem + 3.2cqi, 3.8rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.fs-edit__quote em {
	color: var(--fs-signal);
}

.fs-edit__list {
	border-top: 1px solid var(--fs-ink);
}

.fs-edit__list a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 22px 0;
	font-size: 1.1rem;
	font-weight: 500;
	border-bottom: 1px solid var(--fs-ink);
	transition: padding 0.4s var(--fs-ease), color 0.3s;
}

.fs-edit__list a:hover {
	padding-inline: 12px;
	color: var(--fs-signal);
}

.fs-edit__list small {
	font-family: var(--fs-serif);
	font-size: 1.1rem;
	font-style: italic;
}

.fs-perks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--fs-ink);
}

.fs-perks p {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 26px var(--fs-pad);
	font-size: 0.9rem;
}

.fs-perks p + p {
	border-inline-start: 1px solid var(--fs-ink);
}

.fs-perks .fs-icon {
	flex: none;
	width: 28px;
	height: 28px;
}

.fs-perks b {
	display: block;
}

.fs-join {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: clamp(56px, 8cqi, 120px) var(--fs-pad);
	text-align: center;
}

.fs-join p {
	color: var(--fs-muted);
}

.fs-join__form {
	display: flex;
	width: min(100%, 520px);
	margin-top: 10px;
	border: 1px solid var(--fs-ink);
}

.fs-join__form input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 16px;
	background: none;
	border: 0;
	outline: none;
}

.fs-join__form input[aria-invalid="true"] {
	box-shadow: inset 0 -2px 0 var(--fs-signal);
}

.fs-join__form .fs-btn {
	border-width: 0 0 0 1px;
}

/* 10. Footer ------------------------------------------------------------------ */
.fs-footer {
	color: var(--fs-bone);
	background: var(--fs-ink);
}

.fs-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 56px var(--fs-pad) 20px;
}

.fs-footer h4 {
	margin-bottom: 14px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgb(243 239 232 / 0.55);
}

.fs-footer__cols a,
.fs-footer__cols p {
	display: block;
	padding-block: 3px;
}

.fs-footer__cols a:hover {
	color: var(--fs-signal);
}

/* The name, as wide as the page. */
.fs-footer__word {
	padding-inline: var(--fs-pad);
	font-family: var(--fs-serif);
	font-size: 27cqi;
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: 0.04em;
	text-align: center;
	overflow: hidden;
}

.fs-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 18px var(--fs-pad);
	font-size: 0.78rem;
	color: rgb(243 239 232 / 0.6);
	border-top: 1px solid rgb(243 239 232 / 0.2);
}

.fs-pay {
	display: flex;
	gap: 6px;
}

.fs-pay span {
	padding: 2px 8px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	border: 1px solid rgb(243 239 232 / 0.3);
}

/* 11. Drawer, modal, toast (position:fixed: inside the preview frame too) -- */
.fs-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgb(17 17 17 / 0.5);
	animation: fs-fade 0.3s;
}

.fs-overlay[hidden],
.fs-drawer[hidden],
.fs-modal[hidden],
.fs-toast[hidden] {
	display: none;
}

.fs-drawer {
	position: fixed;
	top: 0;
	inset-inline-end: 0;
	bottom: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	width: min(100%, 440px);
	background: var(--fs-bone);
	border-inline-start: 1px solid var(--fs-ink);
	animation: fs-slide 0.45s var(--fs-ease);
}

.fs-drawer:focus {
	outline: none;
}

@keyframes fs-slide {
	from {
		transform: translateX(calc(100% * var(--fs-dir)));
	}
}

@keyframes fs-fade {
	from {
		opacity: 0;
	}
}

.fs-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--fs-ink);
}

.fs-drawer__head h2 {
	font-family: var(--fs-serif);
	font-size: 1.8rem;
	font-weight: 700;
}

.fs-drawer__head h2 span {
	font-family: var(--fs-sans);
	font-size: 0.9rem;
	font-weight: 400;
}

.fs-ship {
	display: grid;
	gap: 8px;
	padding: 14px 20px;
	font-size: 0.82rem;
	border-bottom: 1px solid var(--fs-ink);
}

.fs-ship__bar {
	height: 4px;
	background: var(--fs-bone-2);
}

.fs-ship__bar i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--fs-signal);
	transition: width 0.5s var(--fs-ease);
}

.fs-lines {
	flex: 1;
	overflow-y: auto;
}

.fs-line {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid rgb(17 17 17 / 0.15);
	animation: fs-fade 0.4s;
}

.fs-line__pic {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--fs-tile);
}

.fs-line__pic .fs-photo {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
}

.fs-line h3 {
	font-family: var(--fs-serif);
	font-size: 1.05rem;
	font-weight: 600;
}

.fs-line__meta {
	font-size: 0.78rem;
	color: var(--fs-muted);
}

.fs-qty {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	border: 1px solid var(--fs-ink);
}

.fs-qty button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.fs-qty button:hover {
	background: var(--fs-bone-2);
}

.fs-qty .fs-icon {
	width: 14px;
	height: 14px;
}

.fs-qty output {
	min-width: 28px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}

.fs-line__side {
	display: grid;
	align-content: space-between;
	justify-items: end;
	font-size: 0.9rem;
	font-weight: 600;
}

.fs-remove {
	padding: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fs-muted);
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	cursor: pointer;
}

.fs-remove:hover {
	color: var(--fs-signal);
}

.fs-drawer__empty {
	display: grid;
	flex: 1;
	align-content: center;
	justify-items: center;
	gap: 18px;
	padding: 20px;
	font-family: var(--fs-serif);
	font-size: 1.5rem;
	font-style: italic;
}

.fs-drawer__empty[hidden],
.fs-drawer__foot[hidden] {
	display: none;
}

.fs-drawer__foot {
	display: grid;
	gap: 10px;
	padding: 18px 20px 22px;
	border-top: 1px solid var(--fs-ink);
}

.fs-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.05rem;
}

.fs-drawer__note {
	font-size: 0.78rem;
	color: var(--fs-muted);
}

.fs-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgb(17 17 17 / 0.6);
	animation: fs-fade 0.3s;
}

.fs-modal__box {
	display: grid;
	gap: 14px;
	width: min(100%, 460px);
	padding: 32px 28px 28px;
	background: var(--fs-bone);
	border: 1px solid var(--fs-ink);
	box-shadow: calc(14px * var(--fs-dir)) 14px 0 var(--fs-signal);
	animation: fs-pop 0.45s var(--fs-ease);
}

.fs-modal__box:focus {
	outline: none;
}

@keyframes fs-pop {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

.fs-modal__kicker {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fs-signal);
}

.fs-modal h2 {
	font-family: var(--fs-serif);
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
}

.fs-modal dl {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 12px 0;
	border-block: 1px solid var(--fs-ink);
}

.fs-modal dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.9rem;
}

.fs-modal dd {
	margin: 0;
	font-weight: 600;
}

.fs-toast {
	position: fixed;
	inset-inline-start: 16px;
	bottom: 16px;
	z-index: 110;
	max-width: min(90%, 360px);
	padding: 14px 18px;
	font-size: 0.88rem;
	color: var(--fs-bone);
	background: var(--fs-ink);
	border-inline-start: 4px solid var(--fs-signal);
	animation: fs-pop 0.4s var(--fs-ease);
}

/* 12. Motion: intro, progress line, header, reveals ------------------------- */
/* The intro: the four letters of KOVA rise one by one, then the dark panel
   lifts like a page turning up. Pure CSS: it ends even without the script. */
.fs-intro {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 18px;
	color: var(--fs-bone);
	background: var(--fs-ink);
	pointer-events: none;
	animation: fs-intro-out 0.8s var(--fs-ease) 1.3s both;
}

.fs-intro__word {
	display: flex;
	gap: 0.04em;
	font-family: "FS Playfair", Georgia, serif;
	font-size: clamp(4rem, 3rem + 6vw, 8rem);
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	overflow: hidden;
}

.fs-intro__word span {
	display: inline-block;
	animation: fs-letter 0.7s var(--fs-ease) both;
}

.fs-intro__word span:nth-child(2) {
	animation-delay: 0.08s;
}

.fs-intro__word span:nth-child(3) {
	animation-delay: 0.16s;
}

.fs-intro__word span:nth-child(4) {
	animation-delay: 0.24s;
}

.fs-intro__line {
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--fs-blush);
	animation: fs-rise 0.7s var(--fs-ease) 0.45s both;
}

@keyframes fs-letter {
	from {
		transform: translateY(110%);
	}
}

@keyframes fs-intro-out {
	to {
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
	}
}

@keyframes fs-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
}

@keyframes fs-line {
	from {
		transform: translateY(105%);
	}
}

/* Reading progress, where the browser can tie an animation to scrolling. */
.fs-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 60;
	height: 2px;
	background: var(--fs-signal);
	transform: scaleX(0);
	transform-origin: var(--fs-start);
}

@supports (animation-timeline: scroll()) {
	.fs-progress {
		animation: fs-progress linear both;
		animation-timeline: scroll(root);
	}
}

@keyframes fs-progress {
	to {
		transform: scaleX(1);
	}
}

/* Ticker and header come down as the intro leaves. */
.fs-ticker,
.fs-header {
	animation: fs-drop 0.8s var(--fs-ease) 1.5s both;
}

@keyframes fs-drop {
	from {
		opacity: 0;
		transform: translateY(-60%);
	}
}

/* Reveals: lists come in one after another; photos settle from a slight zoom. */
.fs-ready [data-fs-reveal] {
	transition: opacity 0.9s var(--fs-ease), transform 0.9s var(--fs-ease);
	transition-delay: calc(var(--fs-i, 0) * 90ms);
}

.fs-ready [data-fs-reveal]:not(.is-in) {
	opacity: 0;
	transform: translateY(40px);
}

.fs-ready [data-fs-reveal] .fs-photo {
	transition: transform 1.6s var(--fs-ease);
}

.fs-ready [data-fs-reveal]:not(.is-in) .fs-photo {
	transform: scale(1.14);
}

@media (prefers-reduced-motion: reduce) {
	.fs-body *,
	.fs-body *::before,
	.fs-body *::after {
		animation: none !important;
		transition: none !important;
	}

	.fs-intro {
		display: none;
	}

	.fs-ready [data-fs-reveal]:not(.is-in) {
		opacity: 1;
		transform: none;
	}

	.fs-ready [data-fs-reveal]:not(.is-in) .fs-photo {
		transform: none;
	}
}

/* 13. Narrower widths (the demo's own width) ----------------------------------- */
@container demo (max-width: 1100px) {
	.fs-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.fs-nav {
		gap: 18px;
	}
}

@container demo (max-width: 900px) {
	.fs-header__in {
		min-height: 64px;
	}

	.fs-burger {
		display: grid;
		justify-self: start;
	}

	.fs-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: grid;
		gap: 0;
		padding: 0 var(--fs-pad);
		font-family: var(--fs-serif);
		font-size: 2rem;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		background: var(--fs-bone);
		border-bottom: 1px solid var(--fs-ink);
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
		transition: clip-path 0.5s var(--fs-ease), visibility 0.5s;
	}

	.fs-nav.is-open {
		clip-path: inset(0 0 0 0);
		visibility: visible;
	}

	.fs-nav a {
		padding: 14px 0;
		border-bottom: 1px solid rgb(17 17 17 / 0.15);
	}

	.fs-nav a::after {
		display: none;
	}

	.fs-logo {
		font-size: 1.9rem;
	}

	.fs-tools__account {
		display: none;
	}

	.fs-sale,
	.fs-edit {
		grid-template-columns: 1fr;
	}

	/* The spread stacks: photo on top, words below, controls at the foot. */
	.fs-hero {
		min-height: 1000px;
	}

	.fs-slide {
		grid-template-columns: 1fr;
		grid-template-rows: 420px 1fr;
	}

	.fs-slide__media {
		grid-row: 1;
	}

	.fs-slide__text {
		justify-content: flex-start;
		padding-top: 36px;
		border-inline-end: 0;
		border-top: 1px solid var(--fs-ink);
	}

	.fs-slider__ui {
		width: 100%;
	}

	.fs-collections {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 380px 260px;
	}

	.fs-collection--tall {
		grid-row: auto;
		grid-column: span 2;
	}

	.fs-sale__art {
		min-height: 260px;
	}

	.fs-footer__cols {
		grid-template-columns: 1fr 1fr;
	}
}

@container demo (max-width: 640px) {
	.fs-body {
		font-size: 14px;
	}

	.fs-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fs-product__info {
		padding: 12px 12px 16px;
	}

	.fs-product h3 {
		font-size: 1.05rem;
	}

	.fs-quick {
		inset-inline: 6px;
		bottom: 6px;
		padding: 6px;
	}

	.fs-size {
		min-width: 30px;
		min-height: 30px;
		padding: 0 4px;
	}

	.fs-quick .fs-btn {
		min-height: 38px;
		padding: 0 8px;
		font-size: 0.66rem;
		letter-spacing: 0.08em;
	}

	.fs-hero {
		min-height: 940px;
	}

	.fs-slide {
		grid-template-rows: 300px 1fr;
	}

	.fs-slider__count b {
		font-size: 2rem;
	}

	.fs-slider__arrows {
		display: none;
	}

	.fs-sticker {
		width: 84px;
	}

	.fs-collections {
		grid-template-columns: 1fr;
		grid-template-rows: 320px 240px 240px;
	}

	.fs-collection--tall {
		grid-column: auto;
	}

	.fs-countdown span {
		min-width: 0;
		flex: 1;
	}

	.fs-countdown b {
		font-size: 1.6rem;
	}

	.fs-perks {
		grid-template-columns: 1fr;
	}

	.fs-perks p + p {
		border-inline-start: 0;
		border-top: 1px solid var(--fs-ink);
	}

	.fs-footer__cols {
		grid-template-columns: 1fr;
	}

	.fs-footer__bar {
		flex-direction: column;
	}

	.fs-hero__actions .fs-btn {
		flex: 1 1 100%;
	}
}

/* Arabic weights: 400–600 only: every bold part is 600 here, and the browser never
   fakes a heavier weight. (Generated from the rules above; keep it last.) */
[lang="ar"] .fs-body {
	font-synthesis: none;
}

:where([lang="ar"] .fs-body) :where(b, strong, h1, h2, h3, h4, h5, h6, th, optgroup) {
	font-weight: 600;
}

[lang="ar"] .fs-body :is(.fs-logo, .fs-lang, .fs-bagbtn__count, .fs-collection__label, .fs-shop__head h2, .fs-join h2),
[lang="ar"] .fs-body :is(.fs-badge, .fs-sale h2 span, .fs-footer__word, .fs-drawer__head h2, .fs-modal__kicker, .fs-modal h2) {
	font-weight: 600;
}
