@font-face { font-family: Vazir; src: url(fonts/vazir-arabic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazir; src: url(fonts/vazir-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --f9: #06231a; --f8: #0a3326; --f7: #0e4433; --f6: #135a43; --leaf: #1f7a52; --leaf2: #2f9a62; --leaf-l: #9fd4b2;
  --mint: #e4f1e6; --cream: #f8f5ec; --cream2: #efe8d6; --paper: #fffdf8;
  --gold: #e9b949; --gold2: #f7d47e; --gold-l: #fff4d6; --soil: #6b4a2e;
  --purple: #6a1b7a; --purple-l: #f3e8f6;
  --ink: #14231b; --muted: #5f6b62; --line: #e7e0cf; --red: #b4382d;
  --r-xl: 34px; --r-lg: 28px; --r: 20px; --r-sm: 14px;
  --sh-1: 0 1px 2px rgba(10, 51, 38, .05), 0 6px 18px rgba(10, 51, 38, .07);
  --sh-2: 0 2px 6px rgba(10, 51, 38, .06), 0 24px 50px -16px rgba(10, 51, 38, .3);
  --sh-3: 0 40px 80px -30px rgba(6, 35, 26, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Vazir, Tahoma, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.85; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.center { text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--leaf); background: var(--mint); padding: 4px 14px; border-radius: 99px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kicker-dark { background: rgba(255, 255, 255, .1); color: var(--gold2); }
.kicker-gold { background: rgba(233, 185, 73, .16); color: var(--gold2); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.head { margin-bottom: 34px; }
.head h2, .shop-head h2 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 900; color: var(--f8); margin-top: 12px; letter-spacing: -.4px; }
.head p { margin: 10px auto 0; color: var(--muted); max-width: 560px; }

/* ——— ظاهرشدن سه‌بعدی هنگام اسکرول ——— */
.js [data-reveal] { opacity: 0; transform: perspective(900px) translateY(36px) rotateX(10deg); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ——— دکمه‌ها ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 18px; font-weight: 800; font-size: 16.5px; border: 0; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--f6); color: #fff; box-shadow: 0 12px 26px -10px rgba(19, 90, 67, .6); }
.btn-primary:hover { background: var(--f7); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--f9); box-shadow: 0 14px 30px -10px rgba(233, 185, 73, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(233, 185, 73, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

/* ——— هدر ——— */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.nav.scrolled { background: rgba(248, 245, 236, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(10, 51, 38, .35); }
.nav-in { display: flex; align-items: center; gap: 14px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 50px; height: 50px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); flex: none; }
.brand img { width: 40px; height: 30px; object-fit: contain; }
.brand b { display: block; font-size: 20px; font-weight: 900; line-height: 1.25; }
.brand small { display: block; font-size: 12px; opacity: .75; line-height: 1.3; }
.nav.scrolled .brand b { color: var(--purple); }
.links { display: none; gap: 2px; margin-inline-start: auto; }
.links a { padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; opacity: .92; transition: background .2s; }
.links a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.nav.scrolled .links a:hover { background: var(--mint); color: var(--f7); }
.nav-call { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); transition: background .2s; }
.nav-call:hover { background: rgba(255, 255, 255, .24); }
.nav.scrolled .nav-call { background: var(--mint); color: var(--f7); box-shadow: none; }
.nav-call span { letter-spacing: .5px; }
.cart-btn { position: relative; display: grid; place-items: center; border: 0; background: var(--gold); color: var(--f9); width: 46px; height: 46px; border-radius: 14px; font-weight: 800; box-shadow: 0 10px 22px -10px rgba(233, 185, 73, .9); flex: none; }
.cart-btn .ic { width: 22px; height: 22px; }
.cart-btn b[hidden] { display: none; }
.cart-btn b { position: absolute; top: -6px; left: -6px; background: var(--f8); color: #fff; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; border: 2px solid var(--cream); }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-6deg); } }

/* ——— هیرو ——— */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--f9); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(270deg, rgba(6, 35, 26, .92) 0%, rgba(6, 35, 26, .72) 42%, rgba(6, 35, 26, .25) 100%),
  linear-gradient(0deg, rgba(6, 35, 26, .95) 0%, transparent 35%),
  radial-gradient(60% 50% at 25% 45%, rgba(233, 185, 73, .18), transparent 70%); }
@keyframes kenburns { to { transform: scale(1.18) translate(-1.5%, 1%); } }
.hero-in { position: relative; display: grid; gap: 10px; padding: 112px 0 64px; align-items: center; min-height: min(100svh, 920px); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); color: var(--gold2); font-weight: 800; font-size: 13.5px; padding: 7px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 8.6vw, 68px); font-weight: 900; letter-spacing: -1px; line-height: 1.28; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold2), var(--gold) 50%, #ffe6a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 18px 0 0; color: rgba(255, 255, 255, .84); font-size: 18px; max-width: 540px; }
.lead b { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row .btn { flex: 1 1 200px; }
.stats { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm); padding: 12px 10px; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stats b { display: block; font-size: 24px; font-weight: 900; color: var(--gold2); line-height: 1.3; }
.stats span { font-size: 12.5px; color: rgba(255, 255, 255, .75); font-weight: 600; }

.hero-stage { position: relative; height: 440px; margin: 0 -16px; }
.stage-glow { position: absolute; inset: 12% 10% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 185, 73, .35), rgba(47, 154, 98, .18) 55%, transparent 75%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
#scene3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity 1.2s; cursor: grab; }
#scene3d:active { cursor: grabbing; }
.is-3d #scene3d { opacity: 1; }
.is-3d .stage-fallback { opacity: 0; pointer-events: none; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s; }
.sf { position: absolute; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); animation: floaty 6s ease-in-out infinite; }
.sf1 { height: 62%; transform: translateX(32%) rotate(-6deg); }
.sf2 { height: 56%; transform: translateX(-34%) rotate(5deg); animation-delay: -2s; }
.sf3 { height: 50%; bottom: 14%; animation-delay: -4s; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.stage-hint { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .8); background: rgba(6, 35, 26, .45); padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(6px); white-space: nowrap; pointer-events: none; }
.is-3d .stage-hint { display: inline-flex; animation: fade 1s 1.5s both; }
.pick { position: absolute; bottom: 3%; left: 16px; display: flex; align-items: center; gap: 10px; background: rgba(255, 253, 248, .95); color: var(--ink); border-radius: 18px; padding: 8px 14px 8px 10px; box-shadow: var(--sh-3); border: 0; text-align: start; animation: floaty 6s ease-in-out infinite; z-index: 2; }
.pick img { width: 44px; height: 52px; object-fit: contain; }
.pick b { display: block; font-size: 14px; font-weight: 800; line-height: 1.5; }
.pick small { display: block; font-size: 12.5px; color: var(--leaf); font-weight: 800; line-height: 1.4; }
.pick em { font-style: normal; display: block; font-size: 11px; color: var(--purple); font-weight: 900; }
.scroll-cue { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .5); display: none; }
.scroll-cue i { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ——— نوار متحرک ——— */
.ribbon { position: relative; z-index: 2; background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold)); color: var(--f9); overflow: hidden; transform: rotate(-1.6deg) scale(1.04); margin: -22px 0 0; box-shadow: 0 16px 30px -18px rgba(6, 35, 26, .6); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 18px; padding: 14px 0 14px 18px; font-weight: 900; font-size: 17px; white-space: nowrap; }
.ribbon span::after { content: "✦"; font-size: 14px; opacity: .6; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ——— نیازها ——— */
.needs { padding: 90px 0 20px; }
.need-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; perspective: 1000px; }
.need { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-align: start; background: var(--f8); box-shadow: var(--sh-2); transform-style: preserve-3d; isolation: isolate; }
.need img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.need::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 35, 26, 0) 30%, rgba(6, 35, 26, .88)); transition: background .3s; }
.need:hover img { transform: scale(1.08); }
.need-in { position: absolute; inset: auto 0 0; padding: 16px; transform: translateZ(40px); }
.need b { display: block; font-size: 17px; font-weight: 900; line-height: 1.45; }
.need small { display: block; font-size: 12.5px; opacity: .85; line-height: 1.6; }
.need-go { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(6, 35, 26, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateZ(30px); transition: background .2s, color .2s; }
.need:hover .need-go { background: var(--gold); color: var(--f9); }
.need.on { box-shadow: 0 0 0 4px var(--gold), var(--sh-2); }
.need.on .need-go { background: var(--gold); color: var(--f9); }

/* افکت چرخش سه‌بعدی با موس */
[data-tilt] { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --go: 0; transition: transform .5s var(--ease), box-shadow .3s; }
.js [data-tilt][data-reveal].in, [data-tilt].tilting { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
[data-tilt].tilting { transition: transform .08s linear, box-shadow .3s; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: var(--go); transition: opacity .3s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .35), transparent 55%); mix-blend-mode: soft-light; }

/* ——— فروشگاه ——— */
.shop { padding: 80px 0 30px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: #33453b; padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: 14.5px; transition: background .2s, color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--leaf-l); }
.chip.on { background: var(--f8); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 51, 38, .8); }
.need-on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; font-size: 15px; color: var(--muted); }
.need-on[hidden] { display: none; }
.need-on button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--purple-l); color: var(--purple); font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.need-on .ic { width: 15px; height: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { position: relative; background: var(--paper); border-radius: var(--r-lg); display: flex; flex-direction: column; box-shadow: var(--sh-1); border: 1px solid var(--line); transform-style: preserve-3d; animation: rise .6s var(--ease) backwards; }
.card:hover { box-shadow: var(--sh-2); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.pic { position: relative; aspect-ratio: 1 / 1.02; border-radius: calc(var(--r-lg) - 6px); margin: 6px; transform-style: preserve-3d;
  background: radial-gradient(70% 55% at 50% 40%, color-mix(in srgb, var(--tint, #9fd4b2) 38%, #fff) 0%, color-mix(in srgb, var(--tint, #9fd4b2) 18%, var(--cream)) 70%); }
.pic::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 35, 26, .35), transparent); transform: translateZ(10px); transition: transform .5s var(--ease), opacity .5s; }
.pic img { position: absolute; inset: 9% 12% 13%; width: 76%; height: 78%; object-fit: contain; object-position: bottom; transform: translateZ(30px); transition: transform .6s var(--ease); filter: drop-shadow(0 10px 10px rgba(6, 35, 26, .18)); }
.card:hover .pic img { transform: translateZ(70px) translateY(-8px) scale(1.04); }
.card:hover .pic::before { transform: translateZ(10px) scale(.85); opacity: .7; }
.card.out .pic img { filter: grayscale(.5) drop-shadow(0 10px 10px rgba(6, 35, 26, .18)); opacity: .82; }
.size { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .9); color: var(--f7); font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 99px; box-shadow: var(--sh-1); transform: translateZ(40px); }
.state { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--gold-l); color: #8a5a00; transform: translateZ(40px); }
.card-body { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; transform: translateZ(20px); }
.card h3 { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.65; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .line { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.buy { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 17px; font-weight: 900; color: var(--f8); line-height: 1.3; }
.price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.price.ask { font-size: 13px; color: var(--purple); font-weight: 800; line-height: 1.5; }
.add { position: relative; z-index: 4; width: 46px; height: 46px; flex: none; border-radius: 15px; border: 0; background: var(--f6); color: #fff; display: grid; place-items: center; transition: background .2s, transform .25s var(--ease); box-shadow: 0 10px 18px -8px rgba(19, 90, 67, .8); }
.add:hover { background: var(--f7); transform: scale(1.08) rotate(-4deg); }
.add .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.add.ask { background: var(--purple-l); color: var(--purple); box-shadow: none; }
.add.in-cart { background: var(--gold); color: var(--f9); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ——— کاتالوگ سه‌بعدی ——— */
.catalog { position: relative; margin-top: 70px; padding: 84px 0 70px; color: #fff; overflow: hidden; background:
  radial-gradient(60% 50% at 50% 100%, rgba(47, 154, 98, .35), transparent 70%),
  radial-gradient(40% 40% at 85% 10%, rgba(233, 185, 73, .14), transparent 70%),
  linear-gradient(180deg, var(--f9), var(--f8)); }
.catalog .head h2 { color: #fff; }
.catalog .head p { color: rgba(255, 255, 255, .72); }
.catalog .head { margin-bottom: 10px; }
.ring-stage { --w: 190px; position: relative; height: calc(var(--w) * 1.78 + 90px); perspective: 1500px; perspective-origin: 50% 30%; touch-action: pan-y; user-select: none; cursor: grab; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; top: 40px; left: 50%; width: var(--w); height: calc(var(--w) * 1.778); margin-left: calc(var(--w) / -2); transform-style: preserve-3d; transition: transform 1s var(--ease); }
.ring.drag { transition: none; }
.ring-item { position: absolute; inset: 0; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--f7); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: filter .6s, opacity .6s; filter: brightness(.55) saturate(.8); }
.ring-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-item.front { filter: none; box-shadow: 0 0 0 3px var(--gold), 0 40px 70px -20px rgba(0, 0, 0, .8); }
.ring-floor { position: absolute; left: 50%; bottom: 16px; width: min(900px, 120%); height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 185, 73, .3), rgba(47, 154, 98, .15) 60%, transparent); filter: blur(6px); }
.ring-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; position: relative; z-index: 2; }
.ring-ctl button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background .2s; }
.ring-ctl button:hover { background: var(--gold); color: var(--f9); }
.ring-ctl .ic { width: 24px; height: 24px; }
#ringName { min-width: 190px; text-align: center; font-weight: 800; font-size: 16px; color: var(--gold2); }

/* ——— چرا کروا ——— */
.why { padding: 100px 0 40px; display: grid; gap: 50px; align-items: center; }
.why-art { position: relative; height: 420px; perspective: 1200px; }
.why-photo { position: absolute; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); border: 6px solid var(--paper); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo.p1 { inset: 0 0 18% 22%; }
.why-photo.p2 { inset: 42% 46% 0 0; transform: rotate(-4deg); }
.why-badge { position: absolute; top: 8%; left: 2%; z-index: 5; width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(145deg, var(--gold2), var(--gold)); color: var(--f9); display: grid; place-content: center; text-align: center; box-shadow: var(--sh-2); animation: spinIn 1s var(--ease) both, floaty 6s 1s ease-in-out infinite; }
.why-badge b { font-size: 30px; font-weight: 900; line-height: 1.1; }
.why-badge span { font-size: 11.5px; font-weight: 800; line-height: 1.5; }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
.why-text .head { margin-bottom: 22px; }
.why-text .head p { margin-inline: 0; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.why-list li:hover { transform: translateX(-6px); box-shadow: var(--sh-1); }
.why-list .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--mint); color: var(--leaf); }
.why-list li:nth-child(2) .ic { background: var(--gold-l); color: #9a6a00; }
.why-list li:nth-child(3) .ic { background: var(--purple-l); color: var(--purple); }
.why-list li:nth-child(4) .ic { background: #efe3d6; color: var(--soil); }
.why-list b { display: block; font-size: 16px; font-weight: 900; color: var(--f8); }
.why-list span { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ——— نوار عکس سه‌بعدی ——— */
.reel { padding: 50px 0 70px; overflow: hidden; perspective: 1100px; }
.reel-tilt { transform: rotateX(18deg) rotateZ(-4deg) rotateY(-10deg); transform-style: preserve-3d; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.reel img { width: 260px; height: 180px; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 40px -24px rgba(6, 35, 26, .6); }
.reel img:nth-child(even) { transform: translateY(26px); }

/* ——— کودفروشی‌ها ——— */
.dealers { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 90px 0; }
.dealers-bg { position: absolute; inset: 0; z-index: -1; }
.dealers-bg img { width: 100%; height: 100%; object-fit: cover; }
.dealers-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 35, 26, .88), rgba(10, 51, 38, .78) 50%, rgba(6, 35, 26, .94)); }
.dealers-in { display: grid; gap: 40px; align-items: center; }
.dealers h2 { font-size: clamp(28px, 4.8vw, 44px); font-weight: 900; margin-top: 14px; }
.dealers h2 em { font-style: normal; color: var(--gold2); }
.dealers-text p { color: rgba(255, 255, 255, .82); margin: 14px 0 0; max-width: 520px; }
.dealers .cta-row .btn { flex: 0 1 auto; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; perspective: 1000px; }
.perks li { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); padding: 18px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform-style: preserve-3d; }
.perk-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, var(--gold2), var(--gold)); color: var(--f9); margin-bottom: 12px; transform: translateZ(30px); box-shadow: 0 12px 20px -10px rgba(233, 185, 73, .8); }
.perk-ic .ic { width: 24px; height: 24px; }
.perks b { display: block; font-size: 16px; font-weight: 900; line-height: 1.5; transform: translateZ(20px); }
.perks li > span:last-child { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.7; margin-top: 4px; }

/* ——— نحوه‌ی سفارش ——— */
.how { padding: 90px 0 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px 22px; box-shadow: var(--sh-1); overflow: hidden; }
.steps .n { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--f6); color: #fff; font-weight: 900; font-size: 22px; margin-bottom: 12px; box-shadow: 0 12px 20px -10px rgba(19, 90, 67, .8); }
.steps li:nth-child(2) .n { background: var(--purple); box-shadow: 0 12px 20px -10px rgba(106, 27, 122, .7); }
.steps li:nth-child(3) .n { background: var(--gold); color: var(--f9); box-shadow: 0 12px 20px -10px rgba(233, 185, 73, .9); }
.steps b { font-size: 19px; font-weight: 900; color: var(--f8); }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ——— تماس ——— */
.contact { padding: 70px 0 0; }
.contact-box { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 40px 22px; color: #fff; display: grid; gap: 28px; align-items: center; background: var(--f8); box-shadow: var(--sh-3); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(6, 35, 26, .94) 10%, rgba(10, 51, 38, .7) 70%, rgba(10, 51, 38, .45)); }
.slogan { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--gold2); direction: ltr; display: inline-block; }
.contact-box h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-top: 8px; }
.contact-box p { margin: 10px 0 0; opacity: .86; max-width: 540px; }
.big-phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 10px 22px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .25s var(--ease); }
.big-phone:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.bp-ic { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--gold); color: var(--f9); animation: ring 2.4s ease-in-out infinite; }
.bp-ic .ic { width: 26px; height: 26px; }
@keyframes ring { 0%, 60%, 100% { transform: none; } 65%, 75%, 85% { transform: rotate(-12deg); } 70%, 80% { transform: rotate(12deg); } }
.big-phone small { display: block; font-size: 13px; opacity: .8; line-height: 1.4; }
.big-phone b { display: block; font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: 1px; line-height: 1.3; }
.contact-btns { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-btns .btn { min-height: 58px; }
.contact-btns .soon { grid-column: 1 / -1; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .35); border-radius: 16px; padding: 14px; text-align: center; font-size: 14.5px; margin: 0; }

/* ——— فوتر ——— */
.foot { margin-top: 80px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--f9); color: rgba(255, 255, 255, .8); }
.foot-in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.foot-brand { text-align: start; color: #fff; }
.foot-brand b { font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-weight: 700; font-size: 14.5px; }
.foot-links a:hover { color: var(--gold2); }
.foot-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gold2); font-weight: 900; font-size: 18px; letter-spacing: .5px; }
.copy { opacity: .6; font-size: 13px; }
.credit { margin-top: -10px; font-size: 13px; opacity: .75; }
.credit b { color: var(--gold2); font-weight: 800; letter-spacing: .3px; }

/* ——— دکمه‌ی شناور تماس و نوار سبد ——— */
.fab { position: fixed; z-index: 39; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf2); color: #fff; box-shadow: 0 14px 30px -8px rgba(31, 122, 82, .8); transition: transform .3s var(--ease), bottom .3s var(--ease); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf2); animation: pulse 2.2s ease-out infinite; z-index: -1; }
.fab .ic { width: 26px; height: 26px; }
@keyframes pulse { to { transform: scale(1.7); opacity: 0; } }
.has-bar .fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
.bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: var(--f9); color: #fff; padding: 10px 12px 10px 10px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -10px rgba(6, 35, 26, .6); text-align: start; animation: rise .35s var(--ease); }
.bar[hidden] { display: none; }
.bar b { display: block; font-size: 15px; line-height: 1.4; }
.bar small { display: block; font-size: 12.5px; opacity: .8; }
.bar-go { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--f9); font-weight: 900; padding: 10px 16px; border-radius: 14px; font-size: 14.5px; }

/* ——— پنجره‌ها ——— */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(6, 35, 26, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet-box { position: relative; background: var(--cream); width: min(700px, 100%); max-height: 92dvh; overflow: hidden; display: flex; flex-direction: column; margin-inline: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: up .4s var(--ease); }
.sheet-scroll { overflow: auto; overscroll-behavior: contain; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: rgba(10, 51, 38, .25) transparent; }
@keyframes up { from { transform: translateY(60px) rotateX(8deg); opacity: 0; } }
.x { position: absolute; z-index: 3; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; }
.sheet-title { font-size: 22px; font-weight: 900; color: var(--f8); margin: 4px 0 14px; }
.detail-box { width: min(1100px, 100%); }
.detail-box .sheet-scroll { padding: 0; }
.d-media { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--tint, #9fd4b2) 40%, #fff), color-mix(in srgb, var(--tint, #9fd4b2) 22%, var(--cream)) 80%); }
.d-media::-webkit-scrollbar { display: none; }
.d-media img { flex: none; width: 100%; aspect-ratio: 1.25; object-fit: contain; padding: 26px; scroll-snap-align: center; }
.d-media img:first-child { filter: drop-shadow(0 24px 24px rgba(6, 35, 26, .3)); animation: popIn .7s var(--ease) both; }
.d-media img + img { mix-blend-mode: multiply; }
@keyframes popIn { from { transform: perspective(800px) rotateY(-30deg) scale(.85); opacity: 0; } }
.d-dots { display: flex; justify-content: center; gap: 6px; margin-top: -26px; position: relative; }
.d-dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(19, 90, 67, .3); }
.d-in { padding: 20px 18px 0; }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.d-tags span { font-size: 12.5px; font-weight: 800; padding: 2px 12px; border-radius: 99px; background: var(--mint); color: var(--f6); }
.d-tags .warn { background: var(--gold-l); color: #8a5a00; }
.d-in h2 { font-size: 23px; font-weight: 900; color: var(--f8); margin-top: 10px; }
.d-in .line { color: var(--muted); margin: 4px 0 0; }
.d-buy { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -18px 0; padding: 12px 18px; background: rgba(248, 245, 236, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.d-buy .price { font-size: 21px; }
.d-buy .btn { min-height: 52px; padding: 0 22px; }
.tabs { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); padding: 4px; border-radius: 16px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; border: 0; background: transparent; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); }
.tabs button.on { background: var(--f8); color: #fff; box-shadow: var(--sh-1); }
.tab { padding: 14px 2px 4px; white-space: pre-line; color: #33453b; font-size: 15px; }
.tab[hidden] { display: none; }
.d-cat { display: grid; gap: 12px; white-space: normal; }
.d-cat img { width: 100%; border-radius: 18px; box-shadow: var(--sh-1); }
.c-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.c-line img { width: 64px; height: 64px; object-fit: contain; background: var(--mint); border-radius: 14px; padding: 5px; }
.c-line b { font-size: 14.5px; display: block; line-height: 1.6; font-weight: 800; }
.c-line small { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--mint); border-radius: 12px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #fff; font-size: 18px; font-weight: 800; box-shadow: var(--sh-1); }
.qty b { min-width: 24px; text-align: center; }
.cart-empty { text-align: center; padding: 30px 0 10px; color: var(--muted); }
.cart-empty span { font-size: 46px; display: block; }
.cart-empty .btn { margin-top: 14px; }
.total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--f8); color: #fff; }
.total b { font-size: 20px; font-weight: 900; color: var(--gold2); }
.fields { display: grid; gap: 10px; margin-top: 12px; }
.fields label { display: block; font-weight: 800; font-size: 14px; color: #33453b; }
.fields input, .fields textarea { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--leaf2); box-shadow: 0 0 0 4px rgba(47, 154, 98, .15); }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 12px 0; }
.hint .ic { color: var(--leaf); margin-top: 4px; }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send .soon { grid-column: 1 / -1; text-align: center; color: var(--muted); background: var(--mint); border-radius: 14px; padding: 12px; margin: 0; font-size: 14px; }
.wa { background: #1fae54; color: #fff; }
.ei { background: #ef7d1a; color: #fff; }
.tg { background: #2296d3; color: #fff; }
.sms { background: var(--gold); color: var(--f9); }
.call { background: #fff; color: var(--f8); }
.send .call { box-shadow: inset 0 0 0 1.5px var(--line); }
.send .sms { background: var(--f6); color: #fff; }
.send .btn:first-child:nth-last-child(odd), .contact-btns .btn:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.toast { position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; z-index: 80; font-weight: 700; font-size: 14.5px; box-shadow: var(--sh-2); max-width: calc(100% - 32px); text-align: center; animation: rise .3s var(--ease); }
.toast[hidden] { display: none; }

/* ——— تبلت و دسکتاپ ——— */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .need-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .need-in { padding: 20px; }
  .need b { font-size: 19px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .card-body { padding: 8px 18px 18px; }
  .card h3 { font-size: 16px; }
  .ring-stage { --w: 230px; }
  .reel img { width: 340px; height: 230px; }
  .hero-stage { height: 520px; }
}
@media (min-width: 960px) {
  .links { display: flex; }
  .nav-call { margin-inline-start: 6px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; padding: 110px 0 90px; gap: 24px; }
  .hero-stage { height: 620px; margin: 0; }
  .scroll-cue { display: block; }
  .pick { left: 0; bottom: 6%; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr 1fr; gap: 70px; }
  .why-art { height: 540px; }
  .why-badge { width: 150px; height: 150px; }
  .why-badge b { font-size: 36px; }
  .dealers { padding: 120px 0; }
  .dealers-in { grid-template-columns: 1fr 1fr; gap: 60px; }
  .contact-box { grid-template-columns: 1.4fr 1fr; padding: 60px 54px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet-box { border-radius: var(--r-lg); max-height: 88dvh; }
  .bar { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .has-bar .fab { bottom: 24px; }
  .fab { left: 24px; bottom: 24px; }
  .d-media img { aspect-ratio: auto; height: 360px; }
  .ring-stage { --w: 250px; }
}
@media (max-width: 639px) {
  .nav-call span { display: none; }
  .nav-call { width: 46px; padding: 0; justify-content: center; }
  .brand small { display: none; }
  .hero-in { padding-top: 96px; padding-bottom: 40px; }
  .stats { display: none; }
  .hero-stage { height: 400px; margin-top: -10px; }
  .lead { font-size: 16.5px; }
  .pick { left: 12px; bottom: 0; }
  .why-art { height: 340px; }
  .send { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ═══════════ نسخه‌ی ۹: پخش مرکزی، ارسال رایگان، حساب، پرداخت، مشاور، جزئیات تازه ═══════════ */
/* عنوان «پخش مرکزی ایران ⎯ خرید مستقیم» */
.hero-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: clamp(14px, 2.6vw, 17px); font-weight: 800; color: rgba(255, 255, 255, .92); }
.hero-tag b { font-size: clamp(17px, 3.4vw, 22px); font-weight: 900; color: var(--gold2); letter-spacing: -.2px; }
.hero-tag .rule { width: clamp(36px, 7vw, 64px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold2), rgba(247, 212, 126, .35)); }
.free-ship { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 16px 8px 12px; border-radius: 14px; background: rgba(233, 185, 73, .14); box-shadow: inset 0 0 0 1px rgba(247, 212, 126, .35); font-size: 15.5px; font-weight: 700; color: #fff; }
.free-ship .ic { width: 22px; height: 22px; color: var(--gold2); }
.free-ship b { color: var(--gold2); font-weight: 900; }
em.free { font-style: normal; font-weight: 900; color: var(--leaf); background: linear-gradient(transparent 60%, rgba(233, 185, 73, .45) 60%); padding: 0 2px; }
.dealers em.free { color: var(--gold2); background: none; }
.steps p b { color: var(--leaf); font-weight: 900; }

/* دکمه‌ی حساب در هدر */
.acc-btn { display: inline-flex; align-items: center; gap: 6px; height: 46px; min-width: 46px; padding: 0 12px; border: 0; border-radius: 14px; font-weight: 800; color: inherit; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); flex: none; justify-content: center; }
.acc-btn .ic { width: 21px; height: 21px; }
.nav.scrolled .acc-btn { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--f7); }
.acc-btn.in, .nav.scrolled .acc-btn.in { background: var(--leaf); color: #fff; box-shadow: none; }
.acc-name { font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name:empty { display: none; }

/* آدرس در بخش تماس و فوتر */
.address { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #fff; max-width: 460px; }
.address .ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--gold2); flex: none; }
.address small { display: block; font-size: 12.5px; opacity: .75; }
.address b { display: block; font-size: 15px; font-weight: 800; line-height: 1.7; }
.address:hover b { color: var(--gold2); }
.foot-addr { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.foot-addr .ic { color: var(--gold2); }
.foot-addr:hover { color: #fff; }

/* دکمه‌های عمومی */
.btn-block { width: 100%; }
.btn-soft { background: var(--paper); color: var(--f7); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--leaf-l); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-soft.is-busy::after { border-color: rgba(10, 51, 38, .2); border-top-color: var(--f7); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { border: 0; background: none; color: var(--leaf); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 6px; }
.fields select { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; }
.fields select:focus { outline: none; border-color: var(--leaf2); box-shadow: 0 0 0 4px rgba(47, 154, 98, .15); }
.form-err { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: var(--red); font-weight: 700; font-size: 14px; }
.form-err[hidden] { display: none; }
.hint a { color: var(--leaf); font-weight: 800; }

/* مراحل خرید */
.steps-bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; }
.steps-bar li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.steps-bar li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 12px; flex: none; }
.steps-bar li span .ic { width: 14px; height: 14px; stroke-width: 3; }
.steps-bar li.on { color: var(--f7); border-color: var(--leaf); }
.steps-bar li.on span { background: var(--leaf); color: #fff; }
.steps-bar li.done { color: var(--leaf); border-color: var(--leaf-l); }
.steps-bar li.done span { background: var(--leaf-l); color: var(--f8); }
.sum { margin: 14px 0 0; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.sum > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 14.5px; }
.sum > div + div { border-top: 1px dashed var(--line); }
.sum b { font-weight: 800; }
.sum b.free { color: var(--leaf); font-weight: 900; font-size: 16px; }
.sum-total { background: var(--f8); color: #fff; }
.sum-total b { color: var(--gold2); font-size: 19px; font-weight: 900; }
.ship-note, .d-ship { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 14px; border-radius: 14px; background: var(--mint); color: var(--f7); font-weight: 700; font-size: 14.5px; }
.ship-note .ic, .d-ship .ic { width: 22px; height: 22px; color: var(--leaf); }
.ship-note b, .d-ship b { color: var(--leaf); font-weight: 900; }
.fs { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.fs legend { font-weight: 900; color: var(--f8); font-size: 15.5px; margin-bottom: 4px; }
.auth-switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.auth-switch button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 12px; font-weight: 800; color: var(--muted); }
.auth-switch button.on { background: var(--f8); color: #fff; }
.who { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; margin: 0 0 14px; }
.who .ic { color: var(--leaf); }
.who .link { margin-inline-start: auto; }
.co-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; }

/* پرداخت */
.pay { display: grid; gap: 12px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--mint); color: var(--f7); white-space: nowrap; }
.st-awaiting_payment { background: var(--gold-l); color: #8a5a00; }
.st-receipt_submitted { background: #e7f0fb; color: #1f5fa8; }
.st-receipt_rejected, .st-canceled { background: #fdecea; color: var(--red); }
.st-paid { background: var(--mint); color: var(--leaf); }
.st-shipped { background: #efe7f6; color: var(--purple); }
.st-delivered { background: var(--leaf); color: #fff; }
.pay-amount { text-align: center; padding: 18px; border-radius: 20px; color: #fff; background: radial-gradient(80% 120% at 50% 0%, rgba(233, 185, 73, .25), transparent 60%), var(--f8); }
.pay-amount small { display: block; opacity: .75; font-size: 13px; }
.pay-amount b { display: block; font-size: clamp(28px, 6vw, 36px); font-weight: 900; color: var(--gold2); line-height: 1.4; }
.pay-amount b i { font-style: normal; font-size: 15px; color: #fff; }
.pay-amount span { font-size: 12.5px; opacity: .75; }
.sheba { border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); overflow: hidden; }
.sheba-row { display: flex; align-items: center; gap: 12px; padding: 14px; }
.sheba-ic .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mint); color: var(--leaf); }
.sheba-row > div { flex: 1; min-width: 0; }
.sheba-row small { display: block; font-size: 12.5px; color: var(--muted); }
.sheba-row b { display: block; font-size: clamp(14px, 3.6vw, 17px); font-weight: 900; color: var(--f8); letter-spacing: .5px; word-break: break-all; text-align: left; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; background: var(--f6); color: #fff; font-weight: 800; padding: 10px 14px; font-size: 14px; }
.copy:active { transform: scale(.96); }
.sheba-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 14px; background: var(--mint); font-size: 14px; color: var(--f7); }
.pay-steps { margin: 0; padding: 0 20px 0 0; font-size: 14px; color: #33453b; display: grid; gap: 4px; }
.drop { display: block; cursor: pointer; }
.drop-in { display: grid; justify-items: center; gap: 4px; padding: 22px 14px; border-radius: 20px; border: 2px dashed var(--leaf-l); background: var(--paper); text-align: center; color: var(--f7); transition: border-color .2s, background .2s; }
.drop:hover .drop-in { border-color: var(--leaf); background: var(--mint); }
.drop-in .ic { width: 34px; height: 34px; color: var(--leaf); }
.drop-in b { font-size: 15.5px; }
.drop-in small { color: var(--muted); font-size: 12.5px; }
.drop-in img { max-height: 220px; width: auto; border-radius: 12px; box-shadow: var(--sh-1); }
.rcpt { display: grid; gap: 10px; }
.rcpt .fields { margin-top: 0; }
.pay-ok, .pay-bad { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; font-size: 14px; }
.pay-ok { background: #e7f0fb; color: #1f4f86; }
.pay-ok .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #1f5fa8; color: #fff; stroke-width: 3; }
.pay-ok b, .pay-bad b { display: block; font-size: 15px; }
.pay-bad { flex-direction: column; gap: 2px; background: #fdecea; color: var(--red); }

/* حساب کاربری */
.acc-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.acc-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--leaf2), var(--f6)); color: #fff; font-weight: 900; font-size: 20px; flex: none; }
.acc-card b { display: block; font-size: 16px; }
.acc-card small { color: var(--muted); }
.acc-card .link { margin-inline-start: auto; color: var(--red); }
.acc-h { margin: 22px 0 10px; font-size: 17px; font-weight: 900; color: var(--f8); }
.ord { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; }
.ord summary { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 14px; cursor: pointer; list-style: none; }
.ord summary::-webkit-details-marker { display: none; }
.ord summary small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.ord summary .badge { justify-self: start; }
.ord-id { font-weight: 900; color: var(--f8); }
.ord-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.ord-items { list-style: none; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--cream); display: grid; gap: 4px; font-size: 14px; }
.ord-items li { display: flex; justify-content: space-between; gap: 10px; }
.ord-ship, .ord-track { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: #33453b; }
.ord-ship .ic, .ord-track .ic { color: var(--leaf); margin-top: 4px; }
.ord-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-l); font-size: 14px; }
.acc-edit { margin-top: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.acc-edit summary { display: flex; align-items: center; gap: 8px; padding: 14px; font-weight: 800; cursor: pointer; color: var(--f7); list-style: none; }
.acc-edit summary::-webkit-details-marker { display: none; }
.acc-edit form { padding: 0 14px 14px; display: grid; gap: 12px; }

/* جزئیات محصول — طراحی تازه */
.d-grid { display: grid; }
.d-gal { padding: 16px 16px 0; }
.d-main { position: relative; display: block; width: 100%; aspect-ratio: 1 / .92; border: 0; border-radius: 26px; cursor: zoom-in; overflow: hidden; padding: 0;
  background: radial-gradient(60% 60% at 50% 42%, color-mix(in srgb, var(--tint, #9fd4b2) 42%, #fff), color-mix(in srgb, var(--tint, #9fd4b2) 20%, var(--cream)) 85%); }
.d-main img { width: 100%; height: 100%; object-fit: contain; padding: 8% 12%; filter: drop-shadow(0 26px 24px rgba(6, 35, 26, .28)); animation: popIn .6s var(--ease) both; }
.d-main img.is-cat { padding: 10px; filter: drop-shadow(0 10px 20px rgba(6, 35, 26, .2)); }
.d-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.d-thumbs::-webkit-scrollbar { display: none; }
.d-th { position: relative; flex: none; width: 66px; height: 66px; border-radius: 14px; border: 2px solid transparent; background: var(--paper); padding: 4px; box-shadow: var(--sh-1); }
.d-th img { width: 100%; height: 100%; object-fit: contain; }
.d-th.cat { width: 48px; padding: 2px; }
.d-th.cat img { object-fit: cover; border-radius: 9px; }
.d-th i { position: absolute; inset: auto 2px 2px; font-style: normal; font-size: 9px; font-weight: 800; background: rgba(6, 35, 26, .75); color: #fff; border-radius: 6px; text-align: center; line-height: 1.6; }
.d-th.on { border-color: var(--leaf); }
.d-in { padding: 18px 18px 0; }
.d-type { margin: 2px 0 0; color: var(--muted); font-weight: 700; }
.d-reg { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.d-reg .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--leaf); color: #fff; }
.d-reg b { display: block; color: var(--f8); font-size: 14.5px; }
.d-about { margin: 0; color: #33453b; line-height: 2; }
.d-ben { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.d-ben li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--f8); }
.d-ben .ic { color: #fff; background: var(--leaf2); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 5px; stroke-width: 3; }
.d-method { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #33453b; }
.d-method .ic { color: var(--leaf); }
.d-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.d-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.d-table thead th { background: var(--f8); color: #fff; font-weight: 800; padding: 10px 12px; text-align: start; font-size: 13px; }
.d-table tbody th { text-align: start; font-weight: 800; color: var(--f8); padding: 10px 12px; min-width: 110px; }
.d-table td { padding: 10px 12px; color: #33453b; line-height: 1.8; }
.d-table tbody tr:nth-child(even) { background: var(--cream); }
.d-warn { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-l); color: #7a5200; font-size: 14px; font-weight: 700; }
.d-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border: 0; border-radius: 14px; padding: 10px 14px; background: var(--purple-l); color: var(--purple); font-weight: 800; font-size: 14px; }
.d-comp { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.d-comp div { padding: 10px 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-align: center; display: grid; }
.d-comp b { color: var(--leaf); font-size: 15px; font-weight: 900; }
.d-comp span { font-size: 17px; font-weight: 900; color: var(--f8); }
.d-comp small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.d-src { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: #33453b; }
.d-src .ic { color: var(--leaf); }
.d-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-cat { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--sh-1); cursor: zoom-in; aspect-ratio: 760 / 1351; }
.d-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.d-cat:hover img { transform: scale(1.03); }
.d-cat span { position: absolute; inset: auto 8px 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 10px; background: rgba(6, 35, 26, .78); color: #fff; font-size: 13px; font-weight: 800; }
.d-in .d-buy { bottom: 0; margin: 18px -18px 0; }
.tab { white-space: normal; }

/* نمایش بزرگ تصویر */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 20, 14, .94); animation: fade .2s; }
.lightbox[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px 40px; overflow: auto; }
.lb-stage img { max-width: min(100%, 900px); max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-stage img.photo { background: radial-gradient(circle, #fff, #e8efe9); padding: 20px; }
.lb-x, .lb-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-x:hover, .lb-nav:hover { background: var(--gold); color: var(--f9); }
.lb-x { top: 12px; left: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { right: 12px; }
.lb-next { left: 12px; }
.lb-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 14px; }

/* مشاور هوشمند */
.adv-fab { position: fixed; z-index: 41; left: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 14px; border: 0; border-radius: 99px; color: #fff; font-weight: 800; font-size: 14.5px;
  background: linear-gradient(135deg, var(--purple), #9c3fb0); box-shadow: 0 14px 30px -10px rgba(106, 27, 122, .7); transition: transform .3s var(--ease), bottom .3s var(--ease); animation: advIn .6s 1.2s var(--ease) both; }
.adv-fab .ic { width: 24px; height: 24px; }
.adv-fab:hover { transform: translateY(-3px); }
.adv-fab[hidden] { display: none; }
@keyframes advIn { from { transform: translateY(20px) scale(.8); opacity: 0; } }
.has-bar .adv-fab { bottom: calc(160px + env(safe-area-inset-bottom)); }
.adv { position: fixed; z-index: 70; inset: 0; display: flex; flex-direction: column; background: var(--cream); animation: up .35s var(--ease); }
.adv[hidden] { display: none; }
.adv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); color: #fff; background: linear-gradient(135deg, var(--f8), var(--f6)); }
.adv-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), #9c3fb0); flex: none; }
.adv-head b { display: block; font-size: 16px; }
.adv-head small { display: block; font-size: 12px; opacity: .75; }
.adv-x { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.adv-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; animation: rise .3s var(--ease); }
.msg.me { align-self: flex-start; }
.msg.bot { align-self: flex-end; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.95; }
.me .bubble { background: var(--f6); color: #fff; border-start-start-radius: 6px; }
.bot .bubble { background: var(--paper); border: 1px solid var(--line); border-start-end-radius: 6px; color: var(--ink); }
.bot .bubble b { color: var(--f7); }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-l); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-3px); } }
.mcards { display: grid; gap: 6px; }
.mcard { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mcard img { width: 44px; height: 44px; object-fit: contain; }
.mcard b { display: block; font-size: 13px; line-height: 1.6; }
.mcard small { color: var(--leaf); font-weight: 800; font-size: 12px; }
.mc-btns { display: flex; gap: 4px; }
.mc-more { border: 0; border-radius: 10px; padding: 6px 10px; background: var(--mint); color: var(--f7); font-weight: 800; font-size: 12.5px; }
.mc-add { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--f6); color: #fff; display: grid; place-items: center; }
.chips-q { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-q button { border: 0; border-radius: 99px; padding: 6px 12px; background: var(--purple-l); color: var(--purple); font-weight: 700; font-size: 13px; }
.chips-q button:hover { background: var(--purple); color: #fff; }
.adv-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.adv-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; background: #fff; }
.adv-form input:focus { outline: none; border-color: var(--leaf2); }
.adv-form button { width: 50px; border: 0; border-radius: 14px; background: var(--f6); color: #fff; display: grid; place-items: center; }
.adv-form button .ic { transform: scaleX(-1); }

@media (min-width: 640px) {
  .d-cats { grid-template-columns: repeat(2, minmax(0, 220px)); }
}
@media (min-width: 960px) {
  .d-grid { grid-template-columns: 1fr 1.08fr; align-items: start; }
  .d-gal { position: sticky; top: 0; padding: 22px; }
  .d-in { padding: 26px 26px 0 22px; }
  .d-in .d-buy { margin: 18px -26px 0 -22px; padding: 14px 26px; }
  .d-in h2 { font-size: 26px; }
  .d-tags { padding-inline-end: 52px; }
  .detail-box { max-height: 90dvh; }
  .adv { inset: auto auto 24px 24px; width: 410px; height: min(640px, calc(100dvh - 48px)); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(6, 35, 26, .55); border: 1px solid var(--line); }
  .adv-fab { left: 24px; bottom: 96px; }
  .has-bar .adv-fab { bottom: 96px; }
  .acc-name { max-width: 110px; }
}
@media (max-width: 639px) {
  .acc-name { display: none; }
  .acc-btn { padding: 0; width: 46px; }
  .nav-in { gap: 8px; }
  .adv-fab span { display: none; }
  .adv-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .co-btns { grid-template-columns: 1fr; }
  .co-btns .btn-soft { order: 2; }
}
