/* =====================================================================
   آی‌وین فون — تم تیره‌ی گرافیتی با رنگ نارنجی مذاب لوگو
   ===================================================================== */
@font-face { font-family: "Estedad"; src: url("../vendor/fonts/Estedad-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../vendor/fonts/Vazirmatn-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../vendor/fonts/Outfit-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF; }

:root {
    --bg: #0a0a0c;
    --bg2: #101013;
    --surface: #16161b;
    --surface2: #1d1d23;
    --line: rgb(var(--fg-rgb) / .08);
    --line2: rgb(var(--fg-rgb) / .14);
    --ink: #f5f5f7;
    --ink2: #d4d4d8;
    --mute: #9a9aa3;
    --fire: #ff5a1f;
    --fire2: #ff8a3d;
    --ember: #b33600;
    --fire-grad: linear-gradient(135deg, #ffa25c 0%, #ff5a1f 45%, #c23a00 100%);
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --info: #60a5fa;
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 28px;
    --wrap: 1280px;
    --head: 72px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: "Outfit", "Vazirmatn", system-ui, sans-serif;
    --display: "Outfit", "Estedad", "Vazirmatn", sans-serif;
    --fg-rgb: 255 255 255;
    --bg-rgb: 10 10 12;
    --surface-rgb: 22 22 27;
    --media: #0e0e11;
    --sh: rgba(0, 0, 0, .8);
    --new-ink: #6ee7b7;
    --used-ink: #ffb07a;
    --ok-ink: #a7f3d0;
    --bad-ink: #fecaca;
    --info-ink: #bfdbfe;
    --usedcard-bg: #1a120d;
    --usedcard-ink: #ffd2b0;
    --hero-glow: rgba(255, 90, 31, .32);
    color-scheme: dark;
}

/* ------------------------------------------------------------------ تم روشن (انتخاب کاربر یا تنظیم سیستم) */
:root[data-theme="light"] {
    --bg: #f6f5f2;
    --bg2: #eeece7;
    --surface: #ffffff;
    --surface2: #f0eee9;
    --line: rgba(24, 24, 32, .09);
    --line2: rgba(24, 24, 32, .16);
    --ink: #17171c;
    --ink2: #3f3f46;
    --mute: #6b6b74;
    --fire2: #d9480f;
    --ok: #059669;
    --warn: #b45309;
    --bad: #dc2626;
    --info: #2563eb;
    --fg-rgb: 24 24 32;
    --bg-rgb: 246 245 242;
    --surface-rgb: 255 255 255;
    --media: #ecebe7;
    --sh: rgba(40, 30, 20, .18);
    --new-ink: #047857;
    --used-ink: #c2410c;
    --ok-ink: #065f46;
    --bad-ink: #991b1b;
    --info-ink: #1e40af;
    --usedcard-bg: #fff7f0;
    --usedcard-ink: #9a3412;
    --hero-glow: rgba(255, 106, 31, .22);
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
    --bg: #f6f5f2;
    --bg2: #eeece7;
    --surface: #ffffff;
    --surface2: #f0eee9;
    --line: rgba(24, 24, 32, .09);
    --line2: rgba(24, 24, 32, .16);
    --ink: #17171c;
    --ink2: #3f3f46;
    --mute: #6b6b74;
    --fire2: #d9480f;
    --ok: #059669;
    --warn: #b45309;
    --bad: #dc2626;
    --info: #2563eb;
    --fg-rgb: 24 24 32;
    --bg-rgb: 246 245 242;
    --surface-rgb: 255 255 255;
    --media: #ecebe7;
    --sh: rgba(40, 30, 20, .18);
    --new-ink: #047857;
    --used-ink: #c2410c;
    --ok-ink: #065f46;
    --bad-ink: #991b1b;
    --info-ink: #1e40af;
    --usedcard-bg: #fff7f0;
    --usedcard-ink: #9a3412;
    --hero-glow: rgba(255, 106, 31, .22);
    color-scheme: light;
}
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--fire); color: #fff; }
:focus-visible { outline: 2px solid var(--fire2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; top: -60px; right: 16px; z-index: 100; background: var(--fire); color: #fff; padding: 8px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--mute); font-size: .92rem; }
.mt { margin-top: 32px; }
.fire-text { background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ دکمه‌ها */
.btn {
    --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px;
    border-radius: 99px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; white-space: nowrap;
    transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s var(--ease), color .3s; position: relative; isolation: isolate;
}
.btn i { font-size: 1.15em; transition: transform .4s var(--ease); }
.btn:hover i.ph-arrow-left { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: .85rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--wide { width: 100%; }
.btn--fire { background: var(--fire-grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--fire::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s var(--ease); z-index: -1; }
.btn--fire:hover { box-shadow: 0 16px 40px -10px rgba(255, 90, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--fire:hover::after { background-position: -20% 0; }
.btn--fire:disabled { filter: grayscale(.8) brightness(.7); box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: rgb(var(--fg-rgb) / .04); border-color: var(--line2); color: var(--ink); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 138, 61, .6); background: rgba(255, 90, 31, .08); }
.btn--ghost[aria-pressed="true"] { border-color: var(--fire); color: var(--fire2); }
.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid transparent;
    background: transparent; font-size: 1.3rem; position: relative; transition: background .3s, border-color .3s, color .3s;
}
.icon-btn:hover { background: rgb(var(--fg-rgb) / .07); }
.icon-btn--lg { width: 56px; height: 56px; border-color: var(--line2); }
.icon-btn[aria-pressed="true"] { color: var(--fire2); border-color: var(--fire); background: rgba(255, 90, 31, .1); }
.link { background: none; border: 0; color: var(--fire2); padding: 0; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--fire2); font-weight: 700; font-size: .95rem; }
.link-arrow i { transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(-5px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--fire2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 0 rgba(255, 90, 31, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.tag--new { background: rgba(52, 211, 153, .16); color: var(--new-ink); border: 1px solid rgba(52, 211, 153, .35); }
.tag--used { background: rgba(255, 138, 61, .16); color: var(--used-ink); border: 1px solid rgba(255, 138, 61, .4); }
.tag--off { background: var(--fire-grad); color: #fff; }

/* ------------------------------------------------------------------ هدر */
.top {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); transition: background .4s, border-color .4s, transform .5s var(--ease), height .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgb(var(--bg-rgb) / .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 99px; color: var(--ink2); font-weight: 600; font-size: .93rem; transition: color .3s, background .3s; }
.nav a:hover, .nav a.is-on { color: var(--ink); background: rgb(var(--fg-rgb) / .06); }
.nav a.is-on::after { content: ""; position: absolute; bottom: 2px; right: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--fire); transform: translateX(50%); }
.top__tools { display: flex; align-items: center; gap: 4px; }
.top__user { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: .88rem; font-weight: 600; }
.top__user i { font-size: 1.25rem; color: var(--fire2); }
.cart-btn b {
    position: absolute; top: 2px; left: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--fire-grad); color: #fff;
    font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.cart-btn.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.menu-btn { display: none; }

/* ------------------------------------------------------------------ بنر */
.hero { position: relative; min-height: 100svh; padding: calc(var(--head) + 40px) 0 80px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__glow {
    position: absolute; z-index: -1; width: 90vmax; height: 90vmax; left: -20vmax; top: 10%; border-radius: 50%;
    background: radial-gradient(closest-side, var(--hero-glow), rgba(194, 58, 0, .12) 45%, transparent 70%); filter: blur(20px);
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.1); } }
.hero__grid {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.08; font-weight: 900; margin-bottom: 22px; letter-spacing: -.02em; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__title .w:last-child > span { background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink2); max-width: 34em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.hero__facts li { display: grid; }
.hero__facts strong { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.hero__facts span { color: var(--mute); font-size: .85rem; }
.hero__stage { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 138, 61, .25); inset: 6%; animation: spin 40s linear infinite; }
.orbit--2 { inset: 18%; border-style: solid; border-color: var(--line); animation-duration: 60s; animation-direction: reverse; }
.orbit::before { content: ""; position: absolute; top: -5px; right: 30%; width: 10px; height: 10px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 20px 4px rgba(255, 90, 31, .7); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__phones { position: relative; width: 78%; aspect-ratio: 3 / 4; }
.hero__phone { position: absolute; inset: 0; opacity: 0; transform: scale(.9) rotate(-4deg); transition: opacity .9s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.hero__phone.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero__phone img {
    width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg);
    box-shadow: 0 40px 80px -30px var(--sh), 0 0 0 1px var(--line2), 0 30px 120px -40px rgba(255, 90, 31, .6);
}
.hero__card {
    position: absolute; bottom: 4%; left: -4%; width: min(300px, 70%); padding: 16px 18px; border-radius: var(--r);
    background: rgb(var(--surface-rgb) / .7); border: 1px solid var(--line2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -20px var(--sh);
}
.hero__info { display: none; }
.hero__info.is-on { display: grid; animation: fadeUp .7s var(--ease); }
.hero__info-brand { color: var(--fire2); font-size: .8rem; font-weight: 700; }
.hero__info strong { font-size: 1.05rem; }
.hero__info-price { color: var(--ink2); font-size: .9rem; }
.hero__dots { display: flex; gap: 6px; margin-top: 12px; }
.hero__dots button { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 99px; background: var(--line2); overflow: hidden; }
.hero__dots button span { display: block; height: 100%; width: 0; background: var(--fire-grad); }
.hero__dots button.is-on span { animation: fill 5s linear forwards; }
.hero__dots button.is-done span { width: 100%; }
@keyframes fill { to { width: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; bottom: 24px; right: 50%; transform: translateX(50%); width: 26px; height: 42px; border-radius: 99px; border: 1.5px solid var(--line2); }
.hero__scroll span { position: absolute; top: 8px; right: 50%; width: 4px; height: 8px; margin-right: -2px; border-radius: 4px; background: var(--fire); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ نوار متحرک */
.ticker { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; white-space: nowrap; color: var(--ink2); }
.ticker i { color: var(--fire); font-size: 1.2rem; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ------------------------------------------------------------------ بخش‌ها */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec--tight { padding: 32px 0 96px; }
.sec--dark2 { background: var(--bg2); border-block: 1px solid var(--line); }
.sec__head { max-width: 760px; margin-bottom: 48px; }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec__title { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; }
.sec__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sec__title .w > span, .page-head__title .w > span { display: inline-block; }
.page-head__title .w { display: inline-block; overflow: hidden; vertical-align: top; }
.sec__note { color: var(--mute); max-width: 26em; }

/* نو / کارکرده */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__card {
    position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; padding: 36px; display: flex; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s;
}
.split__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 100%, rgba(255, 90, 31, .28), transparent 60%); opacity: .6; transition: opacity .5s; }
.split__card--new::before { background: radial-gradient(circle at 80% 100%, rgba(52, 211, 153, .18), transparent 60%); }
.split__card:hover { border-color: var(--line2); }
.split__card:hover::before { opacity: 1; }
.split__txt { position: relative; z-index: 2; display: grid; gap: 10px; max-width: 52%; }
.split__txt h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.split__txt p { color: var(--ink2); }
.split__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fire2); margin-top: 8px; }
.split__img { position: absolute; z-index: 1; left: -4%; bottom: -14%; width: 44%; height: 100%; object-fit: cover; border-radius: var(--r-lg); transform: rotate(-8deg); box-shadow: 0 30px 60px -20px var(--sh); transition: transform .9s var(--ease); }
.split__card:hover .split__img { transform: rotate(-4deg) scale(1.04); }
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.brands__chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line2); background: var(--surface); font-weight: 700; transition: border-color .3s, transform .4s var(--ease); }
.brands__chip b { font-size: .75rem; color: var(--mute); }
.brands__chip:hover { border-color: var(--fire); transform: translateY(-2px); }

/* ------------------------------------------------------------------ کارت محصول */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.pc {
    position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pc:hover { border-color: rgba(255, 138, 61, .35); transform: translateY(-4px); box-shadow: 0 24px 50px -24px var(--sh), 0 0 0 1px rgba(255, 90, 31, .15); }
.pc__media { position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--media); }
.pc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.pc__img--alt { opacity: 0; }
.pc:hover .pc__img { transform: scale(1.06); }
.pc:hover .pc__img--alt { opacity: 1; }
.pc__noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--line2); }
.pc__tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.pc__brand { color: var(--fire2); font-size: .78rem; font-weight: 700; }
.pc__title { font-size: 1.08rem; font-weight: 800; line-height: 1.5; }
.pc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--mute); font-size: .8rem; }
.pc__meta i { color: var(--ink2); }
.pc__foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.pc__price { display: grid; line-height: 1.4; }
.pc__price del { color: var(--mute); font-size: .8rem; }
.pc__price strong { font-family: var(--display); font-size: 1.12rem; font-weight: 800; }
.pc__price small, .pd__price small { font-size: .7em; font-weight: 600; color: var(--mute); }
.pc__from { font-size: .72rem; color: var(--mute); }
.pc__out { color: var(--mute); font-weight: 700; }
.pc.is-out .pc__img { filter: grayscale(.8) brightness(.7); }
.pc__cmp {
    position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent;
    display: grid; place-items: center; font-size: 1.05rem; transition: all .3s;
}
.pc__cmp:hover { border-color: var(--fire); color: var(--fire2); }
.pc__cmp[aria-pressed="true"] { background: var(--fire-grad); border-color: transparent; color: #fff; }

/* ------------------------------------------------------------------ اسکرول افقی تازه‌ها */
.rail { padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.rail__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.rail__viewport { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail.is-pinned .rail__viewport { overflow: visible; }
.rail__track { display: flex; gap: 20px; padding-inline: max(16px, (100vw - var(--wrap)) / 2); width: max-content; }
.rail__item { width: clamp(250px, 24vw, 300px); flex-shrink: 0; }
.rail__more {
    width: 220px; flex-shrink: 0; border-radius: var(--r); border: 1px dashed var(--line2); display: grid; place-content: center; justify-items: center; gap: 10px;
    color: var(--ink2); font-weight: 700; transition: border-color .3s, color .3s;
}
.rail__more i { font-size: 2rem; color: var(--fire2); }
.rail__more:hover { border-color: var(--fire); color: var(--ink); }

/* ------------------------------------------------------------------ معرفی پرچم‌دار */
.spot { position: relative; overflow: hidden; background: radial-gradient(ellipse at 30% 50%, rgba(255, 90, 31, .12), transparent 60%), var(--bg); }
.spot__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head) + 24px) 0 48px; }
.spot__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.spot__ring { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 90, 31, .5), transparent 40%); animation: spin 8s linear infinite; mask: radial-gradient(closest-side, transparent 96%, #000 97%); }
.spot__media img { width: 74%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 50px 100px -40px rgba(255, 90, 31, .55), 0 0 0 1px var(--line2); }
.spot__title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; margin-bottom: 8px; }
.spot__sub { color: var(--ink2); margin-bottom: 28px; }
.spot__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 32px; }
.spot__specs div { padding: 14px 16px; border-radius: var(--r-sm); background: rgb(var(--fg-rgb) / .03); border: 1px solid var(--line); }
.spot__specs dt { color: var(--mute); font-size: .8rem; display: flex; gap: 6px; align-items: center; }
.spot__specs dt i { color: var(--fire2); }
.spot__specs dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; }
.spot__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ کارکرده‌ها */
.used { display: grid; grid-template-columns: .9fr 2fr; gap: 48px; align-items: start; }
.used__intro { position: sticky; top: calc(var(--head) + 32px); display: grid; gap: 18px; justify-items: start; }
.checks { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); }
.checks i { color: var(--fire); font-size: 1.25rem; margin-top: 3px; }

/* ------------------------------------------------------------------ لوازم جانبی (بنتو) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.bento__item { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.bento__item--big { grid-column: span 2; grid-row: span 2; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 55%); }
.bento__item:hover img { transform: scale(1.06); }
.bento__txt { position: absolute; z-index: 2; inset: auto 18px 16px; display: grid; color: #fff; }
.bento__txt small { color: #ff9a55; font-weight: 700; }
.bento__txt strong { font-size: 1.1rem; }
.bento__item--big .bento__txt strong { font-size: 1.6rem; }
.bento__txt span { color: rgba(255, 255, 255, .8); font-size: .9rem; }

/* ------------------------------------------------------------------ خرید از روی عکس (پین) */
.looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.looks--one { grid-template-columns: 1fr; }
.pins { position: relative; margin: 0; border-radius: var(--r-lg); overflow: visible; }
.pins__img { width: 100%; height: auto; border-radius: var(--r-lg); }
.pins__cap { margin-top: 12px; color: var(--mute); font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 3; }
.pin__dot {
    position: relative; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
}
.pin__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: pinPulse 2.4s infinite calc(var(--i) * .3s); }
.pin__dot span { width: 14px; height: 14px; border-radius: 50%; background: var(--fire-grad); box-shadow: 0 0 0 3px #fff; transition: transform .3s var(--ease); }
.pin.is-open .pin__dot span, .pin__dot:hover span { transform: scale(1.3); }
@keyframes pinPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.pin__card {
    position: absolute; top: -10px; left: 26px; width: 260px; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r);
    background: rgb(var(--surface-rgb) / .9); border: 1px solid var(--line2); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -10px var(--sh);
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.pin--left .pin__card { left: auto; right: 26px; }
.pin--up .pin__card { top: auto; bottom: -10px; }
.pin.is-open .pin__card, .pin:focus-within .pin__card { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .pin:hover .pin__card { opacity: 1; visibility: visible; transform: none; } }
.pin__card img { width: 56px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.pin__txt { display: grid; line-height: 1.5; min-width: 0; flex: 1; }
.pin__label { color: var(--fire2); font-size: .72rem; font-weight: 700; }
.pin__txt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin__price { font-size: .8rem; color: var(--ink2); }
.pin__price del { color: var(--mute); }

/* ------------------------------------------------------------------ روند تعمیر (خانه) */
.flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; counter-reset: f; }
.flow li {
    position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 8px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink2);
}
.flow li i { font-size: 1.6rem; color: var(--fire2); }
.flow__n { position: absolute; top: 8px; right: 10px; font-size: .7rem; color: var(--mute); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: -8px; width: 8px; height: 1px; background: var(--line2); }
.flow--vertical { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.flow--vertical li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; padding: 14px 18px; align-items: center; }
.flow--vertical .flow__n { position: static; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 90, 31, .15); color: var(--fire2); font-weight: 800; }
.flow--vertical li::after { display: none; }
.repair-teaser__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.repair-teaser__card { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; justify-items: start; }
.repair-teaser__card h3 { font-size: 1.4rem; display: flex; gap: 10px; align-items: center; }
.repair-teaser__card h3 i { color: var(--fire2); }
.repair-teaser__card p { color: var(--ink2); }
.track { justify-items: stretch; }
.track--inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 24px; }

/* ------------------------------------------------------------------ سرصفحه */
.page-head { padding: calc(var(--head) + 48px) 0 28px; background: radial-gradient(ellipse 60% 100% at 70% 0%, rgba(255, 90, 31, .12), transparent 70%); }
.page-head__title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; }
.page-head__note { color: var(--mute); margin-top: 6px; }
.page-head__row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--mute); font-size: .85rem; margin-bottom: 14px; }
.crumbs a:hover { color: var(--fire2); }
.crumbs i { font-size: .7rem; }
.segs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 24px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg { padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: .9rem; color: var(--ink2); transition: all .3s var(--ease); }
.seg.is-on { background: var(--fire-grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(255, 90, 31, .8); }
.seg:not(.is-on):hover { color: var(--ink); background: rgb(var(--fg-rgb) / .05); }

/* ------------------------------------------------------------------ فروشگاه */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters {
    position: sticky; top: calc(var(--head) + 20px); max-height: calc(100vh - var(--head) - 40px); overflow-y: auto; scrollbar-width: thin;
    padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px;
}
.filters__head { display: flex; align-items: center; gap: 8px; }
.filters__head h2 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; margin-inline-end: auto; }
.filters__close, .filters__open { display: none; }
.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.fgroup legend { font-weight: 800; font-size: .88rem; margin-bottom: 8px; padding: 0; }
.chk { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; font-size: .92rem; color: var(--ink2); }
.chk input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; flex-shrink: 0; transition: all .25s; margin: 0; }
.chk input:checked { background: var(--fire-grad); border-color: transparent; }
.chk input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.chk span { flex: 1; }
.chk b { font-size: .72rem; color: var(--mute); font-weight: 600; }
.chk--switch input { width: 38px; height: 22px; border-radius: 99px; background: var(--surface2); position: relative; }
.chk--switch input::after { content: "" !important; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0 !important; transform: none !important; transition: right .3s var(--ease); }
.chk--switch input:checked::after { right: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .25s; }
.pill input:checked + span { border-color: var(--fire); background: rgba(255, 90, 31, .12); color: var(--fire2); }
.pill input:focus-visible + span { outline: 2px solid var(--fire2); outline-offset: 2px; }
.range { width: 100%; accent-color: var(--fire); }
.range__out { font-size: .85rem; color: var(--mute); }
.range__out b { color: var(--ink); }
.shop__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.shop__count { margin-inline-end: auto; color: var(--mute); }
.shop__count b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.sort { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); background: var(--surface); }
.sort select { background: transparent; border: 0; outline: 0; font-size: .9rem; }
.sort select option { background: var(--surface); }
.grid__cell { display: contents; }
.grid__cell > .pc { animation: none; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 16px; border-radius: var(--r-lg); border: 1px dashed var(--line2); color: var(--ink2); }
.empty > i { font-size: 2.6rem; color: var(--fire2); }
.empty--sm { padding: 32px 16px; }

/* ------------------------------------------------------------------ فرم‌ها */
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink2); }
.field small { color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg2); color: var(--ink);
    font-weight: 500; transition: border-color .25s, box-shadow .25s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select option { background: var(--bg2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--fire); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.field--search { position: relative; }
.field--search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.field--search input { padding-right: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); font-size: .93rem; margin-bottom: 16px; border: 1px solid; }
.alert i { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.alert--ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); color: var(--ok-ink); }
.alert--bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: var(--bad-ink); }
.alert--info { background: rgba(96, 165, 250, .08); border-color: rgba(96, 165, 250, .3); color: var(--info-ink); }

/* ------------------------------------------------------------------ صفحه‌ی محصول */
.pd { padding: calc(var(--head) + 32px) 0 48px; }
.pd__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.pd__gallery { position: sticky; top: calc(var(--head) + 24px); display: grid; gap: 14px; }
.pd__stage { position: relative; aspect-ratio: 1 / 1.1; border-radius: var(--r-lg); overflow: hidden; background: var(--media); border: 1px solid var(--line); }
.pd__glow { position: absolute; inset: 20%; border-radius: 50%; background: rgba(255, 90, 31, .25); filter: blur(60px); }
.pd__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .9s var(--ease); cursor: zoom-in; }
.pd__img.is-on { opacity: 1; transform: none; }
.pd__stage.is-zoom .pd__img.is-on { transform: scale(1.8); cursor: zoom-out; }
.pd__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.pd__thumbs button { width: 76px; height: 84px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); flex-shrink: 0; opacity: .55; transition: all .3s; }
.pd__thumbs button.is-on { border-color: var(--fire); opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__brand { color: var(--fire2); font-weight: 700; }
.pd__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 4px 0 8px; }
.pd__sub { color: var(--ink2); margin-bottom: 24px; }
.pd__hl { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd__hl li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.pd__hl i { font-size: 1.3rem; color: var(--fire2); flex-shrink: 0; }
.used-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 24px; border-radius: var(--r); overflow: hidden; background: rgba(255, 138, 61, .25); border: 1px solid rgba(255, 138, 61, .3); }
.used-card div { background: var(--usedcard-bg); padding: 14px; display: grid; }
.used-card span { color: var(--mute); font-size: .78rem; }
.used-card strong { font-size: .92rem; color: var(--usedcard-ink); }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend { font-weight: 800; margin-bottom: 10px; padding: 0; font-size: .95rem; }
.opt legend b { color: var(--mute); font-weight: 500; margin-inline-start: 6px; }
.opt__row { display: flex; flex-wrap: wrap; gap: 10px; }
.opt__chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt__chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line2); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .25s var(--ease); background: var(--surface); }
.opt__chip span i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.opt__chip input:checked + span { border-color: var(--fire); background: rgba(255, 90, 31, .1); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.opt__chip input:focus-visible + span { outline: 2px solid var(--fire2); outline-offset: 2px; }
.opt__chip.is-na span { opacity: .4; text-decoration: line-through; }
.pd__pricebox { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.pd__price { display: grid; line-height: 1.3; }
.pd__price del { color: var(--mute); }
.pd__price strong { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; }
.pd__stock span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.pd__stock .is-ok { color: var(--ok); }
.pd__stock .is-low { color: var(--fire2); }
.pd__stock .is-out { color: var(--mute); }
.pd__actions { display: flex; gap: 10px; align-items: center; }
.pd__add { flex: 1; }
.qty { display: flex; align-items: center; height: 56px; border-radius: 99px; border: 1px solid var(--line2); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1rem; }
.qty input { width: 34px; text-align: center; border: 0; background: none; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.pd__out { color: var(--ink2); padding: 16px; border-radius: var(--r-sm); background: var(--surface); }
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink2); font-size: .9rem; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure i { color: var(--fire2); font-size: 1.2rem; }
.pd__more { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd__more h2 { font-size: 1.5rem; margin-bottom: 18px; }
.prose { color: var(--ink2); }
.prose p { margin-bottom: 1em; }
.specs { margin: 0 0 20px; display: grid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 12px 16px; font-size: .92rem; }
.specs div:nth-child(odd) { background: rgb(var(--fg-rgb) / .025); }
.specs dt { color: var(--mute); }
.specs dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ مقایسه */
.cmp-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.cmp-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cmp { border-radius: var(--r-lg); border: 1px solid var(--line); overflow-x: auto; background: var(--surface); }
.cmp__row { display: grid; grid-template-columns: 170px repeat(var(--cols), minmax(190px, 1fr)); border-top: 1px solid var(--line); min-width: fit-content; transition: background .3s; }
.cmp__row--head { border-top: 0; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cmp__row[data-same="0"]:not(.cmp__row--head) .cmp__cell { color: var(--ink); font-weight: 700; }
.cmp__row[data-same="1"] .cmp__cell { color: var(--mute); }
.cmp.is-diff .cmp__row[data-same="1"] { display: none; }
.cmp__row:not(.cmp__row--head):hover { background: rgb(var(--fg-rgb) / .025); }
.cmp__label { padding: 14px 18px; color: var(--mute); font-size: .85rem; font-weight: 700; position: sticky; right: 0; background: inherit; }
.cmp__cell { padding: 14px 18px; font-size: .92rem; border-right: 1px solid var(--line); }
.cmp__cell.is-best { color: var(--fire2) !important; }
.cmp__cell.is-best::after { content: " ★"; }
.cmp__prod { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 22px 16px; }
.cmp__img { width: 140px; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--media); }
.cmp__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp__title { font-weight: 800; }
.cmp__price { color: var(--fire2); font-weight: 700; font-size: .9rem; }
.cmp__actions { display: flex; gap: 6px; align-items: center; }
.cmpbar {
    position: fixed; z-index: 45; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
    border-radius: 99px; background: rgb(var(--surface-rgb) / .88); border: 1px solid var(--line2); backdrop-filter: blur(18px); box-shadow: 0 20px 50px -10px var(--sh);
    animation: fadeUp .5s var(--ease);
}
.cmpbar__items { display: flex; gap: 6px; }
.cmpbar__items span { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface2); background: var(--surface2); display: grid; place-items: center; font-size: .7rem; }
.cmpbar__items img { width: 100%; height: 100%; object-fit: cover; }
.cmpbar__items .is-empty { border-style: dashed; border-color: var(--line2); color: var(--mute); }

/* ------------------------------------------------------------------ سبد کشویی */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.cart {
    position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(440px, 100%); display: flex; flex-direction: column;
    background: var(--bg2); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .55s var(--ease); visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.2rem; }
.cart__head small { color: var(--mute); font-weight: 500; font-size: .85rem; }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink2); }
.cart__empty-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 2.2rem; color: var(--fire2); }
.cart__foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; }
.cart__sum strong { font-family: var(--display); font-size: 1.35rem; }
.cart__hint { font-size: .8rem; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line.is-off { opacity: .5; }
.line__img { width: 72px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__txt { display: grid; gap: 2px; min-width: 0; font-size: .92rem; }
.line__txt a { font-weight: 700; }
.line__txt span { color: var(--mute); font-size: .8rem; }
.line__qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.line__qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: none; font-size: .8rem; display: grid; place-items: center; }
.line__qty b { min-width: 22px; text-align: center; }
.line__rm { background: none; border: 0; color: var(--mute); font-size: .78rem; margin-inline-start: 10px; }
.line__rm:hover { color: var(--bad); }
.line > strong { font-size: .92rem; white-space: nowrap; }

/* جستجو */
.search { position: fixed; inset: 0; z-index: 70; background: rgb(var(--bg-rgb) / .92); backdrop-filter: blur(16px); display: grid; align-content: start; justify-items: center; padding: 14vh 16px 0; animation: fade .3s; }
.search__box { width: min(720px, 100%); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; height: 68px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line2); font-size: 1.4rem; }
.search__box input { flex: 1; background: none; border: 0; outline: 0; font-size: 1.15rem; }
.search__box > i { color: var(--fire2); }
.search__hints { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.search__hints a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line2); font-size: .88rem; color: var(--ink2); }
.search__hints a:hover { border-color: var(--fire); color: var(--ink); }
.toast {
    position: fixed; z-index: 80; bottom: 24px; right: 24px; max-width: 360px; padding: 14px 18px; border-radius: var(--r); background: var(--surface2); border: 1px solid var(--line2);
    box-shadow: 0 20px 40px -10px var(--sh); display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem;
    transform: translateY(140%); transition: transform .5s var(--ease); pointer-events: none;
}
.toast.is-on { transform: none; }
.toast i { color: var(--ok); font-size: 1.3rem; }

/* ------------------------------------------------------------------ ثبت سفارش */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--mute); }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-weight: 800; font-size: .75rem; }
.steps .is-done { color: var(--ink2); }
.steps .is-done span { background: rgba(52, 211, 153, .2); color: var(--ok); }
.steps .is-on { color: var(--ink); border-color: var(--fire); }
.steps .is-on span { background: var(--fire-grad); color: #fff; }
.co { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.co__cart, .co__form, .co__gate, .panel { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.co__form { display: grid; gap: 16px; }
.co__cart h2, .co__form h2, .panel h2 { font-size: 1.25rem; }
.co__sum { margin: 16px 0 0; display: grid; gap: 8px; }
.co__sum div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink2); }
.co__sum dd { margin: 0; font-weight: 700; color: var(--ink); }
.co__sum .is-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.co__sum .is-total dd { font-family: var(--display); font-size: 1.3rem; color: var(--fire2); }
.co__note { color: var(--mute); font-size: .82rem; display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.co__empty { color: var(--mute); }
.co__gate { display: grid; gap: 14px; justify-items: center; text-align: center; }
.co__gate p { color: var(--ink2); max-width: 30em; }
.co__gate-ico { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: rgba(255, 90, 31, .12); color: var(--fire2); }
.paynote { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-sm); background: rgba(255, 90, 31, .07); border: 1px solid rgba(255, 90, 31, .25); }
.paynote > i { font-size: 1.6rem; color: var(--fire2); }
.paynote p { color: var(--ink2); font-size: .88rem; }

/* کارت بانکی و رسید */
.bankcard {
    --ink2: #d4d4d8; --mute: #9a9aa3; --fire2: #ff8a3d; color: #f5f5f7;
    position: relative; aspect-ratio: 1.586; max-width: 400px; width: 100%; padding: 22px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(circle at 100% 0%, rgba(255, 162, 92, .6), transparent 50%), linear-gradient(135deg, #2a1206, #120806 60%, #1d0d05);
    border: 1px solid rgba(255, 138, 61, .35); box-shadow: 0 30px 60px -30px rgba(255, 90, 31, .6);
}
.bankcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgb(var(--fg-rgb) / .025) 22px 23px); }
.bankcard__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; position: relative; }
.bankcard__top i { font-size: 1.6rem; color: var(--fire2); }
.bankcard__num { position: relative; background: none; border: 0; padding: 0; text-align: left; font-family: "Outfit", monospace; font-size: clamp(1.15rem, 3.4vw, 1.6rem); font-weight: 600; letter-spacing: .06em; display: flex; gap: 10px; align-items: center; }
.bankcard__num i { font-size: 1rem; color: var(--mute); }
.bankcard__num:hover i { color: var(--fire2); }
.bankcard__foot { position: relative; display: flex; justify-content: space-between; align-items: end; font-size: .9rem; color: var(--ink2); }
.bankcard__foot strong { color: #fff; font-size: 1rem; }
.receipt { display: grid; gap: 14px; margin-top: 8px; }
.drop {
    position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 16px; border-radius: var(--r); border: 2px dashed var(--line2);
    cursor: pointer; transition: border-color .3s, background .3s; color: var(--ink2); font-size: .9rem;
}
.drop:hover, .drop.is-over { border-color: var(--fire); background: rgba(255, 90, 31, .05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 90, 31, .12); color: var(--fire2); font-size: 1.6rem; }
.drop__preview { max-height: 180px; border-radius: 12px; }
.receipts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.receipts li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: var(--bg2); border: 1px solid var(--line); }
.receipts__thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface2); font-size: 1.6rem; flex-shrink: 0; }
.receipts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipts li > div { display: grid; gap: 2px; }
.receipts small { color: var(--mute); }
.paid { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); }
.paid > i { font-size: 2rem; color: var(--ok); }
.paid div { display: grid; }
.paid span { color: var(--ink2); font-size: .88rem; }
.track-line { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.track-line li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .8rem; color: var(--mute); position: relative; }
.track-line li::before { content: ""; position: absolute; top: 21px; left: 50%; width: 100%; height: 2px; background: var(--line2); z-index: 0; }
.track-line li:first-child::before { display: none; }
.track-line li.is-done::before, .track-line li.is-on::before { background: var(--fire-grad); }
.track-line i { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line2); font-size: 1.2rem; }
.track-line .is-done i { background: rgba(255, 90, 31, .15); border-color: var(--fire); color: var(--fire2); }
.track-line .is-on i { background: var(--fire-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(255, 90, 31, .15); }
.track-line .is-on, .track-line .is-done { color: var(--ink); }

/* ------------------------------------------------------------------ حساب کاربری */
.acc-head { padding: calc(var(--head) + 40px) 0 0; background: radial-gradient(ellipse 60% 100% at 80% 0%, rgba(255, 90, 31, .14), transparent 70%); }
.acc-head__in { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.acc-head__avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--fire-grad); font-family: var(--display); font-size: 2rem; font-weight: 900; box-shadow: 0 10px 40px -10px rgba(255, 90, 31, .7); }
.acc-head__who { flex: 1; }
.acc-head__who .eyebrow { margin-bottom: 2px; }
.acc-head__who h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.acc-head__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: .9rem; }
.acc-head__meta span { display: inline-flex; gap: 6px; align-items: center; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.acc-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.acc-stat:hover { border-color: var(--line2); }
.acc-stat i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--fg-rgb) / .05); font-size: 1.3rem; color: var(--fire2); }
.acc-stat strong { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.acc-stat span { color: var(--mute); font-size: .8rem; }
.acc-stat.is-warn { border-color: rgba(255, 138, 61, .5); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 18px; font-weight: 700; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .3s; }
.tabs a.is-on { color: var(--ink); border-color: var(--fire); }
.tabs a:hover { color: var(--ink); }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.panel__head--page { margin-bottom: 20px; }
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.row:hover { border-color: var(--line2); transform: translateX(-3px); }
.row__imgs { display: flex; }
.row__imgs img { width: 44px; height: 50px; object-fit: cover; border-radius: 10px; border: 2px solid var(--bg2); margin-inline-start: -14px; }
.row__imgs img:first-child { margin-inline-start: 0; }
.row__txt { display: grid; min-width: 0; }
.row__txt span { color: var(--mute); font-size: .8rem; }
.row__total { font-size: .92rem; white-space: nowrap; }
.row--repair { grid-template-columns: auto 1fr 90px auto; }
.row__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 90, 31, .12); color: var(--fire2); font-size: 1.3rem; }
.mini-progress { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--fire-grad); border-radius: inherit; }
.state { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: rgb(var(--fg-rgb) / .06); color: var(--ink2); }
.state--lg { height: 36px; padding: 0 16px; font-size: .88rem; }
.state--pending, .state--receiptsubmitted, .state--repair-submitted, .state--repair-quoted, .state--receipt-pending { background: rgba(251, 191, 36, .12); color: var(--warn); }
.state--paid, .state--processing, .state--repair-received, .state--repair-diagnosing, .state--repair-repairing, .state--repair-testing { background: rgba(96, 165, 250, .12); color: var(--info); }
.state--shipped, .state--delivered, .state--repair-ready, .state--repair-delivered, .state--receipt-accepted { background: rgba(52, 211, 153, .12); color: var(--ok); }
.state--cancelled, .state--repair-cancelled, .state--receipt-rejected { background: rgba(248, 113, 113, .12); color: var(--bad); }
.callout { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid; }
.callout--fire { background: rgba(255, 90, 31, .08); border-color: rgba(255, 90, 31, .35); }
.callout > i:first-child { font-size: 1.8rem; color: var(--fire2); }
.callout div { flex: 1; display: grid; }
.callout span { color: var(--ink2); font-size: .88rem; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.row-actions.center { justify-content: center; }

/* ------------------------------------------------------------------ تعمیرات */
.hero--repair { min-height: auto; padding-bottom: 72px; }
.repair-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.services { display: flex; flex-wrap: wrap; gap: 8px; }
.services span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink2); }
.services i { color: var(--fire2); }
.repair-form { max-width: 820px; }
.repair-form__card { display: grid; gap: 18px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; border-radius: var(--r-sm); border: 1.5px solid var(--line2); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .25s; background: var(--bg2); height: 100%; }
.kind span i { font-size: 1.6rem; color: var(--ink2); transition: color .25s; }
.kind input:checked + span { border-color: var(--fire); background: rgba(255, 90, 31, .08); }
.kind input:checked + span i { color: var(--fire2); }
.kind input:focus-visible + span { outline: 2px solid var(--fire2); outline-offset: 2px; }
.rt { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 24px; margin-bottom: 20px; }
.rt__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.rt__head h2 { font-size: 1.6rem; }
.rt__head .eyebrow { margin-bottom: 4px; }
.rt__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; }
.rt__steps::before { content: ""; position: absolute; top: 19px; right: 6%; left: 6%; height: 3px; border-radius: 99px; background: var(--surface2); }
.rt__steps::after { content: ""; position: absolute; top: 19px; right: 6%; height: 3px; border-radius: 99px; background: var(--fire-grad); width: calc((88%) * var(--done) / (var(--n) - 1)); transition: width 1.4s var(--ease); }
.rt.is-anim .rt__steps::after { width: 0; }
.rt__steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rt__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 2px solid var(--surface); font-weight: 800; font-size: .85rem; color: var(--mute); transition: all .5s var(--ease); }
.rt__steps .is-done .rt__dot { background: var(--fire); color: #fff; }
.rt__steps .is-on .rt__dot { background: var(--fire-grad); color: #fff; box-shadow: 0 0 0 6px rgba(255, 90, 31, .2); animation: ping 2s infinite; }
.rt__label { font-size: .75rem; color: var(--mute); line-height: 1.5; }
.rt__steps .is-on .rt__label, .rt__steps .is-done .rt__label { color: var(--ink); font-weight: 700; }
.rt__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.rt__facts div { display: grid; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg2); border: 1px solid var(--line); min-width: 140px; }
.rt__facts span { color: var(--mute); font-size: .78rem; }
.rt__log h3 { font-size: 1.05rem; margin-bottom: 12px; }
.rt__log ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-right: 2px solid var(--line); margin-right: 6px; }
.rt__log li { display: flex; gap: 14px; padding: 0 0 18px; position: relative; }
.rt__log-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--fire); margin-right: -7px; margin-top: 8px; flex-shrink: 0; }
.rt__log li:first-child .rt__log-dot { background: var(--fire); }
.rt__log small { color: var(--mute); }
.rt__log p { color: var(--ink2); font-size: .9rem; }
.rt__problem summary { cursor: pointer; color: var(--fire2); font-weight: 700; }
.rt__problem p { margin-top: 8px; color: var(--ink2); white-space: pre-line; }
.quote { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: var(--r); background: rgba(255, 90, 31, .08); border: 1px solid rgba(255, 90, 31, .4); }
.quote__txt { display: flex; gap: 14px; align-items: center; }
.quote__txt > i { font-size: 2rem; color: var(--fire2); }
.quote__txt div { display: grid; }
.quote__txt span { color: var(--ink2); font-size: .88rem; }
.quote__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ خالی / ۴۰۴ */
.blank { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--head) + 40px) 0 60px; }
.blank .wrap { display: grid; justify-items: center; gap: 14px; }
.blank > .wrap > i { font-size: 3rem; color: var(--fire2); }
.blank__code { font-family: "Outfit"; font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: 1; background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blank p { color: var(--ink2); }

/* ------------------------------------------------------------------ پانویس */
.foot { background: var(--bg2); border-top: 1px solid var(--line); overflow: hidden; }
.foot__cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 64px 0; border-bottom: 1px solid var(--line); }
.foot__cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 900; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 24px; }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand img { width: 150px; height: auto; }
.foot__brand p { color: var(--mute); font-size: .92rem; max-width: 26em; }
.foot__hours { display: flex; gap: 6px; align-items: center; }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: .92rem; color: var(--ink2); }
.foot__col h3 { font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.foot__col a, .foot__col span { display: inline-flex; gap: 8px; align-items: center; }
.foot__col a:hover { color: var(--fire2); }
.foot__word { font-family: "Outfit"; font-weight: 900; font-size: clamp(4rem, 19vw, 16rem); line-height: .85; text-align: center; letter-spacing: -.04em; direction: ltr; background: linear-gradient(to bottom, rgb(var(--fg-rgb) / .08), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-top: 12px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; color: var(--mute); font-size: .8rem; border-top: 1px solid var(--line); }
.foot__bottom a { color: var(--ink2); }
.foot__bottom a:hover { color: var(--fire2); }

/* ------------------------------------------------------------------ حرکت‌های پیش‌فرض (قبل از GSAP) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-hero-in] { opacity: 0; transform: translateY(20px); }
.js .is-shown { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease), transform 1s var(--ease); }

/* ------------------------------------------------------------------ واکنش‌گرا */
@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(4, 1fr); }
    .flow li:nth-child(4)::after { display: none; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    :root { --head: 64px; }
    .nav {
        position: fixed; inset: var(--head) 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 24px; background: rgb(var(--bg-rgb) / .97); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .5s var(--ease); margin: 0; z-index: -1;
    }
    .nav.is-open { transform: none; }
    .nav a { padding: 14px 8px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
    .top__tools { margin-inline-start: auto; }
    .menu-btn { display: inline-grid; }
    .top__user span { display: none; }
    .top__user { padding: 0 9px; }
    .hero { min-height: auto; }
    .hero__in, .spot__in, .used, .pd__grid, .pd__more, .co, .repair-hero, .acc-grid, .repair-teaser__grid { grid-template-columns: 1fr; }
    .hero__stage { max-width: 460px; margin-inline: auto; width: 100%; }
    .hero__card { left: 0; }
    .split { grid-template-columns: 1fr; }
    .used__intro, .pd__gallery { position: static; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .shop { grid-template-columns: 1fr; }
    .filters { position: fixed; z-index: 62; inset: 0 auto 0 0; width: min(340px, 90%); max-height: none; border-radius: 0; transform: translateX(-102%); transition: transform .5s var(--ease); visibility: hidden; }
    .filters.is-open { transform: none; visibility: visible; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
    .filters__close, .filters__open { display: inline-flex; }
    .spot__pin { min-height: auto; }
    .cmp-pick { grid-template-columns: 1fr; }
    .acc-stats { grid-template-columns: repeat(2, 1fr); }
    .track--inline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .brand__logo { height: 36px; }
    .hero__facts { gap: 22px; }
    .hero__facts strong { font-size: 1.6rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .pc__body { padding: 12px; }
    .pc__title { font-size: .95rem; }
    .pc__meta { display: none; }
    .pc__price strong { font-size: .98rem; }
    .pc__cmp { width: 32px; height: 32px; }
    .split__card { min-height: 340px; padding: 24px; }
    .split__txt { max-width: 62%; }
    .split__img { width: 40%; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow li::after { display: none; }
    .bento { grid-auto-rows: 180px; }
    .bento__item--big { grid-column: span 2; grid-row: span 1; }
    .field-row, .pd__hl, .kinds { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .used-card { grid-template-columns: 1fr; }
    .spot__specs { grid-template-columns: 1fr 1fr; }
    .track-line li span { font-size: .68rem; }
    .track-line i { width: 36px; height: 36px; font-size: 1rem; }
    .track-line li::before { top: 17px; }
    .rt { padding: 20px; }
    .rt__steps { grid-template-columns: 1fr; gap: 10px; }
    .rt__steps::before, .rt__steps::after { display: none; }
    .rt__steps li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; }
    .row { grid-template-columns: auto 1fr auto; }
    .row__total { grid-column: 2 / -1; text-align: left; }
    .row--repair .mini-progress { display: none; }
    .co__cart, .co__form, .co__gate, .panel { padding: 20px; }
    .foot__grid { grid-template-columns: 1fr; }
    .cmpbar { bottom: 12px; width: calc(100% - 24px); justify-content: space-between; }
    .pin__card { width: 220px; }
    .toast { right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal], .js [data-rise], .js [data-hero-in] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ لوگو و دکمه‌ی تم */
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .logo-on-dark { display: none; }
    :root:not([data-theme="dark"]) .logo-on-light { display: block; }
}
.theme-btn .ph-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ph-sun, :root:not([data-theme]) .theme-btn .ph-sun { display: inline-block; }
:root[data-theme="dark"] .theme-btn .ph-moon, :root:not([data-theme]) .theme-btn .ph-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-btn .ph-sun { display: none; }
    :root:not([data-theme]) .theme-btn .ph-moon { display: inline-block; }
}
.theme-btn i { transition: transform .6s var(--ease); }
.theme-btn:hover i { transform: rotate(-30deg); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease !important; }
