/* ==========================================================================
   Revayat Shab — main stylesheet
   1  Fonts            8  Footer & tab bar     15 Cart & mini cart
   2  Tokens           9  Dialogs & drawers    16 Checkout
   3  Base            10  Home                 17 My account
   4  Utilities       11  Page heads           18 Content pages
   5  Icons & stars   12  Product cards        19 Notices & toasts
   6  Buttons         13  Shop                 20 Motion
   7  Forms & header  14  Product page         21 Responsive
   ========================================================================== */

/* 1 ─ Fonts ──────────────────────────────────────────────────────────────── */
/* Vazirmatn (OFL) variable font: every weight in one file. */
@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/vazirmatn-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/* Persian digit glyphs only (U+0030–0039): numbers render as ۰–۹ while the HTML keeps 0–9,
   so form values, prices in the DOM and validation stay plain ASCII. */
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-regular.woff2") format("woff2"); font-weight: 100 449; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-medium.woff2") format("woff2"); font-weight: 450 549; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-semibold.woff2") format("woff2"); font-weight: 550 649; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-bold.woff2") format("woff2"); font-weight: 650 749; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-extrabold.woff2") format("woff2"); font-weight: 750 849; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "RS Digits"; src: url("../fonts/digits-fa-black.woff2") format("woff2"); font-weight: 850 900; unicode-range: U+0030-0039; font-display: swap; }

/* 2 ─ Tokens ─────────────────────────────────────────────────────────────── */
:root {
	/* Brief palette */
	--rs-deep: #081020;
	--rs-navy: #131A33;
	--rs-night: #1E2A56;
	--rs-blue: #2B3B7A;
	--rs-accent: #4A5FBB;
	--rs-indigo: #6B7FD6;
	--rs-lavender: var(--accent);
	--rs-light: #A7C0FF;
	--rs-pale: #D6E4FF;
	--rs-text: #F0F4FF;

	/* Theme colours. Defaults = the mockup; Customize → روایت شب → رنگ‌ها overrides them
	   (inc/style-options.php prints the same variables, including the derived ones). */
	--primary: #727FF8;
	--primary-rgb: 114, 127, 248;
	--primary-hi: #808CFA;
	--primary-lo: #6874F3;
	--accent: #8F8AFF;
	--accent-rgb: 143, 138, 255;
	--bg: #020C1C;
	--bg-rgb: 2, 12, 28;
	--card: #07112A;
	--card-rgb: 7, 17, 42;
	--card-lo: #030B1C;
	--card-lo-rgb: 3, 11, 28;
	--panel: #06122C;
	--footer-bg: #010A18;

	/* Surfaces measured from the mockup */
	--bg-raised: #041027;
	--card-2: #071735;
	--field: #030E24;
	--line: #1C2E5B;
	--line-soft: #132348;
	--line-strong: #2C4280;

	--text: var(--rs-text);
	--text-2: #C9D0E6;
	--muted: #8D9AB9;
	--faint: #6E7B9D;

	--on-primary: #0A1130;
	--link: #95A3E6;
	--price: #8FA3F2;
	--gold: #F2C94C;
	--green: #5CC392;
	--red: #F07A8A;
	--teal: #67C9B5;

	--font: "RS Digits", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
	--font-ascii: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

	--r-xs: 6px;
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 18px;
	--r-xl: 24px;

	--container: 1320px;
	--gutter: clamp(16px, 3.6vw, 52px);
	--header-h: 92px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);

	--ease: cubic-bezier(.22, .8, .24, 1);
	--glow-card: 0 18px 40px -22px rgba(74, 95, 187, .9), 0 0 26px -12px rgba(143, 138, 255, .35);
	--glow-primary: 0 10px 28px -10px rgba(114, 127, 248, .75);

	--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
	--icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
	--icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* 3 ─ Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
	background: var(--bg);
	color-scheme: dark;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--admin-bar) + 16px);
}
body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	color: var(--text);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
/* Faint fixed starfield behind every page (cheap: one composited layer). */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .5;
	background-image:
		radial-gradient(1px 1px at 7% 12%, #D6E4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 18% 64%, #A7C0FF 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 27% 33%, #F0F4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 36% 82%, #D6E4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 44% 9%, #A7C0FF 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 53% 47%, #F0F4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 61% 71%, #D6E4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 69% 22%, #A7C0FF 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 77% 58%, #F0F4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 86% 88%, #D6E4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 37%, #A7C0FF 50%, transparent 51%),
		radial-gradient(1px 1px at 12% 92%, #D6E4FF 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 48% 96%, #F0F4FF 50%, transparent 51%),
		radial-gradient(1px 1px at 97% 6%, #D6E4FF 50%, transparent 51%),
		radial-gradient(900px 600px at 85% -10%, rgba(43, 59, 122, .22), transparent 70%),
		radial-gradient(700px 500px at 0% 110%, rgba(var(--primary-rgb), .12), transparent 70%);
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
a:hover { color: var(--rs-light); }
:focus-visible { outline: 2px solid var(--rs-lavender); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.5; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }
[hidden] { display: none !important; }

/* 4 ─ Utilities ──────────────────────────────────────────────────────────── */
.rs-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	padding: 10px 18px;
	border-radius: var(--r-sm);
	background: var(--primary);
	color: var(--on-primary);
	font-weight: 700;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--on-primary); }
.site-main:focus { outline: none; }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--font-ascii); }
.rs-hide { display: none !important; }

/* 5 ─ Icons & stars ──────────────────────────────────────────────────────── */
.rs-icon { display: inline-block; flex: none; vertical-align: middle; stroke-width: 1.75; }
.stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__base, .stars__fill { display: flex; gap: 3px; }
.stars__base { color: #2E3F75; }
.stars__fill {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: var(--stars-fill, 0%);
	overflow: hidden;
	color: var(--gold);
	white-space: nowrap;
}
.stars__fill .rs-icon { filter: drop-shadow(0 0 4px rgba(242, 201, 76, .45)); }

/* WooCommerce's own star markup (review list, widgets) — WooCommerce's icon font is not loaded. */
.star-rating {
	position: relative;
	display: inline-block;
	width: 92px;
	height: 16px;
	overflow: hidden;
	vertical-align: middle;
}
.star-rating::before, .star-rating span::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 92px;
	-webkit-mask: var(--icon-star) 0 0 / 18.4px 16px repeat-x;
	mask: var(--icon-star) 0 0 / 18.4px 16px repeat-x;
}
.star-rating::before { background: #2E3F75; }
.star-rating span { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden; font-size: 0; }
.star-rating span::before { background: var(--gold); }

/* 6 ─ Buttons ────────────────────────────────────────────────────────────── */
.btn,
.button,
.woocommerce .button,
button.button,
input[type="submit"].button {
	--btn-bg: linear-gradient(180deg, var(--primary-hi) 0%, var(--primary) 55%, var(--primary-lo) 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 26px;
	border: 1px solid rgba(var(--accent-rgb), .35);
	border-radius: 12px;
	background: var(--btn-bg);
	color: var(--on-primary);
	font: 600 15px/1.2 var(--font);
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--glow-primary);
	transition: transform .2s var(--ease), box-shadow .25s, filter .25s, background-color .25s, color .2s;
}
.btn:hover,
.button:hover,
.woocommerce .button:hover {
	color: var(--on-primary);
	filter: brightness(1.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px -10px rgba(var(--accent-rgb), .85);
}
.btn:active, .button:active { transform: translateY(1px); }
.btn:disabled, .button:disabled, .button.disabled, .button[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn--ghost,
.woocommerce .button.rs-ghost,
.woocommerce-cart-form .button[name="apply_coupon"] {
	--btn-bg: rgba(var(--card-rgb), .65);
	border-color: var(--line-strong);
	color: var(--text);
	box-shadow: none;
}
.btn--ghost:hover,
.woocommerce .button.rs-ghost:hover,
.woocommerce-cart-form .button[name="apply_coupon"]:hover {
	color: #fff;
	border-color: var(--rs-indigo);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 58px; font-size: 16.5px; border-radius: 14px; }
.btn--hero { min-height: 78px; padding: 0 42px; gap: 18px; font-size: 21px; border-radius: 20px; }
.hero__cta .rs-icon { transform: scaleX(-1); } /* the mockup's button arrow points right */
.btn .rs-icon { width: 20px; height: 20px; }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 12px;
	color: var(--text-2);
	transition: color .2s, background-color .2s;
}
.icon-btn:hover { color: #fff; background: rgba(var(--primary-rgb), .12); }
.icon-btn .rs-icon { width: 32px; height: 32px; }

.badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}
.badge--sale { background: var(--primary); color: var(--on-primary); }
.badge--out { background: rgba(var(--bg-rgb), .85); color: var(--text-2); border: 1px solid var(--line-strong); }

/* 7 ─ Forms ─────────────────────────────────────────────────────────────── */
/* :where() keeps these base rules at zero specificity, so any component class
   (.rs-search__input, .newsletter-form__input, .qty …) overrides them without !important. */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], input[type="date"],
textarea, select, .input-text) {
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--field);
	color: var(--text);
	font: 400 15px/1.6 var(--font);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
:where(textarea, textarea.input-text) { min-height: 130px; padding: 14px 18px; line-height: 1.9; resize: vertical; }
input:focus, textarea:focus, select:focus, .input-text:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18);
}
::placeholder { color: #7886A8; opacity: 1; }
input[type="email"], input[type="url"], input[type="password"], input.ltr {
	direction: ltr;
	text-align: left;
	font-family: var(--font-ascii);
}
input[type="email"]::placeholder, input[type="url"]::placeholder, input[type="password"]::placeholder {
	direction: rtl;
	text-align: right;
	font-family: var(--font);
}
input[type="tel"] { direction: ltr; text-align: right; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Chevron sits on the left: the inline end in RTL. */
select:not([multiple]) {
	padding-inline-end: 46px;
	background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D0E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 16px center / 18px 18px;
	cursor: pointer;
}
select option { background: var(--panel); color: var(--text); }

input[type="checkbox"], input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1.5px solid var(--primary);
	border-radius: 6px;
	background: transparent;
	display: inline-grid;
	place-content: center;
	cursor: pointer;
	vertical-align: middle;
	transition: background-color .2s, border-color .2s, box-shadow .2s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::after {
	content: "";
	width: 13px;
	height: 13px;
	background: var(--on-primary);
	-webkit-mask: var(--icon-check) center / contain no-repeat;
	mask: var(--icon-check) center / contain no-repeat;
	transform: scale(0);
	transition: transform .15s var(--ease);
}
input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::after { transform: scale(1); }
input[type="radio"]:checked { border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--primary); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--rs-lavender); outline-offset: 3px; }

label { font-size: 14.5px; color: var(--text-2); }
.required { color: var(--rs-lavender); text-decoration: none; border: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px 8px; margin: 0 0 24px; }
legend { padding: 0 8px; font-weight: 700; color: var(--text); }

/* WooCommerce form rows */
.form-row { position: relative; margin: 0 0 18px; padding: 0; }
.form-row label { display: block; margin-bottom: 8px; }
.form-row .woocommerce-input-wrapper { display: block; }
.form-row-first, .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.form-row-first { margin-inline-end: 12px; }
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid .select2-selection { border-color: var(--red) !important; }
.form-row.woocommerce-validated input.input-text { border-color: rgba(92, 195, 146, .55); }
.form-row .description { margin-top: 6px; font-size: 13px; color: var(--muted); }
.checkout-inline-error-message { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-checkbox span,
label.checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }

/* Password reveal toggle added by WooCommerce */
.password-input { position: relative; display: block; }
.show-password-input {
	position: absolute;
	inset-inline-end: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: var(--muted);
}
.show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin: auto;
	background: currentColor;
	-webkit-mask: var(--icon-lock) center / contain no-repeat;
	mask: var(--icon-lock) center / contain no-repeat;
}
.show-password-input.display-password { color: var(--rs-lavender); }
.woocommerce-password-strength {
	margin-top: 8px;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13px;
	background: rgba(240, 122, 138, .12);
	color: #FFC2CA;
}
.woocommerce-password-strength.good { background: rgba(242, 201, 76, .12); color: #FFE6A0; }
.woocommerce-password-strength.strong { background: rgba(92, 195, 146, .12); color: #B6F0D2; }
.woocommerce-password-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* Quantity stepper (buttons are added by inc/woocommerce.php) */
.quantity {
	display: inline-flex;
	align-items: stretch;
	height: 56px;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: var(--field);
	overflow: hidden;
}
.quantity .qty {
	width: 54px;
	min-height: 0;
	height: auto;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	box-shadow: none;
}
.quantity .qty:focus { box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb), .55); }
.qty-btn {
	width: 50px;
	display: grid;
	place-items: center;
	color: var(--text);
	transition: background-color .2s, color .2s;
}
.qty-btn:hover { background: rgba(var(--primary-rgb), .14); color: #fff; }
.qty-btn .rs-icon { width: 20px; height: 20px; stroke-width: 2.2; }
.quantity:has(input[type="hidden"]) .qty-btn,
.quantity:has(input[readonly]) .qty-btn { display: none; }
.quantity:has(input[type="hidden"]) { border: 0; background: none; }
.cart-row .quantity, .mini-cart .quantity { height: 40px; border-radius: 10px; }
.cart-row .quantity .qty, .mini-cart .quantity .qty { width: 40px; font-size: 15px; }
.cart-row .qty-btn, .mini-cart .qty-btn { width: 36px; }
.cart-row .qty-btn .rs-icon, .mini-cart .qty-btn .rs-icon { width: 16px; height: 16px; }

/* ─ Header ─ */
.site-header {
	position: sticky;
	top: var(--admin-bar);
	z-index: 40;
	background: rgba(var(--bg-rgb), .86);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid rgba(44, 66, 128, .5);
	box-shadow: 0 1px 0 rgba(var(--accent-rgb), .06);
	transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(var(--bg-rgb), .94); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); }
.site-header__bar {
	display: flex;
	align-items: center;
	height: var(--header-h);
	transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__bar { height: 76px; }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: -10px; }
.header-menu { display: none; }
.rs-cart-count {
	position: absolute;
	top: 3px;
	inset-inline-end: 1px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--primary);
	color: var(--on-primary);
	font-size: 11px;
	font-weight: 800;
	line-height: 19px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--bg);
}
.rs-cart-count.is-empty { display: none; }
.primary-nav { margin-inline-start: clamp(28px, 9vw, 150px); }
.primary-menu { display: flex; align-items: center; gap: 46px; margin: 0; padding: 0; list-style: none; }
.primary-menu > li { position: relative; display: flex; align-items: center; gap: 4px; }
.primary-menu .menu-link {
	position: relative;
	display: block;
	padding: 10px 0;
	color: var(--text-2);
	font-size: 19px;
	font-weight: 500;
	white-space: nowrap;
}
.primary-menu > li > .menu-link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--rs-lavender), var(--primary));
	box-shadow: 0 0 10px rgba(var(--accent-rgb), .7);
	transform: scaleX(0);
	transition: transform .3s var(--ease);
}
.primary-menu > li > .menu-link:hover,
.primary-menu > li > .menu-link[aria-current="page"],
.primary-menu > .current-menu-item > .menu-link,
.primary-menu > .current-menu-ancestor > .menu-link { color: #fff; }
.primary-menu > li > .menu-link:hover::after,
.primary-menu > li > .menu-link[aria-current="page"]::after,
.primary-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); }
.submenu-toggle {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	color: var(--muted);
	transition: transform .25s var(--ease), color .2s;
}
.submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--rs-lavender); }
.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-start: -18px;
	z-index: 5;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(var(--card-rgb), .98);
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9), 0 0 30px -14px rgba(var(--accent-rgb), .4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.primary-menu .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu .menu-link { padding: 9px 14px; border-radius: 10px; font-size: 14.5px; }
.primary-menu .sub-menu .menu-link:hover { background: rgba(var(--primary-rgb), .12); color: #fff; }

.brand {
	display: inline-flex;
	flex-direction: row-reverse; /* moon on the left, as in the mockup */
	align-items: center;
	gap: 12px;
	color: var(--text);
}
.site-header__brand { margin-inline-start: auto; }
.brand:hover { color: var(--text); }
.brand__moon { width: 80px; height: 80px; margin-block: -8px; filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), .45)); transition: transform .6s var(--ease), filter .4s; }
.brand:hover .brand__moon { transform: rotate(-12deg); filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), .7)); }
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__fa { font-size: 37px; font-weight: 800; letter-spacing: 0; }
.brand__en { margin-top: 10px; font-family: var(--font-ascii); font-size: 16px; font-weight: 800; color: #7E8CD6; letter-spacing: .02em; }

/* 8 ─ Footer & tab bar ──────────────────────────────────────────────────── */
.site-footer {
	position: relative;
	background: var(--footer-bg);
	border-top: 1px solid #10204A;
	padding: 40px 0 36px;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .75fr);
	gap: 40px;
	align-items: start;
}
.footer-newsletter__text { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.newsletter-form { display: flex; flex-direction: row-reverse; gap: 10px; max-width: 400px; }
.newsletter-form__input { flex: 1; min-width: 0; min-height: 58px; }
.newsletter-form__btn { min-height: 58px; padding-inline: 26px; font-size: 16px; }
.newsletter-form__hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-status { margin: 12px 0 0; font-size: 13.5px; }
.newsletter-status--ok { color: var(--green); }
.newsletter-status--error { color: var(--red); }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 4px; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 0; list-style: none; }
.footer-menu .menu-link { color: var(--text-2); font-size: 17px; }
.footer-menu .menu-link:hover { color: #fff; }
.social-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.social-links__link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--rs-lavender); }
.social-links__link:hover { color: #fff; background: rgba(var(--accent-rgb), .14); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 30px; }
.footer-brand .brand__moon { width: 84px; height: 84px; }
.footer-brand .brand__fa { font-size: 36px; }
.footer-brand .brand__en { font-size: 16px; }
.footer-brand__copy { margin: 0; font-size: 14px; color: var(--muted); text-align: left; }

.tabbar { display: none; }

/* 9 ─ Dialogs & drawers ─────────────────────────────────────────────────── */
dialog.rs-dialog {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text);
	max-width: none;
	max-height: none;
	overflow: visible;
}
dialog.rs-dialog::backdrop {
	background: rgba(1, 5, 14, .62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s;
}
dialog.rs-dialog.is-open::backdrop { opacity: 1; }
body.rs-scroll-lock { overflow: hidden; }

/* Search */
dialog.rs-search { inset: 0 0 auto 0; width: 100%; margin: 0; }
.rs-search__panel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(760px, calc(100% - 32px));
	margin: calc(var(--admin-bar) + 96px) auto 0;
	padding: 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-lg);
	background: rgba(var(--card-rgb), .98);
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 40px -14px rgba(var(--accent-rgb), .45);
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity .25s, transform .3s var(--ease);
}
dialog.rs-search.is-open .rs-search__panel { opacity: 1; transform: none; }
.rs-search__form { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; }
.rs-search__icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.rs-search__input { padding-inline-start: 52px; min-height: 58px; font-size: 16px; border-color: var(--line); }
.rs-search__submit { min-height: 58px; }

/* Drawers: cart slides from the left (end side), menu from the right (start side). */
dialog.rs-drawer {
	position: fixed;
	inset-block: 0;
	width: min(430px, 92vw);
	height: 100dvh;
	margin: 0;
	background: linear-gradient(180deg, var(--panel) 0%, var(--card-lo) 100%);
	box-shadow: 0 0 60px -10px rgba(0, 0, 0, .9);
	transition: transform .38s var(--ease);
}
dialog.rs-drawer[open] { display: flex; flex-direction: column; }
dialog.rs-drawer--cart { inset-inline: auto 0; border-inline-start: 1px solid var(--line); transform: translateX(-100%); }
dialog.rs-drawer--menu { inset-inline: 0 auto; border-inline-end: 1px solid var(--line); transform: translateX(100%); }
dialog.rs-drawer.is-open { transform: none; }
.rs-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 24px 18px;
	border-bottom: 1px solid var(--line);
}
.rs-drawer__title { font-size: 22px; font-weight: 800; }
.rs-drawer__brand .brand__moon { width: 40px; height: 40px; }
.rs-drawer__brand .brand__fa { font-size: 22px; }
.rs-drawer__brand .brand__en { font-size: 10.5px; margin-top: 6px; }
.rs-drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; overscroll-behavior: contain; }
.rs-drawer__foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-menu { margin: 0; padding: 0; list-style: none; }
.drawer-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line-soft); }
.drawer-menu .menu-link { flex: 1; display: block; padding: 15px 4px; font-size: 16.5px; font-weight: 600; color: var(--text); }
.drawer-menu .menu-link[aria-current="page"] { color: var(--rs-lavender); }
.drawer-menu .submenu-toggle { width: 40px; height: 40px; }
.drawer-menu .sub-menu { flex-basis: 100%; display: none; margin: 0 0 12px; padding: 4px 14px; list-style: none; border-inline-start: 2px solid var(--line-strong); }
.drawer-menu li.is-open > .sub-menu { display: block; }
.drawer-menu .sub-menu .menu-link { padding: 9px 4px; font-size: 15px; font-weight: 500; color: var(--text-2); }

/* 10 ─ Home ─────────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	isolation: isolate;
	height: clamp(540px, 52.4vw, 860px);
	overflow: hidden;
}
/* At rest the artwork shows exactly the mockup's composition (no overscan). While scrolling,
   main.js drifts it down and zooms it slightly from the bottom edge, so no gap ever shows. */
.hero__art {
	position: absolute;
	inset: 0;
	z-index: -2;
	transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--parallax-s, 1));
	transform-origin: 50% 100%;
}
.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(to left, rgba(3, 7, 26, .5) 0%, rgba(3, 7, 26, .18) 32%, rgba(3, 7, 26, 0) 55%),
		linear-gradient(to top, var(--bg) 0, rgba(var(--bg-rgb), 0) 110px);
}
.hero__moon-glow {
	position: absolute;
	left: var(--moon-x, 46%);
	top: var(--moon-y, 27%);
	width: clamp(120px, 14vw, 220px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 228, 170, .30) 0%, rgba(var(--accent-rgb), .14) 38%, rgba(var(--accent-rgb), 0) 70%);
	transform: translate(-50%, -50%);
	mix-blend-mode: screen;
	pointer-events: none;
	animation: rs-breathe 7s ease-in-out infinite;
}
.hero__content {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-block: 40px 60px;
}
.hero__title {
	font-size: clamp(52px, 7.2vw, 106px);
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 4px 34px rgba(12, 8, 46, .6);
}
.hero__subtitle {
	margin: 30px 0 0;
	font-size: clamp(22px, 2.85vw, 41px);
	font-weight: 500;
	line-height: 1.5;
	color: #F6F4FA;
	text-shadow: 0 3px 24px rgba(12, 8, 46, .6);
}
.hero__text {
	margin: 34px 0 0;
	font-size: clamp(16px, 2vw, 29px);
	font-weight: 500;
	line-height: 1.75;
	color: #EDEAF7;
	text-shadow: 0 2px 18px rgba(12, 8, 46, .7);
}
.hero__cta { margin-top: 50px; }

.section { padding-top: 74px; }
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 44px;
}
.section-head__title { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; }
.section-head__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--link);
	font-size: 18px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 9px;
}
.section-head__more .rs-icon { transition: transform .3s var(--ease); }
.section-head__more:hover .rs-icon { transform: translateX(-4px); }

.features { margin-top: 56px; }
.features__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 62px 0 70px;
	list-style: none;
	border-top: 1px solid transparent;
	border-image: linear-gradient(90deg, rgba(44, 66, 124, 0), #34508C 18%, #3E578D 50%, #34508C 82%, rgba(44, 66, 124, 0)) 1;
}
.feature { text-align: center; }
.feature__icon {
	width: 50px;
	height: 50px;
	color: var(--accent);
	stroke-width: 1.9;
	filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .55));
}
.feature__title { margin-top: 22px; font-size: 28px; font-weight: 700; }
.feature__text { margin: 10px 0 0; font-size: 19px; color: #7E8FB8; }

.quote-banner {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	height: clamp(200px, 21vw, 320px);
	overflow: hidden;
	text-align: center;
}
.quote-banner__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.quote-banner__text { margin: 0 0 7%; padding-inline: 20px; }
.quote-banner__text p {
	margin: 0;
	font-size: clamp(18px, 1.95vw, 28px);
	font-weight: 700;
	line-height: 1.95;
	color: #fff;
	text-shadow: 0 3px 22px rgba(4, 6, 30, .85);
}

/* Banner slider (inc/slider.php; Customize → روایت شب → اسلایدر) */
.promo-slider { --ratio: 3; --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.promo-slider__inner { position: relative; }
.promo-slider__frame {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--card-lo);
	touch-action: pan-y;
}
/* Top of the homepage: full width, like a store's main slider. */
.promo-slider--top { padding-top: 0; }
.promo-slider--top .rs-container { max-width: none; padding-inline: 0; }
.promo-slider--top .promo-slider__frame { height: clamp(340px, calc(100vw / var(--ratio)), 600px); }
.promo-slider--top.promo-slider--banners .promo-slider__frame { height: calc(100vw / var(--ratio)); }
/* Further down the page: a card inside the content width. */
.promo-slider--card .promo-slider__frame {
	height: clamp(300px, calc((min(100vw, var(--container) + 2 * var(--gutter)) - 2 * var(--gutter)) / var(--ratio)), 480px);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-xl);
	box-shadow: 0 34px 70px -40px rgba(0, 0, 0, .95), 0 0 60px -30px rgba(var(--accent-rgb), .6);
}
.promo-slider--card.promo-slider--banners .promo-slider__frame { height: calc((min(100vw, var(--container) + 2 * var(--gutter)) - 2 * var(--gutter)) / var(--ratio)); }
.promo-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s var(--ease), visibility 0s linear .8s;
}
.promo-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.promo-slide__media, .promo-slide__media picture { position: absolute; inset: 0; }
.promo-slide__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--pos, 50% 50%);
	transform: scale(1.07);
	transition: transform 7.5s linear;
}
.promo-slide.is-active .promo-slide__media img { transform: scale(1); }
.promo-slide--plain .promo-slide__media {
	background:
		radial-gradient(90% 120% at 18% 40%, rgba(var(--accent-rgb), .32), transparent 62%),
		radial-gradient(60% 90% at 85% 110%, rgba(var(--primary-rgb), .28), transparent 60%),
		linear-gradient(135deg, var(--card), var(--card-lo));
}
/* Veil behind the texts (start side = right). */
.promo-slide:not(.promo-slide--image)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .8) 26%, rgba(var(--bg-rgb), .38) 50%, rgba(var(--bg-rgb), 0) 70%);
	pointer-events: none;
}
/* The whole banner is clickable; the visible button stays the accessible link. */
.promo-slide__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.promo-slide__hit:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.promo-slide__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	width: min(600px, 54%);
	height: 100%;
	padding-block: 24px 80px;
	padding-inline-start: clamp(28px, 4.6vw, 68px);
	pointer-events: none;
}
/* Full width: texts line up with the logo and the page content. */
.promo-slider--top .promo-slide__body { width: calc(var(--edge) + min(660px, 48vw)); padding-inline-start: var(--edge); }
.promo-slide__body a { pointer-events: auto; }
.promo-slide__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid rgba(var(--accent-rgb), .45);
	border-radius: 999px;
	background: rgba(var(--accent-rgb), .14);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rs-light);
}
.promo-slide__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.promo-slide__title { margin: 0; font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; line-height: 1.45; color: var(--text); text-wrap: balance; text-shadow: 0 2px 18px rgba(var(--bg-rgb), .6); }
.promo-slide__text { margin: 0; max-width: 44ch; text-wrap: pretty; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.95; color: var(--text-2); }
.promo-slide__cta { margin-top: 8px; min-height: 52px; padding-inline: 26px; }
/* The «روایت شب» hero as the first slide. */
.promo-slide__body--hero { gap: 10px; }
.promo-slide__title--hero { font-size: clamp(40px, 5.4vw, 88px); line-height: 1.2; text-shadow: 0 4px 30px rgba(var(--bg-rgb), .7); }
.promo-slide__subtitle { margin: 0; font-size: clamp(19px, 2.1vw, 32px); font-weight: 700; line-height: 1.5; color: var(--text); text-shadow: 0 2px 18px rgba(var(--bg-rgb), .6); }
.promo-slide__body--hero .promo-slide__text { max-width: none; font-size: clamp(16px, 1.45vw, 21px); color: var(--text); }
.promo-slide__cta--hero { min-height: 60px; margin-top: 14px; padding-inline: 34px; font-size: 17px; }
/* Texts follow their slide in, one after another. */
.promo-slide__body > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.promo-slide.is-active .promo-slide__body > * { opacity: 1; transform: none; transition-delay: .2s; }
.promo-slide.is-active .promo-slide__body > :nth-child(2) { transition-delay: .3s; }
.promo-slide.is-active .promo-slide__body > :nth-child(3) { transition-delay: .4s; }
.promo-slide.is-active .promo-slide__body > :nth-child(4) { transition-delay: .5s; }
/* Controls: dots centred at the bottom, round arrows (and pause) bottom right, like Digikala. */
.promo-slider__controls { position: absolute; inset: auto 0 0; z-index: 3; height: 0; }
html:not(.js) .promo-slider__controls { display: none; }
.promo-slider__dots { position: absolute; bottom: 12px; left: 50%; display: flex; align-items: center; transform: translateX(-50%); }
.promo-slider__dot { display: grid; place-items: center; width: 20px; height: 26px; padding: 0; border-radius: 8px; transition: width .4s var(--ease); }
.promo-slider__dot[aria-current="true"] { width: 36px; }
.promo-slider__bar { position: relative; display: block; width: 7px; height: 7px; overflow: hidden; border-radius: 99px; box-shadow: 0 1px 6px rgba(0, 0, 0, .55); transition: width .4s var(--ease); }
.promo-slider__bar::before, .promo-slider__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.promo-slider__bar::before { background: #fff; opacity: .55; }
.promo-slider__bar::after { background: #fff; transform: scaleX(0); transform-origin: 100% 50%; }
.promo-slider__dot:hover .promo-slider__bar::before { opacity: .85; }
.promo-slider__dot[aria-current="true"] .promo-slider__bar { width: 26px; }
.promo-slider__dot[aria-current="true"] .promo-slider__bar::before { opacity: .35; }
.promo-slider__dot[aria-current="true"] .promo-slider__bar::after { transform: scaleX(1); }
/* Autoplay: the active bar fills over the slide's time; when it ends the script moves on. */
.promo-slider--auto .promo-slider__dot[aria-current="true"] .promo-slider__bar::after { animation: rs-slide-progress var(--slide-interval, 6s) linear forwards paused; }
.promo-slider--auto.is-running .promo-slider__dot[aria-current="true"] .promo-slider__bar::after { animation-play-state: running; }
@keyframes rs-slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.promo-slider__arrows { position: absolute; bottom: 22px; inset-inline-start: clamp(28px, 4.6vw, 68px); display: flex; align-items: center; gap: 10px; }
.promo-slider--top .promo-slider__arrows { inset-inline-start: var(--edge); }
.promo-slider__nav {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(240, 244, 255, .92);
	color: #0B1430;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .75);
	transition: background .2s, transform .2s var(--ease);
}
.promo-slider__nav:hover { background: #fff; transform: scale(1.06); }
.promo-slider__nav--prev .rs-icon { transform: scaleX(-1); }
.promo-slider__toggle {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: rgba(var(--bg-rgb), .5);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .2s;
}
.promo-slider__toggle:hover { background: rgba(var(--bg-rgb), .78); }
.promo-slider__nav:focus-visible, .promo-slider__toggle:focus-visible, .promo-slider__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.promo-slider__toggle .promo-slider__icon-play, .promo-slider.is-paused .promo-slider__icon-pause { display: none; }
.promo-slider.is-paused .promo-slider__icon-play { display: block; }
.rs-no-motion .promo-slide__media img { transform: none; transition: none; }
.rs-no-motion .promo-slide__body > * { transition: none; }

/* 11 ─ Page heads, banners, breadcrumbs ─────────────────────────────────── */
.page-banner {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	height: clamp(190px, 22.5vw, 324px);
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
}
.page-banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to left, rgba(var(--bg-rgb), .62) 0%, rgba(var(--bg-rgb), .2) 45%, rgba(var(--bg-rgb), .3) 100%),
		linear-gradient(to top, rgba(var(--bg-rgb), .9) 0, rgba(var(--bg-rgb), 0) 46%);
}
.page-banner__title { font-size: clamp(30px, 3.9vw, 56px); font-weight: 800; line-height: 1.35; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.page-banner .breadcrumbs, .page-banner .woocommerce-breadcrumb { margin-top: 26px; }
.page-head {
	padding: 40px 0 26px;
	border-bottom: 1px solid var(--line-soft);
	background: radial-gradient(1000px 260px at 85% -40%, rgba(var(--primary-rgb), .2), transparent 70%);
}
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.breadcrumbs, .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	font-size: 14.5px;
	color: var(--text-2);
}
.breadcrumbs a, .woocommerce-breadcrumb a { color: var(--text-2); }
.breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: #fff; }
.breadcrumbs__sep { margin-inline: 10px; color: var(--faint); }

/* 12 ─ Product cards ────────────────────────────────────────────────────── */
ul.products, .products { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.products--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 15% 34px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82) 0%, rgba(var(--card-lo-rgb), .82) 100%);
	box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .05);
	transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-4px); border-color: #364C8E; box-shadow: var(--glow-card); }
.product-card__link { display: block; color: inherit; }
.product-card__link:hover { color: inherit; }
.product-card__cover {
	position: relative;
	display: block;
	width: 100%;
	margin-inline: auto;
	aspect-ratio: 2 / 3;
	border-radius: 4px;
	overflow: hidden;
	background: var(--card-2);
	box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
}
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__title {
	margin: 30px 0 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.card-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--gold); font-size: 15px; font-weight: 700; line-height: 1.4; }
.card-rating__star { filter: drop-shadow(0 0 4px rgba(242, 201, 76, .5)); }
.card-rating__count { margin-inline-start: 2px; color: var(--teal); font-weight: 600; }
.product-card__price { display: block; margin-top: auto; padding-top: 18px; font-size: 22px; font-weight: 500; color: #D3D7E3; }
.product-card--home .card-rating + .product-card__price { padding-top: 12px; }
.woocommerce-Price-currencySymbol { font-weight: 400; font-size: .92em; }
.price del, .product-card__price del { color: var(--faint); font-size: .85em; font-weight: 400; margin-inline-end: 6px; }
.price ins, .product-card__price ins { text-decoration: none; }
.product-card--shop { padding: 20px 12% 16px; }
.product-card--shop .product-card__title { margin-top: 24px; font-size: 18.5px; font-weight: 700; }
.product-card--shop .product-card__price { margin-top: 2px; padding-top: 0; font-size: 16px; font-weight: 500; color: #A7B0C8; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.product-card--shop .product-card__price { order: 0; }
.product-card__cart {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-inline-start: -10px;
	border-radius: 12px;
	color: var(--rs-lavender);
	transition: background-color .2s, color .2s, transform .2s;
}
.product-card__cart:hover { color: #fff; background: rgba(var(--accent-rgb), .16); }
.product-card__cart.loading { opacity: .6; pointer-events: none; }
.product-card__cart.added { color: var(--green); }
.product-card .card-rating { margin-top: 0; }
.added_to_cart.wc-forward { display: none !important; } /* the cart drawer opens instead */

/* 13 ─ Shop ─────────────────────────────────────────────────────────────── */
.shop-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	padding-block: 36px 90px;
	align-items: start;
}
.shop-main { min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.shop-search { position: relative; flex: 0 1 440px; }
.shop-search input {
	min-height: 54px;
	padding-inline-end: 52px;
	border-color: #34488C;
	background: rgba(var(--card-lo-rgb), .9);
	box-shadow: 0 0 22px -12px rgba(var(--accent-rgb), .6);
}
.shop-search button {
	position: absolute;
	inset-inline-end: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	color: var(--text-2);
}
.shop-search button:hover { color: #fff; background: rgba(var(--accent-rgb), .14); }
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--muted); }
.filters-toggle { display: none; }
.shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 32px; }
.shop-sidebar {
	position: sticky;
	top: calc(var(--admin-bar) + 96px);
	padding-inline-start: 24px;
	border-inline-start: 1px solid var(--line);
}
.shop-filters { display: flex; flex-direction: column; gap: 22px; }
.filter-card {
	margin: 0;
	padding: 24px 24px 22px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .75), rgba(var(--card-lo-rgb), .75));
}
.filter-card__title { margin: 0 0 18px; font-size: 21px; font-weight: 700; }
/* A floated legend behaves like a normal heading inside the card instead of sitting on the border. */
.filter-card > legend { float: inline-start; width: 100%; padding: 0; color: var(--text); }
.filter-card > legend + * { clear: both; }
.filter-list { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; list-style: none; }
.filter-list label { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--text-2); cursor: pointer; }
.filter-list input[type="checkbox"] { width: 22px; height: 22px; }
.filter-list label:hover { color: #fff; }
.filter-list .count { margin-inline-start: auto; font-size: 12.5px; color: var(--faint); }
.filter-card--sort label { display: block; margin-bottom: 12px; font-size: 16px; color: var(--text-2); }
.filter-card--sort select { min-height: 50px; }
.filters-actions { display: flex; gap: 10px; }
.filters-actions .btn { flex: 1; min-height: 46px; }
.js .filters-actions--auto { display: none; }
.filters-head { display: none; }
.woocommerce-no-products-found .woocommerce-info { margin-top: 10px; }

.woocommerce-pagination { margin-top: 54px; direction: ltr; }
.woocommerce-pagination ul.page-numbers,
.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: rgba(var(--card-rgb), .7);
	color: var(--text-2);
	font-weight: 600;
	font-size: 15px;
}
a.page-numbers:hover { border-color: var(--rs-indigo); color: #fff; }
.page-numbers.current {
	border-color: transparent;
	background: linear-gradient(180deg, var(--primary-hi), var(--primary-lo));
	color: #fff;
	box-shadow: 0 8px 22px -8px rgba(var(--primary-rgb), .9);
}
.page-numbers.dots { border-color: transparent; background: none; }
.page-numbers .rs-icon { width: 18px; height: 18px; }

/* 14 ─ Product page ─────────────────────────────────────────────────────── */
.product-page { padding-block: 34px 90px; }
.product-page .woocommerce-breadcrumb { margin-bottom: 30px; font-size: 13.5px; color: var(--muted); }
.product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
	gap: clamp(32px, 7vw, 110px);
	align-items: start;
}
.product-summary { min-width: 0; padding-top: 6px; }
.product-summary .product_title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.4; }
.product-author { margin-top: 12px; font-size: clamp(18px, 2.3vw, 27px); color: #A9B4D0; }
.product-author a { color: inherit; }
.product-author a:hover { color: var(--rs-light); }
.product-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; font-size: clamp(15px, 1.7vw, 19px); color: #8F9CC0; }
.product-rating-row .stars .rs-icon { width: clamp(18px, 2vw, 24px); height: clamp(18px, 2vw, 24px); }
.product-rating-row a { color: inherit; }
.product-rating-row a:hover { color: var(--rs-light); }
.product-summary .price {
	display: block;
	margin: 28px 0 0;
	font-size: clamp(28px, 4.4vw, 54px);
	font-weight: 800;
	color: var(--price);
	text-shadow: 0 0 22px rgba(143, 163, 242, .35);
}
.product-stock { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: clamp(16px, 2.1vw, 24px); font-weight: 600; }
.product-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.product-stock.is-in { color: var(--green); }
.product-stock.is-backorder { color: var(--gold); }
.product-stock.is-out { color: var(--red); }
.product-summary .woocommerce-product-details__short-description { margin-top: 34px; font-size: clamp(16px, 1.85vw, 21px); line-height: 2.25; color: #C6CCE0; }
.product-summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.product-buy { margin-top: 44px; }
.product-buy form.cart { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: stretch; gap: 24px; margin: 0; }
.product-buy form.cart .quantity { height: 74px; border-radius: 16px; }
.product-buy form.cart .quantity .qty { width: 72px; font-size: 21px; }
.product-buy form.cart .qty-btn { width: 66px; }
.product-buy form.cart .qty-btn .rs-icon { width: 24px; height: 24px; }
.product-buy .single_add_to_cart_button {
	flex: 1;
	min-height: 74px;
	font-size: clamp(17px, 2vw, 22px);
	border-radius: 16px;
}
.single_add_to_cart_button::before,
.rs-buybar .btn::before {
	content: "";
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--icon-cart) center / contain no-repeat;
	mask: var(--icon-cart) center / contain no-repeat;
}
.single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.product-buy .stock { display: none; } /* replaced by .product-stock */
.product-buy .variations { margin-bottom: 20px; }
.product-buy .variations th, .product-buy .variations td { padding: 6px 0; text-align: start; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-inline: 4px; }
.action-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-radius: 10px;
	color: #A9B4D0;
	font-size: clamp(15px, 1.75vw, 19px);
	font-weight: 500;
}
.action-link .rs-icon { color: var(--rs-lavender); width: 32px; height: 32px; }
.action-link:hover { color: #fff; }
.action-link[aria-pressed="true"] .rs-icon { fill: var(--rs-lavender); }
.product_meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.product_meta a { color: var(--text-2); }

.product-gallery { min-width: 0; }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery:not(.flexslider-active) .woocommerce-product-gallery__wrapper {
	border: 1px solid rgba(var(--accent-rgb), .35);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 0 46px -14px rgba(var(--accent-rgb), .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 24px;
	inset-inline-end: 24px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(var(--bg-rgb), .75);
	border: 1px solid var(--line-strong);
	font-size: 0;
}
.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 2px solid var(--text-2);
	border-radius: 50%;
	box-shadow: 5px 5px 0 -3px var(--text-2);
}
.flex-control-thumbs { display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.flex-control-thumbs li { width: 70px; }
.flex-control-thumbs img { border-radius: 6px; opacity: .55; cursor: pointer; border: 1px solid var(--line); transition: opacity .2s, border-color .2s; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--rs-lavender); }

.woocommerce-tabs { margin-top: 60px; }
.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
}
.woocommerce-tabs ul.tabs li a {
	position: relative;
	display: block;
	padding: 18px 44px;
	color: #93A2D8;
	font-size: clamp(18px, 2.5vw, 28px);
	font-weight: 600;
	white-space: nowrap;
}
.woocommerce-tabs ul.tabs li a:hover { color: #fff; }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-tabs ul.tabs li a::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, var(--rs-lavender), var(--primary));
	box-shadow: 0 0 14px rgba(var(--accent-rgb), .75);
	transform: scaleX(0);
	transition: transform .3s var(--ease);
}
.woocommerce-tabs ul.tabs li.active a::after { transform: scaleX(1); }
.woocommerce-Tabs-panel { padding-top: 36px; font-size: clamp(16px, 1.85vw, 20px); line-height: 2.3; color: #C9CFE2; }
.woocommerce-Tabs-panel > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.woocommerce-product-attributes {
	width: 100%;
	max-width: 760px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.woocommerce-product-attributes tr:last-child th, .woocommerce-product-attributes tr:last-child td { border-bottom: 0; }
.woocommerce-product-attributes th { width: 34%; font-weight: 600; color: var(--muted); background: rgba(var(--card-rgb), .45); }
.woocommerce-product-attributes td p { margin: 0; }
.woocommerce-product-attributes td a { color: var(--rs-light); }

#reviews .woocommerce-Reviews-title { font-size: 20px; margin-bottom: 20px; }
#reviews ol.commentlist { margin: 0 0 30px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
#reviews .comment_container { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-rgb), .6); }
#reviews .comment_container img.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
#reviews .comment-text { flex: 1; min-width: 0; font-size: 15px; line-height: 2; }
#reviews .comment-text .meta { margin: 4px 0 6px; font-size: 13.5px; color: var(--muted); }
#reviews .comment-text .meta strong { color: var(--text); font-weight: 700; }
#reviews .comment-text .star-rating { float: inline-end; }
#reviews .description p:last-child { margin-bottom: 0; }
#review_form_wrapper { margin-top: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(var(--card-rgb), .5); }
#reply-title { display: block; margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.comment-form > p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 8px; }
.comment-form-rating .stars { display: block; margin: 0; line-height: 1; }
.comment-form-rating p.stars span { display: inline-flex; gap: 4px; }
p.stars a {
	display: inline-block;
	width: 28px;
	height: 28px;
	font-size: 0;
	background: #2E3F75;
	-webkit-mask: var(--icon-star) center / contain no-repeat;
	mask: var(--icon-star) center / contain no-repeat;
	transition: background-color .15s;
}
p.stars:hover a, p.stars.selected a { background: var(--gold); }
p.stars a:hover ~ a, p.stars.selected a.active ~ a { background: #2E3F75; }
p.stars:hover a:hover ~ a { background: #2E3F75; }
.form-submit { margin: 6px 0 0; }

.related.products, .upsells.products { margin-top: 80px; }
.related.products > h2, .upsells.products > h2 { margin-bottom: 34px; font-size: clamp(22px, 2.1vw, 30px); }
.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.rs-buybar { display: none; }

/* 15 ─ Cart & mini cart ─────────────────────────────────────────────────── */
.rs-cart { padding-block: 34px 90px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 30px; align-items: start; }
.cart-panel, .cart_totals, .checkout-card, .checkout-summary, .account-card, .rs-panel {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82), rgba(var(--card-lo-rgb), .82));
	box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .05);
}
.cart-panel { padding: 8px 26px; }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row__thumb {
	display: block;
	padding: 6px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: rgba(var(--card-rgb), .5);
}
.cart-row__thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.cart-row__name { font-size: 16.5px; font-weight: 700; color: var(--text); }
.cart-row__name a { color: inherit; }
.cart-row__name a:hover { color: var(--rs-light); }
.cart-row__meta { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.cart-row__price { margin-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--text-2); }
.cart-row__qty { margin-top: 12px; }
.cart-row__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 12px; }
.cart-row__subtotal { font-size: 14.5px; color: #A9B4D0; white-space: nowrap; }
a.remove, .cart-row__remove {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var(--muted);
	font-size: 22px;
	line-height: 1;
}
a.remove:hover, .cart-row__remove:hover { color: var(--red); background: rgba(240, 122, 138, .12); }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.cart-actions .coupon { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.cart-actions .coupon .input-text { min-height: 48px; }
.cart-actions .button { min-height: 48px; }
.js .cart-actions button[name="update_cart"] { display: none; }
.cart_totals { padding: 26px; position: sticky; top: calc(var(--admin-bar) + 96px); }
.cart_totals > h2 { margin-bottom: 16px; font-size: 20px; }
.cart_totals table.shop_table, .woocommerce-checkout-review-order-table { width: 100%; }
.cart_totals th, .cart_totals td { padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-align: start; vertical-align: top; font-size: 15px; }
.cart_totals th { font-weight: 500; color: var(--text-2); width: 40%; }
.cart_totals td { text-align: end; }
.cart_totals .order-total th, .cart_totals .order-total td { border-bottom: 0; padding-top: 18px; font-size: 18px; font-weight: 800; color: var(--text); }
.cart_totals .order-total .amount { color: var(--text); }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; min-height: 56px; font-size: 16px; }
.rs-continue { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--link); }
.woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.woocommerce-shipping-methods li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 6px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.shipping-calculator-button { color: var(--link); font-size: 13px; }
.shipping-calculator-form { margin-top: 12px; text-align: start; }
.cross-sells { margin-top: 40px; }
.cross-sells > h2 { margin-bottom: 20px; font-size: 20px; }
.cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rs-empty {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 40px 20px 60px;
	text-align: center;
}
.rs-empty__art { width: min(420px, 100%); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: 0 0 50px -20px rgba(var(--accent-rgb), .6); }
.rs-empty__title { margin-top: 10px; font-size: 22px; font-weight: 800; }
.rs-empty__text { margin: 0; color: var(--muted); }

/* Mini cart (drawer) */
.widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mini-cart { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mini-cart__items { flex: 1; overflow-y: auto; margin: 0; padding: 4px 24px; list-style: none; overscroll-behavior: contain; }
.mini-cart__item {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) auto;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}
.mini-cart__item:last-child { border-bottom: 0; }
.mini-cart__thumb { display: block; padding: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(var(--card-rgb), .5); align-self: start; }
.mini-cart__thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.mini-cart__name { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: var(--text); }
.mini-cart__name:hover { color: var(--rs-light); }
.mini-cart__price { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.mini-cart__qty { margin-top: 10px; }
.mini-cart__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mini-cart__subtotal { font-size: 13.5px; color: #A9B4D0; white-space: nowrap; }
.mini-cart__item.is-busy { opacity: .5; pointer-events: none; }
.mini-cart__foot { padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(var(--bg-rgb), .6); }
.mini-cart__total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.mini-cart__total .amount { font-size: 20px; font-weight: 800; }
.mini-cart__view { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--link); }
.mini-cart--empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 30px 24px; text-align: center; }
.mini-cart--empty img { width: 240px; border-radius: var(--r-md); border: 1px solid var(--line); }
.mini-cart--empty p { margin: 0; color: var(--muted); }

/* 16 ─ Checkout ─────────────────────────────────────────────────────────── */
.rs-checkout { padding-block: 30px 90px; }
.checkout-steps { display: flex; justify-content: center; margin: 4px 0 34px; }
.checkout-steps ol { display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.checkout-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 170px; text-align: center; font-size: 14px; color: var(--muted); }
.checkout-step::before {
	content: "";
	position: absolute;
	top: 17px;
	inset-inline-start: 50%;
	width: 100%;
	height: 2px;
	background: var(--line-strong);
	z-index: -1;
}
.checkout-step:last-child::before { display: none; }
.checkout-step.is-done::before { background: linear-gradient(90deg, var(--rs-lavender), var(--primary)); }
.checkout-step__dot {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--primary);
	background: var(--bg);
	color: var(--text-2);
	font-weight: 700;
	font-size: 14px;
}
.checkout-step.is-current { color: var(--text); font-weight: 600; }
.checkout-step.is-current .checkout-step__dot,
.checkout-step.is-done .checkout-step__dot {
	background: linear-gradient(180deg, var(--primary-hi), var(--primary));
	color: var(--on-primary);
	box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .16), 0 0 18px rgba(var(--primary-rgb), .6);
}
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.checkout-card { padding: 28px 28px 10px; }
.checkout-card__title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 19px; font-weight: 800; }
.checkout-card__title .rs-icon { color: var(--rs-lavender); }
.checkout-card__actions { display: flex; gap: 12px; padding: 6px 0 26px; }
.checkout-card__actions .btn { flex: 1; min-height: 56px; font-size: 16px; }
.checkout-card__back { flex: 0 0 auto !important; }
.js .checkout-main[data-step="1"] [data-step-panel="2"],
.js .checkout-main[data-step="2"] [data-step-panel="1"] { display: none; }
.no-js-only { display: none; }
/* WooCommerce's own section headings (the theme prints its group titles instead). */
.woocommerce-billing-fields > h3:not(.rs-field-group-title), .woocommerce-additional-fields > h3, .woocommerce-shipping-fields > h3 { display: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-address-fields__field-wrapper .form-row { grid-column: 1 / -1; width: auto; margin-inline: 0; }
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 2; }
.rs-field-group-title { grid-column: 1 / -1; margin: 10px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 800; }
.rs-field-group-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Floating labels on checkout & address forms: placeholder look of the mockup, label stays visible once typed in. */
.rs-float .form-row:has(> label + .woocommerce-input-wrapper > :is(input.input-text, textarea)) > label {
	position: absolute;
	top: 0;
	inset-inline-start: 16px;
	z-index: 1;
	margin: 0;
	padding: 0 4px;
	height: 54px;
	display: flex;
	align-items: center;
	font-size: 15px;
	color: #7F8CAD;
	pointer-events: none;
	transition: transform .2s var(--ease), font-size .2s, color .2s, height .2s;
	transform-origin: right center;
}
.rs-float .form-row:has(> label + .woocommerce-input-wrapper > :is(input.input-text, textarea):is(:focus, :not(:placeholder-shown))) > label {
	height: 20px;
	transform: translateY(-10px);
	font-size: 12px;
	color: var(--rs-light);
	background: linear-gradient(180deg, transparent 45%, var(--field) 45%);
	border-radius: 4px;
}
.rs-float .form-row .optional { font-size: 12px; color: var(--faint); }
.rs-float .form-row label .required { color: var(--rs-lavender); }

.checkout-summary { padding: 26px; position: sticky; top: calc(var(--admin-bar) + 96px); }
.checkout-summary__title { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
/* Pay for an existing order (order-pay) */
.rs-order-pay__lead { margin: 0 0 22px; font-size: 15.5px; color: var(--text-2); }
.rs-order-pay__lead strong { color: var(--rs-light); }
.checkout-grid--pay .checkout-card { padding-bottom: 26px; }
.rs-order-pay #payment .form-row { margin: 0; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; text-align: start; vertical-align: top; }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table tfoot td { text-align: end; }
.woocommerce-checkout-review-order-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.woocommerce-checkout-review-order-table thead th:last-child { text-align: end; }
.woocommerce-checkout-review-order-table .product-name { color: var(--text-2); }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 400; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--text-2); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; padding-top: 16px; font-size: 18px; font-weight: 800; color: var(--text); }
#payment { margin-bottom: 4px; }
#payment .wc_payment_methods { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
#payment .wc_payment_method {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(var(--card-lo-rgb), .65);
	transition: border-color .2s, box-shadow .2s;
}
#payment .wc_payment_method:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14); }
#payment .wc_payment_method > label { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; color: var(--text); cursor: pointer; }
#payment .wc_payment_method > input { margin-inline-end: 10px; }
/* Gateway logos are drawn for light pages (Zibal's wordmark is dark grey): give them a light badge. */
#payment .wc_payment_method img { display: inline-block; max-height: 28px; width: auto; padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .92); }
#payment .payment_box { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(var(--primary-rgb), .08); font-size: 14px; color: var(--text-2); }
#payment .payment_box p:last-child { margin: 0; }
#payment .woocommerce-notice, #payment .woocommerce-info { margin: 0 0 18px; }
#payment .place-order { margin: 0; padding: 0 0 22px; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.woocommerce-privacy-policy-text p { margin: 0 0 12px; }
.woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-link { color: var(--link); }
#place_order { display: flex; width: 100%; min-height: 58px; font-size: 16.5px; }
.woocommerce-checkout .blockUI.blockOverlay { background: rgba(var(--bg-rgb), .55) !important; border-radius: var(--r-lg); }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 18px; }
.checkout_coupon, .woocommerce-form-login { margin-bottom: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-rgb), .6); }
.checkout_coupon .form-row-first, .checkout_coupon .form-row-last { display: inline-block; }
.create-account { margin-top: 6px; }

/* Thank-you page */
.rs-thanks { display: grid; gap: 24px; }
.rs-thanks__hero { display: grid; justify-items: center; gap: 10px; padding: 34px 20px 30px; text-align: center; }
.rs-thanks__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(92, 195, 146, .12); color: var(--green); box-shadow: 0 0 40px -6px rgba(92, 195, 146, .5); }
.rs-thanks__icon .rs-icon { width: 38px; height: 38px; }
.rs-thanks__hero h2 { font-size: 24px; font-weight: 800; }
.rs-thanks__hero p { margin: 0; color: var(--muted); }
.rs-thanks__hero .woocommerce-notice { display: block; margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15.5px; }
.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-order-overview li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-rgb), .6); font-size: 13px; color: var(--muted); }
.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 16px; color: var(--text); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 10px; }
.woocommerce-order-details__title, .woocommerce-column__title { margin-bottom: 14px; font-size: 19px; font-weight: 800; }
.woocommerce-table--order-details, .shop_table.order_details { border: 1px solid var(--line); border-radius: var(--r-md); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); text-align: start; font-size: 14.5px; }
.woocommerce-table--order-details tfoot th { color: var(--text-2); font-weight: 500; }
.woocommerce-table--order-details tfoot tr:last-child th, .woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; font-weight: 800; color: var(--text); }
.woocommerce-customer-details address { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); font-style: normal; line-height: 2; background: rgba(var(--card-rgb), .5); }
.woocommerce-customer-details--phone, .woocommerce-customer-details--email { margin: 6px 0 0; color: var(--text-2); }

/* 17 ─ My account ───────────────────────────────────────────────────────── */
.rs-account { padding-block: 30px 90px; }
.logged-in .rs-account .woocommerce { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
.logged-in .rs-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--admin-bar) + 96px);
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82), rgba(var(--card-lo-rgb), .82));
}
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: var(--text-2);
	font-size: 17px;
	font-weight: 500;
}
.woocommerce-MyAccount-navigation a .rs-icon { width: 26px; height: 26px; color: var(--rs-lavender); }
.woocommerce-MyAccount-navigation a:hover { color: #fff; background: rgba(var(--primary-rgb), .08); }
.woocommerce-MyAccount-navigation .is-active a {
	color: #fff;
	font-weight: 700;
	border-color: rgba(var(--primary-rgb), .5);
	background: linear-gradient(90deg, rgba(var(--primary-rgb), .1), rgba(var(--primary-rgb), .26));
	box-shadow: inset 0 0 20px -10px rgba(var(--accent-rgb), .6);
}
.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.woocommerce-MyAccount-navigation-link--customer-logout a .rs-icon { color: var(--red); }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.account-card { padding: 30px 32px; }
.account-card + .account-card { margin-top: 22px; }
.account-hello h2 { font-size: 28px; font-weight: 800; }
.account-hello p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.account-stat { container-type: inline-size; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: rgba(var(--card-lo-rgb), .7); box-shadow: inset 0 0 24px -14px rgba(var(--accent-rgb), .5); }
.account-stat__label { font-size: 16px; color: var(--text-2); }
.account-stat__value { margin-top: 12px; font-size: 32px; font-size: clamp(22px, 14cqi, 32px); font-weight: 800; line-height: 1.3; }
.account-stat__unit { margin-inline-start: 8px; font-size: 16px; font-weight: 500; color: var(--rs-indigo); }
.account-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.account-section-head h3 { font-size: 20px; font-weight: 800; }
.account-section-head a, .account-more { color: var(--link); font-size: 14px; text-decoration: underline; text-underline-offset: 6px; }
.order-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.order-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(var(--card-lo-rgb), .7);
}
.order-item__thumb { display: block; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; }
.order-item__thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.order-item__title { font-size: 18px; font-weight: 700; color: var(--text); }
.order-item__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.status-pill {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid rgba(111, 155, 224, .45);
	border-radius: 10px;
	color: #8FB4F0;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(74, 117, 172, .1);
}
.status-pill--completed { color: #93E0BB; border-color: rgba(92, 195, 146, .45); background: rgba(92, 195, 146, .08); }
.status-pill--cancelled, .status-pill--failed, .status-pill--refunded { color: #FFB3BE; border-color: rgba(240, 122, 138, .45); background: rgba(240, 122, 138, .08); }
.status-pill--on-hold, .status-pill--pending { color: #FFE2A0; border-color: rgba(242, 201, 76, .4); background: rgba(242, 201, 76, .07); }
.account-empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.account-hello__since { color: var(--faint); font-size: 14px; white-space: nowrap; }
.account-hello__since::before { content: "·"; margin-inline: 6px 8px; }
.account-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 20px;
	padding: 12px 16px;
	border: 1px solid rgba(242, 201, 76, .35);
	border-radius: var(--r-md);
	background: rgba(242, 201, 76, .07);
	font-size: 14.5px;
	color: var(--text-2);
}
.account-notice .rs-icon { flex: none; color: var(--gold); }
.account-notice span { flex: 1 1 220px; }
.account-notice a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }

.account-quick { container-type: inline-size; margin: 22px 0; }
.account-quick__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-quick__item {
	display: grid;
	align-content: start;
	gap: 2px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82), rgba(var(--card-lo-rgb), .82));
	transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.account-quick__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.account-quick__item .rs-icon { margin-bottom: 8px; color: var(--accent); }
.account-quick__label { font-size: 15.5px; font-weight: 700; color: var(--text); }
.account-quick__hint { font-size: 13px; line-height: 1.7; color: var(--muted); }
.account-quick__item:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow-card); }
@container (min-width: 480px) {
	.account-quick__item { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
	.account-quick__item .rs-icon { grid-row: span 2; margin: 0; }
}
@container (min-width: 720px) {
	.account-quick__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
	.account-quick__item, .account-quick__item:last-child:nth-child(odd) { grid-column: auto; grid-template-columns: none; padding: 18px 18px 16px; }
	.account-quick__item .rs-icon { grid-row: auto; margin-bottom: 8px; }
}

.order-item__side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.order-item__pay { font-size: 14px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
.order-item__track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.order-item__track > .rs-icon { color: var(--accent); }
.order-item__code {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 32px;
	padding: 2px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	font-weight: 600;
	color: var(--text);
	background: rgba(var(--accent-rgb), .06);
	transition: border-color .2s, background .2s;
}
.order-item__code .ltr { min-width: 0; overflow-wrap: anywhere; }
.order-item__code .rs-icon { flex: none; color: var(--muted); }
.order-item__code:hover, .order-item__code:focus-visible { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .14); }
.account-stat__value--sm { font-size: 20px; }

/* Payment history (revayat-shab-core) */
.account-card > .account-stats:first-child { margin-top: 0; }
.woocommerce-MyAccount-content table.rs-payments th, .woocommerce-MyAccount-content table.rs-payments td { padding-inline: 12px; }
.rs-payments__when { white-space: nowrap; }
.rs-payments__when small { display: block; font-size: 12.5px; color: var(--muted); }
.rs-payments__order { color: var(--rs-light); font-weight: 700; }
.rs-payments__amount { white-space: nowrap; }
.rs-payments__amount del { display: block; font-size: 12.5px; color: var(--faint); }
.rs-payments__amount ins { text-decoration: none; }
.rs-payments__refs { display: grid; justify-items: start; gap: 2px; }
.rs-payments__ref { font-weight: 600; color: var(--text); }
.rs-payments__none { color: var(--faint); }
.rs-payments__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rs-payments__state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rs-payments .rs-payments__pay { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
.status-pill--pay-paid { color: #93E0BB; border-color: rgba(92, 195, 146, .45); background: rgba(92, 195, 146, .08); }
.status-pill--pay-pending, .status-pill--pay-cod { color: #FFE2A0; border-color: rgba(242, 201, 76, .4); background: rgba(242, 201, 76, .07); }
.status-pill--pay-failed, .status-pill--pay-cancelled, .status-pill--pay-refunded { color: #FFB3BE; border-color: rgba(240, 122, 138, .45); background: rgba(240, 122, 138, .08); }

/* Shipment tracking card (order page) */
.rs-tracking {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid rgba(var(--accent-rgb), .35);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82), rgba(var(--card-lo-rgb), .82));
	box-shadow: 0 0 30px -14px rgba(var(--accent-rgb), .6);
}
.rs-tracking__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.rs-tracking__body { display: grid; flex: 1; gap: 2px; min-width: 0; }
.rs-tracking__body strong { font-size: 15px; font-weight: 600; color: var(--text-2); }
.rs-tracking__code { font-size: 20px; font-weight: 800; letter-spacing: .04em; color: var(--text); overflow-wrap: anywhere; }
.rs-tracking__body small { font-size: 13px; color: var(--muted); }
.rs-tracking__copy { flex: none; }

/* Order updates (customer notes) as a timeline */
.order-updates { margin: 0 0 26px; }
.order-updates h2 { margin-bottom: 14px; font-size: 20px; font-weight: 800; }
.order-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.order-timeline__item { position: relative; padding: 0 28px 18px 0; }
.order-timeline__item::before {
	content: "";
	position: absolute;
	top: 7px;
	right: 2px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 0 12px rgba(var(--accent-rgb), .55);
}
.order-timeline__item::after { content: ""; position: absolute; top: 24px; bottom: 2px; right: 7px; width: 1px; background: var(--line-strong); }
.order-timeline__item:last-child { padding-bottom: 0; }
.order-timeline__item:last-child::after { display: none; }
.order-timeline__date { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.order-timeline__text { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-lo-rgb), .6); color: var(--text-2); overflow-wrap: anywhere; }
.order-timeline__text p { margin: 0; }
.order-timeline__text p + p { margin-top: 8px; }

.woocommerce-orders-table, .woocommerce-MyAccount-content table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: rgba(var(--card-lo-rgb), .6);
}
.woocommerce-orders-table th, .woocommerce-orders-table td,
.woocommerce-MyAccount-content table.shop_table th, .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line-soft);
	text-align: start;
	font-size: 14.5px;
	vertical-align: middle;
}
.woocommerce-orders-table thead th, .rs-payments thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(var(--card-rgb), .5); }
.woocommerce-orders-table tr:last-child td, .rs-payments tr:last-child td { border-bottom: 0; }
.woocommerce-orders-table .button { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; margin: 2px; }
.woocommerce-orders-table__cell-order-number a { color: var(--rs-light); font-weight: 700; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.woocommerce-Address { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(var(--card-lo-rgb), .6); }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 17px; }
.woocommerce-Address-title .edit { color: var(--link); font-size: 14px; }
.woocommerce-Address address { font-style: normal; line-height: 2; color: var(--text-2); }
.woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-MyAccount-content form.edit-account {
	padding: 26px 28px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: rgba(var(--card-lo-rgb), .6);
}
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content > h3 { margin-bottom: 16px; font-size: 20px; }
.woocommerce-EditAccountForm .button, .woocommerce-address-fields .button { margin-bottom: 18px; }
mark.order-number, mark.order-date, mark.order-status { background: none; color: var(--rs-light); font-weight: 700; }

/* Contact Form 7 (contact page). Prefixed with `html` to outrank CF7's own stylesheet, which loads later. */
.rs-cf7 .form-row { margin-bottom: 28px; } /* room for the absolutely placed validation tip */
.rs-cf7 .form-row > label { display: block; margin-bottom: 8px; }
.rs-cf7__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wpcf7-form-control-wrap { display: block; position: relative; }
html .wpcf7 .wpcf7-not-valid { border-color: var(--red); }
/* Tips sit in the row's bottom margin: showing/hiding them never moves the submit button
   (a tip vanishing on blur used to shift the button between mousedown and mouseup, eating the click). */
html .wpcf7 .wpcf7-not-valid-tip { position: absolute; inset-inline-start: 2px; top: calc(100% + 4px); margin: 0; font-size: 12.5px; line-height: 1.5; white-space: nowrap; color: var(--red); }
.rs-cf7__submit { position: relative; margin-top: 6px; }
.rs-cf7__submit .wpcf7-submit { width: 100%; }
html .rs-cf7__submit .wpcf7-spinner { position: absolute; inset-inline-end: 18px; top: 50%; margin: -12px 0 0; background-color: var(--on-primary); }
html .wpcf7 form .wpcf7-response-output {
	margin: 4px 0 22px;
	padding: 14px 18px;
	border: 1px solid rgba(var(--accent-rgb), .35);
	border-radius: var(--r-md);
	background: rgba(var(--primary-rgb), .08);
	color: var(--text);
	font-size: 15px;
	line-height: 1.8;
}
html .wpcf7 form.sent .wpcf7-response-output { border-color: rgba(92, 195, 146, .45); background: rgba(92, 195, 146, .08); }
html .wpcf7 form.invalid .wpcf7-response-output, html .wpcf7 form.unaccepted .wpcf7-response-output, html .wpcf7 form.payment-required .wpcf7-response-output { border-color: rgba(242, 201, 76, .45); background: rgba(242, 201, 76, .08); }
html .wpcf7 form.failed .wpcf7-response-output, html .wpcf7 form.aborted .wpcf7-response-output, html .wpcf7 form.spam .wpcf7-response-output { border-color: rgba(240, 122, 138, .45); background: rgba(240, 122, 138, .08); }

/* Login / register */
.rs-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.rs-auth__card { padding: 30px 30px 14px; }
.rs-auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.rs-auth__head .rs-icon { width: 26px; height: 26px; color: var(--rs-lavender); }
.rs-auth__head h2 { font-size: 21px; font-weight: 800; }
.rs-auth__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.rs-auth .form-row { margin-bottom: 18px; }
.rs-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rs-auth__row a { color: var(--link); font-size: 14px; }
.rs-auth .woocommerce-form-login__submit, .rs-auth .woocommerce-form-register__submit { display: flex; width: 100%; min-height: 56px; font-size: 16px; }
.rs-auth .woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.rs-auth__art { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); min-height: 280px; }
.rs-auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.woocommerce-ResetPassword, .rs-auth--single .rs-auth__card { max-width: 560px; margin-inline: auto; }
.woocommerce-ResetPassword {
	padding: 28px 30px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(var(--card-rgb), .82), rgba(var(--card-lo-rgb), .82));
}
.woocommerce-ResetPassword > p:first-child { color: var(--text-2); }
.woocommerce-ResetPassword .form-row-first { width: 100%; margin: 0 0 18px; }

/* Wishlist page */
.rs-wishlist ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-wishlist .product-card__remove { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; }

/* 18 ─ Content pages ────────────────────────────────────────────────────── */
.rs-page { padding-block: 40px 90px; }
.rs-prose {
	max-width: 820px;
	font-size: 16.5px;
	line-height: 2.15;
	color: #CDD3E6;
}
.rs-prose > *:first-child { margin-top: 0; }
.rs-prose h2 { margin: 2em 0 .7em; font-size: 26px; }
.rs-prose h3 { margin: 1.8em 0 .6em; font-size: 21px; }
.rs-prose a { color: var(--rs-light); text-decoration: underline; text-underline-offset: 5px; }
.rs-prose img { border-radius: var(--r-md); }
.rs-prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-inline-start: 3px solid var(--rs-lavender); background: rgba(var(--card-rgb), .5); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text); }
.rs-prose ul, .rs-prose ol { padding-inline-start: 1.4em; }
.rs-prose table th, .rs-prose table td { padding: 10px 14px; border: 1px solid var(--line); }
.rs-prose .wp-block-button__link { background: var(--primary); color: var(--on-primary); border-radius: 12px; text-decoration: none; }
.rs-page--wide .rs-prose { max-width: none; }

.about-quotes { margin-top: 70px; }
.quote-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.quote-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md);
	background: var(--card-lo);
	box-shadow: 0 0 30px -16px rgba(var(--accent-rgb), .6);
}
.quote-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.quote-card__body {
	flex: 1;
	display: grid;
	align-content: center;
	gap: 8px;
	margin-top: -26px;
	padding: 30px 16px 20px;
	text-align: center;
	background: linear-gradient(180deg, rgba(var(--card-lo-rgb), 0), var(--card-lo) 30%);
	position: relative;
}
.quote-card__text { margin: 0; font-size: 14px; font-weight: 600; line-height: 2; color: var(--text); }
.quote-card__by { font-size: 12px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.contact-form-card { padding: 30px 30px 12px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-info li {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(var(--card-rgb), .6);
}
.contact-info .rs-icon { color: var(--rs-lavender); width: 26px; height: 26px; margin-top: 4px; }
.contact-info strong { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-info span, .contact-info a { color: var(--text); font-size: 15.5px; }

.rs-404 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
	gap: 50px;
	align-items: center;
	padding-block: 70px 100px;
}
.rs-404__code {
	font-size: clamp(80px, 12vw, 160px);
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(180deg, #fff 0%, var(--rs-lavender) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .45));
}
.rs-404 h1 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.rs-404 p { margin: 12px 0 26px; color: var(--muted); }
.rs-404__search { display: flex; gap: 10px; max-width: 520px; margin-bottom: 18px; }
.rs-404__art { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 0 60px -20px rgba(var(--accent-rgb), .7); }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-rgb), .6); }
.post-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__title { font-size: 18px; }
.post-card__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.post-card__excerpt { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); }
.search-results-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.search-results-list li { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(var(--card-rgb), .6); }
.search-results-list h2 { font-size: 18px; }
.search-results-list p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }

/* 19 ─ Notices & toasts ─────────────────────────────────────────────────── */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .rs-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 22px;
	padding: 16px 20px;
	list-style: none;
	border: 1px solid rgba(var(--accent-rgb), .35);
	border-radius: var(--r-md);
	background: rgba(var(--primary-rgb), .08);
	color: var(--text);
	font-size: 15px;
	line-height: 1.8;
}
.woocommerce-message { border-color: rgba(92, 195, 146, .4); background: rgba(92, 195, 146, .08); }
.woocommerce-error { flex-direction: column; align-items: stretch; border-color: rgba(240, 122, 138, .45); background: rgba(240, 122, 138, .08); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
	order: 2;
	margin-inline-start: auto;
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) { color: var(--rs-light); text-decoration: underline; text-underline-offset: 4px; }
.rs-toasts {
	position: fixed;
	inset-inline: 0;
	bottom: 24px;
	z-index: 200;
	display: grid;
	justify-items: center;
	gap: 10px;
	padding-inline: 16px;
	pointer-events: none;
}
.rs-toast {
	max-width: 420px;
	padding: 12px 20px;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: rgba(var(--card-rgb), .97);
	color: var(--text);
	font-size: 14.5px;
	box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9), 0 0 24px -10px rgba(var(--accent-rgb), .5);
	animation: rs-toast-in .35s var(--ease) both;
	pointer-events: auto;
}
.rs-toast.is-leaving { animation: rs-toast-out .3s ease both; }

/* Select2 / SelectWoo (checkout province & city) */
.select2-container .select2-selection--single {
	height: 54px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--field);
}
.select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 52px;
	padding-inline: 18px 44px;
	color: var(--text);
	font-size: 15px;
}
.select2-container .select2-selection--single .select2-selection__placeholder { color: #7F8CAD; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 52px; width: 40px; inset-inline: auto 6px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--text-2) transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--text-2); }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18); }
.select2-dropdown { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); color: var(--text); overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9); }
.select2-search--dropdown { padding: 10px; }
.select2-container--default .select2-search--dropdown .select2-search__field { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); padding: 0 12px; }
.select2-results__option { padding: 9px 16px; font-size: 14.5px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: rgba(var(--primary-rgb), .28); color: #fff; }
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] { background: rgba(var(--primary-rgb), .14); color: #fff; }
.select2-container .select2-results > .select2-results__options { max-height: 280px; }
/* Selects (province, city): the label always sits small on the top border, so select rows are as tall as input rows. */
.rs-float .form-row:has(.select2-container) > label,
.rs-float .form-row:has(> label + .woocommerce-input-wrapper > select) > label {
	position: absolute;
	top: 0;
	inset-inline-start: 16px;
	z-index: 2;
	height: 20px;
	margin: 0;
	padding: 0 4px;
	display: flex;
	align-items: center;
	transform: translateY(-10px);
	font-size: 12px;
	color: var(--rs-light);
	background: linear-gradient(180deg, transparent 45%, var(--field) 45%);
	border-radius: 4px;
	pointer-events: none;
}

/* Template settings (inc/style-options.php → body classes and CSS variables) */
.hero::after { opacity: var(--hero-veil, 1); }
.rs-no-sticky .site-header { position: relative; top: auto; }
body.rs-bg-plain::before { display: none; }
body.rs-bg-image::before {
	background: linear-gradient(rgba(var(--bg-rgb), var(--bg-overlay, .7)), rgba(var(--bg-rgb), var(--bg-overlay, .7))), var(--bg-image, none) center / cover no-repeat;
	opacity: 1;
	animation: none;
}
.rs-no-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
body.rs-no-motion::before, .rs-no-motion .hero__moon-glow { animation: none; }
.rs-no-motion .hero__art { transform: none !important; }
@media (min-width: 1280px) {
	.rs-cols-4 .shop-main ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
}
.brand--custom .brand__img { display: block; width: auto; height: 64px; max-width: 260px; object-fit: contain; }
.footer-brand .brand--custom .brand__img { height: 76px; }
.rs-drawer__brand.brand--custom .brand__img { height: 44px; }
@media (max-width: 767px) { .site-header .brand--custom .brand__img { height: 40px; max-width: 160px; } }

/* 20 ─ Motion ───────────────────────────────────────────────────────────── */
@keyframes rs-breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes rs-twinkle { 0%, 100% { opacity: .5; } 50% { opacity: .78; } }
@keyframes rs-toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rs-toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes rs-failsafe { to { opacity: 1; transform: none; } }
body::before { animation: rs-twinkle 9s ease-in-out infinite; }
.js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js:not(.rs-ready) [data-reveal] { animation: rs-failsafe .01s 2.5s forwards; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.hero__art { transform: none !important; }
	.promo-slide__media img { transform: none !important; }
	.promo-slide__body > * { transition-delay: 0s !important; }
}

/* 21 ─ Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
	:root { --header-h: 88px; }
	.primary-menu { gap: 26px; }
	.primary-nav { margin-inline-start: 40px; }
	.brand__moon { width: 46px; height: 46px; }
	.brand__fa { font-size: 26px; }
	.products--row { gap: 20px; }
	.product-card { padding: 20px 14px 20px; }
	.shop-layout { grid-template-columns: minmax(0, 1fr) 270px; }
	.shop-main ul.products { gap: 22px 20px; }
	.filter-card { padding: 20px 18px 18px; }
	.quote-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.related.products ul.products > li:nth-child(n+5) { display: none; }
	/* Slider: a little taller on tablets so the texts stay clear of the arrows. */
	.promo-slider--top .promo-slider__frame { height: clamp(390px, calc(100vw / var(--ratio)), 600px); }
	.promo-slider--card .promo-slider__frame { height: clamp(390px, calc((100vw - 2 * var(--gutter)) / var(--ratio)), 480px); }
}

@media (max-width: 1023px) {
	:root { --header-h: 76px; }
	.primary-nav { display: none; }
	.header-menu { display: inline-grid; }
	.site-header.is-scrolled .site-header__bar { height: 68px; }
	.products--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.products--row > li:nth-child(n+4) { display: none; }
	.features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-newsletter { grid-column: 1 / -1; order: 3; }
	.footer-center { align-items: flex-start; }
	.shop-layout { grid-template-columns: minmax(0, 1fr); }
	.filters-toggle { display: inline-flex; }
	.shop-sidebar {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 60;
		width: min(380px, 90vw);
		padding: 0;
		border: 0;
		border-inline-end: 1px solid var(--line);
		background: var(--panel);
		box-shadow: 0 0 60px rgba(0, 0, 0, .8);
		overflow-y: auto;
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .35s var(--ease), visibility .35s;
	}
	.shop-sidebar.is-open { transform: none; visibility: visible; }
	.shop-filters { padding: 0 20px 30px; }
	.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
	.filters-head h2 { font-size: 19px; }
	.js .filters-actions--auto { display: flex; }
	.filters-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(1, 5, 14, .6); }
	.product-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 36px; }
	.cart-layout, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
	.cart_totals, .checkout-summary { position: static; }
	.checkout-grid--pay .checkout-summary { order: -1; }
	.logged-in .rs-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.promo-slide__cta--hero { min-height: 52px; margin-top: 8px; padding-inline: 28px; font-size: 16px; }
	.woocommerce-MyAccount-navigation { position: static; padding: 8px; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; gap: 6px; width: max-content; }
	.woocommerce-MyAccount-navigation a { min-height: 44px; padding: 0 14px; white-space: nowrap; }
	.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.rs-auth { grid-template-columns: minmax(0, 1fr); }
	.rs-auth__art { display: none; }
	.contact-grid, .rs-404 { grid-template-columns: minmax(0, 1fr); }
	.rs-404__art { max-width: 520px; }
	.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-wishlist ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	:root { --header-h: 64px; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	body.single-product { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	.site-header.is-scrolled .site-header__bar { height: 60px; }
	.site-header__actions { gap: 6px; }
	.header-search, .header-menu { display: none; }
	.icon-btn { width: 42px; height: 42px; }
	.icon-btn .rs-icon { width: 24px; height: 24px; }
	.brand { gap: 8px; }
	.brand__moon { width: 34px; height: 34px; }
	.brand__fa { font-size: 19px; }
	.brand__en { font-size: 9.5px; margin-top: 5px; }

	.tabbar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 35;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		height: calc(66px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(var(--bg-rgb), .94);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		border-top: 1px solid var(--line);
	}
	.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
	.tabbar__item[aria-current="page"] { color: var(--rs-lavender); }
	.tabbar__item[aria-current="page"] .rs-icon { filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .7)); }

	.hero { height: min(640px, calc(100svh - var(--header-h) - 66px)); min-height: 520px; }
	.hero__img { object-position: 42% 50%; }
	.hero::after { background: linear-gradient(to top, var(--bg) 0, rgba(var(--bg-rgb), .25) 40%, rgba(var(--bg-rgb), .35) 100%); }
	.hero__content { align-items: center; text-align: center; justify-content: center; padding-block: 110px 40px; }
	.hero__title { font-size: 48px; }
	.hero__subtitle { margin-top: 12px; font-size: 22px; }
	.hero__text { margin-top: 14px; font-size: 15.5px; }
	.hero__cta { margin-top: 28px; }
	.btn--hero { min-height: 58px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }

	.section { padding-top: 40px; }
	.section-head { margin-bottom: 22px; }
	.products--row {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 46%;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 6px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}
	.products--row > li { scroll-snap-align: start; }
	.products--row > li:nth-child(n+4) { display: flex; }
	.product-card { padding: 16px 12px 16px; }
	.product-card__title { margin-top: 18px; font-size: 15px; }
	.product-card__price { font-size: 14px; }
	.features { margin-top: 36px; }
	.features__list { padding: 40px 0 46px; row-gap: 34px; }
	.feature__icon { width: 36px; height: 36px; }
	.feature__title { margin-top: 12px; font-size: 16.5px; }
	.feature__text { font-size: 13px; }
	.quote-banner { height: 210px; }
	.quote-banner__img { object-position: 50% 50%; }

	.site-footer { padding: 34px 0 26px; }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
	.footer-brand { order: -1; align-items: center; gap: 10px; }
	.footer-brand__copy { order: 5; text-align: center; }
	.footer-center { align-items: center; }
	.footer-newsletter { order: 2; }
	.newsletter-form { margin-inline: auto; }

	.page-banner { height: 170px; }
	.page-banner__title { font-size: 30px; }
	.page-banner .woocommerce-breadcrumb { margin-top: 12px; font-size: 13px; }
	.shop-layout { padding-top: 20px; }
	.shop-toolbar { flex-wrap: wrap; margin-bottom: 20px; }
	.shop-search { flex: 1 1 100%; }
	.shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.product-card--shop { padding: 14px 10% 12px; }
	.product-card--shop .product-card__title { margin-top: 14px; font-size: 14.5px; }
	.product-card__foot { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
	.product-card__cart {
		width: 100%;
		height: 40px;
		margin: 0;
		border-radius: 10px;
		background: linear-gradient(180deg, var(--primary-hi), var(--primary));
		color: var(--on-primary);
		gap: 6px;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		font-size: 13.5px;
		font-weight: 700;
	}
	.product-card__cart::after { content: "افزودن به سبد"; }
	.product-card__cart:not(.add_to_cart_button)::after { content: "مشاهده"; }
	.product-card__cart .rs-icon { width: 18px; height: 18px; }
	.product-card__cart:hover { color: var(--on-primary); filter: brightness(1.08); background: linear-gradient(180deg, var(--primary-hi), var(--primary)); }
	.product-card--shop .card-rating { justify-content: flex-start; }

	.product-page { padding-top: 18px; }
	.product-page .woocommerce-breadcrumb { margin-bottom: 16px; }
	.product-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.product-gallery { order: -1; max-width: 240px; margin-inline: auto; width: 100%; }
	.product-summary { text-align: center; }
	.product-rating-row, .product-actions { justify-content: center; }
	.product-buy { margin-top: 26px; }
	.product-buy form.cart { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
	.product-buy form.cart .quantity { align-self: center; height: 56px; }
	.product-buy .single_add_to_cart_button { min-height: 56px; font-size: 17px; }
	.woocommerce-tabs { margin-top: 44px; }
	.woocommerce-tabs ul.tabs li a { padding: 12px 18px; font-size: 15.5px; }
	.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.related.products ul.products > li:nth-child(n+5) { display: none; }
	.rs-buybar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 35;
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(var(--bg-rgb), .95);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		border-top: 1px solid var(--line);
	}
	.rs-buybar__price { display: flex; flex-direction: column; line-height: 1.4; font-size: 12px; color: var(--muted); }
	.rs-buybar__price .amount { font-size: 17px; font-weight: 800; color: var(--price); }
	.rs-buybar .btn { flex: 1; min-height: 52px; }

	.cart-panel { padding: 4px 16px; }
	.cart-row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; }
	.cart-row__name { font-size: 15px; }
	.cart-actions .coupon { flex-basis: 100%; max-width: none; }
	.checkout-step { width: 104px; font-size: 12.5px; }
	.checkout-card { padding: 22px 18px 6px; }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
	.woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 1; }
	.form-row-first, .form-row-last { width: 100%; margin-inline: 0; }
	.account-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.account-stat { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
	.account-stat__value { margin: 0; font-size: 20px; }
	.account-card { padding: 20px 18px; }
	.order-item { grid-template-columns: 52px minmax(0, 1fr); row-gap: 0; }
	.order-item__thumb { grid-row: 1 / span 3; align-self: start; }
	.order-item__body { display: contents; }
	.order-item__title, .order-item__meta { grid-column: 2; }
	.order-item__track { grid-column: 1 / -1; order: 1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
	.order-item__side { grid-column: 2; flex-direction: row; justify-self: start; gap: 14px; margin-top: 10px; }
	.woocommerce-orders-table thead, .rs-payments thead { display: none; }
	.woocommerce-orders-table tr, .rs-payments tr { display: block; padding: 10px 6px; border-bottom: 1px solid var(--line); }
	.woocommerce-orders-table td, .rs-payments td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 0; }
	.woocommerce-orders-table td::before, .rs-payments td::before { content: attr(data-title); flex: none; color: var(--muted); font-size: 13px; }
	.rs-payments tr:last-child { border-bottom: 0; }
	.rs-payments__refs { justify-items: end; text-align: end; }
	.rs-payments__when small { display: inline; margin-inline-start: 6px; }
	.rs-payments__amount del { display: inline; margin-inline-end: 6px; }
	.rs-payments__state { justify-content: flex-end; }
	.rs-tracking { flex-wrap: wrap; padding: 16px; }
	.rs-tracking__icon { display: none; }
	.rs-tracking__code { font-size: 18px; letter-spacing: .02em; }
	.rs-tracking__copy { width: 100%; }
	.rs-auth__card { padding: 24px 18px 8px; }
	.rs-cf7__row { grid-template-columns: minmax(0, 1fr); }
	.quote-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-list { grid-template-columns: minmax(0, 1fr); }
	.rs-wishlist ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.rs-toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 14px 16px; font-size: 14px; }
	/* Slider on phones: a rounded card inside the page margins; picture on top, texts below. */
	.promo-slider--top { padding-top: 12px; }
	.promo-slider--top .rs-container { padding-inline: var(--gutter); }
	.promo-slider .promo-slider__frame { height: clamp(420px, 118vw, 540px); border-radius: var(--r-lg); }
	.promo-slider.promo-slider--banners .promo-slider__frame { height: calc((100vw - 2 * var(--gutter)) / var(--ratio-m, var(--ratio))); }
	.promo-slide:not(.promo-slide--image) .promo-slide__media { inset: 0 0 30% 0; }
	.promo-slide__media img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
	.promo-slide:not(.promo-slide--image)::after { background: linear-gradient(to top, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), .96) 30%, rgba(var(--bg-rgb), .55) 46%, rgba(var(--bg-rgb), 0) 64%); }
	.promo-slider .promo-slide__body { width: 100%; justify-content: flex-end; gap: 10px; padding: 0 20px 52px; }
	.promo-slide__title { font-size: 24px; line-height: 1.5; }
	.promo-slide__title--hero { font-size: 40px; line-height: 1.25; }
	.promo-slide__subtitle { font-size: 19px; }
	.promo-slide__text, .promo-slide__body--hero .promo-slide__text { font-size: 14.5px; line-height: 1.85; }
	.promo-slide__cta, .promo-slide__cta--hero { min-height: 48px; margin-top: 4px; padding-inline: 24px; font-size: 15px; }
	.promo-slider__dots { bottom: 8px; }
	.promo-slider__nav { display: none; }
	.promo-slider .promo-slider__arrows { bottom: 10px; inset-inline-start: 12px; }
	.promo-slider__toggle { width: 30px; height: 30px; }
}

@media (max-width: 380px) {
	.hero__title { font-size: 42px; }
	.products--row { grid-auto-columns: 58%; }
	.checkout-step { width: 92px; }
}
