/* Mindforce — studio storefront. Logical properties throughout for future RTL (Arabic). */
:root {
  --bg: #F4F3EF; --bg-2: #ECEAE4; --surface: #FFFFFF; --ink: #111214; --graphite: #2A2C31; --muted: #62666F; --faint: #8C9099;
  --line: #E2E0D9; --line-2: #D3D0C7;
  --accent: #E8621C; --accent-2: #F9B233; --accent-ink: #fff;
  --ok: #138A5B; --warn: #B26A00; --bad: #C23B2B; --info: #2B59FF;
  --radius: 18px; --radius-sm: 12px; --radius-xs: 8px;
  --shadow-1: 0 1px 2px rgba(17,18,20,.06), 0 4px 14px rgba(17,18,20,.05);
  --shadow-2: 0 2px 6px rgba(17,18,20,.06), 0 18px 44px rgba(17,18,20,.10);
  --ease: cubic-bezier(.22,.7,.12,1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --nav-h: 62px; --max: 1360px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.022em; line-height: 1.08; font-weight: 680; }
p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 3.2vw, 40px); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stack > * + * { margin-top: var(--gap, 12px); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Buttons & controls ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--soft { background: var(--bg-2); }
.btn--soft:hover { background: #E3E0D8; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--wa { background: #1FA855; color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; position: relative; }
.icon-btn:hover { background: rgba(17,18,20,.06); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 550; transition: all .2s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-disabled="true"] { opacity: .45; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--bg-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--ok { color: var(--ok); background: #E4F4EC; } .pill--warn { color: var(--warn); background: #FBF0DC; } .pill--bad { color: var(--bad); background: #FBE6E2; }
.pill--info { color: var(--info); background: #E5ECFF; } .pill--muted { color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.tag--demo { background: #FFF1CC; color: #7A5600; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; border-radius: 999px; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 36px; } .qty--sm button { width: 32px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; font-weight: 450; color: var(--ink); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,98,28,.18); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 2px 0 0; flex: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card--pad { padding: clamp(18px, 2.2vw, 28px); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: #EEF2FF; color: #1D3A9E; font-size: 14px; }
.notice--warn { background: #FFF4DE; color: #7A4D00; } .notice--bad { background: #FCE8E4; color: #8E2617; } .notice--ok { background: #E3F5EC; color: #0E6A45; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,243,239,.82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(17,18,20,.06); }
.nav__inner { max-width: var(--max); margin: 0 auto; height: var(--nav-h); padding-inline: clamp(12px, 3.2vw, 40px); display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.logo__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; flex: none; }
.logo__mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); inset-inline-end: 3px; bottom: 3px; }
.logo__mark::before { content: ""; position: absolute; inset: 5px 5px 7px; border: 2px solid #fff; border-bottom: 0; border-radius: 2px 2px 0 0; }
.logo img { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .logo img { height: 34px; } }
.footer .logo img { height: 34px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a, .mega__btn { height: 38px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border-radius: 999px; font-weight: 560; font-size: 14.5px; background: none; border: 0; }
.nav__links > a:hover, .mega__btn:hover, .mega__btn[aria-expanded="true"] { background: rgba(17,18,20,.06); }
.mega__btn svg { width: 16px; height: 16px; }
.mega { position: relative; }
.mega__panel { position: absolute; top: calc(100% + 10px); inset-inline-start: -120px; width: min(860px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px; }
.mega__panel[hidden] { display: none; }
.mega__group h4 { font-size: 14px; margin-bottom: 6px; } .mega__group h4 a:hover { color: var(--accent); }
.mega__group a.sub { display: block; font-size: 13.5px; color: var(--muted); padding: 2px 0; } .mega__group a.sub:hover { color: var(--ink); }
.search { position: relative; flex: 1; max-width: 460px; margin-inline-start: auto; display: flex; align-items: center; }
.search > svg { position: absolute; inset-inline-start: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid transparent; background: rgba(17,18,20,.06); padding-inline: 38px 14px; font-size: 14.5px; }
.search input:focus { outline: none; background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); padding: 6px; z-index: 60; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--bg); }
.suggest img { width: 44px; height: 34px; object-fit: contain; }
.suggest .s-name { font-size: 14px; font-weight: 560; line-height: 1.2; } .suggest .s-meta { font-size: 12px; color: var(--muted); }
.suggest .s-all { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 2px; }
.badge { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.nav__burger, .nav__search-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--nav-h)); overflow: auto; padding: 12px 16px 28px; }
.mobile-menu a { display: block; padding: 11px 4px; font-weight: 560; border-bottom: 1px solid var(--line); }
.mobile-menu a.sub { padding-inline-start: 16px; font-weight: 450; color: var(--muted); font-size: 14px; }

/* ---------- Showroom ---------- */
.sr { position: relative; overflow: hidden; isolation: isolate; min-height: max(620px, calc(100svh - var(--nav-h) - 36px)); display: grid;
  grid-template-columns: 1fr clamp(320px, 27vw, 390px); grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 3.2vw, 40px) 18px; gap: 0 clamp(16px, 2vw, 32px); color: var(--ink); transition: color .7s var(--ease); }
.sr__bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 80% at 40% 30%, #FBFAF7 0%, var(--bg) 55%, #E9E7E0 100%); transition: opacity .8s var(--ease); }
.sr__bg--gaming { background: radial-gradient(90% 70% at 38% 42%, #1E1A33 0%, #0E0F13 60%, #08090B 100%); opacity: 0; }
.sr__bg--gaming::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 30% 60%, rgba(122,92,255,.22), transparent 70%), radial-gradient(35% 28% at 55% 35%, rgba(0,209,255,.14), transparent 70%); }
.sr__floor { position: absolute; inset-inline: 0; bottom: 0; height: 32%; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(17,18,20,.035)); }
.sr__spot { position: absolute; z-index: -1; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; border-radius: 50%; left: 34%; top: 46%; transform: translate(-50%, -50%);
  background: var(--tint, #DCE4FF); filter: blur(80px); opacity: .7; transition: background-color .9s var(--ease), opacity .9s; }
.sr[data-theme="gaming"] { color: #F3F4F7; }
.sr[data-theme="gaming"] .sr__bg--gaming { opacity: 1; }
.sr[data-theme="gaming"] .sr__spot { opacity: .35; }
.sr[data-theme="gaming"] .sr__floor { background: linear-gradient(to bottom, transparent, rgba(0,0,0,.4)); }
.sr__head { grid-column: 1; grid-row: 1; position: relative; z-index: 3; pointer-events: none; }
.sr__head .eyebrow { color: inherit; opacity: .6; }
.sr__title { font-size: clamp(38px, 5.4vw, 84px); font-weight: 720; letter-spacing: -.045em; line-height: .95; margin-top: 10px; max-width: 9.5em; }
.sr__title span { color: var(--accent); }
.sr[data-theme="gaming"] .sr__title span { color: #8E7BFF; }
.sr__stage { grid-column: 1; grid-row: 2; position: relative; isolation: isolate; z-index: 1; min-height: 360px; touch-action: pan-y; cursor: grab; outline: none; }
.sr__stage:active { cursor: grabbing; }
.sr__item { position: absolute; left: 50%; top: 50%; width: min(54%, 620px, 80vh); aspect-ratio: 4 / 3; border: 0; padding: 0; background: none;
  transform: translate(-50%, -50%) translate3d(var(--x, 0), var(--y, 0), 0) scale(var(--s, 1)); opacity: var(--o, 1); filter: blur(var(--b, 0px)) saturate(var(--sat, 1));
  transition: transform .85s var(--ease), opacity .85s var(--ease), filter .85s var(--ease); z-index: var(--z, 1); will-change: transform; }
.sr__item:focus-visible { outline: none; }
.sr__item:focus-visible .sr__img { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 16px; }
.sr__float { position: absolute; inset: 0; animation: float 7s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.sr__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(17,18,20,.18)) drop-shadow(0 6px 10px rgba(17,18,20,.10)); transition: filter .85s var(--ease); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sr__item.is-active .sr__img { filter: drop-shadow(0 40px 46px rgba(17,18,20,.22)) drop-shadow(0 8px 14px rgba(17,18,20,.12)); }
.sr[data-theme="gaming"] .sr__img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(122,92,255,.18)); }
.sr__shadow { position: absolute; left: 18%; right: 18%; bottom: -2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(17,18,20,.24), transparent); opacity: var(--so, .8); transition: opacity .85s; filter: blur(4px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sr__item:not(.is-active) { cursor: pointer; }
.sr__item:not(.is-active):hover { --sat: 1.05; }
.sr__arrows { position: absolute; inset-inline: 0; top: 50%; display: flex; justify-content: space-between; pointer-events: none; z-index: 20; padding-inline: 4px; }
.sr__arrow { pointer-events: auto; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(17,18,20,.1); background: rgba(255,255,255,.75); backdrop-filter: blur(10px); display: grid; place-items: center; box-shadow: var(--shadow-1); transition: transform .2s, background .2s; }
.sr__arrow:hover { transform: scale(1.06); background: #fff; }
.sr[data-theme="gaming"] .sr__arrow { background: rgba(30,31,38,.7); border-color: rgba(255,255,255,.12); color: #fff; }
.sr__panel { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; z-index: 5; background: rgba(255,255,255,.86); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(17,18,20,.07); border-radius: 24px; box-shadow: var(--shadow-2); padding: 24px; color: var(--ink); transition: background .7s, color .7s, border-color .7s; }
.sr[data-theme="gaming"] .sr__panel { background: rgba(22,23,29,.82); color: #F3F4F7; border-color: rgba(255,255,255,.09); }
.sr[data-theme="gaming"] .sr__panel .muted, .sr[data-theme="gaming"] .sr__panel .eyebrow { color: #A3A7B3; }
.sr[data-theme="gaming"] .sr__panel .chip { background: transparent; border-color: rgba(255,255,255,.22); color: #F3F4F7; }
.sr[data-theme="gaming"] .sr__panel .chip[aria-pressed="true"] { background: #F3F4F7; color: #111; }
.sr[data-theme="gaming"] .sr__panel .qty { background: transparent; border-color: rgba(255,255,255,.22); }
.sr[data-theme="gaming"] .sr__panel .btn--primary { background: #F3F4F7; color: #111; }
.sr[data-theme="gaming"] .sr__panel .btn--ghost { border-color: rgba(255,255,255,.25); }
.sr[data-theme="gaming"] .sr__panel .btn--soft { background: rgba(255,255,255,.1); color: #F3F4F7; }
.sr[data-theme="gaming"] .sr__panel .sr__specs div { border-color: rgba(255,255,255,.1); }
.sr__panel-body { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.sr__panel-body.is-swapping { opacity: 0; transform: translateY(6px); }
.sr__name { font-size: 26px; margin-top: 6px; }
.sr__tagline { margin-top: 6px; font-size: 15px; }
.sr__price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 14px; }
.sr__price small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.sr__specs { margin: 16px 0; display: grid; gap: 0; font-size: 14px; }
.sr__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sr__specs dt { color: var(--muted); } .sr__specs dd { margin: 0; font-weight: 600; text-align: end; }
.sr[data-theme="gaming"] .sr__specs dt { color: #A3A7B3; }
.sr__config { margin-bottom: 14px; }
.sr__config .row { gap: 6px; margin-top: 6px; }
.sr__buy { display: flex; gap: 10px; }
.sr__buy .btn { flex: 1; }
.sr__more { display: flex; gap: 8px; margin-top: 10px; }
.sr__more .btn { flex: 1; }
.sr__bottom { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 4; padding-top: 10px; }
.sr__cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sr__cats::-webkit-scrollbar { display: none; }
.sr[data-theme="gaming"] .sr__cats .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #E7E8EC; }
.sr[data-theme="gaming"] .sr__cats .chip[aria-pressed="true"] { background: #F3F4F7; color: #111; }
.sr__rail { margin-top: 14px; display: flex; gap: 10px; position: relative; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.sr__rail::-webkit-scrollbar { display: none; }
.sr__rail::before { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(17,18,20,.08); }
.sr[data-theme="gaming"] .sr__rail::before { background: rgba(255,255,255,.12); }
.sr__stop { flex: 0 0 auto; width: 150px; display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255,255,255,.55); text-align: start; position: relative; transition: background .3s, border-color .3s, transform .3s var(--ease); color: inherit; }
.sr__stop img { width: 52px; height: 40px; object-fit: contain; }
.sr__stop span { font-size: 12.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr__stop:hover { background: #fff; }
.sr__stop[aria-current="true"] { background: #fff; border-color: rgba(17,18,20,.12); box-shadow: var(--shadow-1); }
.sr__stop[aria-current="true"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: -8px; height: 2px; border-radius: 2px; background: var(--ink); }
.sr[data-theme="gaming"] .sr__stop { background: rgba(255,255,255,.05); }
.sr[data-theme="gaming"] .sr__stop[aria-current="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.sr[data-theme="gaming"] .sr__stop[aria-current="true"]::after { background: #8E7BFF; }
.sr__hint { position: absolute; inset-inline-end: 0; bottom: 18px; font-size: 12px; opacity: .55; display: flex; gap: 6px; align-items: center; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; border: 1px solid currentColor; font-size: 11px; opacity: .8; }
.sr__count { font-variant-numeric: tabular-nums; }
.sr-mbar { display: none; }
.fly { position: fixed; z-index: 200; pointer-events: none; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.2)); }

/* ---------- Home sections ---------- */
.section { padding-block: clamp(40px, 6vw, 84px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat-tile h3 { font-size: 16px; max-width: 9em; }
.cat-tile img { position: absolute; inset-inline-end: -14px; bottom: -8px; width: 62%; opacity: .95; transition: transform .5s var(--ease); }
.cat-tile:hover img { transform: translateY(-4px) scale(1.03); }
.cat-tile--gaming { background: #121318; color: #F2F3F6; border-color: #121318; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.coll { position: relative; border-radius: 22px; padding: 22px; min-height: 260px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.coll:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.coll h3 { font-size: 22px; } .coll p { margin-top: 6px; }
.coll__imgs { margin-top: auto; display: flex; align-items: flex-end; height: 120px; }
.coll__imgs img { width: 38%; margin-inline-end: -10%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.12)); }
.coll--gaming { background: linear-gradient(145deg, #17161F, #0C0D10); color: #F2F3F6; border-color: transparent; }
.coll--gaming .muted { color: #A3A7B3; }
.value-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { font-size: 16px; margin-bottom: 6px; }

/* ---------- Product cards / grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pcard__media { display: block; aspect-ratio: 4 / 3; background: radial-gradient(90% 80% at 50% 40%, #FBFAF7, #EFEDE7); padding: 16px; }
.pcard--gaming .pcard__media { background: radial-gradient(90% 80% at 50% 40%, #23202F, #111216); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.12)); transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.035); }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__brand { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pcard__name { font-size: 15.5px; font-weight: 640; line-height: 1.25; letter-spacing: -.01em; }
.pcard__spec { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pcard__price { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.pcard__price--quote { font-size: 14px; font-weight: 600; color: var(--graphite); }
.pcard__add { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.pcard__add:hover { transform: scale(1.08); }
.pcard__add svg { width: 18px; height: 18px; }
.pcard__cmp { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 12px; display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.85); padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.pcard:hover .pcard__cmp, .pcard__cmp:has(input:checked), .pcard__cmp:focus-within { opacity: 1; }
.pcard__cmp input { accent-color: var(--ink); margin: 0; }
.pcard__flags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 4px; }
.avail { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.avail--ok::before { background: var(--ok); } .avail--warn::before { background: var(--warn); } .avail--bad::before { background: var(--bad); } .avail--info::before { background: var(--info); }

/* ---------- Shop page ---------- */
.shop-head { padding-block: 30px 18px; }
.shop-head h1 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; }
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; padding-inline-end: 6px; }
.fgroup { border-top: 1px solid var(--line); padding: 14px 0; }
.fgroup summary { list-style: none; cursor: pointer; font-weight: 650; font-size: 14px; display: flex; justify-content: space-between; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; color: var(--muted); } .fgroup[open] summary::after { content: "–"; }
.fopts { margin-top: 10px; display: grid; gap: 7px; }
.fopts .check { font-size: 13.5px; } .fopts .count { color: var(--faint); margin-inline-start: auto; font-size: 12px; }
.fprice { display: flex; gap: 8px; margin-top: 10px; } .fprice .input { height: 38px; font-size: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .input { height: 40px; width: auto; }
.toolbar form .input { min-width: 0; width: 100%; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters .chip { height: 30px; font-size: 13px; padding: 0 10px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager .chip { min-width: 40px; justify-content: center; }
.filters-btn { display: none; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 24px 40px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.gallery { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.gallery__main { aspect-ratio: 4 / 3; border-radius: 26px; background: radial-gradient(100% 90% at 50% 40%, #FDFCFA, #ECEAE3); display: grid; place-items: center; padding: 6%; position: relative; overflow: hidden; }
.gallery--gaming .gallery__main { background: radial-gradient(100% 90% at 50% 40%, #262236, #0E0F13); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(0,0,0,.18)); }
.gallery__note { position: absolute; bottom: 12px; inset-inline-start: 14px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumbs button { width: 72px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 4px; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.buybox h1 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; margin-top: 8px; }
.ids { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.ids b { color: var(--graphite); font-weight: 600; }
.price-xl { font-size: 36px; font-weight: 720; letter-spacing: -.035em; margin-top: 18px; }
.opt-group { margin-top: 18px; } .opt-group .row { gap: 8px; margin-top: 8px; }
.buy-row { display: flex; gap: 10px; margin-top: 20px; } .buy-row .btn { flex: 1; }
.buy-alt { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; } .buy-alt .btn { flex: 1; }
.facts { margin-top: 22px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts svg { width: 20px; height: 20px; color: var(--muted); margin-top: 1px; }
.pdp-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 30px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; padding-inline-end: 16px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.benefit { padding: 16px; border-radius: var(--radius-sm); background: var(--bg); font-weight: 560; display: flex; gap: 10px; }
.benefit svg { color: var(--accent); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Compare ---------- */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 200px; }
.cmp-table thead td { vertical-align: bottom; }
.cmp-table th { position: sticky; inset-inline-start: 0; background: var(--bg); color: var(--muted); font-weight: 550; min-width: 150px; z-index: 1; }
.cmp-table tr.diff td { background: #FFFBEA; }
.cmp-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare-tray { position: fixed; z-index: 40; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-2); font-size: 14px; }
.compare-tray[hidden] { display: none; }
.compare-tray img { width: 34px; height: 26px; object-fit: contain; background: #fff; border-radius: 6px; }
.compare-tray .btn { --h: 36px; background: #fff; color: var(--ink); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-block: 24px 60px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 96px; height: 72px; object-fit: contain; background: var(--bg); border-radius: 12px; padding: 6px; }
.line__name { font-weight: 620; }
.line__right { text-align: end; display: grid; gap: 8px; justify-items: end; }
.summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.sum-row--total { font-size: 19px; font-weight: 720; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.pay-opt { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-opt .check { font-weight: 620; }
.steps { display: grid; gap: 14px; }
.test-banner { background: repeating-linear-gradient(-45deg, #FFF4DE, #FFF4DE 12px, #FFEBC2 12px, #FFEBC2 24px); color: #6B4600; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Collection page ---------- */
.coll-hero { border-radius: 28px; padding: clamp(26px, 5vw, 60px); margin-top: 20px; background: radial-gradient(100% 120% at 20% 20%, #FFFFFF, #ECEAE3); position: relative; overflow: hidden; }
.coll-hero h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; max-width: 12em; }
.coll-hero--gaming { background: radial-gradient(90% 120% at 30% 30%, #26203F, #0B0C0F); color: #F2F3F6; }
.coll-hero--gaming .muted { color: #A3A7B3; }

/* ---------- Footer & toasts ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 60px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h4 { color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; } .footer a:hover { color: var(--ink); }
.toasts { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-2); font-size: 14px; display: flex; gap: 12px; align-items: center; animation: toastIn .4s var(--ease); max-width: 380px; }
.toast a { color: #9DB4FF; font-weight: 600; white-space: nowrap; }
.toast--bad { background: var(--bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #ECEAE4, #F6F5F1, #ECEAE4); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.page-title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; padding-block: 28px 18px; }
.demo-ribbon { background: #FFF1CC; color: #6B4C00; font-size: 13px; text-align: center; padding: 7px 12px; }
.demo-ribbon b { font-weight: 650; }

/* ---------- Drawer (mobile filters) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: grid; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--bg); padding: 20px; overflow: auto; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(-100%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: repeat(2, 1fr); }
  .nav__links > a[href="/quote"] { display: none; }
}
@media (max-width: 980px) {
  .nav__links { display: none; } .nav__burger { display: inline-grid; }
  .shop { grid-template-columns: minmax(0, 1fr); } .filters { display: none; } .filters-btn { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); } .gallery { position: static; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); } .summary { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Showroom → swipe mode */
@media (max-width: 860px) {
  .sr { display: block; min-height: 0; padding: 18px 0 8px; }
  .sr__head { padding-inline: 18px; }
  .sr__title { font-size: 40px; }
  .sr__stage { margin-top: 10px; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; padding-inline: 19vw; scrollbar-width: none; cursor: auto; touch-action: auto; }
  .sr__stage::-webkit-scrollbar { display: none; }
  .sr__item { position: relative; left: auto; top: auto; flex: 0 0 62vw; width: 62vw; margin-inline: -2vw; transform: scale(var(--ms, .82)); opacity: var(--mo, .55); filter: none; scroll-snap-align: center; transition: transform .35s var(--ease), opacity .35s; }
  .sr__float { animation: none; }
  .sr__arrows { display: none; }
  .sr__panel { margin: 4px 14px 0; padding: 18px; border-radius: 20px; }
  .sr__panel .sr__specs { display: none; }
  .sr__name { font-size: 22px; } .sr__price { font-size: 24px; margin-top: 8px; }
  .sr__bottom { padding: 12px 14px 0; }
  .sr__rail, .sr__hint { display: none; }
  .sr__dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .sr__dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; transition: width .3s, opacity .3s; }
  .sr__dots i.on { width: 18px; opacity: .9; }
  .sr-mbar { position: fixed; z-index: 45; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: rgba(17,18,20,.94); color: #fff; border-radius: 18px; box-shadow: var(--shadow-2); transform: translateY(140%); transition: transform .35s var(--ease); }
  .sr-mbar.show { transform: none; }
  .sr-mbar img { width: 44px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; }
  .sr-mbar .n { font-size: 13px; font-weight: 600; line-height: 1.2; } .sr-mbar .p { font-size: 13px; opacity: .8; }
  .sr-mbar .btn { --h: 42px; background: #fff; color: var(--ink); margin-inline-start: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .coll-grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .sr__dots { display: none; } }
@media (max-width: 640px) {
  .search { display: none; position: absolute; inset-inline: 10px; top: calc(var(--nav-h) + 6px); max-width: none; }
  .search.open { display: flex; }
  .search.open input { background: var(--surface); box-shadow: var(--shadow-2); height: 46px; }
  .nav__search-toggle { display: inline-grid; margin-inline-start: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .toolbar form[data-q] { flex-basis: 100% !important; order: -1; min-width: 0 !important; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard__body { padding: 10px 12px 12px; } .pcard__name { font-size: 14px; } .pcard__spec { display: none; }
  .value-row { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; } .line img { width: 72px; height: 56px; } .line__right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .toasts { inset-inline: 12px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sr__item { transition: opacity .25s linear !important; }
  .sr__float { animation: none !important; }
  .sr__panel-body { transition: opacity .2s linear !important; transform: none !important; }
}
/* RTL-ready flips for directional icons */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
