/* =====================================================================
   فروشگاه ۰۱ — نسخهٔ ۳ · طراحی روشن ادیتوریال با جعبه‌های شیشه‌ای مات
   (الهام از رفرنس Velora و رانوی Marc Jacobs)
===================================================================== */
@font-face { font-family: "Vazirmatn"; font-weight: 300; font-display: swap; src: url("assets/fonts/vazirmatn-300.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("assets/fonts/vazirmatn-400.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("assets/fonts/vazirmatn-500.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("assets/fonts/vazirmatn-700.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url("assets/fonts/vazirmatn-800.woff2") format("woff2"); }

:root {
  --ink: #111111; --ink2: #2b2a28; --soft: #6e6b67; --mute: #9b9792;
  --bg: #f3f2ef; --paper: #fbfaf8; --line: rgba(17, 17, 17, .09); --line2: rgba(17, 17, 17, .16);
  --glass: rgba(255, 255, 255, .58); --glass2: rgba(255, 255, 255, .78); --glass-b: rgba(255, 255, 255, .75);
  --blur: saturate(160%) blur(18px);
  --acc: #111111; --sale: #c2412d; --ok: #1d7a4f; --warn: #b7791f;
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --sh: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -24px rgba(20, 18, 15, .28);
  --sh-lg: 0 30px 70px -30px rgba(20, 18, 15, .35);
  --hd-h: 68px; --ann-h: 34px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  font-family: "Vazirmatn", Tahoma, sans-serif; direction: rtl; color: var(--ink); background: var(--bg);
  line-height: 1.75; font-size: 15px; overflow-x: hidden; min-height: 100vh;
  background-image:
    radial-gradient(42rem 30rem at 92% -6%, rgba(210, 200, 186, .55), transparent 70%),
    radial-gradient(36rem 28rem at -6% 38%, rgba(198, 208, 214, .45), transparent 70%),
    radial-gradient(40rem 30rem at 70% 105%, rgba(222, 214, 204, .5), transparent 70%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img, video, svg, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; } .ic.xs { width: 13px; height: 13px; } .ic.lg { width: 26px; height: 26px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 40px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); } .tiny { font-size: 12px; } .small { font-size: 13px; }
.num { font-feature-settings: "tnum"; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------- glass -- */
.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-b); border-radius: var(--r); box-shadow: var(--sh);
}
.glass-strong { background: var(--glass2); }
.panel { padding: clamp(18px, 2.4vw, 28px); }

/* ---------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255, 255, 255, .55); color: var(--ink); border-color: var(--line2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn.ghost:hover { background: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 15px; padding: 0 28px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; position: relative;
  transition: background .2s; color: var(--ink);
}
.icon-btn:hover { background: rgba(17, 17, 17, .06); }
.badge-n {
  position: absolute; top: 3px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 500; white-space: nowrap; transition: .2s;
}
.chip:hover { background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ----------------------------------------------------- announce + hd -- */
.ann { height: var(--ann-h); background: var(--ink); color: #f3f2ef; font-size: 12.5px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hd {
  position: sticky; top: 0; z-index: 60; height: var(--hd-h); background: var(--paper);
  border-bottom: 1px solid var(--line); transition: background .35s, box-shadow .35s, border-color .35s;
}
/* بعد از اسکرول: هدر شفاف و شیشه‌ای */
.hd.is-scrolled {
  background: rgba(251, 250, 248, .62); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-color: rgba(255, 255, 255, .6); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35);
}
.hd-row { height: 100%; display: flex; align-items: center; gap: 14px; }
.hd .burger { display: none; }
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px;
  min-width: 0; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none;
}
.logo img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.logo span { overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav > a, .nav > .mm > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink2); transition: background .2s; white-space: nowrap;
}
.nav > a:hover, .nav > .mm > button:hover, .nav > a.on, .nav .mm.open > button { background: rgba(17, 17, 17, .06); color: var(--ink); }
.nav a.hot { color: var(--sale); }
.hd-tools { display: flex; align-items: center; gap: 2px; flex: none; }

/* جستجوی هوشمند داخل هدر */
.hsearch { position: relative; flex: 0 1 300px; min-width: 0; }
.hsearch-in {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .7);
  padding: 0 42px 0 14px; font-size: 13.5px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.hsearch-in:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .45); }
.hsearch > .ic { position: absolute; right: 14px; top: 11px; color: var(--soft); pointer-events: none; }
.sres {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(560px, 92vw); z-index: 80; overflow: hidden;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid #fff; border-radius: var(--r); box-shadow: var(--sh-lg);
}
.sres-f { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sres-f::-webkit-scrollbar { display: none; }
.sres-f .chip { min-height: 30px; font-size: 12px; padding: 0 11px; }
.sres-list { max-height: min(60vh, 440px); overflow-y: auto; padding: 6px; }
.sres-it { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); transition: background .15s; }
.sres-it:hover, .sres-it.on { background: rgba(17, 17, 17, .05); }
.sres-it img { width: 46px; height: 58px; object-fit: cover; border-radius: 10px; background: #e9e7e3; flex: none; }
.sres-it b { font-size: 13.5px; font-weight: 700; display: block; }
.sres-it small { color: var(--soft); font-size: 12px; }
.sres-it .p { margin-inline-start: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sres-it .p s { display: block; color: var(--mute); font-weight: 400; font-size: 11px; }
.sres-empty { padding: 26px; text-align: center; color: var(--soft); font-size: 13px; }
.sres-all { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }

/* مگامنو دسته‌ها: کاشی‌های بزرگ تصویری */
.mm { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); right: 50%; transform: translateX(50%); width: min(980px, 94vw); z-index: 70;
  padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid #fff; border-radius: 26px; box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .25s, translate .25s, visibility .25s;
}
.mm.open .mega { opacity: 1; visibility: visible; translate: 0 0; }
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }

.cat-tile {
  position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #dedad4; isolation: isolate;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .05) 60%); z-index: 1; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .ct-cap {
  position: absolute; inset: auto 12px 12px 12px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.cat-tile b { font-size: 17px; font-weight: 800; line-height: 1.4; }
.cat-tile small { display: block; font-size: 12px; opacity: .85; font-weight: 400; }
.cat-tile .go { width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .4); }

/* ---------------------------------------------------- drawer موبایل -- */
.drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .35); opacity: 0; visibility: hidden; transition: .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 95; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(251, 250, 248, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transform: translateX(105%); transition: transform .38s var(--ease); padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-back { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.drawer .cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .cat-tile { aspect-ratio: 1 / 1; border-radius: 14px; }
.drawer .cat-tile b { font-size: 13.5px; }
.drawer .cat-tile .go { display: none; }

/* ------------------------------------------------------------- hero -- */
.hero { position: relative; margin: 18px auto 0; }
.hero-frame {
  position: relative; border-radius: 30px; overflow: hidden; min-height: clamp(420px, 72vh, 760px); isolation: isolate;
  background: #d9d5cf; display: flex; align-items: flex-end;
}
.media-fill, .media-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(0, 0, 0, .0), rgba(0, 0, 0, .08) 50%, rgba(0, 0, 0, .28)); }
/* متن هیرو روی جعبهٔ شیشه‌ای مات تا روی هر رنگ لباسی خوانا بماند */
.hero-card {
  margin: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 38px); max-width: 520px; color: var(--ink);
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 26px; box-shadow: var(--sh-lg);
}
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--soft); }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.hero-card h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.hero-card p { margin-top: 12px; color: var(--ink2); font-size: clamp(14px, 1.3vw, 16px); }
.hero-btns { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ----------------------------------------------- هیروی رانوی (لوک‌ها) -- */
.runway {
  position: relative; border-radius: 30px; overflow: hidden; min-height: clamp(560px, 78vh, 820px);
  background: linear-gradient(180deg, #eef0f1 0%, #e6e8ea 60%, #dfe1e3 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
}
.rw-stage { position: relative; overflow: hidden; perspective: 1400px; min-height: inherit; }
.rw-floor { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(0, 0, 0, .05), transparent); pointer-events: none; }
.rw-head { position: absolute; top: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 40px); z-index: 30; max-width: 360px; }
.rw-head h1 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin-top: 6px; }
.rw-head p { font-size: 13px; color: var(--soft); margin-top: 8px; }
.rw-look {
  position: absolute; bottom: 0; left: 62%; height: 88%; aspect-ratio: 9 / 19; transform-origin: 50% 100%;
  transition: transform .9s var(--ease), filter .9s var(--ease), opacity .9s var(--ease); cursor: pointer; will-change: transform, filter;
}
.rw-look img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .12)); }
/* جای خالی استایلیست — مستطیل ایستاده تا PNG از پنل آپلود شود */
.rw-ph {
  width: 100%; height: 100%; border-radius: 120px 120px 18px 18px; position: relative;
  background: linear-gradient(170deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 55%, rgba(0, 0, 0, .06));
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
}
.rw-ph::before { content: ""; position: absolute; top: 6%; left: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .06); }
.rw-ph span { position: absolute; bottom: 7%; inset-inline: 0; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: rgba(0, 0, 0, .35); }
.rw-tag { position: absolute; bottom: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 40px); z-index: 30; }
.rw-tag b { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: .06em; line-height: 1; }
.rw-tag small { font-size: 12.5px; color: var(--soft); }
.rw-nav { position: absolute; bottom: clamp(18px, 3vw, 30px); left: clamp(18px, 3vw, 30px); z-index: 30; display: flex; gap: 8px; }
.rw-nav .icon-btn { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid #fff; }
.rw-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; }
.rw-dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(0, 0, 0, .2); transition: width .3s, background .3s; }
.rw-dots button.on { width: 22px; background: var(--ink); }
.rw-side {
  position: relative; z-index: 20; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-right: 1px solid rgba(255, 255, 255, .8); overflow-y: auto; display: flex; flex-direction: column; max-height: 820px;
}
.rw-side-hd { padding: 18px 18px 8px; font-size: 12.5px; color: var(--soft); display: flex; justify-content: space-between; }
.rw-items { padding: 6px 12px 16px; display: grid; gap: 10px; }
.rw-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .7); border: 1px solid #fff; animation: rwIn .6s var(--ease) both;
}
.rw-item img { width: 84px; height: 104px; object-fit: cover; border-radius: 12px; background: #e9e7e3; }
.rw-item b { font-size: 13px; font-weight: 700; display: block; line-height: 1.5; }
.rw-item span { font-size: 12.5px; color: var(--soft); }
.rw-item .acts { display: flex; flex-direction: column; gap: 6px; }
.rw-item .icon-btn { width: 34px; height: 34px; border: 1px solid var(--line2); }
.rw-empty { padding: 24px 18px; font-size: 13px; color: var(--soft); }
@keyframes rwIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- sections -- */
.sec { padding-top: clamp(46px, 7vw, 86px); }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-hd h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.sec-hd p { color: var(--soft); font-size: 14px; margin-top: 4px; }
.sec-hd .more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cats-grid .cat-tile { aspect-ratio: 4 / 3; border-radius: 24px; }
.cats-grid .cat-tile b { font-size: 20px; }
.cats-grid .cat-tile:first-child { grid-row: span 2; aspect-ratio: auto; }

/* --------------------------------------------------- product grid/card -- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-b); box-shadow: var(--sh); transition: transform .35s var(--ease), box-shadow .35s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e4df; margin: 8px 8px 0; border-radius: 16px; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s var(--ease); }
.pc-img2 { opacity: 0; }
.pcard:hover .pc-img2 { opacity: 1; }
.pcard:hover .pc-img { transform: scale(1.04); }
.is-out .pcard-media img { filter: grayscale(.7); opacity: .75; }
.pc-out { position: absolute; inset: auto 10px 10px auto; background: rgba(17, 17, 17, .78); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.pc-timer { position: absolute; bottom: 10px; left: 10px; display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 4px 10px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); direction: ltr; }
.pc-like {
  position: absolute; bottom: 14px; left: 10px; width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; z-index: 4;
  background: rgba(17, 17, 17, .05); transition: background .2s, color .2s, transform .2s;
}
.pc-like:hover { background: rgba(17, 17, 17, .1); transform: scale(1.06); }
.pc-like.on { color: var(--sale); }
.pc-like.on svg { fill: currentColor; }
.pcard-body { padding: 12px 14px 14px 52px; display: grid; gap: 6px; }
.pc-name { font-size: 14px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-price b { font-size: 14.5px; font-weight: 800; }
.pc-price s { color: var(--mute); font-size: 12px; margin-inline-start: 6px; }
.pc-rate { font-size: 12px; color: var(--soft); white-space: nowrap; }

/* پرچم گوشه‌ها: «جدید» راست بالا، «درصد تخفیف» چپ بالا */
.ribbon { position: absolute; top: 0; width: 94px; height: 94px; overflow: hidden; z-index: 3; pointer-events: none; }
.ribbon span {
  position: absolute; top: 20px; width: 132px; padding: 5px 0; text-align: center; font-size: 12px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.ribbon-r { right: 0; }
.ribbon-r span { right: -32px; transform: rotate(45deg); background: var(--ink); }
.ribbon-l { left: 0; }
.ribbon-l span { left: -32px; transform: rotate(-45deg); background: var(--sale); direction: ltr; }

/* ------------------------------------------------------------ banner -- */
.banner { position: relative; border-radius: 30px; overflow: hidden; min-height: 360px; display: flex; align-items: center; isolation: isolate; background: #cfc9c0; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(0, 0, 0, .05), rgba(0, 0, 0, .35)); }

/* --------------------------------------------------------- shop page -- */
.page-hd { padding: 28px 0 8px; }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--soft); }
.crumbs a:hover { color: var(--ink); }
.page-hd h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
/* نوار انتخاب دسته در بالای صفحهٔ دسته */
.catbar { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid #fff; box-shadow: var(--sh); font-size: 14px; font-weight: 600; transition: .2s;
}
.catbar a img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; background: #e2ded8; }
.catbar a .ph { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(17, 17, 17, .06); }
.catbar a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: calc(var(--hd-h) + 16px); display: grid; gap: 16px; }
.filters h3 { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; }
.filters .opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.filters input[type="checkbox"], .filters input[type="radio"] { accent-color: var(--ink); width: 16px; height: 16px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-toggle { display: none; }

/* ----------------------------------------------------------- forms -- */
.in, .sel, .ta {
  width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .7);
  padding: 10px 14px; font-size: 14px; transition: border-color .2s, background .2s;
}
.ta { min-height: 110px; resize: vertical; line-height: 1.8; }
.in:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--ink); background: #fff; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 700; }
.fld em { font-style: normal; font-size: 12px; color: var(--soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg, .err { padding: 12px 16px; border-radius: 14px; font-size: 13.5px; margin: 12px 0; }
.msg { background: rgba(29, 122, 79, .1); color: var(--ok); border: 1px solid rgba(29, 122, 79, .2); }
.err { background: rgba(194, 65, 45, .08); color: var(--sale); border: 1px solid rgba(194, 65, 45, .2); }

/* ---------------------------------------------------- product page -- */
.pd { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3.4vw, 54px); align-items: start; padding-top: 10px; }
.gal { position: sticky; top: calc(var(--hd-h) + 14px); }
.gal-main {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #e8e6e2; cursor: zoom-in; touch-action: pan-y;
  border: 1px solid #fff; box-shadow: var(--sh);
}
.gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; transform-origin: 50% 50%; }
/* زوم با حرکت موس: تصویر بزرگ می‌شود و با موس در کل آن حرکت می‌کنید */
.gal-main.zooming img.cur { transform: scale(2.4); transition: opacity .35s; }
.gal-main .zoom-hint {
  position: absolute; bottom: 14px; left: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 99px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s;
}
.gal-main.zooming .zoom-hint { opacity: 0; }
.gal-main .badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 3; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .85); }
.tag.dark { background: var(--ink); color: #fff; } .tag.sale { background: var(--sale); color: #fff; }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.thumbs button { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #e8e6e2; opacity: .72; transition: .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--ink); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.buy { display: grid; gap: 18px; }
.buy h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.rate-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); flex-wrap: wrap; }
.price-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-line b { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.price-line s { color: var(--mute); font-size: 16px; }
.opt-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin-bottom: 10px; }
.opt-h b { font-weight: 800; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw {
  width: 44px; height: 44px; border-radius: 99px; border: 2px solid transparent; padding: 3px; background-clip: content-box; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: .2s;
}
.sw i { display: block; width: 100%; height: 100%; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw.on { border-color: var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sz { min-width: 54px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .65); font-weight: 700; font-size: 13.5px; transition: .2s; }
.sz:hover { border-color: var(--ink); }
.sz.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; height: 46px; background: rgba(255, 255, 255, .7); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; }
.qty input { width: 38px; text-align: center; border: 0; background: none; font-weight: 800; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .btn.lg { flex: 1; }
.like-big { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line2); background: rgba(255, 255, 255, .7); flex: none; transition: .2s; }
.like-big.on { color: var(--sale); border-color: var(--sale); }
.like-big.on svg { fill: currentColor; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; color: var(--soft); }
.trust div { display: flex; gap: 8px; align-items: center; }
.stock-low { color: var(--sale); font-weight: 700; font-size: 13px; }

/* امتیازدهی ۵ ستاره با حرکت موس */
.rater { display: inline-flex; flex-direction: row-reverse; gap: 2px; direction: ltr; }
.rater button { font-size: 28px; line-height: 1; color: #d9d6d1; transition: color .12s, transform .12s; padding: 2px; }
.rater button.on, .rater button.hov { color: #e0a51b; }
.rater button:hover { transform: scale(1.12); }
.rater-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; direction: ltr; }
.stars-bg { color: #d9d6d1; } .stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e0a51b; white-space: nowrap; }

.pd-tabs { margin-top: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--soft); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--soft); width: 40%; }
.feature-img { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; background: #dcd9d4; }
.feature-img img, .feature-img video { width: 100%; height: 100%; object-fit: cover; }

.rv-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.rv-sum { text-align: center; display: grid; gap: 8px; justify-items: center; }
.rv-sum .big { font-size: 46px; font-weight: 800; line-height: 1; }
.rv { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv:last-child { border-bottom: 0; }
.rv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rv-h b { font-size: 14px; }
.rv p { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.rv .reply { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(17, 17, 17, .04); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: 0; }
.qa .q { font-weight: 700; font-size: 14px; display: flex; gap: 8px; }
.qa .a { margin-top: 8px; font-size: 14px; color: var(--ink2); display: flex; gap: 8px; padding-inline-start: 2px; }
.qa .q::before { content: "پ"; } .qa .a::before { content: "ج"; }
.qa .q::before, .qa .a::before { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; }
.qa .a::before { background: #e8e5e0; color: var(--ink); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(245, 244, 241, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-view { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; }
.lb-view.drag { cursor: grabbing; }
.lb-view img { position: absolute; top: 50%; left: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-bar { display: flex; gap: 8px; justify-content: center; padding: 12px; flex-wrap: wrap; }
.lb-bar .thumbs { margin: 0; justify-content: center; }

/* ----------------------------------------------- account / dashboard -- */
.acc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 22px; }
.acc-side { position: sticky; top: calc(var(--hd-h) + 16px); padding: 12px; }
.acc-me { display: flex; align-items: center; gap: 12px; padding: 10px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.acc-me .avatar { width: 46px; height: 46px; font-size: 17px; }
.acc-me b { display: block; font-size: 15px; }
.acc-me small { color: var(--soft); font-size: 12px; direction: ltr; display: block; text-align: right; }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--ink2); transition: background .2s; }
.acc-nav a:hover { background: rgba(17, 17, 17, .05); }
.acc-nav a.on { background: var(--ink); color: #fff; }
.acc-nav a .n { margin-inline-start: auto; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: rgba(17, 17, 17, .08); padding: 0 6px; }
.acc-nav a.on .n { background: rgba(255, 255, 255, .2); }
.acc-mtabs { display: none; }
.acc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-h h1 { font-size: 22px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px; }
.kpi small { color: var(--soft); font-size: 12px; display: block; }
.kpi b { font-size: 22px; font-weight: 800; }
.line-it { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-it:last-child { border-bottom: 0; }
.line-it img { width: 86px; height: 106px; object-fit: cover; border-radius: 14px; background: #e8e6e2; }
.line-it b { font-size: 14.5px; }
.line-it .vars { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.line-it .side { display: grid; gap: 8px; justify-items: end; }
.sum-box { display: grid; gap: 10px; font-size: 14px; }
.sum-box .r { display: flex; justify-content: space-between; gap: 10px; }
.sum-box .tot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; font-weight: 800; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.order-card { padding: 16px 18px; display: grid; gap: 12px; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.order-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.order-thumbs img { width: 52px; height: 64px; object-fit: cover; border-radius: 10px; background: #e8e6e2; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(17, 17, 17, .06); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.st.ok { color: var(--ok); background: rgba(29, 122, 79, .1); } .st.warn { color: var(--warn); background: rgba(183, 121, 31, .1); }
.st.bad { color: var(--sale); background: rgba(194, 65, 45, .08); } .st.run { color: #2a5bd7; background: rgba(42, 91, 215, .08); }
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; }
.empty .ic { width: 42px; height: 42px; color: var(--mute); }

/* ------------------------------------------- خط زمانی سفارش (stepper) -- */
.track-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.track-now .big { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.track-now h1 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.35; }
.track-now p { color: var(--soft); font-size: 14px; }
.steps { --done: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 28px 0 8px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 19px; right: 10%; height: 3px; border-radius: 3px; }
.steps::before { left: 10%; background: rgba(17, 17, 17, .1); }
.steps::after { width: calc(80% * var(--done)); background: var(--ink); transition: width 1.2s var(--ease); }
.step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 4px; }
.step .dot { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: #fff; border: 2px solid rgba(17, 17, 17, .14); color: var(--mute); font-weight: 800; font-size: 14px; transition: .4s; }
.step b { font-size: 13.5px; font-weight: 700; color: var(--mute); }
.step small { font-size: 11.5px; color: var(--mute); line-height: 1.6; max-width: 150px; }
.step.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done b { color: var(--ink); }
.step.cur .dot { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 6px rgba(17, 17, 17, .08); animation: pulse 1.8s infinite; }
.step.cur b { color: var(--ink); } .step.cur small { color: var(--soft); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .18); } 50% { box-shadow: 0 0 0 9px rgba(17, 17, 17, 0); } }
.next-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(17, 17, 17, .04); font-size: 14px; }
.next-box b { display: block; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line2); }
.code-box b { font-size: 20px; letter-spacing: .08em; direction: ltr; }
.card-no { font-size: 22px; letter-spacing: .14em; direction: ltr; font-weight: 800; }

/* ------------------------------------------------------- login page -- */
.auth { max-width: 460px; margin: 40px auto 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(17, 17, 17, .05); margin-bottom: 18px; }
.auth-tabs button { height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--soft); }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); }
.why { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(17, 17, 17, .04); font-size: 13.5px; margin-bottom: 14px; }

/* ------------------------------------------------------------ footer -- */
.ft { margin-top: clamp(60px, 8vw, 110px); padding: 0 0 26px; }
.ft-box { padding: clamp(26px, 4vw, 46px); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 26px; }
.ft h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.ft p, .ft li { font-size: 13.5px; color: var(--soft); line-height: 2.1; }
.ft ul { list-style: none; }
.ft a:hover { color: var(--ink); }
.ft-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 4px 0; font-size: 12.5px; color: var(--soft); }
.news { display: flex; gap: 8px; margin-top: 10px; }

/* --------------------------------------------------------- support -- */
#sup-launch { position: fixed; bottom: 20px; left: 20px; z-index: 50; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); }
#sup-launch svg { width: 24px; height: 24px; }
#sup-box { position: fixed; bottom: 84px; left: 20px; z-index: 51; width: min(360px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid #fff; border-radius: var(--r); box-shadow: var(--sh-lg); }
.sup-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sup-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.sup-body .m { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 13px; background: rgba(17, 17, 17, .05); align-self: flex-start; }
.sup-body .m.me { background: var(--ink); color: #fff; align-self: flex-end; }
.sup-form { padding: 10px; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 22px; right: 50%; translate: 50% 0; z-index: 300; padding: 12px 18px; border-radius: 16px; font-size: 14px; background: rgba(17, 17, 17, .92); color: #fff; box-shadow: var(--sh-lg); animation: toastIn .35s var(--ease); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.toast a { text-decoration: underline; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.countdown { direction: ltr; font-feature-settings: "tnum"; }

/* ------------------------------------------------------ reveal anim -- */
.rv-in { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv-in.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .rv-in { opacity: 1; transform: none; } }

/* =========================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .hsearch { flex-basis: 220px; }
  .nav > a, .nav > .mm > button { padding: 0 10px; font-size: 13.5px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .runway { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1020px) {
  :root { --hd-h: 62px; }
  .nav { display: none; }
  .hd .burger { display: inline-grid; }
  .hsearch { flex: 1 1 auto; margin-inline-start: auto; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 90vw); z-index: 96; overflow-y: auto; border-radius: 0; transform: translateX(105%); transition: transform .35s var(--ease); align-content: start; }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-back { opacity: 1; visibility: visible; }
  .filter-toggle { display: inline-flex; }
  .pd { grid-template-columns: 1fr; }
  .gal { position: static; }
  .pd-tabs, .rv-wrap { grid-template-columns: 1fr; }
  .acc { grid-template-columns: 1fr; }
  .acc-side { display: none; }
  .acc-mtabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
  .acc-mtabs::-webkit-scrollbar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .ft-box { grid-template-columns: 1fr 1fr; }
  .runway { grid-template-columns: 1fr; }
  .rw-side { border-right: 0; border-top: 1px solid rgba(255, 255, 255, .8); max-height: none; }
  .rw-items { grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .rw-item { scroll-snap-align: start; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .hd-row { gap: 6px; }
  .logo { font-size: 18px; max-width: 42vw; }
  .logo img { width: 28px; height: 28px; }
  /* موبایل: جستجو آیکونی می‌شود و با لمس باز می‌شود */
  .hsearch { position: static; flex: none; margin-inline-start: auto; }
  .hsearch-in { display: none; }
  .hsearch > .ic { display: none; }
  .hsearch .open-search { display: inline-grid; }
  body.search-open .hsearch-in { display: block; position: absolute; top: calc(var(--hd-h) + 8px); right: 12px; left: 12px; width: auto; z-index: 81; height: 48px; background: #fff; }
  body.search-open .sres { top: calc(var(--hd-h) + 64px); right: 12px; left: 12px; width: auto; position: absolute; }
  .icon-btn { width: 38px; height: 38px; }
  .hd-tools .hide-sm { display: none; }
  .hero { margin-top: 12px; }
  .hero-frame { border-radius: 22px; min-height: 76vh; }
  .hero-card { margin: 12px; padding: 20px; border-radius: 20px; }
  .runway { border-radius: 22px; min-height: auto; }
  .rw-stage { min-height: 70vh; }
  .rw-head { max-width: 72%; }
  .rw-head p { display: none; }
  .rw-dots { bottom: 22px; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cats-grid .cat-tile { border-radius: 18px; aspect-ratio: 1 / 1.05; }
  .cats-grid .cat-tile:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 10; }
  .cats-grid .cat-tile b { font-size: 15px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { border-radius: 18px; }
  .pcard-media { margin: 6px 6px 0; border-radius: 13px; }
  .pc-name { font-size: 13px; }
  .pc-price b { font-size: 13px; }
  .pc-price s { display: block; margin: 0; }
  .pc-like { width: 32px; height: 32px; bottom: 10px; left: 6px; }
  .pcard-body { padding: 10px 10px 10px 40px; }
  .ribbon { width: 76px; height: 76px; }
  .ribbon span { top: 15px; width: 110px; font-size: 11px; }
  .ribbon-r span { right: -28px; } .ribbon-l span { left: -28px; }
  .rail { grid-auto-columns: 62%; }
  .row2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; margin: 18px 0 4px; }
  .steps::before, .steps::after { top: 20px; right: 19px; left: auto; width: 3px; height: calc(100% - 40px); }
  .steps::after { height: calc((100% - 40px) * var(--done)); width: 3px; }
  .step { grid-template-columns: 40px 1fr; justify-items: start; text-align: right; column-gap: 12px; padding: 0 0 18px; }
  .step .dot { grid-row: span 2; }
  .step small { max-width: none; }
  .line-it { grid-template-columns: 70px minmax(0, 1fr); }
  .line-it img { width: 70px; height: 88px; }
  .line-it .side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .ft-box { grid-template-columns: 1fr; }
  .banner { border-radius: 22px; }
  .buy-row .btn.lg { min-height: 52px; }
  .sticky-buy { position: fixed; bottom: 0; right: 0; left: 0; z-index: 55; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 250, 248, .9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
  #sup-launch { bottom: 84px; }
}
@media (min-width: 701px) { .sticky-buy { display: none; } .hsearch .open-search { display: none; } }
@media (max-width: 380px) { .logo { max-width: 36vw; } }
@media (max-width: 700px) { .rw-look { left: 64%; height: 78%; } }
