/* ===========================================================
   مهرگیاه | استایل سایت
   =========================================================== */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Markazi'; src: url('../fonts/MarkaziText.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: oklch(0.975 0.01 60);
  --bg-2: oklch(0.948 0.018 62);
  --sand: oklch(0.905 0.032 65);
  --ink: oklch(0.23 0.025 25);
  --ink-2: oklch(0.40 0.02 30);
  --muted: oklch(0.55 0.018 40);
  --line: oklch(0.885 0.018 55);
  --anar: oklch(0.43 0.14 18);
  --anar-2: oklch(0.35 0.115 18);
  --anar-deep: oklch(0.235 0.055 18);
  --anar-tint: oklch(0.935 0.03 18);
  --saffron: oklch(0.81 0.14 76);
  --saffron-2: oklch(0.70 0.145 62);
  --olive: oklch(0.50 0.07 125);
  --on-dark: oklch(0.97 0.012 60);
  --on-dark-2: oklch(0.84 0.025 50);
  --ok: oklch(0.58 0.12 150);
  --err: oklch(0.55 0.18 25);

  --f-body: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-display: 'Markazi', 'Vazirmatn', serif;
  --t-xs: .8rem; --t-sm: .9rem; --t-base: 1.0625rem; --t-lg: 1.375rem; --t-xl: 2rem;
  --t-2xl: clamp(2.4rem, 4.6vw, 3.9rem); --t-3xl: clamp(2.9rem, 7vw, 6.2rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-arch: 999px 999px 22px 22px;
  --wrap: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --sh-sm: 0 1px 2px oklch(0.3 0.04 30 / .06), 0 2px 8px oklch(0.3 0.04 30 / .05);
  --sh-md: 0 6px 24px oklch(0.3 0.05 25 / .09);
  --sh-lg: 0 24px 60px oklch(0.25 0.06 20 / .16);
  --z-header: 50; --z-drawer: 70; --z-toast: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: var(--t-base); line-height: 1.8; color: var(--ink); background: var(--bg); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--saffron); color: var(--anar-deep); }
:focus-visible { outline: 2.5px solid var(--saffron-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.005em; line-height: 1.15; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; color: var(--anar); }
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { flex: none; }

/* ---------- دکمه‌ها ---------- */
.btn { --b: var(--anar); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: var(--on-dark); font-weight: 600; font-size: var(--t-sm); transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .3s; white-space: nowrap; }
.btn:hover { background: var(--anar-2); border-color: var(--anar-2); box-shadow: 0 10px 26px oklch(0.43 0.14 18 / .28); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico-go { transform: translateX(-4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: none; }
.btn-light { --b: var(--on-dark); color: var(--anar-deep); }
.btn-light:hover { background: var(--saffron); border-color: var(--saffron); color: var(--anar-deep); }
.btn-saffron { --b: var(--saffron); color: var(--anar-deep); }
.btn-saffron:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--anar-deep); }
.btn-sm { min-height: 40px; padding: 0 18px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link { position: relative; font-weight: 600; color: var(--anar); display: inline-flex; gap: 6px; align-items: center; }
.link::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(.3); transform-origin: right; transition: transform .35s var(--ease); }
.link:hover::after { transform: scaleX(1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- نوار اعلان ---------- */
.announce { position: relative; z-index: 2; background: var(--anar-deep); color: var(--on-dark-2); font-size: var(--t-xs); height: 36px; overflow: hidden; display: flex; align-items: center; }
.announce-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 40s linear infinite; }
.announce-track span { margin-inline-end: 64px; }
.announce:hover .announce-track { animation-play-state: paused; }
.announce-track span::before { content: '✦'; color: var(--saffron); margin-inline-end: 12px; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- هدر شیشه‌ای ---------- */
.header { position: fixed; top: 48px; inset-inline: 0; z-index: var(--z-header); pointer-events: none; transition: transform .6s var(--ease-expo); }
.header.is-scrolled { transform: translateY(-36px); }
.header.is-hidden { transform: translateY(calc(-100% - 60px)); }
.nav { pointer-events: auto; width: min(100% - 28px, 1320px); margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); height: 68px; padding-inline: 14px 22px; border-radius: 999px;
  background: oklch(0.985 0.008 60 / .62); border: 1px solid oklch(1 0 0 / .55); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 10px 40px oklch(0.25 0.05 20 / .10), inset 0 1px 0 oklch(1 0 0 / .6);
  transition: background-color .5s var(--ease), box-shadow .5s, border-color .5s, height .5s var(--ease); animation: navIn 1s var(--ease-expo) both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-24px) scale(.98); } }
.header.on-dark:not(.is-scrolled) .nav { background: oklch(0.2 0.03 20 / .28); border-color: oklch(1 0 0 / .18); color: var(--on-dark); box-shadow: inset 0 1px 0 oklch(1 0 0 / .15); }
.header.is-scrolled .nav { background: oklch(0.985 0.008 60 / .78); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.85rem; font-weight: 700; line-height: 1; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--anar); color: var(--saffron); flex: none; }
.logo small { display: block; font-family: var(--f-body); font-size: .56rem; letter-spacing: .32em; font-weight: 600; opacity: .6; margin-top: 4px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; margin-inline: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { position: relative; z-index: 1; display: block; padding: 8px 15px; font-size: var(--t-sm); font-weight: 500; border-radius: 999px; transition: color .25s; opacity: 0; animation: fadeUp .7s var(--ease-expo) forwards; animation-delay: calc(.25s + var(--i) * 55ms); }
.nav-links a.is-active { font-weight: 700; }
.nav-pill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--anar-tint); transition: transform .45s var(--ease-expo), width .45s var(--ease-expo), opacity .3s; opacity: 0; pointer-events: none; right: 0; }
.header.on-dark:not(.is-scrolled) .nav-pill { background: oklch(1 0 0 / .16); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; transition: background-color .2s, transform .2s var(--ease); }
.icon-btn:hover { background: oklch(0.5 0.05 30 / .1); }
.icon-btn:active { transform: scale(.92); }
.badge-count { position: absolute; top: 4px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--saffron); color: var(--anar-deep); font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; transform: scale(0); transition: transform .4s var(--ease-expo); }
.badge-count.on { transform: scale(1); }
.badge-count.bump { animation: bump .5s var(--ease-expo); }
@keyframes bump { 40% { transform: scale(1.45); } }
.auth-btns { display: flex; gap: 6px; }
.auth-btns .btn { min-height: 42px; padding: 0 18px; }
.header.on-dark:not(.is-scrolled) .auth-btns .btn-ghost { color: var(--on-dark); border-color: oklch(1 0 0 / .35); }
.header.on-dark:not(.is-scrolled) .auth-btns .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.header.on-dark:not(.is-scrolled) .auth-btns .btn:not(.btn-ghost) { background: var(--saffron); border-color: var(--saffron); color: var(--anar-deep); }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--t-sm); font-weight: 600; }
.header.on-dark:not(.is-scrolled) .me-chip { border-color: oklch(1 0 0 / .3); }
.me-chip .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--anar-deep); font-weight: 800; }
.burger { display: none; }
.search-pop { position: absolute; inset-inline: 0; top: calc(100% + 10px); width: min(100% - 28px, 720px); margin-inline: auto; pointer-events: auto; background: var(--bg); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 10px; opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden; transition: opacity .25s, transform .35s var(--ease-expo), visibility .25s; }
.search-pop.open { opacity: 1; transform: none; visibility: visible; }
.search-pop input { width: 100%; height: 54px; border: 0; background: var(--bg-2); border-radius: 12px; padding-inline: 18px; font-size: 1.05rem; }
.search-pop input:focus { outline: 2px solid var(--saffron); }
.search-res { display: grid; gap: 2px; margin-top: 8px; max-height: 360px; overflow: auto; }
.search-res a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.search-res a:hover { background: var(--bg-2); }
.search-res img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.search-res .empty { padding: 18px; color: var(--muted); font-size: var(--t-sm); }

/* منوی موبایل */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--anar-deep); color: var(--on-dark); padding: 110px 28px 40px; display: flex; flex-direction: column; gap: 28px; clip-path: circle(0 at calc(100% - 44px) 80px); transition: clip-path .7s var(--ease-expo); visibility: hidden; }
.drawer.open { clip-path: circle(150% at calc(100% - 44px) 80px); visibility: visible; }
.drawer nav a { display: block; font-family: var(--f-display); font-size: 2.3rem; line-height: 1.5; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-expo); transition-delay: calc(.12s + var(--i) * 50ms); }
.drawer.open nav a { opacity: 1; transform: none; }
.drawer nav a.is-active { color: var(--saffron); }
.drawer .auth-btns { margin-top: auto; }
.drawer .auth-btns .btn { flex: 1; }
.drawer .btn-ghost { color: var(--on-dark); border-color: oklch(1 0 0 / .3); }
.drawer-close { position: absolute; top: 60px; left: 22px; color: var(--on-dark); }

@media (max-width: 1100px) {
  .nav-links, .nav-actions .auth-btns, .nav-actions .me-chip span { display: none; }
  .burger { display: grid; }
  .nav { gap: 8px; justify-content: space-between; }
  .nav-actions { margin-inline-start: auto; }
}

/* ---------- انیمیشن نمایش ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-expo), transform 1.1s var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease-expo) forwards; animation-delay: calc(.2s + var(--i) * 60ms); }
@keyframes wordUp { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- هیرو اسلایدر صفحه اصلی ---------- */
.hs { position: relative; height: calc(100svh - 36px); min-height: 620px; overflow: hidden; background: var(--anar-deep); color: var(--on-dark); isolation: isolate; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hs-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hs-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7.5s cubic-bezier(.2,.6,.3,1); }
.hs-slide.is-on img { transform: scale(1); }
.hs-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, oklch(0.18 0.04 20 / .82) 0%, oklch(0.18 0.04 20 / .45) 45%, oklch(0.18 0.04 20 / .05) 75%), linear-gradient(to top, oklch(0.16 0.04 20 / .6), transparent 40%); }
.hs-copy { position: absolute; z-index: 2; inset-inline-start: max(20px, calc((100vw - var(--wrap)) / 2)); bottom: clamp(120px, 18vh, 200px); width: min(640px, calc(100% - 40px)); }
.hs-copy .eyebrow { color: var(--saffron); }
.hs-copy h1 { font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 600; line-height: 1.08; margin: 18px 0 20px; }
.hs-copy p { font-size: 1.12rem; color: var(--on-dark-2); max-width: 46ch; margin-bottom: 32px; }
.hs-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-expo), transform 1s var(--ease-expo); }
.hs-slide.is-on .hs-copy > * { opacity: 1; transform: none; }
.hs-slide.is-on .hs-copy > :nth-child(2) { transition-delay: .12s; } .hs-slide.is-on .hs-copy > :nth-child(3) { transition-delay: .24s; } .hs-slide.is-on .hs-copy > :nth-child(4) { transition-delay: .36s; }
.hs-ui { position: absolute; z-index: 3; bottom: 40px; inset-inline: 0; }
.hs-ui .wrap { display: flex; align-items: flex-end; gap: 28px; }
.hs-dots { display: flex; gap: 22px; flex: 1; max-width: 640px; }
.hs-dot { flex: 1; border: 0; background: none; padding: 10px 0; text-align: right; color: var(--on-dark-2); font-size: var(--t-xs); opacity: .7; transition: opacity .3s; }
.hs-dot b { display: block; font-size: .95rem; color: var(--on-dark); margin-bottom: 8px; font-weight: 700; }
.hs-dot i { display: block; height: 2px; background: oklch(1 0 0 / .25); border-radius: 2px; overflow: hidden; }
.hs-dot i::after { content: ''; display: block; height: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: right; }
.hs-dot.is-on { opacity: 1; }
.hs-dot.is-on i::after { animation: prog var(--dur, 6.5s) linear forwards; }
.hs.paused .hs-dot.is-on i::after { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.hs-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hs-arrows button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid oklch(1 0 0 / .3); background: oklch(1 0 0 / .06); color: var(--on-dark); display: grid; place-items: center; transition: background-color .25s, color .25s, transform .2s; }
.hs-arrows button:hover { background: var(--on-dark); color: var(--anar-deep); }
.hs-arrows button:active { transform: scale(.94); }
.hs-scroll { position: absolute; z-index: 3; left: 50%; bottom: 14px; width: 1px; height: 26px; background: oklch(1 0 0 / .3); overflow: hidden; }
.hs-scroll::after { content: ''; position: absolute; inset: 0; background: var(--saffron); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (max-width: 700px) {
  .hs-slide::after { background: linear-gradient(to top, oklch(0.16 0.04 20 / .92) 10%, oklch(0.16 0.04 20 / .35) 60%, oklch(0.16 0.04 20 / .1)); }
  .hs-copy { bottom: 130px; } .hs-copy p { font-size: 1rem; } .hs-arrows { display: none; } .hs-dot { font-size: 0; } .hs-dot b { font-size: .85rem; }
}

/* ---------- هیرو صفحات داخلی (قاب طاق ایرانی) ---------- */
.ph { position: relative; padding: 170px 0 var(--s-8); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.ph::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4l9 27 27 9-27 9-9 27-9-27-27-9 27-9z' fill='none' stroke='%23d9c3ae' stroke-width='.8'/%3E%3C/svg%3E"); mask-image: linear-gradient(to left, #000, transparent 60%); -webkit-mask-image: linear-gradient(to left, #000, transparent 60%); }
.ph .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: end; }
.ph-copy { padding-bottom: var(--s-6); }
.ph-copy h1 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; margin: 16px 0 18px; }
.ph-copy p { color: var(--ink-2); font-size: 1.12rem; max-width: 52ch; opacity: 0; animation: fadeUp .9s var(--ease-expo) .45s forwards; }
.ph-copy .ph-extra { margin-top: 28px; opacity: 0; animation: fadeUp .9s var(--ease-expo) .6s forwards; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--t-xs); color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--anar); }
.crumbs span[aria-hidden] { opacity: .5; }
.ph-art { position: relative; justify-self: end; width: min(100%, 460px); }
.ph-arch { aspect-ratio: 4 / 5; border-radius: var(--r-arch); overflow: hidden; background: var(--sand); clip-path: inset(100% 0 0 0 round 999px 999px 22px 22px); animation: archIn 1.3s var(--ease-expo) .1s forwards; }
.ph-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); animation: imgIn 1.8s var(--ease-expo) .1s forwards; }
@keyframes archIn { to { clip-path: inset(0 0 0 0 round 999px 999px 22px 22px); } }
@keyframes imgIn { to { transform: scale(1); } }
.ph-seal { position: absolute; bottom: 40px; right: -48px; width: 124px; height: 124px; border-radius: 50%; background: var(--saffron); color: var(--anar-deep); display: grid; place-items: center; box-shadow: var(--sh-md); opacity: 0; animation: sealIn 1s var(--ease-expo) .9s forwards; }
.ph-seal svg.ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.ph-seal .ico { width: 32px; height: 32px; }
@keyframes sealIn { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
.ph-line { position: absolute; top: 14%; left: -30px; width: 1px; height: 70%; background: var(--line); }
@media (max-width: 860px) {
  .ph { padding-top: 140px; }
  .ph .wrap { grid-template-columns: 1fr; gap: var(--s-6); }
  .ph-art { justify-self: stretch; width: 100%; }
  .ph-arch { aspect-ratio: 16 / 11; border-radius: 180px 180px 18px 18px; clip-path: none; animation: fadeUp 1s var(--ease-expo) both; }
  .ph-seal { width: 96px; height: 96px; right: auto; left: 16px; bottom: -30px; }
  .ph-copy { padding-bottom: 0; }
}

/* ---------- بخش‌ها ---------- */
.sec { padding-block: var(--s-9); }
.sec-tight { padding-block: var(--s-8); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; margin-top: 10px; }
.sec-head p { color: var(--muted); max-width: 48ch; }

/* نوار اعتماد */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-i { display: flex; gap: 14px; align-items: center; padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.trust-i:first-child { border: 0; padding-inline-start: 0; }
.trust-i .ico { color: var(--anar); width: 30px; height: 30px; }
.trust-i b { display: block; font-size: var(--t-sm); }
.trust-i span { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust-i:nth-child(3) { border: 0; padding-inline-start: 0; } .trust-i { padding: 18px 12px; } }

/* دسته‌بندی طاقی */
.arches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; }
.arch { display: block; position: relative; }
.arch:nth-child(odd) { margin-bottom: 44px; }
.arch-img { aspect-ratio: 3 / 4.3; border-radius: var(--r-arch); overflow: hidden; background: var(--sand); position: relative; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.arch:hover .arch-img img { transform: scale(1.07); }
.arch-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(0.3 0.04 30 / .08); }
.arch h3 { margin-top: 16px; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.arch h3 small { font-family: var(--f-display); font-size: 1rem; color: var(--muted); font-weight: 500; }
.arch .go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease-expo); }
.arch:hover .go { background: var(--anar); color: var(--on-dark); border-color: var(--anar); transform: rotate(-45deg); }
@media (max-width: 960px) { .arches { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .arch { scroll-snap-align: start; } .arch:nth-child(odd) { margin: 0; } }

/* کارت محصول */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: transparent; padding: 8px 18px; border-radius: 999px; font-size: var(--t-sm); font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.tab:hover { border-color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.rail > * { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.pc { position: relative; display: flex; flex-direction: column; }
.pc-media { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo), opacity .4s; }
.pc:hover .pc-media img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--on-dark); color: var(--anar); }
.pc-badge.sale { background: var(--anar); color: var(--on-dark); }
.pc-fav { position: absolute; top: 8px; left: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: oklch(0.98 0.01 60 / .85); display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .3s var(--ease-expo); }
.pc-fav.on { color: var(--anar); } .pc-fav.on svg { fill: currentColor; }
.pc-fav:active { transform: scale(.85); }
.pc-add { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 1; transform: translateY(calc(100% + 14px)); transition: transform .5s var(--ease-expo); }
.pc-add .btn { width: 100%; }
.pc:hover .pc-add, .pc:focus-within .pc-add { transform: none; }
@media (hover: none) { .pc-add { position: static; transform: none; margin-top: 12px; } .pc-add .btn { background: transparent; color: var(--anar); } }
.pc-body { padding-top: 14px; display: grid; gap: 4px; }
.pc-cat { font-size: var(--t-xs); color: var(--muted); }
.pc-name { font-weight: 600; font-size: 1rem; line-height: 1.6; }
.pc-name a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.pc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: var(--t-xs); color: var(--muted); }
.price del { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--muted); }
.rating .ico { color: var(--saffron-2); fill: var(--saffron-2); }
.pc-out .pc-media img { opacity: .5; }

/* ویدئو */
.vid { position: relative; background: var(--anar-deep); color: var(--on-dark); overflow: hidden; padding-block: var(--s-9); }
.vid .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: center; }
.vid h2 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; margin: 14px 0 20px; }
.vid p { color: var(--on-dark-2); max-width: 44ch; }
.vid .eyebrow { color: var(--saffron); }
.vid-facts { display: flex; gap: 36px; margin-top: 36px; }
.vid-facts b { display: block; font-family: var(--f-display); font-size: 2.6rem; color: var(--saffron); line-height: 1; font-weight: 600; }
.vid-facts span { font-size: var(--t-xs); color: var(--on-dark-2); }
.vid-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 240px 240px 24px 24px; overflow: hidden; background: oklch(0.18 0.04 20); transform: scale(.94); transition: transform 1.4s var(--ease-expo), border-radius 1.4s var(--ease-expo); }
.vid-frame.in { transform: none; border-radius: 40px; }
.vid-frame video { width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; border: 0; background: oklch(0.98 0.01 60 / .92); color: var(--anar-deep); height: 54px; padding: 0 8px 0 22px; border-radius: 99px; font-weight: 700; font-size: var(--t-sm); transition: transform .3s var(--ease-expo); }
.vid-play:hover { transform: scale(1.04); }
.vid-play i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--anar); color: var(--on-dark); font-style: normal; }
.vid-bar { position: absolute; inset-inline: 24px; top: 24px; height: 3px; border-radius: 3px; background: oklch(1 0 0 / .25); overflow: hidden; }
.vid-bar i { display: block; height: 100%; background: var(--saffron); transform-origin: right; transform: scaleX(0); }
@media (max-width: 900px) { .vid .wrap { grid-template-columns: 1fr; } .vid-frame { border-radius: 140px 140px 20px 20px; } }

/* بنر اسلایدی */
.bn { position: relative; }
.bn-view { overflow: hidden; border-radius: var(--r-lg); }
.bn-track { display: flex; transition: transform .9s var(--ease-expo); }
.bn-item { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.bn-item .bn-img { position: relative; overflow: hidden; }
.bn-item .bn-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-copy { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.bn-copy h3 { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; }
.bn-copy p { opacity: .82; }
.tone-anar { background: var(--anar); color: var(--on-dark); }
.tone-sand { background: var(--sand); color: var(--anar-deep); }
.tone-olive { background: oklch(0.42 0.06 125); color: var(--on-dark); }
.tone-ink { background: oklch(0.2 0.03 25); color: var(--on-dark); }
.tone-sand .btn-light { --b: var(--anar-deep); color: var(--on-dark); }
.bn-nav { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.bn-nav button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--sand); padding: 0; transition: background-color .3s, transform .3s var(--ease-expo); }
.bn-nav button.is-on { background: var(--anar); transform: scaleX(2.6); }
@media (max-width: 760px) { .bn-item { grid-template-columns: 1fr; } .bn-item .bn-img { aspect-ratio: 16/10; } }

/* داستان مواد اولیه */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.story-img { position: relative; }
.story-img .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; }
.story-img .main img { width: 100%; height: 100%; object-fit: cover; }
.story-img .float { position: absolute; width: 44%; aspect-ratio: 1; left: -8%; bottom: -8%; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--sh-md); }
.story-img .float img { width: 100%; height: 100%; object-fit: cover; }
.ingr { list-style: none; padding: 0; margin: 36px 0 0; }
.ingr li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.ingr li:last-child { border-bottom: 1px solid var(--line); }
.ingr .n { font-family: var(--f-display); font-size: 2.4rem; color: var(--anar); line-height: 1; }
.ingr h4 { font-size: 1.1rem; margin-bottom: 4px; }
.ingr p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-img { max-width: 480px; margin-inline: auto 8%; } }

/* نظرات */
.quotes { position: relative; text-align: center; max-width: 900px; margin-inline: auto; }
.quote { display: none; }
.quote.is-on { display: block; animation: fadeUp .8s var(--ease-expo); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.45; font-weight: 500; }
.quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); font-size: var(--t-sm); }
.quote .stars { color: var(--saffron-2); display: inline-flex; gap: 2px; margin-bottom: 18px; }
.quote .stars svg { fill: currentColor; }
.q-mark { color: var(--anar); margin: 0 auto 10px; opacity: .9; }
.q-nav { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.q-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.q-nav button:hover { background: var(--ink); color: var(--on-dark); }

/* آکادمی */
.acad { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-7); }
.post-big { display: block; }
.post-big .im { aspect-ratio: 16/11; border-radius: var(--r-lg); overflow: hidden; }
.post-big .im img, .post-row .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.post-big:hover img, .post-row:hover img { transform: scale(1.05); }
.post-big h3 { font-family: var(--f-display); font-size: 2.1rem; font-weight: 600; margin: 18px 0 8px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--muted); }
.meta .pill { color: var(--anar); font-weight: 700; }
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 1fr 132px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.post-row:first-child { padding-top: 0; }
.post-row .im { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.post-row h4 { font-size: 1.08rem; margin: 6px 0; line-height: 1.6; transition: color .2s; }
.post-row:hover h4 { color: var(--anar); }
@media (max-width: 900px) { .acad { grid-template-columns: 1fr; } }

/* باشگاه CTA */
.clubcta { background: var(--anar); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); position: relative; overflow: hidden; isolation: isolate; }
.clubcta::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -140px; top: -160px; border-radius: 50%; border: 1px solid oklch(1 0 0 / .14); box-shadow: 0 0 0 60px oklch(1 0 0 / .03), 0 0 0 120px oklch(1 0 0 / .025); }
.clubcta h2 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; margin: 12px 0 16px; }
.clubcta .eyebrow { color: var(--saffron); }
.clubcta p { color: oklch(0.9 0.03 30); max-width: 44ch; margin-bottom: 28px; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: center; }
.ladder li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: oklch(0.36 0.12 18); }
.ladder li:nth-child(2) { margin-inline-end: 6%; } .ladder li:nth-child(3) { margin-inline-end: 12%; } .ladder li:nth-child(4) { margin-inline-end: 18%; background: var(--saffron); color: var(--anar-deep); }
.ladder .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / .1); }
.ladder b { display: block; } .ladder span { font-size: var(--t-xs); opacity: .8; }
.ladder em { font-style: normal; font-size: var(--t-xs); font-weight: 700; }
@media (max-width: 900px) { .clubcta { grid-template-columns: 1fr; } .ladder li { margin: 0 !important; } }

/* فوتر */
.footer { background: var(--anar-deep); color: var(--on-dark-2); padding-top: var(--s-9); margin-top: var(--s-9); position: relative; }
.footer::before { content: ''; position: absolute; top: -1px; inset-inline: 0; height: 60px; background: var(--bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid oklch(1 0 0 / .1); }
.footer .logo { color: var(--on-dark); margin-bottom: 18px; }
.footer h4 { color: var(--on-dark); font-size: var(--t-sm); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.footer a:hover { color: var(--saffron); }
.footer p { font-size: var(--t-sm); max-width: 40ch; }
.news { display: flex; gap: 6px; margin-top: 20px; background: oklch(1 0 0 / .06); border-radius: 99px; padding: 5px; max-width: 380px; }
.news input { flex: 1; border: 0; background: transparent; padding: 0 16px; color: var(--on-dark); min-width: 0; }
.news input::placeholder { color: oklch(0.75 0.03 40); }
.news input:focus { outline: none; }
.f-bot { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; font-size: var(--t-xs); gap: 16px; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid oklch(1 0 0 / .15); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.socials a:hover { background: var(--saffron); color: var(--anar-deep); }
.seals { display: flex; gap: 10px; margin-top: 22px; }
.seals span { width: 72px; height: 80px; border-radius: 12px; background: oklch(1 0 0 / .06); display: grid; place-items: center; text-align: center; font-size: 10px; line-height: 1.4; padding: 6px; }
.seals .ico { width: 26px; height: 26px; color: var(--saffron); margin: 0 auto 4px; display: block; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr 1fr; } .f-top > :first-child { grid-column: 1 / -1; } }

/* ---------- فرم‌ها ---------- */
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; height: 58px; padding: 22px 18px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { height: 150px; resize: vertical; padding-top: 28px; line-height: 1.8; }
.field select { padding-top: 18px; appearance: none; }
.field label { position: absolute; right: 18px; top: 17px; color: var(--muted); font-size: var(--t-sm); pointer-events: none; transition: transform .3s var(--ease-expo), color .2s, font-size .3s; transform-origin: right; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--anar); box-shadow: 0 0 0 4px oklch(0.43 0.14 18 / .1); background: oklch(0.99 0.005 60); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { transform: translateY(-11px) scale(.78); color: var(--anar); }
.field.err input, .field.err textarea { border-color: var(--err); }
.field .hint { display: block; font-size: var(--t-xs); color: var(--err); margin-top: 6px; min-height: 0; }
.field .eye { position: absolute; left: 8px; top: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--anar); margin-top: 4px; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: var(--t-sm); display: none; gap: 10px; align-items: center; }
.alert.show { display: flex; animation: fadeUp .4s var(--ease-expo); }
.alert.err { background: oklch(0.95 0.03 25); color: oklch(0.45 0.16 25); }
.alert.ok { background: oklch(0.95 0.04 150); color: oklch(0.4 0.1 150); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- ورود و ثبت‌نام ---------- */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.05fr; background: var(--bg); }
.auth-art { position: relative; overflow: hidden; background: var(--anar-deep); color: var(--on-dark); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 5vw, 64px); }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.15); animation: authZoom 16s var(--ease) forwards; }
@keyframes authZoom { to { transform: scale(1); } }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0.18 0.05 18 / .92), oklch(0.2 0.05 18 / .35) 55%, oklch(0.2 0.05 18 / .15)); }
.auth-art h1 { font-family: var(--f-display); font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 600; max-width: 14ch; }
.auth-art p { color: var(--on-dark-2); max-width: 42ch; margin-top: 14px; opacity: 0; animation: fadeUp 1s var(--ease-expo) .7s forwards; }
.auth-art .logo { position: absolute; top: clamp(28px, 5vw, 56px); right: clamp(28px, 5vw, 64px); color: var(--on-dark); opacity: 0; animation: fadeUp .9s var(--ease-expo) .2s forwards; }
.orb { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.orb.o1 { width: 220px; height: 220px; left: 10%; top: 18%; background: radial-gradient(circle at 35% 35%, oklch(0.85 0.14 78 / .9), oklch(0.7 0.15 60 / 0) 70%); animation: float 9s ease-in-out infinite; }
.orb.o2 { width: 140px; height: 140px; left: 55%; top: 38%; background: radial-gradient(circle at 35% 35%, oklch(0.65 0.17 18 / .8), transparent 70%); animation: float 12s ease-in-out -3s infinite reverse; }
.girih { position: absolute; left: -80px; top: -80px; width: 360px; height: 360px; color: oklch(1 0 0 / .16); z-index: -1; animation: spin 60s linear infinite; }
@keyframes float { 50% { transform: translate(30px, -40px); } }
.auth-perks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; opacity: 0; animation: fadeUp 1s var(--ease-expo) .9s forwards; }
.auth-perks span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; background: oklch(1 0 0 / .1); font-size: var(--t-xs); border: 1px solid oklch(1 0 0 / .14); }
.auth-perks .ico { color: var(--saffron); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 110px clamp(20px, 5vw, 72px) 48px; position: relative; }
.auth-card { width: min(100%, 440px); display: grid; gap: 16px; }
.auth-card > * { opacity: 0; animation: slideIn .9s var(--ease-expo) forwards; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.auth-card h2 { font-family: var(--f-display); font-size: 2.6rem; font-weight: 600; }
.auth-switch { display: flex; padding: 5px; border-radius: 99px; background: var(--bg-2); position: relative; margin-bottom: 8px; }
.auth-switch a { flex: 1; text-align: center; padding: 10px; border-radius: 99px; font-weight: 600; font-size: var(--t-sm); position: relative; z-index: 1; color: var(--muted); }
.auth-switch a.is-on { color: var(--ink); }
.auth-switch::before { content: ''; position: absolute; top: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--bg); box-shadow: var(--sh-sm); right: 5px; transition: transform .5s var(--ease-expo); }
.auth-switch.reg::before { transform: translateX(-100%); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--t-xs); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.otp-btn { display: flex; gap: 10px; align-items: center; justify-content: center; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--saffron-2); }
.strength[data-s="3"] i:nth-child(-n+3) { background: oklch(0.7 0.13 110); }
.strength[data-s="4"] i { background: var(--ok); }
.auth-back { position: absolute; top: 28px; left: 28px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--muted); }
.auth-back:hover { color: var(--anar); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 340px; } .auth-panel { padding-top: 40px; } }

/* ---------- صفحه محصول ---------- */
.pd { padding: 150px 0 var(--s-8); background: var(--bg-2); position: relative; overflow: hidden; }
.pd .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.pd-gal { position: relative; }
.pd-main { aspect-ratio: 1; border-radius: var(--r-arch); overflow: hidden; background: var(--sand); animation: fadeUp 1s var(--ease-expo); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-expo); }
.pd-main:hover img { transform: scale(1.08); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pd-thumbs button { width: 74px; height: 74px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.pd-thumbs button.is-on { border-color: var(--anar); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; margin: 12px 0; }
.pd-info .lead { color: var(--ink-2); font-size: 1.08rem; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0; font-size: 2rem; font-weight: 800; }
.pd-price del { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pd-price .off { font-size: var(--t-xs); background: var(--anar); color: var(--on-dark); padding: 3px 10px; border-radius: 99px; align-self: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; height: 52px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { min-height: 52px; flex: 1; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.pd-meta div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.pd-meta .ico { color: var(--anar); }
.stock { font-size: var(--t-xs); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px oklch(0.58 0.12 150 / .15); }
.stock.low::before { background: var(--saffron-2); } .stock.out::before { background: var(--err); }
.pd-tabs { margin-top: var(--s-7); }
.pd-tabpanes { max-width: 75ch; margin-top: 28px; color: var(--ink-2); }
.pd-tabpanes > div { display: none; } .pd-tabpanes > div.is-on { display: block; animation: fadeUp .5s var(--ease-expo); }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .pd .wrap { grid-template-columns: 1fr; } .pd { padding-top: 120px; } }

/* فیلتر فروشگاه */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-bottom: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 18px; }
.tool-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.select { height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); padding: 0 16px 0 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23705a50' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; font-size: var(--t-sm); }
.sbox { display: flex; align-items: center; gap: 8px; height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 0 14px; }
.sbox input { border: 0; background: none; width: 180px; font-size: var(--t-sm); }
.sbox input:focus { outline: none; }
.count { font-size: var(--t-sm); color: var(--muted); }
.empty-state { text-align: center; padding: 80px 20px; display: grid; justify-items: center; gap: 14px; }
.empty-state .ico { width: 56px; height: 56px; color: var(--sand); }
.empty-state h3 { font-family: var(--f-display); font-size: 2rem; font-weight: 600; }
.empty-state p { color: var(--muted); max-width: 40ch; }

/* دسته‌ها */
.catrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-8); align-items: center; padding-block: var(--s-8); border-bottom: 1px solid var(--line); }
.catrow:nth-child(even) .catrow-img { order: 2; }
.catrow-img { aspect-ratio: 4/4.6; border-radius: var(--r-arch); overflow: hidden; }
.catrow-img img { width: 100%; height: 100%; object-fit: cover; }
.catrow h2 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; margin: 6px 0 12px; }
.catrow .en { font-size: var(--t-xs); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.mini a { display: block; }
.mini img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; width: 100%; margin-bottom: 8px; background: var(--bg-2); }
.mini b { font-size: var(--t-sm); display: block; line-height: 1.5; }
.mini span { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 860px) { .catrow { grid-template-columns: 1fr; gap: var(--s-5); } .catrow:nth-child(even) .catrow-img { order: 0; } .catrow-img { aspect-ratio: 16/11; } }

/* باشگاه */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tier { padding: 32px 26px; border-inline-start: 1px solid var(--line); position: relative; }
.tier:first-child { border: 0; }
.tier .gem { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--on-dark); margin-bottom: 22px; }
.tier h3 { font-family: var(--f-display); font-size: 2rem; font-weight: 600; }
.tier .min { font-size: var(--t-xs); color: var(--muted); }
.tier p { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-2); }
.tier.me { background: var(--anar-tint); }
.tier.me::after { content: 'سطح شما'; position: absolute; top: 18px; left: 18px; font-size: 11px; font-weight: 700; background: var(--anar); color: var(--on-dark); padding: 3px 10px; border-radius: 99px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.steps li { list-style: none; counter-increment: s; }
.steps li::before { content: counter(s, persian); display: block; font-family: var(--f-display); font-size: 4rem; color: var(--saffron-2); line-height: 1; margin-bottom: 12px; }
.steps h4 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: var(--t-sm); }
.calc { background: var(--anar-deep); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.calc h3 { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; }
.calc input[type=range] { width: 100%; accent-color: var(--saffron); margin: 18px 0; }
.calc .out { font-family: var(--f-display); font-size: 3.4rem; color: var(--saffron); line-height: 1.1; }
.mystatus { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--bg-2); border-radius: var(--r-lg); padding: 28px 32px; margin-bottom: var(--s-7); }
.prog { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; background: var(--anar); border-radius: inherit; transform-origin: right; animation: grow 1.6s var(--ease-expo); }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } .tier:nth-child(3) { border-inline-start: 0; } .tier { border-top: 1px solid var(--line); } .steps, .calc { grid-template-columns: 1fr; } .mystatus { grid-template-columns: 1fr; } }

/* مقاله */
.article { max-width: 72ch; margin-inline: auto; font-size: 1.1rem; line-height: 2.05; }
.article h3 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; margin: 36px 0 10px; }
.article p { margin-bottom: 20px; color: var(--ink-2); }
.article p:first-child::first-letter { font-family: var(--f-display); font-size: 3.6em; float: right; line-height: .9; margin: 8px 0 0 10px; color: var(--anar); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 28px; }
.acard .im { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.acard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.acard:hover img { transform: scale(1.05); }
.acard h3 { font-size: 1.2rem; line-height: 1.6; margin: 6px 0; }
.acard p { color: var(--muted); font-size: var(--t-sm); }

/* درباره */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; right: 64px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 128px 1fr; gap: 24px; padding: 18px 0; position: relative; }
.timeline li::after { content: ''; position: absolute; right: 59px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--anar); }
.timeline .y { font-family: var(--f-display); font-size: 1.9rem; color: var(--anar); line-height: 1.2; }
.timeline h4 { font-size: 1.1rem; }
.timeline p { color: var(--muted); font-size: var(--t-sm); }
.numbers { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.numbers b { font-family: var(--f-display); font-size: 3.4rem; color: var(--anar); font-weight: 600; display: block; line-height: 1.05; }
.numbers span { color: var(--muted); font-size: var(--t-sm); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: var(--s-6); } }

/* تماس */
.cinfo { display: grid; gap: 0; }
.cinfo a, .cinfo div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cinfo .ico { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--anar-tint); color: var(--anar); }
.cinfo small { display: block; color: var(--muted); font-size: var(--t-xs); }
.cinfo b { font-weight: 600; }
.map { margin-top: var(--s-6); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--sand); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.8); }

/* سوالات */
.faq-g h3 { font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; margin: 40px 0 8px; }
.acc { border-bottom: 1px solid var(--line); }
.acc button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: right; padding: 22px 0; border: 0; background: none; font-weight: 600; font-size: 1.05rem; }
.acc button .ico { transition: transform .4s var(--ease-expo); color: var(--anar); }
.acc.open button .ico { transform: rotate(45deg); }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-expo); }
.acc.open .body { grid-template-rows: 1fr; }
.acc .body > div { overflow: hidden; color: var(--ink-2); }
.acc .body p { padding-bottom: 22px; max-width: 70ch; }

/* سبد */
.cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-7); align-items: start; }
.ci { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.ci h4 { font-size: 1rem; line-height: 1.6; }
.ci .qty { height: 40px; margin-top: 8px; } .ci .qty button { width: 36px; }
.ci .rm { border: 0; background: none; color: var(--muted); font-size: var(--t-xs); display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }
.ci .rm:hover { color: var(--err); }
.summary { background: var(--bg-2); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 110px; display: grid; gap: 14px; }
.summary .row { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.summary .total { font-size: 1.25rem; font-weight: 800; padding-top: 14px; border-top: 1px dashed var(--line); }
.ship-bar { font-size: var(--t-xs); color: var(--ink-2); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }

/* حساب */
.otable { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.otable th { text-align: right; font-weight: 600; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: var(--t-xs); }
.otable td { padding: 16px 10px; border-bottom: 1px solid var(--line); }
.st { display: inline-flex; padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.st-delivered { background: oklch(0.94 0.05 150); color: oklch(0.42 0.1 150); }
.st-shipped { background: oklch(0.94 0.04 240); color: oklch(0.45 0.12 250); }
.st-processing { background: oklch(0.95 0.06 85); color: oklch(0.5 0.12 70); }
.st-pending { background: var(--bg-2); color: var(--ink-2); }
.st-cancelled { background: oklch(0.94 0.04 25); color: oklch(0.5 0.15 25); }

/* توست */
.toasts { position: fixed; bottom: 24px; left: 24px; z-index: var(--z-toast); display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--on-dark); padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: var(--sh-lg); font-size: var(--t-sm); animation: toastIn .5s var(--ease-expo); max-width: 360px; }
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.toast .ico { color: var(--saffron); }
.toast.out { animation: toastOut .3s var(--ease-in) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--anar); color: var(--on-dark); display: grid; place-items: center; box-shadow: var(--sh-md); transform: translateY(90px); transition: transform .5s var(--ease-expo); }
.to-top.on { transform: none; }
.to-top svg { transform: rotate(90deg); }
.skel { background: linear-gradient(90deg, var(--bg-2), var(--sand), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================
   ریسپانسیو موبایل (تلفن‌ها و صفحات کوچک)
   ============================================================ */
@media (max-width: 600px) {
  .wrap { width: min(100% - 30px, var(--wrap)); }

  /* هدر و ناوبری */
  .nav { height: 58px; padding-inline: 12px 14px; width: min(100% - 20px, 1320px); gap: 6px; }
  .logo { font-size: 1.5rem; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo small { font-size: .5rem; letter-spacing: .24em; }
  .icon-btn { width: 40px; height: 40px; }
  .drawer { padding: 96px 22px 32px; gap: 20px; }
  .drawer nav a { font-size: 1.9rem; line-height: 1.35; }
  .drawer-close { top: 52px; }
  .search-pop input { height: 48px; font-size: 1rem; }

  /* فاصله بخش‌ها و تیترها */
  .sec { padding-block: var(--s-8); }
  .sec-tight { padding-block: var(--s-7); }
  .sec-head { margin-bottom: var(--s-6); gap: 12px; }
  /* PLACEHOLDER_RESP_1 */

  /* هیرو صفحه اصلی */
  .hs { min-height: 540px; }
  .hs-copy { bottom: 108px; width: calc(100% - 32px); inset-inline-start: 16px; }
  .hs-copy h1 { margin: 12px 0 16px; }
  .hs-copy p { margin-bottom: 24px; }
  .hs-ui .wrap { gap: 14px; }

  /* هدر داخلی صفحات */
  .ph { padding-top: 116px; padding-bottom: var(--s-7); }
  .ph .wrap { gap: var(--s-5); }
  .ph-seal { width: 78px; height: 78px; }
  .ph-seal .ico { width: 24px; height: 24px; }

  /* شبکه محصولات: دو ستونه در موبایل */
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .pc-body { padding-top: 10px; }
  .pc-name { font-size: .92rem; }
  .pc-add { position: static; transform: none; margin-top: 10px; }

  /* شبکه‌های عمومی → دو ستونه فشرده */
  .mini, .steps, .tiers, .pd-meta { grid-template-columns: 1fr 1fr; }
  .arches { grid-template-columns: repeat(4, 76%); }
  /* PLACEHOLDER_RESP_2 */

  /* فوتر */
  .f-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .f-top > :first-child { grid-column: auto; }
  .f-bot { flex-direction: column; align-items: flex-start; gap: 10px; text-align: right; }

  /* فرم‌ها و صفحه ورود */
  .auth-panel { padding: 90px 22px 40px; }
  .auth-card h2 { font-size: 2.1rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* سبد خرید */
  .ci { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .ci img { width: 64px; height: 64px; }
  .ci h4 { font-size: .95rem; }
  .summary { padding: 22px; position: static; }

  /* جدول سفارش‌ها */
  .otable th, .otable td { padding: 12px 6px; }
  .otable { font-size: var(--t-xs); }

  /* تایم‌لاین باشگاه */
  .timeline li { grid-template-columns: 88px 1fr; gap: 16px; }

  /* بلوک‌های تیره با پدینگ زیاد */
  .clubcta, .calc { padding: 28px 22px; }

  /* توست و دکمه بازگشت به بالا */
  .toasts { left: 14px; right: 14px; bottom: 16px; }
  .toast { max-width: none; }
  .to-top { left: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* صفحه‌های بسیار کوچک (≤400px) */
@media (max-width: 400px) {
  .pgrid { grid-template-columns: 1fr; gap: 22px; }
  .mini, .steps, .tiers, .pd-meta { grid-template-columns: 1fr; }
  .hs-copy h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .ph-copy h1, .sec-head h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .drawer nav a { font-size: 1.7rem; }
  .btn { padding: 0 20px; }
}
