/* =========================================================
   میرانا | MIRANA — استایل فروشگاه
   بدون هیچ وابستگی آنلاین (فونت‌ها و آیکون‌ها محلی هستند)
   ========================================================= */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3ede4;
  --ink: #1f1b17;
  --ink-2: #5d554c;
  --muted: #8f867b;
  --line: #e7dfd3;
  --brand: #a4683f;
  --brand-dark: #7c4b2a;
  --brand-soft: #f3e4d6;
  --olive: #6b7151;
  --rose: #c98b84;
  --success: #3f8f5f;
  --warning: #c98a1a;
  --danger: #c2453d;
  --info: #3c6fa8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(60, 40, 20, .18);
  --shadow-lg: 0 25px 60px -20px rgba(60, 40, 20, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.8; font-size: 15px;
  direction: rtl; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.center { text-align: center; }
::selection { background: var(--brand); color: #fff; }

/* ---------- لودر صفحه ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo { font-weight: 900; font-size: 34px; letter-spacing: .3em; color: var(--ink); position: relative; padding-left: .3em; }
.loader-logo span { display: inline-block; animation: letter 1.2s var(--ease) infinite; }
.loader-logo span:nth-child(2) { animation-delay: .08s } .loader-logo span:nth-child(3) { animation-delay: .16s }
.loader-logo span:nth-child(4) { animation-delay: .24s } .loader-logo span:nth-child(5) { animation-delay: .32s }
.loader-logo span:nth-child(6) { animation-delay: .4s }
@keyframes letter { 0%, 100% { transform: translateY(0); opacity: 1 } 50% { transform: translateY(-8px); opacity: .4 } }

/* ---------- نوار اعلان ---------- */
.announce { background: var(--ink); color: #f5ede2; font-size: 13px; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 60px; padding: 8px 0; animation: marquee 28s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(50%) } }

/* ---------- هدر ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 242, .85);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .3); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 20px; font-weight: 900; position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 20px; }
.logo-text small { font-size: 10px; letter-spacing: .35em; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav > .nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: background .25s, color .25s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--surface-2); color: var(--brand-dark); }
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; transition: background .2s, padding .2s; }
.dropdown a:hover { background: var(--surface-2); padding-inline-start: 18px; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; transition: background .25s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.badge {
  position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  line-height: 1;
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1) } 40% { transform: scale(1.5) } 100% { transform: scale(1) } }
.badge:empty, .badge[data-count="0"] { display: none; }
.menu-toggle { display: none; }

.search-box {
  position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 14px; height: 44px; width: 240px; transition: width .35s var(--ease), border-color .25s, box-shadow .25s;
}
.search-box:focus-within { width: 300px; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; padding: 0 8px; min-width: 0; }
.search-box button { border: 0; background: none; color: var(--muted); display: grid; }

/* منوی موبایل */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 15, 10, .45); z-index: 200; opacity: 0; visibility: hidden; transition: .3s; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 86vw); background: var(--bg); z-index: 201;
  transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.drawer-body .search-box { width: 100%; margin-bottom: 12px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; font-weight: 600; }
.drawer-link:hover { background: var(--surface-2); }
.drawer-sub { padding-inline-start: 34px; display: flex; flex-direction: column; }
.drawer-sub a { padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.drawer-social { margin-top: auto; padding: 20px; display: flex; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- دکمه‌ها ---------- */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid var(--b); background: var(--b); color: var(--c); font-weight: 700; font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .3s, background .25s, color .25s; position: relative; overflow: hidden;
  white-space: nowrap; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .18); transform: translateX(101%);
  transition: transform .45s var(--ease); z-index: -1;
}
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 12px 24px -12px var(--b); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-brand { --b: var(--brand); }
.btn-outline { background: transparent; color: var(--b); }
.btn-outline:hover { background: var(--b); color: var(--c); }
.btn-light { --b: var(--surface); --c: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-telegram { --b: #229ed9; }
.btn-rubika { --b: #7b3fe4; }
.btn-success { --b: var(--success); }
.btn-danger { --b: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c);
  border-top-color: transparent; animation: spin .7s linear infinite; inset: 0; margin: auto;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- اسلایدر صفحه اصلی ---------- */
.hero { padding: 20px 0 10px; }
.slider { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; background: var(--surface-2); }
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide.theme-sand { background: linear-gradient(135deg, #f1e4d3, #e7d2b8); }
.slide.theme-dark { background: linear-gradient(135deg, #2a2420, #3f342c); color: #f8efe4; }
.slide.theme-rose { background: linear-gradient(135deg, #f4dedb, #e7bfb9); }
.slide.theme-olive { background: linear-gradient(135deg, #e3e4d3, #c5c8a6); }
.slide.theme-sky { background: linear-gradient(135deg, #e2ecf3, #bfd3e2); }
.slide-content { padding: 60px; position: relative; z-index: 2; }
.slide-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.theme-dark .slide-kicker { background: rgba(255, 255, 255, .1); }
.slide h2 { font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.25; margin-bottom: 16px; }
.slide p { font-size: 17px; max-width: 440px; opacity: .85; margin-bottom: 28px; }
.slide-content > * { opacity: 0; transform: translateY(26px); transition: all .8s var(--ease); }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: .12s } .slide.active .slide-content > *:nth-child(3) { transition-delay: .24s }
.slide.active .slide-content > *:nth-child(4) { transition-delay: .36s }
.slide-media { height: 100%; position: relative; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 7s ease-out; }
.slide.active .slide-media img { transform: scale(1); }
.slide-art { position: absolute; inset: 0; display: grid; place-items: center; }
.slide-art .ring { position: absolute; border-radius: 50%; border: 1.5px solid currentColor; opacity: .15; animation: float 9s ease-in-out infinite; }
.slide-art .big-letter { font-size: 320px; font-weight: 900; opacity: .09; line-height: 1; }
@keyframes float { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(-14px, 18px) } }
.slider-dots { position: absolute; bottom: 24px; right: 60px; display: flex; gap: 8px; z-index: 5; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: currentColor; opacity: .25; transition: all .4s var(--ease); padding: 0; }
.slider-dots button.active { width: 34px; opacity: .9; }
.slider-arrows { position: absolute; bottom: 18px; left: 24px; display: flex; gap: 8px; z-index: 5; }
.slider-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); display: grid; place-items: center; transition: transform .2s, background .2s; }
.slider-arrows button:hover { background: #fff; transform: scale(1.08); }

/* ---------- ویژگی‌ها ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 10px; }
.feature { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.feature b { display: block; font-size: 14px; }
.feature small { color: var(--muted); font-size: 12px; }

/* ---------- سکشن‌ها ---------- */
.section { padding: 56px 0 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.section-head p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.eyebrow { color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .25em; display: block; margin-bottom: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(-5px); }

/* دسته‌بندی‌ها */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  display: flex; align-items: flex-end; padding: 18px; isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 14, 8, .7), transparent 60%); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-info { color: #fff; transition: transform .4s var(--ease); }
.cat-card:hover .cat-info { transform: translateY(-6px); }
.cat-card b { display: block; font-size: 17px; }
.cat-card small { opacity: .85; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.cat-placeholder { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; font-size: 90px; font-weight: 900; color: rgba(0,0,0,.07); }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.pc-media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.pc-media .img-2 { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.product-card:hover .pc-media .img-2 { opacity: 1; }
.pc-tags { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--surface); color: var(--ink); }
.tag-sale { background: var(--danger); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.tag-out { background: rgba(255,255,255,.9); color: var(--muted); }
.pc-wish {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); display: grid; place-items: center; transition: transform .25s var(--ease), color .2s;
}
.pc-wish:hover { transform: scale(1.12); }
.pc-wish.active { color: var(--danger); }
.pc-wish.active svg { fill: currentColor; }
.pc-wish.pop { animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35) } }
.pc-quick {
  position: absolute; bottom: 12px; right: 12px; left: 12px; z-index: 2; transform: translateY(130%); opacity: 0;
  transition: all .45s var(--ease);
}
.product-card:hover .pc-quick, .product-card:focus-within .pc-quick { transform: none; opacity: 1; }
.pc-quick .btn { width: 100%; backdrop-filter: blur(6px); }
.pc-body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.pc-cat { font-size: 12px; color: var(--muted); }
.pc-title { font-weight: 700; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title:hover { color: var(--brand-dark); }
.pc-colors { display: flex; gap: 5px; margin: 4px 0; }
.pc-colors i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: block; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 16px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.price del { color: var(--muted); font-size: 13px; }
.price .off { color: var(--danger); font-size: 12px; font-weight: 800; }

/* بنر میانی */
.promo {
  border-radius: 28px; padding: 54px; background: var(--ink); color: #f6ede2; display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center; gap: 30px; position: relative; overflow: hidden;
}
.promo::before, .promo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.promo::before { width: 420px; height: 420px; left: -120px; top: -160px; animation: float 10s ease-in-out infinite; }
.promo::after { width: 260px; height: 260px; left: 120px; bottom: -150px; animation: float 12s ease-in-out infinite reverse; }
.promo h2 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; }
.promo p { opacity: .75; }
.promo-steps { display: grid; gap: 12px; position: relative; z-index: 1; }
.promo-step { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.promo-step span { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }

/* شبکه‌های اجتماعی بزرگ */
.social-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.social-card {
  display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.social-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.social-card.tg { background: linear-gradient(135deg, #2aabee, #1b87c9); }
.social-card.rb { background: linear-gradient(135deg, #8b4dff, #5b2bc4); }
.social-card .sc-ic { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.social-card b { font-size: 18px; display: block; }
.social-card small { opacity: .85; direction: ltr; display: inline-block; }
.social-card .sc-arrow { margin-inline-start: auto; transition: transform .3s var(--ease); }
.social-card:hover .sc-arrow { transform: translateX(-6px); }

/* ---------- فوتر ---------- */
.footer { background: #1d1915; color: #cfc4b6; margin-top: 80px; padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo-mark { background: var(--bg); color: var(--ink); }
.footer .logo-text b { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); transition: background .25s; }
.footer-social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #8f857a; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }

/* دکمه شناور پشتیبانی */
.fab { position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.fab-main {
  width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.fab-main::before { content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--brand); animation: pulse 2.4s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.7); opacity: 0 } }
.fab.open .fab-main { transform: rotate(135deg); }
.fab-item { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(.6); transition: all .35s var(--ease); pointer-events: none; }
.fab.open .fab-item { opacity: 1; transform: none; pointer-events: auto; }
.fab.open .fab-item:nth-child(3) { transition-delay: .06s }
.fab-item.tg { background: #229ed9; } .fab-item.rb { background: #7b3fe4; }
.to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .35s var(--ease); pointer-events: none;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { transform: rotate(-90deg); }

/* ---------- پیام‌ها (Toast) ---------- */
.toasts { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease); font-size: 14px; font-weight: 500;
}
.toast.hide { animation: toastOut .4s var(--ease) forwards; }
.toast.success .t-ic { background: var(--success); } .toast.error .t-ic { background: var(--danger); }
.toast.info .t-ic, .toast.warning .t-ic { background: var(--warning); }
.t-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); flex-shrink: 0; }
.toast button { margin-inline-start: auto; background: none; border: 0; color: #fff; opacity: .6; display: grid; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(.95) } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(.95) } }

/* ---------- انیمیشن ظاهر شدن با اسکرول ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .07s } .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .21s } .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .35s } .reveal-stagger.in > *:nth-child(7) { transition-delay: .42s }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .49s } .reveal-stagger.in > *:nth-child(n+9) { transition-delay: .55s }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- صفحه داخلی ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb span::before { content: "/"; margin-inline-end: 6px; opacity: .5; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }

/* لیست محصولات + فیلتر */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 14px; margin-bottom: 10px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: background .2s; }
.filter-list a:hover, .filter-list a.active { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.filter-list .sub a { padding-inline-start: 24px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 600; transition: all .2s; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.active, .chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .sort { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-toggle { display: none; }

.empty { text-align: center; padding: 70px 20px; }
.empty-ic { width: 100px; height: 100px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted); animation: float 6s ease-in-out infinite; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

/* ---------- صفحه محصول ---------- */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery-main { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out, opacity .35s; }
.gallery-main.zoom img { transform: scale(1.9); }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs button { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); transition: border-color .2s, opacity .2s; opacity: .6; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 8px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pd-price { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pd-price .price b { font-size: 28px; }
.opt-label { font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.opt-label span { color: var(--muted); font-weight: 500; }
.opt-group { margin-bottom: 22px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 52px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; transition: all .2s;
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn.disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 800; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-row .btn-lg { flex: 1; }
.stock-note { font-size: 13px; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--success); }
.dot.low { background: var(--warning); animation: blink 1.4s infinite; } .dot.out { background: var(--danger); }
@keyframes blink { 50% { opacity: .3 } }
.pd-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.pd-perks div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 12px; text-align: center; display: grid; justify-items: center; gap: 6px; color: var(--ink-2); }
.tabs { margin-top: 30px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-nav button { padding: 12px 18px; border: 0; background: none; font-weight: 700; color: var(--muted); position: relative; white-space: nowrap; }
.tab-nav button::after { content: ""; position: absolute; bottom: -1px; right: 0; left: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab-nav button.active { color: var(--ink); }
.tab-nav button.active::after { transform: scaleX(1); }
.tab-panel { display: none; padding: 20px 0; color: var(--ink-2); animation: fadeUp .5s var(--ease); white-space: pre-line; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } }
.spec-table { width: 100%; border-collapse: collapse; white-space: normal; }
.spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-table td:first-child { color: var(--muted); width: 140px; }

/* ---------- سبد خرید و پرداخت ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .4s, transform .4s; }
.cart-item.removing { opacity: 0; transform: translateX(-40px); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 15px; margin-bottom: 4px; }
.cart-item .variant { font-size: 13px; color: var(--muted); }
.cart-item .ci-side { display: flex; flex-direction: column; align-items: end; gap: 10px; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; }
.cart-item .qty input { width: 34px; }
.remove-btn { border: 0; background: none; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 4px; }
.remove-btn:hover { color: var(--danger); }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 16px; font-size: 17px; font-weight: 800; }
.ship-progress { background: var(--brand-soft); border-radius: 14px; padding: 14px; font-size: 13px; margin-bottom: 16px; }
.bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width 1s var(--ease); }
.pre-note { display: flex; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* ---------- فرم‌ها ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=tel],
.field input[type=url], .field input[type=datetime-local], .field input:not([type]), .field select, .field textarea, .input {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .help { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; color: var(--danger); font-weight: 600; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f867b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field.check > label, .field.check > span { order: 2; font-weight: 600; font-size: 14px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.radio-cards > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { display: flex; align-items: center; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s; }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-cards input { accent-color: var(--brand); }
.form-errors { background: #fbeceb; color: var(--danger); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }

/* صفحه ورود/ثبت‌نام */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0; }
.auth { display: grid; grid-template-columns: 1fr 1fr; width: min(940px, 100%); background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth-side { background: linear-gradient(160deg, var(--ink), #3d3129); color: #f5ece0; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .big { font-size: 160px; font-weight: 900; position: absolute; bottom: -60px; left: -10px; opacity: .06; line-height: 1; }
.auth-side h2 { font-size: 30px; font-weight: 900; }
.auth-form { padding: 46px; }
.auth-form h1 { font-size: 24px; }
.auth-form .field { margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--brand-dark); font-weight: 700; }

/* ---------- صفحه ارسال به ادمین ---------- */
.success-hero { text-align: center; padding: 40px 0 10px; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 20px; }
.check-anim circle { stroke: var(--success); stroke-width: 3; fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1s var(--ease) forwards; }
.check-anim path { stroke: var(--success); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.order-code { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px dashed var(--brand); padding: 10px 20px; border-radius: 14px; font-weight: 900; font-size: 22px; letter-spacing: .1em; }
.steps-v { display: grid; gap: 14px; counter-reset: s; }
.step-v { display: flex; gap: 16px; align-items: flex-start; }
.step-v::before { counter-increment: s; content: counter(s, persian); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.msg-box { background: var(--surface-2); border-radius: 16px; padding: 18px; white-space: pre-line; unicode-bidi: plaintext; text-align: start; font-size: 14px; position: relative; border: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.pay-card {
  background: linear-gradient(135deg, #2b241f, #5a4535); color: #f6ecdf; border-radius: 20px; padding: 24px; position: relative; overflow: hidden;
}
.pay-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); top: -80px; left: -60px; }
.pay-card .num { font-size: 22px; letter-spacing: .12em; font-weight: 800; direction: ltr; text-align: center; margin: 16px 0; }
.send-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.copy-btn { position: absolute; top: 10px; left: 10px; }

/* ---------- سفارش‌ها و وضعیت ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { background: #fdf3e1; color: #a86b00; }
.st-paid { background: #e5f0fb; color: #2d5f97; }
.st-preparing { background: #efe8fb; color: #6a40b5; }
.st-shipped { background: #e1f3f1; color: #1b7f74; }
.st-delivered { background: #e5f4ea; color: #2f7a4b; }
.st-cancelled { background: #fbe9e8; color: #b23a32; }

.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 10px 0 6px; }
.progress-steps::before { content: ""; position: absolute; top: 20px; right: 10%; left: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.progress-steps .fill { position: absolute; top: 20px; right: 10%; height: 3px; background: var(--success); border-radius: 3px; width: 0; transition: width 1.4s var(--ease); }
.pstep { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; z-index: 1; font-size: 12px; color: var(--muted); font-weight: 600; }
.pstep i { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; transition: all .4s var(--ease); font-style: normal; }
.pstep.done i { background: var(--success); border-color: var(--success); color: #fff; }
.pstep.current i { border-color: var(--success); color: var(--success); box-shadow: 0 0 0 6px rgba(63, 143, 95, .15); animation: ring 2s infinite; }
.pstep.done, .pstep.current { color: var(--ink); }
@keyframes ring { 50% { box-shadow: 0 0 0 10px rgba(63, 143, 95, .05) } }

.tracking-box { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #e1f3f1, #f0f9f7); border: 1px solid #b9e2dc; border-radius: 18px; padding: 18px 20px; flex-wrap: wrap; }
.tracking-box .code { font-size: 22px; font-weight: 900; letter-spacing: .08em; direction: ltr; }
.order-list { display: grid; gap: 14px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.order-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.order-row .thumbs { display: flex; margin-top: 8px; }
.order-row .thumbs img, .order-row .thumbs span { width: 40px; height: 48px; object-fit: cover; border-radius: 8px; border: 2px solid var(--surface); margin-inline-start: -8px; background: var(--surface-2); }
.order-row .thumbs > :first-child { margin-inline-start: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 26px 18px 0; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; right: 5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; right: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.items-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.items-table tr:last-child td { border-bottom: 0; }
.mini-thumb { width: 48px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }

/* پروفایل */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 12px; }
.account-nav .who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0; }
.account-nav a, .account-nav button { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; width: 100%; border: 0; background: none; text-align: right; }
.account-nav a:hover, .account-nav a.active, .account-nav button:hover { background: var(--surface-2); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { font-size: 24px; display: block; }
.stat small { color: var(--muted); }

/* درباره / سوالات */
.prose { max-width: 760px; color: var(--ink-2); font-size: 16px; line-height: 2.1; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .3s var(--ease); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-2); animation: fadeUp .4s var(--ease); }
.big-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.big-step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.big-step .n { position: absolute; top: -10px; left: 10px; font-size: 90px; font-weight: 900; color: var(--surface-2); line-height: 1; z-index: 0; }
.big-step > * { position: relative; }
.big-step .feature-ic { margin-bottom: 14px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1280px) { .nav .nav-item:nth-child(n+6) { display: none; } .nav-link { padding: 10px 10px; } }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .search-box { width: 190px; }
  .search-box:focus-within { width: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header .search-box { display: none; }
  .menu-toggle { display: grid; }
  .slide { grid-template-columns: 1fr; }
  .slide-media { position: absolute; inset: 0; opacity: .35; }
  .slide-content { padding: 40px 30px 80px; }
  .slider { min-height: 460px; }
  .slider-dots { right: 30px; }
  .features { grid-template-columns: 1fr 1fr; }
  .shop-layout, .cart-layout, .account-layout, .pd { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; z-index: 210; background: var(--bg); border-radius: 24px 24px 0 0; max-height: 82vh; overflow-y: auto;
    padding: 24px 20px; transform: translateY(105%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
  }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .filter-toggle { display: inline-flex; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumbs button { width: 70px; flex-shrink: 0; }
  .summary, .account-nav { position: static; }
  .promo { grid-template-columns: 1fr; padding: 36px 26px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 30px; }
  .auth-side .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pc-quick { display: none; }
  .pc-title { font-size: 13px; }
  .price b { font-size: 14px; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
  .social-cta, .send-btns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards > div { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .ci-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .card { padding: 18px; }
  .auth-form { padding: 28px 22px; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; } .stat b { font-size: 18px; }
  .pstep { font-size: 10px; } .pstep i { width: 34px; height: 34px; }
  .progress-steps::before, .progress-steps .fill { top: 16px; }
  .slide h2 { font-size: 28px; }
  .slide p { font-size: 14px; }
  .slider { min-height: 420px; border-radius: 22px; }
  .section { padding: 40px 0 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pd-perks { grid-template-columns: 1fr 1fr 1fr; }
  .order-row { grid-template-columns: 1fr; }
  .items-table .hide-sm { display: none; }
  .logo-text small { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

@media print {
  .header, .footer, .fab, .to-top, .announce, .no-print { display: none !important; }
  body { background: #fff; }
}
