/* ==========================================================================
   RayanSmart — design system & components
   Written with CSS logical properties (inline/block) so the same rules work
   for French (LTR) and Arabic (RTL). See rtl.css for the few mirrored icons.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--rs-navy: #0b1f3a;
	--rs-navy-2: #14325c;
	--rs-accent: #1d5bff;
	--rs-accent-ink: #ffffff;
	--rs-ink: #0c1424;
	--rs-text: #1f2a3c;
	--rs-muted: #586377;
	--rs-line: #e3e8f0;
	--rs-line-strong: #cfd6e2;
	--rs-surface: #f5f7fb;
	--rs-surface-2: #edf1f8;
	--rs-white: #ffffff;
	--rs-sale: #d42a3a;
	--rs-success: #0d7a52;
	--rs-warn: #a65408;
	--rs-gold: #f2b01e;

	--rs-radius-lg: 22px;
	--rs-radius: 14px;
	--rs-radius-sm: 10px;
	--rs-radius-pill: 999px;

	--rs-shadow-sm: 0 1px 2px rgba(12, 20, 36, .06);
	--rs-shadow: 0 1px 2px rgba(12, 20, 36, .05), 0 6px 20px -6px rgba(12, 20, 36, .12);
	--rs-shadow-lg: 0 2px 4px rgba(12, 20, 36, .05), 0 22px 48px -18px rgba(12, 20, 36, .28);

	--rs-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rs-font-ar: "IBM Plex Sans Arabic", "Manrope", "Segoe UI", Tahoma, system-ui, sans-serif;

	--rs-container: 1280px;
	--rs-gutter: clamp(16px, 4vw, 32px);
	--rs-header-h: 72px;
	--rs-ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	font-family: var(--rs-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rs-text);
	background: var(--rs-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
html[dir="rtl"] body, body.rtl { font-family: var(--rs-font-ar); line-height: 1.75; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.rs-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 { color: var(--rs-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; }
html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--rs-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rs-navy); }
ul, ol { padding-inline-start: 1.25em; }
hr { border: 0; border-block-start: 1px solid var(--rs-line); margin-block: 2rem; }
table { border-collapse: collapse; width: 100%; }
small { font-size: .82em; }

:focus-visible { outline: 3px solid var(--rs-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--rs-accent) 22%, transparent); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.rs-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	inset-block-start: 8px; inset-inline-start: 8px; z-index: 1000;
	background: var(--rs-navy); color: #fff; padding: 12px 18px; border-radius: var(--rs-radius-sm);
}

.rs-container { width: 100%; max-width: var(--rs-container); margin-inline: auto; padding-inline: var(--rs-gutter); }
.rs-main { display: block; min-height: 50vh; }
.rs-main:focus { outline: none; }

/* 3. Buttons --------------------------------------------------------------- */
.rs-btn,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: .7em 1.35em;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1;
	color: var(--rs-navy); background: var(--rs-surface-2);
	border: 1px solid transparent; border-radius: var(--rs-radius-pill);
	cursor: pointer; text-decoration: none; text-align: center;
	transition: background-color .18s var(--rs-ease), color .18s var(--rs-ease), border-color .18s var(--rs-ease), box-shadow .18s var(--rs-ease), transform .18s var(--rs-ease);
	-webkit-tap-highlight-color: transparent;
}
.rs-btn:hover, .button:hover { background: var(--rs-line); color: var(--rs-navy); }
.rs-btn:active, .button:active { transform: translateY(1px); }

.rs-btn--primary,
.button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.single_add_to_cart_button,
.checkout-button,
#place_order,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	background: var(--rs-accent); color: var(--rs-accent-ink);
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--rs-accent) 70%, transparent);
}
.rs-btn--primary:hover,
.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
	background: color-mix(in srgb, var(--rs-accent) 86%, #000); color: #fff;
}
.rs-btn--dark { background: var(--rs-navy); color: #fff; }
.rs-btn--dark:hover { background: var(--rs-navy-2); color: #fff; }
.rs-btn--outline { background: var(--rs-white); border-color: var(--rs-line-strong); color: var(--rs-ink); }
.rs-btn--outline:hover { border-color: var(--rs-navy); background: var(--rs-white); }
.rs-btn--ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.rs-btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.rs-btn--lg { min-height: 54px; padding-inline: 1.7em; font-size: 1rem; }
.rs-btn--block { width: 100%; }
.button.disabled, .button:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
.button.loading { opacity: .7; pointer-events: none; }
.button.loading::after { content: ""; inline-size: 14px; block-size: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: rs-spin .7s linear infinite; }
.added_to_cart { display: none !important; }
.button.added::after { content: "✓"; font-weight: 800; }
@keyframes rs-spin { to { transform: rotate(360deg); } }

.rs-iconbtn {
	position: relative; display: inline-flex; align-items: center; gap: .45rem;
	min-width: 44px; min-height: 44px; padding: 0 .55rem; justify-content: center;
	background: transparent; border: 0; border-radius: var(--rs-radius-sm);
	color: var(--rs-ink); cursor: pointer; text-decoration: none; font: inherit; font-size: .88rem; font-weight: 650;
}
.rs-iconbtn:hover { background: var(--rs-surface); color: var(--rs-ink); }
.rs-iconbtn__label { /* visually hidden on phones, still the link's accessible name */
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.rs-link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--rs-accent); white-space: nowrap; }
.rs-link-arrow:hover { gap: .55em; color: var(--rs-navy); }
.rs-link-arrow .rs-icon { transition: transform .2s var(--rs-ease); }

.rs-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--rs-accent); color: #fff; font-size: .72rem; font-weight: 800; }

/* 4. Forms ------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], select, textarea,
.input-text, .select2-container .select2-selection--single {
	width: 100%; min-height: 48px; padding: .7em .95em;
	font: inherit; font-size: 1rem; color: var(--rs-ink);
	background: var(--rs-white); border: 1px solid var(--rs-line-strong); border-radius: var(--rs-radius-sm);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
select {
	padding-inline-end: 2.4em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23586377' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .95em center;
}
html[dir="rtl"] select { background-position: left .95em center; }
input:focus, select:focus, textarea:focus, .input-text:focus {
	outline: none; border-color: var(--rs-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--rs-accent) 18%, transparent);
}
input::placeholder, textarea::placeholder { color: #8a93a4; }
label { font-weight: 600; font-size: .92rem; color: var(--rs-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--rs-accent); inline-size: 18px; block-size: 18px; }
.required { color: var(--rs-sale); text-decoration: none; border: 0; }
[dir="ltr"] input[type="tel"], input[type="email"], input[type="url"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }

/* 5. Announcement & header -------------------------------------------------- */
.rs-announce { background: var(--rs-navy); color: #fff; font-size: .86rem; font-weight: 600; text-align: center; }
.rs-announce .rs-container { padding-block: .55rem; }
.rs-announce p { margin: 0; }
.rs-announce a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.rs-announce a:hover { text-decoration: underline; }

.rs-header {
	position: sticky; inset-block-start: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
	border-block-end: 1px solid var(--rs-line);
	transition: box-shadow .2s;
}
.admin-bar .rs-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .rs-header { inset-block-start: 0; } }
.rs-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(12, 20, 36, .35); }

.rs-header__bar {
	display: grid; align-items: center; gap: .5rem 1rem;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "menu brand actions" "search search search";
	padding-block: .6rem;
}
.rs-header__menu-btn { grid-area: menu; margin-inline-start: -.55rem; }
.rs-header__brand { grid-area: brand; min-width: 0; }
.rs-header__search { grid-area: search; }
.rs-header__actions { grid-area: actions; display: flex; align-items: center; gap: .1rem; margin-inline-end: -.4rem; }
.rs-header__lang { display: none; }

.rs-logo, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.rs-logo__svg { width: 150px; height: auto; direction: ltr; }
.custom-logo { max-height: 44px; width: auto; }

.rs-cart-count, .rs-wishlist-count {
	position: absolute; inset-block-start: 3px; inset-inline-end: 1px;
	min-width: 19px; height: 19px; padding: 0 5px;
	display: inline-grid; place-items: center;
	background: var(--rs-accent); color: #fff; border: 2px solid #fff;
	border-radius: 99px; font-size: .68rem; font-weight: 800; line-height: 1;
}
.rs-cart-count.is-empty, .rs-wishlist-count.is-empty { display: none; }
.rs-header__cart .rs-cart-count, .rs-header__wishlist .rs-wishlist-count { inset-inline-end: auto; inset-inline-start: 22px; }
.rs-cart-count.rs-bump { animation: rs-bump .45s var(--rs-ease); }
@keyframes rs-bump { 40% { transform: scale(1.3); } }

/* Search */
.rs-search { position: relative; display: flex; align-items: center; }
.rs-search__input {
	min-height: 46px; padding-inline: 1.15rem 3.2rem;
	background: var(--rs-surface); border-color: transparent; border-radius: var(--rs-radius-pill);
	font-size: .95rem;
}
.rs-search__input:focus { background: var(--rs-white); }
.rs-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rs-search__submit {
	position: absolute; inset-inline-end: 4px; inset-block: 4px;
	inline-size: 40px; display: grid; place-items: center;
	background: var(--rs-navy); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
}
.rs-search__submit:hover { background: var(--rs-accent); }
.rs-search__panel {
	position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px); z-index: 60;
	background: var(--rs-white); border: 1px solid var(--rs-line); border-radius: var(--rs-radius);
	box-shadow: var(--rs-shadow-lg); padding: .4rem; max-height: min(70vh, 520px); overflow: auto;
}
.rs-suggest__label { font-size: .75rem; font-weight: 700; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .06em; padding: .5rem .7rem .3rem; margin: 0; }
html[dir="rtl"] .rs-suggest__label { letter-spacing: 0; text-transform: none; }
.rs-suggest__item { display: flex; align-items: center; gap: .8rem; padding: .5rem .65rem; border-radius: var(--rs-radius-sm); color: var(--rs-ink); text-decoration: none; }
.rs-suggest__item[aria-selected="true"], .rs-suggest__item:hover { background: var(--rs-surface); color: var(--rs-ink); }
.rs-suggest__img { inline-size: 48px; block-size: 48px; border-radius: 8px; background: var(--rs-surface); object-fit: contain; flex-shrink: 0; }
.rs-suggest__name { font-weight: 650; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-suggest__price { font-size: .85rem; color: var(--rs-muted); font-weight: 600; }
.rs-suggest__price del { opacity: .7; margin-inline-end: .35em; }
.rs-suggest__price ins { text-decoration: none; color: var(--rs-sale); }
.rs-suggest__all { display: block; padding: .7rem; text-align: center; font-weight: 700; font-size: .9rem; border-block-start: 1px solid var(--rs-line); margin-block-start: .3rem; text-decoration: none; }
.rs-suggest__empty { padding: .9rem; margin: 0; color: var(--rs-muted); font-size: .92rem; }

/* Category nav bar */
.rs-catnav { border-block-start: 1px solid var(--rs-line); display: none; }
.rs-catnav__list, .rs-catnav .menu {
	display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
	overflow-x: auto; scrollbar-width: none;
}
.rs-catnav__list::-webkit-scrollbar { display: none; }
.rs-catnav a {
	display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
	padding: .75rem .8rem; color: var(--rs-text); font-weight: 650; font-size: .9rem; text-decoration: none;
	border-block-end: 2px solid transparent; margin-block-end: -1px;
}
.rs-catnav a:hover { color: var(--rs-navy); }
.rs-catnav a[aria-current="page"], .rs-catnav .current-menu-item > a { color: var(--rs-navy); border-block-end-color: var(--rs-accent); }
.rs-catnav .rs-nav-all a { color: var(--rs-navy); }

/* Language switcher */
.rs-lang { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.rs-lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .65rem; border-radius: var(--rs-radius-pill); font-size: .84rem; font-weight: 700; color: var(--rs-muted); text-decoration: none; }
.rs-lang a:hover { background: var(--rs-surface); color: var(--rs-ink); }
.rs-lang a.is-current, .rs-lang a[aria-current] { background: var(--rs-surface-2); color: var(--rs-navy); }
.rs-lang--trp .trp-language-switcher { width: auto; }

/* Drawer (native <dialog>) */
.rs-drawer {
	position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0;
	inline-size: min(88vw, 380px); max-inline-size: none; block-size: 100dvh; max-block-size: none;
	border: 0; background: var(--rs-white); color: var(--rs-text);
	box-shadow: var(--rs-shadow-lg); overflow: auto;
}
html[dir="rtl"] .rs-drawer { inset: 0 0 0 auto; }
.rs-drawer::backdrop { background: rgba(8, 15, 28, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.rs-drawer[open] { animation: rs-drawer-in .28s var(--rs-ease); }
html[dir="rtl"] .rs-drawer[open] { animation-name: rs-drawer-in-rtl; }
@keyframes rs-drawer-in { from { transform: translateX(-100%); } }
@keyframes rs-drawer-in-rtl { from { transform: translateX(100%); } }
.rs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-block-end: 1px solid var(--rs-line); position: sticky; inset-block-start: 0; background: var(--rs-white); }
.rs-drawer__body { padding: .5rem; }
.rs-drawer-nav, .rs-drawer .menu { list-style: none; margin: 0; padding: 0; }
.rs-drawer-nav a, .rs-drawer .menu a {
	display: flex; align-items: center; gap: .85rem; padding: .8rem .85rem;
	border-radius: var(--rs-radius-sm); color: var(--rs-ink); font-weight: 650; text-decoration: none;
}
.rs-drawer-nav a:hover, .rs-drawer .menu a:hover { background: var(--rs-surface); }
.rs-drawer-nav .rs-icon { color: var(--rs-navy-2); }
.rs-drawer .sub-menu { list-style: none; padding-inline-start: 2.6rem; margin: 0; }
.rs-drawer-nav__sep { border-block-start: 1px solid var(--rs-line); margin-block-start: .5rem; padding-block-start: .5rem; }
.rs-drawer__lang { padding: 1rem .85rem; border-block-start: 1px solid var(--rs-line); margin-block-start: .5rem; }

@media (min-width: 768px) {
	.rs-iconbtn__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
	.rs-header__lang { display: block; }
	.rs-logo__svg { width: 168px; }
}
@media (min-width: 1024px) {
	.rs-header__bar { grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: "brand search actions"; gap: 2rem; padding-block: .85rem; }
	.rs-header__menu-btn { display: none; }
	.rs-header__search { max-width: 640px; inline-size: 100%; justify-self: center; }
	.rs-catnav { display: block; }
}

/* 6. Sections & typography helpers ----------------------------------------- */
.rs-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-accent); margin-block-end: 1rem; }
html[dir="rtl"] .rs-eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.rs-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.rs-section + .rs-section { padding-block-start: 0; }
.rs-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-block-end: 1.25rem; }
.rs-section__title { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0; }

/* 7. Hero ------------------------------------------------------------------- */
.rs-hero { padding-block: clamp(1rem, 3vw, 1.75rem) 0; }
.rs-hero__inner {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; gap: 1.5rem; align-items: center;
	padding: clamp(1.75rem, 5vw, 4rem); padding-block-end: 0;
	background: var(--rs-navy); color: #dfe7f5; border-radius: var(--rs-radius-lg);
	max-width: calc(var(--rs-container) - 2 * var(--rs-gutter));
	margin-inline: auto; width: calc(100% - 2 * var(--rs-gutter)); padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.rs-hero__inner::before {
	content: ""; position: absolute; z-index: -1; inset-block-start: -40%; inset-inline-end: -20%;
	inline-size: 80%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--rs-accent) 55%, transparent), transparent);
	opacity: .55;
}
.rs-hero__inner::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.rs-hero .rs-eyebrow { color: #9fbcff; }
.rs-hero__title { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; margin-block-end: 1rem; max-inline-size: 15ch; }
html[dir="rtl"] .rs-hero__title { letter-spacing: 0; line-height: 1.3; }
.rs-hero__text { font-size: clamp(1rem, 1.6vw, 1.15rem); max-inline-size: 46ch; color: #c5d1e6; margin-block-end: 1.75rem; }
.rs-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rs-hero .rs-btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.rs-hero__media { align-self: end; display: flex; justify-content: center; }
.rs-hero__img { inline-size: 100%; max-inline-size: 560px; height: auto; object-fit: contain; }
.rs-hero__img:not(.rs-hero__img--illustration) { border-radius: var(--rs-radius) var(--rs-radius) 0 0; }
@media (min-width: 900px) {
	.rs-hero__inner { grid-template-columns: 1.05fr 1fr; padding-block: 4rem 0; min-height: 440px; }
	.rs-hero__content { padding-block-end: 4rem; }
}

/* 8. Category cards -------------------------------------------------------- */
.rs-cats {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
@media (max-width: 639px) {
	.rs-cats {
		grid-auto-flow: column; grid-auto-columns: 30%; grid-template-columns: none; gap: .6rem;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--rs-gutter)); padding-inline: var(--rs-gutter); scroll-padding-inline: var(--rs-gutter);
	}
	.rs-cats::-webkit-scrollbar { display: none; }
	.rs-cat { scroll-snap-align: start; }
	.rs-cat__media { inline-size: 56px; block-size: 56px; }
	.rs-cat__link { padding: .8rem .4rem .7rem; }
	.rs-cat__name { font-size: .84rem; }
}
@media (min-width: 1024px) { .rs-cats { gap: 1rem; } }
.rs-cat__link {
	display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; block-size: 100%;
	padding: 1rem .5rem .9rem; border-radius: var(--rs-radius); background: var(--rs-surface);
	color: var(--rs-ink); text-decoration: none; border: 1px solid transparent;
	transition: background-color .2s, border-color .2s, transform .2s var(--rs-ease), box-shadow .2s;
}
.rs-cat__link:hover { background: var(--rs-white); border-color: var(--rs-line); box-shadow: var(--rs-shadow); transform: translateY(-2px); color: var(--rs-ink); }
.rs-cat__media { inline-size: 72px; block-size: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--rs-white); color: var(--rs-navy); margin-block-end: .35rem; overflow: hidden; box-shadow: var(--rs-shadow-sm); }
.rs-cat__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rs-cat__name { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.rs-cat__count { font-size: .76rem; color: var(--rs-muted); }

/* 9. Product grid & cards --------------------------------------------------- */
ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 359px) { ul.products { grid-template-columns: 1fr; } }
@media (min-width: 720px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1100px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
ul.products::before, ul.products::after { display: none; }

/* Homepage rails scroll horizontally on phones */
@media (max-width: 719px) {
	ul.products.rs-rail {
		display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); grid-template-columns: none;
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin-inline: calc(-1 * var(--rs-gutter)); padding-inline: var(--rs-gutter); scroll-padding-inline: var(--rs-gutter);
		padding-block-end: .5rem; scrollbar-width: none;
	}
	ul.products.rs-rail::-webkit-scrollbar { display: none; }
	ul.products.rs-rail > li { scroll-snap-align: start; }
}

.rs-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--rs-white); border: 1px solid var(--rs-line); border-radius: var(--rs-radius);
	overflow: hidden; transition: box-shadow .25s var(--rs-ease), border-color .25s, transform .25s var(--rs-ease);
}
.rs-card:hover { border-color: transparent; box-shadow: var(--rs-shadow-lg); transform: translateY(-2px); }
.rs-card:focus-within { border-color: var(--rs-accent); }
.rs-card__media { position: relative; background: var(--rs-surface); aspect-ratio: 1; }
.rs-card__imglink { display: block; block-size: 100%; }
.rs-card__media img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .4s var(--rs-ease); }
.rs-card:hover .rs-card__media img { transform: scale(1.04); }
.rs-card__badges { position: absolute; inset-block-start: .6rem; inset-inline-start: .6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; pointer-events: none; }
.rs-card__body { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .85rem .9rem; flex: 1; }
.rs-card__brand { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); }
html[dir="rtl"] .rs-card__brand { letter-spacing: 0; }
.rs-card__title { margin: 0; font-size: .93rem; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; }
.rs-card__title a { color: var(--rs-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-block-size: 2.7em; }
.rs-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.rs-card__title a:hover { color: var(--rs-accent); }
.rs-card__rating { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--rs-muted); }
.rs-card .rs-stock { margin: 0; }
.rs-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-block-start: auto; padding-block-start: .45rem; }
.rs-card__foot .price { display: block; line-height: 1.25; font-weight: 800; color: var(--rs-ink); font-size: 1.02rem; min-width: 0; }
.rs-card__foot .price:has(del) { display: flex; flex-direction: column; }
.rs-card__foot .price del { order: 2; font-size: .78rem; font-weight: 600; color: var(--rs-muted); }
.rs-card__foot .price .woocommerce-Price-amount { white-space: nowrap; }
.rs-card__foot .price ins { text-decoration: none; color: var(--rs-sale); }
.rs-card .rs-card__foot .button, .rs-card .rs-btn--card {
	position: relative; z-index: 2; min-height: 38px; padding: .45em .95em; font-size: .82rem;
	background: var(--rs-navy); color: #fff; box-shadow: none;
}
.rs-card .rs-card__foot .button:hover { background: var(--rs-accent); color: #fff; }
.rs-card [data-rs-wishlist], .rs-card .rs-wish { z-index: 2; }
@media (max-width: 479px) {
	.rs-card__body { padding: .65rem .7rem .75rem; }
	.rs-card__foot { flex-direction: column; align-items: stretch; }
	.rs-card__foot .button { inline-size: 100%; }
}

/* Badges & stock */
.rs-badge { display: inline-flex; align-items: center; padding: .25em .6em; border-radius: 7px; font-size: .74rem; font-weight: 800; line-height: 1.3; }
.rs-badge--sale { background: var(--rs-sale); color: #fff; }
.rs-badge--muted { background: var(--rs-white); color: var(--rs-muted); border: 1px solid var(--rs-line); }
.rs-badge--new { background: var(--rs-navy); color: #fff; }
.rs-stock { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 700; }
.rs-stock::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; }
.rs-stock--in { color: var(--rs-success); }
.rs-stock--low, .rs-stock--backorder { color: var(--rs-warn); }
.rs-stock--out { color: var(--rs-muted); }

/* Star rating (no icon font needed) */
.star-rating {
	position: relative; display: inline-block; overflow: hidden;
	inline-size: 5.3em; block-size: 1.1em; line-height: 1.1; font-size: .95em; letter-spacing: .06em;
	font-family: system-ui, sans-serif; color: #d4dae4;
}
.star-rating::before { content: "★★★★★"; position: absolute; inset-inline-start: 0; inset-block-start: 0; }
.star-rating span { position: absolute; inset-inline-start: 0; inset-block-start: 0; overflow: hidden; padding-block-start: 1.5em; block-size: 1.1em; }
.star-rating span::before { content: "★★★★★"; position: absolute; inset-inline-start: 0; inset-block-start: 0; color: var(--rs-gold); }
p.stars { display: flex; gap: .2rem; margin: .25rem 0 1rem; }
p.stars a { position: relative; inline-size: 1.6em; block-size: 1.6em; text-indent: -999em; overflow: hidden; display: inline-block; text-decoration: none; }
p.stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; font-size: 1.5em; line-height: 1; color: #d4dae4; }
p.stars:hover a::before, p.stars.selected a.active::before, p.stars.selected a:not(.active)::before { color: var(--rs-gold); }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: #d4dae4; }

/* Rails "sale" accent */
.rs-section--sale .rs-section__title::after { content: ""; display: inline-block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--rs-sale); margin-inline-start: .5rem; vertical-align: middle; }

/* 10. Trust strip ----------------------------------------------------------- */
.rs-trust { padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
.rs-trust__list { list-style: none; margin: 0; padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 1rem; grid-template-columns: 1fr; background: var(--rs-surface); border-radius: var(--rs-radius-lg); }
@media (min-width: 640px) { .rs-trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rs-trust__list { grid-template-columns: repeat(4, 1fr); } }
.rs-trust__item { display: flex; gap: .85rem; align-items: flex-start; }
.rs-trust__item strong { display: block; color: var(--rs-ink); font-size: .95rem; }
.rs-trust__item span > span { display: block; font-size: .86rem; color: var(--rs-muted); line-height: 1.45; }
.rs-trust__icon { inline-size: 48px; block-size: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--rs-white); color: var(--rs-accent); box-shadow: var(--rs-shadow-sm); }

/* 11. Breadcrumb, page shells ---------------------------------------------- */
.rs-breadcrumb { font-size: .84rem; color: var(--rs-muted); padding-block: 1rem .5rem; }
.rs-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.rs-breadcrumb li { display: inline-flex; align-items: center; gap: .25rem; }
.rs-breadcrumb li + li::before { content: "/"; color: var(--rs-line-strong); margin-inline-end: .25rem; }
.rs-breadcrumb a { color: var(--rs-muted); text-decoration: none; }
.rs-breadcrumb a:hover { color: var(--rs-accent); text-decoration: underline; }
.rs-breadcrumb li:last-child { color: var(--rs-ink); font-weight: 600; }

.rs-page { padding-block-end: clamp(2.5rem, 6vw, 4.5rem); }
.rs-page__header { padding-block: 1rem 1.5rem; }
.rs-page__title, .woocommerce-products-header__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0; letter-spacing: -.025em; }
.rs-page__intro, .term-description, .page-description { color: var(--rs-muted); max-inline-size: 70ch; margin-block-start: .5rem; }
.rs-page__intro p:last-child, .term-description p:last-child { margin: 0; }
.rs-meta { color: var(--rs-muted); font-size: .88rem; margin: .35rem 0 0; }

.rs-prose { max-inline-size: 760px; font-size: 1.02rem; }
.rs-prose h2 { font-size: 1.45rem; margin-block: 2rem .6rem; }
.rs-prose h3 { font-size: 1.15rem; margin-block: 1.5rem .5rem; }
.rs-prose li { margin-block: .3rem; }
.rs-prose img { border-radius: var(--rs-radius); }
.rs-prose details { border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm); padding: .25rem 1rem; margin-block: .6rem; background: var(--rs-white); }
.rs-prose details[open] { box-shadow: var(--rs-shadow-sm); }
.rs-prose summary { cursor: pointer; font-weight: 700; color: var(--rs-ink); padding-block: .7rem; list-style-position: inside; }
.rs-prose .rs-todo, .rs-todo { background: #fff6dd; border: 1px dashed #e0b44c; border-radius: 6px; padding: .05em .35em; color: #6d4a00; font-weight: 600; }
.rs-prose:has(.rs-wishlist), .rs-prose:has(.woocommerce) { max-inline-size: none; }
.rs-prose .rs-card__title { font-size: .93rem; margin: 0; }
.rs-prose ul.products { padding: 0; }
.rs-prose ul.products li { margin: 0; }
.rs-article__media { margin: 0 0 1.5rem; }
.rs-article__media img { border-radius: var(--rs-radius-lg); inline-size: 100%; }

.rs-posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rs-postcard { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden; background: var(--rs-white); }
.rs-postcard__media img { aspect-ratio: 16 / 10; object-fit: cover; inline-size: 100%; }
.rs-postcard__body { padding: 1rem 1.1rem 1.2rem; }
.rs-postcard__title { font-size: 1.1rem; margin: 0; }
.rs-postcard__title a { color: var(--rs-ink); text-decoration: none; }

.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-block-start: 2rem; }
.nav-links .page-numbers, .woocommerce-pagination .page-numbers li > * {
	display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: 0 .8rem;
	border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm); color: var(--rs-ink); text-decoration: none; font-weight: 700;
}
.nav-links .current, .woocommerce-pagination .page-numbers .current { background: var(--rs-navy); color: #fff; border-color: var(--rs-navy); }
.woocommerce-pagination { margin-block-start: 2.5rem; }
.woocommerce-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 0; padding: 0; }
.woocommerce-pagination a.page-numbers:hover { border-color: var(--rs-navy); }

/* Empty states & 404 */
.rs-empty { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem; border: 1px dashed var(--rs-line-strong); border-radius: var(--rs-radius-lg); background: var(--rs-white); }
.rs-empty__icon { display: inline-grid; place-items: center; inline-size: 72px; block-size: 72px; border-radius: 50%; background: var(--rs-surface); color: var(--rs-navy); margin-block-end: 1rem; }
.rs-empty__title { font-size: 1.3rem; }
.rs-empty p { color: var(--rs-muted); max-inline-size: 48ch; margin-inline: auto; }
.rs-empty__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-block-start: 1.25rem; }
.rs-empty__search { max-inline-size: 520px; margin: 1.25rem auto 0; }
.rs-404 { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); max-inline-size: 720px; }
.rs-404__code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; margin: 0 0 .5rem; background: linear-gradient(180deg, var(--rs-navy), var(--rs-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rs-404__title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.rs-404__text { color: var(--rs-muted); }
.rs-404__search { max-inline-size: 520px; margin: 1.5rem auto; text-align: start; }
.rs-404__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* 12. Shop archive ---------------------------------------------------------- */
.rs-wc { padding-block-end: clamp(2.5rem, 6vw, 4.5rem); }
.woocommerce-products-header { padding-block: .5rem 1.25rem; }
.rs-shop { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .rs-shop { grid-template-columns: 260px minmax(0, 1fr); gap: 2.25rem; align-items: start; } }

.rs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-end: 1rem; }
.rs-toolbar .woocommerce-result-count { margin: 0; color: var(--rs-muted); font-size: .9rem; margin-inline-end: auto; }
.rs-toolbar .woocommerce-ordering { margin: 0; }
.rs-toolbar .woocommerce-ordering select { min-height: 44px; inline-size: auto; min-inline-size: 210px; font-size: .9rem; border-radius: var(--rs-radius-pill); }
.rs-toolbar__filter-btn { min-height: 44px; }
@media (min-width: 1024px) { .rs-toolbar__filter-btn { display: none; } }
@media (max-width: 599px) {
	.rs-toolbar .woocommerce-result-count { order: 3; inline-size: 100%; }
	.rs-toolbar .woocommerce-ordering { flex: 1; }
	.rs-toolbar .woocommerce-ordering select { inline-size: 100%; min-inline-size: 0; }
}

/* Filter panel: sidebar on desktop, slide-over on mobile */
.rs-shop__filters-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: .5rem; }
.rs-shop__filters-title { font-size: 1.05rem; margin: 0; }
@media (max-width: 1023px) {
	.rs-shop__filters {
		position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 90;
		inline-size: min(90vw, 360px); background: var(--rs-white); padding: 1rem 1.1rem 6rem; overflow-y: auto;
		transform: translateX(-105%); transition: transform .3s var(--rs-ease), visibility .3s; visibility: hidden;
		box-shadow: var(--rs-shadow-lg);
	}
	html[dir="rtl"] .rs-shop__filters { transform: translateX(105%); }
	.rs-shop__filters.is-open { transform: none !important; visibility: visible; }
	.rs-filters-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(8, 15, 28, .5); }
	.rs-filters__actions { position: fixed; inset-block-end: 0; inset-inline-start: 0; inline-size: min(90vw, 360px); padding: .8rem 1.1rem; background: var(--rs-white); border-block-start: 1px solid var(--rs-line); }
}
@media (min-width: 1024px) {
	.rs-shop__filters { position: sticky; inset-block-start: calc(var(--rs-header-h) + 70px); max-block-size: calc(100vh - 160px); overflow-y: auto; padding-inline-end: .5rem; scrollbar-width: thin; }
	.rs-shop__filters-close { display: none; }
}
.rs-filter-group { border: 0; border-block-end: 1px solid var(--rs-line); margin: 0; padding: 1rem 0; min-inline-size: 0; }
.rs-filter-group__title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--rs-ink); margin: 0 0 .65rem; padding: 0; }
html[dir="rtl"] .rs-filter-group__title { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.rs-filter-group__scroll { max-block-size: 240px; overflow-y: auto; scrollbar-width: thin; }
.rs-check { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-weight: 500; font-size: .92rem; cursor: pointer; color: var(--rs-text); }
.rs-check small { margin-inline-start: auto; color: var(--rs-muted); }
.rs-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rs-price-inputs label { display: grid; gap: .25rem; font-size: .8rem; color: var(--rs-muted); }
.rs-price-inputs input { min-height: 42px; }
.rs-filter-cats { list-style: none; margin: 0; padding: 0; }
.rs-filter-cats a { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem 0; color: var(--rs-text); text-decoration: none; font-size: .93rem; }
.rs-filter-cats a:hover { color: var(--rs-accent); }
.rs-filter-cats small { color: var(--rs-muted); }
.rs-filter-cats__up a { color: var(--rs-muted); justify-content: flex-start; }
.rs-filter-cats__up a::before { content: "‹"; font-weight: 800; }
.rs-filters__actions { display: grid; gap: .5rem; padding-block-start: 1rem; }

.rs-chips { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.rs-chips--subcats { margin-block-end: 1.25rem; }
.rs-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .9rem; border-radius: var(--rs-radius-pill); background: var(--rs-surface); color: var(--rs-ink); font-size: .87rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.rs-chip:hover { border-color: var(--rs-line-strong); background: var(--rs-white); color: var(--rs-ink); }
.rs-chip--remove { background: color-mix(in srgb, var(--rs-accent) 10%, #fff); color: var(--rs-navy); }
.rs-chip--clear { background: transparent; color: var(--rs-accent); text-decoration: underline; }

/* 13. Single product -------------------------------------------------------- */
.single-product div.product { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); position: relative; padding-block-start: .5rem; }
@media (min-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
	.single-product div.product > .woocommerce-tabs,
	.single-product div.product > .related,
	.single-product div.product > .upsells,
	.single-product div.product > .rs-full { grid-column: 1 / -1; }
	.single-product div.product .summary { position: sticky; inset-block-start: calc(var(--rs-header-h) + 70px); align-self: start; }
}
.single-product div.product > *:not(.images):not(.summary):not(.woocommerce-product-gallery) { grid-column: 1 / -1; }

.woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__image:only-child, .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	border-radius: var(--rs-radius-lg); background: var(--rs-surface); overflow: hidden;
}
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img { inline-size: 100%; aspect-ratio: 1; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.woocommerce-product-gallery .flex-control-thumbs li img { aspect-ratio: 1; object-fit: contain; padding: 8%; background: var(--rs-surface); border-radius: var(--rs-radius-sm); border: 2px solid transparent; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; mix-blend-mode: multiply; }
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active, .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--rs-navy); }
.woocommerce-product-gallery__trigger {
	position: absolute; inset-block-start: .9rem; inset-inline-end: .9rem; z-index: 9;
	inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--rs-white); box-shadow: var(--rs-shadow);
	text-indent: -9999px; overflow: hidden;
}
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; inset: 0; margin: auto; inline-size: 18px; block-size: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce-product-gallery__trigger span[aria-hidden="true"] { display: none; }

.summary .rs-product-brand { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--rs-accent); }
html[dir="rtl"] .summary .rs-product-brand { letter-spacing: 0; }
.summary .product_title { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.025em; margin-block-end: .6rem; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: .6rem; font-size: .88rem; margin-block-end: .9rem; }
.summary .woocommerce-review-link { color: var(--rs-muted); }
.summary > .price, .woocommerce-variation-price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--rs-ink); margin: 0 0 .6rem; letter-spacing: -.02em; }
.summary .price del { font-size: .55em; font-weight: 600; color: var(--rs-muted); order: 2; }
.summary .price ins { text-decoration: none; color: var(--rs-sale); }
.rs-product-status { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-block-end: 1rem; }
.summary .woocommerce-product-details__short-description { color: var(--rs-text); padding-block: 1rem; border-block: 1px solid var(--rs-line); margin-block: .5rem 1.25rem; }
.summary .woocommerce-product-details__short-description ul { margin: 0; padding-inline-start: 1.1em; }
.summary .woocommerce-product-details__short-description p:last-child { margin: 0; }

.summary form.cart { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-end: 1.25rem; }
.summary form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.summary form.variations_form { display: block; }
.summary .single_add_to_cart_button { flex: 1; min-height: 54px; font-size: 1rem; min-inline-size: 200px; }
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--rs-line-strong); border-radius: var(--rs-radius-pill); overflow: hidden; background: var(--rs-white); }
.quantity .qty { inline-size: 58px; min-height: 52px; border: 0; text-align: center; font-weight: 700; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .qty:focus { box-shadow: none; }
.rs-qty-btn { inline-size: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 600; color: var(--rs-ink); cursor: pointer; }
.rs-qty-btn:hover { background: var(--rs-surface); }
.quantity:focus-within { border-color: var(--rs-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rs-accent) 18%, transparent); }

table.variations { margin-block-end: 1rem; }
table.variations th, table.variations td { display: block; padding: 0; text-align: start; }
table.variations th { padding-block: .3rem .35rem; }
table.variations td { padding-block-end: .85rem; }
table.variations select { max-inline-size: 420px; }
.reset_variations { display: inline-block; margin-block-start: .5rem; font-size: .85rem; }
.woocommerce-variation { margin-block-end: 1rem; }
.woocommerce-variation-availability .stock { font-weight: 700; font-size: .9rem; }
.stock.in-stock { color: var(--rs-success); }
.stock.out-of-stock { color: var(--rs-sale); }
.stock.available-on-backorder { color: var(--rs-warn); }

.rs-assurance { list-style: none; margin: 0 0 1.25rem; padding: .25rem 1rem; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: var(--rs-white); }
.rs-assurance li { display: flex; gap: .75rem; align-items: flex-start; padding-block: .8rem; font-size: .9rem; color: var(--rs-text); }
.rs-assurance li + li { border-block-start: 1px solid var(--rs-line); }
.rs-assurance .rs-icon { color: var(--rs-accent); margin-block-start: .1rem; }
.rs-assurance strong { color: var(--rs-ink); }

.product_meta { display: grid; gap: .3rem; font-size: .86rem; color: var(--rs-muted); }
.product_meta > span { display: block; }
.product_meta a { color: var(--rs-text); }
.product_meta .sku { color: var(--rs-ink); font-weight: 600; }

/* Tabs */
.woocommerce-tabs { margin-block-start: clamp(1.5rem, 4vw, 3rem); }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; border-block-end: 1px solid var(--rs-line); scrollbar-width: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: .9rem 1.1rem; font-weight: 700; color: var(--rs-muted); text-decoration: none; white-space: nowrap; border-block-end: 2px solid transparent; margin-block-end: -1px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--rs-ink); border-block-end-color: var(--rs-accent); }
.woocommerce-tabs .panel { padding-block: 1.5rem; max-inline-size: 900px; }
.woocommerce-tabs .panel > h2:first-child { font-size: 1.3rem; }
.woocommerce-product-attributes { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: .8rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--rs-line); font-size: .93rem; }
.woocommerce-product-attributes tr:last-child > * { border-block-end: 0; }
.woocommerce-product-attributes th { inline-size: 36%; background: var(--rs-surface); color: var(--rs-ink); font-weight: 650; }
.woocommerce-product-attributes td p { margin: 0; }

/* Reviews */
#reviews .commentlist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
#reviews .comment_container { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); }
#reviews .avatar { border-radius: 50%; inline-size: 44px; block-size: 44px; }
#reviews .comment-text { flex: 1; }
#reviews .meta { color: var(--rs-muted); font-size: .85rem; margin: .25rem 0 .5rem; }
#reviews .woocommerce-review__verified { color: var(--rs-success); font-style: normal; font-weight: 600; }
#review_form_wrapper { padding: 1.25rem; background: var(--rs-surface); border-radius: var(--rs-radius); }
.comment-form > p { margin-block-end: 1rem; }
.comment-form label { display: block; margin-block-end: .3rem; }

.related > h2, .upsells > h2, .cross-sells > h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-block: 2rem 1.1rem; }

/* Sticky mobile buy bar */
.rs-sticky-buy {
	position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 70;
	display: flex; align-items: center; gap: .75rem;
	padding: .65rem var(--rs-gutter) calc(.65rem + env(safe-area-inset-bottom));
	background: var(--rs-white); border-block-start: 1px solid var(--rs-line); box-shadow: 0 -10px 30px -18px rgba(12, 20, 36, .4);
	transform: translateY(110%); transition: transform .3s var(--rs-ease);
}
.rs-sticky-buy.is-visible { transform: none; }
.rs-sticky-buy[hidden] { display: none; }
.rs-sticky-buy__info { min-width: 0; flex: 1; display: grid; }
.rs-sticky-buy__title { font-size: .8rem; color: var(--rs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sticky-buy__price { font-weight: 800; color: var(--rs-ink); }
.rs-sticky-buy__price del { display: none; }
.rs-sticky-buy__price ins { text-decoration: none; color: var(--rs-sale); }
@media (min-width: 900px) { .rs-sticky-buy { display: none !important; } }

/* 14. Notices -------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
	margin: 0 0 1.25rem; padding: 1rem 1.15rem; border-radius: var(--rs-radius);
	border: 1px solid var(--rs-line); border-inline-start-width: 4px; background: var(--rs-white); color: var(--rs-text); font-size: .95rem;
}
.woocommerce-message { border-inline-start-color: var(--rs-success); background: #f0faf5; }
.woocommerce-info { border-inline-start-color: var(--rs-accent); background: #f2f6ff; }
.woocommerce-error { border-inline-start-color: var(--rs-sale); background: #fff4f5; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-inline-start: auto; min-height: 38px; padding-block: .4em; font-size: .85rem; }
.woocommerce-info.rs-empty { display: block; border-inline-start-width: 1px; border-style: dashed; }

/* 15. Cart / checkout / account (classic templates + block tweaks) ---------- */
.rs-page--wc .rs-page__header { padding-block: 1.5rem 1rem; }
table.shop_table { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; margin-block-end: 1.5rem; }
table.shop_table th, table.shop_table td { padding: .9rem 1rem; text-align: start; border-block-end: 1px solid var(--rs-line); vertical-align: middle; }
table.shop_table thead th { background: var(--rs-surface); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rs-muted); }
html[dir="rtl"] table.shop_table thead th { letter-spacing: 0; text-transform: none; }
table.shop_table tr:last-child > * { border-block-end: 0; }
table.shop_table .product-thumbnail img { inline-size: 72px; border-radius: var(--rs-radius-sm); background: var(--rs-surface); }
table.shop_table .product-remove a { display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; color: var(--rs-muted); text-decoration: none; font-size: 1.3rem; }
table.shop_table .product-remove a:hover { background: #fdecee; color: var(--rs-sale); }
table.shop_table .product-name a { color: var(--rs-ink); font-weight: 650; text-decoration: none; }
table.shop_table td.actions { background: var(--rs-surface); }
.coupon { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.coupon .input-text { inline-size: 200px; }
.cart-collaterals .cart_totals { max-inline-size: 460px; margin-inline-start: auto; padding: 1.25rem; border-radius: var(--rs-radius-lg); background: var(--rs-surface); }
.cart_totals table.shop_table { background: var(--rs-white); }
.wc-proceed-to-checkout .checkout-button { inline-size: 100%; min-height: 54px; }
@media (max-width: 767px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-block-end: 1px solid var(--rs-line); }
	table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; border: 0; text-align: end; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 650; color: var(--rs-muted); text-align: start; }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.actions::before, table.shop_table_responsive td.product-thumbnail::before { display: none; }
	table.shop_table_responsive td.actions { flex-direction: column; text-align: start; }
}

.woocommerce form .form-row { margin: 0 0 1rem; padding: 0; }
.woocommerce form .form-row label { display: block; margin-block-end: .35rem; }
.woocommerce form .form-row .optional { color: var(--rs-muted); font-weight: 400; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--rs-sale); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: color-mix(in srgb, var(--rs-success) 60%, var(--rs-line-strong)); }
.checkout-inline-error-message { color: var(--rs-sale); font-size: .85rem; margin: .3rem 0 0; }
@media (min-width: 640px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { inline-size: calc(50% - .5rem); float: inline-start; }
	.woocommerce form .form-row-last { float: inline-end; }
	.woocommerce form .form-row-wide, .woocommerce .clear { clear: both; }
}
.woocommerce-billing-fields h3, #order_review_heading, .woocommerce-additional-fields h3 { font-size: 1.2rem; margin-block: 0 1rem; }
@media (min-width: 1024px) {
	form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 3rem; align-items: start; }
	form.checkout > .woocommerce-NoticeGroup, form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; grid-row: auto; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
	form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; inset-block-start: calc(var(--rs-header-h) + 70px); }
	form.checkout:has(> .woocommerce-NoticeGroup) #customer_details { grid-row: 2 / span 2; }
	form.checkout:has(> .woocommerce-NoticeGroup) #order_review_heading { grid-row: 2; }
	form.checkout:has(> .woocommerce-NoticeGroup) #order_review { grid-row: 3; }
}
#order_review { padding: 1.25rem; background: var(--rs-surface); border-radius: var(--rs-radius-lg); }
#order_review table.shop_table { background: var(--rs-white); }
#payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
#payment ul.payment_methods > li { padding: .9rem 1rem; background: var(--rs-white); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm); }
#payment .payment_box { margin-block-start: .6rem; font-size: .9rem; color: var(--rs-muted); }
#payment .payment_box p:last-child { margin: 0; }
#place_order { inline-size: 100%; min-height: 56px; font-size: 1.02rem; }
.woocommerce-terms-and-conditions-wrapper { font-size: .88rem; margin-block-end: 1rem; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { font-size: .9rem; }

.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--rs-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { block-size: 100%; inset-inline-end: 8px; }
.select2-dropdown { border-color: var(--rs-line-strong); border-radius: var(--rs-radius-sm); overflow: hidden; }
.select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--rs-accent) !important; }

/* Account */
.woocommerce-account .woocommerce { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: .4rem; background: var(--rs-surface); border-radius: var(--rs-radius); display: flex; flex-wrap: wrap; gap: .2rem; }
@media (min-width: 900px) { .woocommerce-MyAccount-navigation ul { flex-direction: column; } }
.woocommerce-MyAccount-navigation a { display: block; padding: .65rem .9rem; border-radius: var(--rs-radius-sm); color: var(--rs-text); font-weight: 650; text-decoration: none; font-size: .93rem; }
.woocommerce-MyAccount-navigation a:hover { background: var(--rs-white); color: var(--rs-ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--rs-white); color: var(--rs-navy); box-shadow: var(--rs-shadow-sm); }
.woocommerce-account:not(.logged-in) .u-columns { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-lg); background: var(--rs-white); }
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login, .woocommerce-account:not(.logged-in) .woocommerce > h2 { max-inline-size: 520px; margin-inline: auto; inline-size: 100%; }
body .woocommerce :is(button, a, input).button:is(.woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-Button, [name="save_address"], [name="save_account_details"]),
body .woocommerce .woocommerce-ResetPassword .button {
	background: var(--rs-accent); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--rs-accent) 70%, transparent);
}
body .woocommerce :is(button, a, input).button:is(.woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-Button):hover { background: color-mix(in srgb, var(--rs-accent) 86%, #000); color: #fff; }
.password-input { position: relative; display: block; }
.password-input input { padding-inline-end: 3rem; }
.show-password-input {
	position: absolute; inset-block: 0; inset-inline-end: .35rem; inline-size: 40px; margin: auto 0; block-size: 40px;
	border: 0; background: transparent; cursor: pointer; border-radius: 8px;
}
.show-password-input::before {
	content: ""; position: absolute; inset: 0; margin: auto; inline-size: 20px; block-size: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586377' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.show-password-input.display-password::before { opacity: .5; }
.show-password-input:hover { background: var(--rs-surface); }
.woocommerce-form-login__rememberme { display: inline-flex; gap: .5rem; align-items: center; margin-inline-end: 1rem; }
.woocommerce-Addresses { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { padding: 1.25rem; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.woocommerce-Address-title h2 { font-size: 1.1rem; }
.woocommerce-orders-table .button { min-height: 36px; padding: .35em .8em; font-size: .82rem; }
mark.order-status, mark { background: color-mix(in srgb, var(--rs-accent) 12%, #fff); color: var(--rs-navy); padding: .1em .4em; border-radius: 5px; }
.woocommerce-order-overview { list-style: none; padding: 1rem 1.25rem; margin: 0 0 1.5rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--rs-surface); border-radius: var(--rs-radius); }
.woocommerce-order-overview li { font-size: .85rem; color: var(--rs-muted); }
.woocommerce-order-overview strong { display: block; color: var(--rs-ink); font-size: 1rem; }
.woocommerce-thankyou-order-received { font-size: 1.15rem; font-weight: 700; color: var(--rs-success); }

/* Block cart/checkout: align with the design system */
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border-radius: var(--rs-radius-pill) !important; min-height: 52px; font-weight: 700 !important;
}
.wc-block-components-button.contained, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--rs-accent) !important; color: #fff !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select {
	border-radius: var(--rs-radius-sm) !important;
}
.wc-block-components-sidebar-layout .wc-block-components-sidebar { padding-inline: 1.25rem; }
.wp-block-woocommerce-cart .wc-block-cart__totals-title, .wc-block-components-checkout-step__title { font-weight: 750; }
.wc-block-components-product-name { color: var(--rs-ink) !important; font-weight: 650; }
.wc-block-grid__product-onsale, .wc-block-components-product-sale-badge { background: var(--rs-sale) !important; color: #fff !important; border: 0 !important; border-radius: 7px !important; }

/* 16. Footer --------------------------------------------------------------- */
.rs-footer { margin-block-start: clamp(2rem, 6vw, 4rem); background: var(--rs-navy); color: #b9c6dc; font-size: .93rem; }
.rs-footer a { color: #e3eaf6; text-decoration: none; }
.rs-footer a:hover { color: #fff; text-decoration: underline; }
.rs-footer .rs-logo__svg rect { fill: #fff; }
.rs-footer .rs-logo__svg path { fill: var(--rs-navy); }
.rs-footer .rs-logo__svg text { fill: #fff; }
.rs-footer__news { border-block-end: 1px solid rgba(255,255,255,.1); }
.rs-footer__news-inner { display: grid; gap: 1rem; padding-block: 2rem; align-items: center; }
@media (min-width: 900px) { .rs-footer__news-inner { grid-template-columns: 1fr 1fr; } }
.rs-footer__news-title { color: #fff; font-size: 1.3rem; margin-block-end: .3rem; }
.rs-footer__news p { margin: 0; }
.rs-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rs-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rs-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; } }
.rs-footer__about { margin-block: 1rem; max-inline-size: 38ch; }
.rs-footer__title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-block-end: 1rem; }
html[dir="rtl"] .rs-footer__title { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.rs-footer__menu, .rs-footer__contact, .rs-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rs-footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.rs-footer__contact .rs-icon { color: #8fb0ff; margin-block-start: .2rem; }
.rs-social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: .5rem; }
.rs-social a { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }
.rs-social a:hover { background: var(--rs-accent); text-decoration: none; }
.rs-footer__bottom { border-block-start: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.rs-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; padding-block: 1.25rem; }
.rs-footer__bottom p { margin: 0; }
.rs-footer__legal, .rs-footer__legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.rs-paymethods { margin-inline-start: auto !important; display: inline-flex; align-items: center; gap: .45rem; color: #b9c6dc; }

/* 17. Utilities ----------------------------------------------------------- */
.rs-hidden { display: none !important; }
body.rs-lock { overflow: hidden; }
.clear::after, .woocommerce::after { content: ""; display: table; clear: both; }
.woocommerce-account .woocommerce::after { display: none; }
.wp-block-image img { border-radius: var(--rs-radius); }
.alignwide { max-inline-size: 1100px; }
.alignfull { inline-size: 100vw; margin-inline: calc(50% - 50vw); }
.blockUI.blockOverlay { background: rgba(255,255,255,.65) !important; }

@media print {
	.rs-header, .rs-footer, .rs-announce, .rs-sticky-buy, .rs-wa-float { display: none !important; }
}
