/* ============================================================
   استایل فروشگاه «آمازون قادری»
   تم پیش‌فرض: تیره بنفش مدرن  |  حالت روشن هم دارد
   ============================================================ */

/* ---------- فونت فارسی وزیرمتن (ذخیره‌شده داخل پروژه) ---------- */
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../assets/fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ---------- متغیرهای رنگ (تم تیره) ---------- */
:root {
  --bg: #0b0d14;
  --bg-soft: #10131d;
  --surface: #151a29;
  --surface-2: #1c2236;
  --text: #eef0fa;
  --muted: #98a0bb;
  --border: #252c47;
  --accent: #8b5cf6;
  --accent-2: #c084fc;
  --grad: linear-gradient(135deg, #7c3aed, #d946ef);
  --glow: rgba(139, 92, 246, .35);
  --shadow: 0 14px 34px rgba(0, 0, 0, .38);
  --gold: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --r: 18px;
}

/* ---------- متغیرهای رنگ (تم روشن) ---------- */
html[data-theme="light"] {
  --bg: #f4f5fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f3f4fc;
  --text: #1a1d2e;
  --muted: #5f6579;
  --border: #e3e6f2;
  --shadow: 0 14px 34px rgba(26, 29, 46, .08);
  --glow: rgba(124, 58, 237, .22);
}

/* ---------- تنظیمات پایه ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .3s, color .3s;
}
body.lock { overflow: hidden; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 14px; font-weight: 700;
  padding: 11px 20px; font-size: .9rem; transition: .25s; color: var(--text);
  background: var(--surface-2);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px var(--glow); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--bg-soft); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-block { width: 100%; }

/* ---------- فرم‌ها ---------- */
.input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: .9rem;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.input.error { border-color: var(--red); }
textarea.input { resize: vertical; min-height: 80px; }
select.input, select.select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 9px 12px; outline: none; cursor: pointer; font-size: .88rem;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ============================================================
   هدر سایت
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: 0 6px 18px var(--glow);
}
.logo-text { font-weight: 900; font-size: 1.2rem; white-space: nowrap; }
.logo-text small { display: block; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: 1px; }

.nav { display: flex; gap: 2px; }
.nav a { padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

.search-box {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 14px; height: 44px; color: var(--muted); transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.search-box input { background: none; border: none; color: var(--text); width: 100%; outline: none; font-size: .88rem; }

.header-actions { display: flex; gap: 8px; margin-inline-start: auto; align-items: center; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 13px; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--text); cursor: pointer; position: relative; transition: .25s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent-2); }
.icon-btn .icon { width: 21px; height: 21px; }
.badge {
  position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px;
  border-radius: 10px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg);
}
.badge.hide { display: none; }
.menu-btn { display: none; }

/* ============================================================
   اسلایدر بنر (هیرو)
   ============================================================ */
.hero { padding-top: 24px; }
.hero-frame { position: relative; border-radius: 26px; overflow: hidden; height: 380px; box-shadow: var(--shadow); }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; transition: opacity .8s; padding: 30px; color: #fff;
}
.hero-slide.active { opacity: 1; }
/* قاب مخصوص عکس بنر: عکس کامل و بدون بریدگی داخلش دیده می‌شود */
.hero-imgwrap {
  position: absolute; inset-inline-start: 5%; top: 50%; z-index: 2;
  width: min(28%, 250px); aspect-ratio: 1;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 22px; padding: 12px;
  display: grid; place-items: center;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.hero-imgwrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; }
.hero-slide.fx-kb .hero-imgwrap { animation: kbImg 12s ease-in-out infinite alternate; }
@keyframes kbImg { from { transform: translateY(-50%) scale(1); } to { transform: translateY(-50%) scale(1.05); } }
.hero-slide.fx-shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  animation: shineSweep 3.6s linear infinite;
}
@keyframes shineSweep { from { left: -45%; } to { left: 135%; } }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero-spark {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0));
  animation: sparkFloat 4s ease-in-out infinite;
}
@keyframes sparkFloat { 0%, 100% { transform: translateY(0); opacity: .25; } 50% { transform: translateY(-30px); opacity: 1; } }
.hero-emoji { font-size: 4.4rem; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.hero-slide.fx-float .hero-emoji { animation: float 3.4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-slide h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; margin: 8px 0 6px; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.hero-slide p { color: rgba(255,255,255,.88); max-width: 560px; font-size: .98rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-hero {
  margin-top: 20px; background: #fff; color: #1a1d2e; font-weight: 800;
  padding: 13px 32px; border-radius: 16px; border: none; cursor: pointer;
  font-size: .95rem; font-family: inherit; transition: .25s;
  box-shadow: 0 10px 26px rgba(0,0,0,.28); display: inline-flex; gap: 8px; align-items: center;
}
.btn-hero:hover { transform: translateY(-3px) scale(1.02); }
.btn-hero-pulse { animation: pulseB 1.7s ease-in-out infinite; }
@keyframes pulseB {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
  50% { transform: scale(1.06); box-shadow: 0 16px 40px rgba(255,255,255,.45); }
}
/* پیش‌نمایش استودیو بنر در پنل مدیریت */
.bnprev-frame { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; height: 240px; position: relative; }
.bnprev-frame .hero-slide { position: absolute; inset: 0; }
.bnprev-frame .hero-emoji { font-size: 2.6rem; }
.bnprev-frame .hero-slide h1 { font-size: 1.3rem; margin: 4px 0 2px; }
.bnprev-frame .hero-slide p { font-size: .8rem; }
.bnprev-frame .btn-hero { margin-top: 10px; padding: 8px 18px; font-size: .78rem; border-radius: 12px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.34); }
.hero-arrow.next { inset-inline-start: 16px; }
.hero-arrow.prev { inset-inline-end: 16px; }
.hero-dots { position: absolute; bottom: 18px; right: 50%; transform: translateX(50%); display: flex; gap: 7px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.active { width: 26px; background: #fff; }

/* ---------- کارت‌های خدمات (ارسال سریع، ضمانت و...) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 16px 18px; display: flex; gap: 12px; align-items: center; transition: .25s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.f-ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2); display: grid; place-items: center;
}
.f-ico .icon { width: 23px; height: 23px; }
.feature-card h4 { font-size: .92rem; font-weight: 700; }
.feature-card span { font-size: .76rem; color: var(--muted); }

/* ---------- بخش‌ها و تیترها ---------- */
.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 1.35rem; font-weight: 800; position: relative; padding-inline-start: 16px; }
.section-title::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 7px; bottom: 7px;
  width: 6px; border-radius: 4px; background: var(--grad);
}
.section-link { color: var(--accent-2); font-size: .85rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.section-link:hover { text-decoration: underline; }

/* ---------- دسته‌بندی‌ها ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px 10px; text-align: center; cursor: pointer; transition: .25s;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.cat-card.active { border-color: var(--accent); box-shadow: 0 8px 26px var(--glow); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.cat-emoji { font-size: 2.3rem; display: block; transition: .3s; }
.cat-card:hover .cat-emoji { transform: scale(1.15) rotate(-6deg); }
.cat-name { font-weight: 700; margin-top: 8px; font-size: .92rem; display: block; }
.cat-count { color: var(--muted); font-size: .75rem; }

/* ---------- نوار ابزار فیلتر ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 20px;
}
.toolbar .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.range-wrap { display: flex; align-items: center; gap: 10px; min-width: 230px; flex: 1; }
input[type="range"] { accent-color: var(--accent); flex: 1; cursor: pointer; }
.range-val { font-size: .78rem; color: var(--accent-2); font-weight: 700; white-space: nowrap; }
.check { display: flex; gap: 6px; align-items: center; color: var(--muted); cursor: pointer; font-size: .85rem; white-space: nowrap; }
.check input { width: 16px; height: 16px; cursor: pointer; }
.result-count { color: var(--muted); margin-inline-start: auto; font-size: .82rem; }
.reset-link { color: var(--red); font-size: .8rem; background: none; border: none; cursor: pointer; font-weight: 600; }

/* ---------- شبکه محصولات ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 18px; padding-bottom: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow);
}
.p-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
/* عکس محصول: کامل داخل «جای عکس» دیده می‌شود، بدون بریدگی و زوم */
.p-media img.p-emoji {
  max-width: 76%; max-height: 76%; width: auto; height: auto; object-fit: contain;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 18px; padding: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.p-emoji { font-size: 4.6rem; filter: drop-shadow(0 12px 20px rgba(0,0,0,.3)); transition: transform .35s; }
.product-card:hover .p-emoji { transform: scale(1.12) rotate(-4deg); }
.p-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge-off {
  background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800;
  padding: 3px 11px; border-radius: 99px; box-shadow: 0 4px 12px rgba(239,68,68,.4);
}
.badge-new { background: #0ea5e9; color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 11px; border-radius: 99px; box-shadow: 0 4px 12px rgba(14,165,233,.4); }
.fav-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px;
  border-radius: 12px; background: rgba(255,255,255,.88); color: #64748b;
  display: grid; place-items: center; border: none; cursor: pointer; transition: .25s;
  backdrop-filter: blur(4px);
}
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn:hover { transform: scale(1.1); color: #ef4444; }
.fav-btn.active { color: #ef4444; }
.fav-btn.active svg { fill: currentColor; }
.out-overlay {
  position: absolute; inset: 0; background: rgba(10,12,20,.55); display: grid;
  place-items: center; color: #fff; font-weight: 800; backdrop-filter: blur(2px); font-size: 1.1rem;
}
.p-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat {
  font-size: .7rem; color: var(--accent-2); font-weight: 600;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  padding: 3px 10px; border-radius: 99px; align-self: flex-start;
}
.p-name {
  font-size: .95rem; font-weight: 700; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-rate { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1.5px; font-size: .82rem; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; gap: 10px; padding-top: 6px; }
.p-price { display: flex; flex-direction: column; line-height: 1.4; }
.p-price del { color: var(--muted); font-size: .74rem; }
.p-price strong { font-weight: 800; font-size: 1rem; }
.p-price small { font-size: .68rem; font-weight: 500; color: var(--muted); }
.add-btn {
  display: flex; gap: 6px; align-items: center; padding: 10px 15px; border-radius: 13px;
  background: var(--grad); color: #fff; border: none; font-weight: 700; cursor: pointer;
  font-size: .83rem; transition: .25s; box-shadow: 0 6px 16px var(--glow);
}
.add-btn .icon { width: 17px; height: 17px; }
.add-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.add-btn:disabled { opacity: .4; cursor: not-allowed; }
.empty-box { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; }
.empty-box .big { font-size: 3.4rem; display: block; margin-bottom: 12px; }

/* ============================================================
   فوتر
   ============================================================ */
.footer { margin-top: 46px; background: var(--bg-soft); border-top: 1px solid var(--border); padding: 46px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.f-about p { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.f-title { font-weight: 800; margin-bottom: 12px; font-size: 1rem; }
.f-links a { display: block; color: var(--muted); padding: 4px 0; font-size: .88rem; transition: .2s; }
.f-links a:hover { color: var(--accent-2); padding-inline-start: 5px; }
.f-contact div { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .85rem; padding: 5px 0; }
.f-contact .icon { color: var(--accent-2); width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter .input { flex: 1; }
.trust { display: flex; gap: 10px; margin-top: 18px; }
.trust-box {
  width: 78px; height: 78px; border: 1px dashed var(--border); border-radius: 14px;
  display: grid; place-items: center; color: var(--muted); font-size: .62rem;
  text-align: center; line-height: 1.5; padding: 6px;
}
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 32px; padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.socials { display: flex; gap: 8px; }
.soc {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--muted); transition: .25s;
}
.soc:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.soc .icon { width: 18px; height: 18px; }

/* ============================================================
   کشوها (سبد خرید و منوی موبایل)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; background: rgba(5,7,14,.62); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: .3s; z-index: 200;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(420px, 94vw); background: var(--bg-soft);
  z-index: 210; display: flex; flex-direction: column;
  transition: transform .38s cubic-bezier(.22,.9,.3,1);
}
.cart-drawer { left: 0; transform: translateX(-105%); box-shadow: var(--shadow); }
.cart-drawer.open { transform: none; }
.mobile-nav { right: 0; transform: translateX(105%); }
.mobile-nav.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 800;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 14px 20px 18px; background: var(--surface); }

.cart-item {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 16px; background: var(--surface); margin-bottom: 12px; align-items: center;
}
.ci-thumb { width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; overflow: hidden; }
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; padding: 3px; background: rgba(255,255,255,.2); }
.ci-info { flex: 1; min-width: 0; }
.ci-info h4 { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info .ci-price { color: var(--accent-2); font-weight: 700; font-size: .84rem; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.qty button { width: 28px; height: 28px; background: none; border: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { color: var(--accent-2); }
.qty .icon { width: 14px; height: 14px; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .85rem; }
.ci-del { color: var(--red); background: none; border: none; cursor: pointer; display: grid; place-items: center; padding: 4px; }
.ci-del .icon { width: 17px; height: 17px; }
.cart-empty { text-align: center; padding: 56px 10px; color: var(--muted); }
.cart-empty .big { font-size: 3.6rem; display: block; margin-bottom: 12px; }

.sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: .88rem; }
.sum-row.total { color: var(--text); font-weight: 800; font-size: 1.02rem; border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 11px; }
.sum-row .val { color: var(--text); font-weight: 700; }
.sum-row .val.green { color: var(--green); }
.coupon-row { display: flex; gap: 8px; margin: 12px 0 10px; }
.coupon-row .input { flex: 1; }
.free-note { font-size: .76rem; color: var(--green); margin-bottom: 10px; }

.mobile-nav {
  right: 0; transform: translateX(105%);
  background: var(--bg-soft);
  background:
    radial-gradient(600px 260px at 100% 0, rgba(139, 92, 246, .18), transparent 65%),
    radial-gradient(500px 240px at 0% 100%, rgba(192, 132, 252, .12), transparent 60%),
    var(--bg-soft);
}
.mn-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mn-brand { display: flex; gap: 10px; align-items: center; }
.mn-brand b { display: block; font-size: 1rem; }
.mn-brand small { color: var(--muted); font-size: .6rem; letter-spacing: 2px; }
.mn-user { padding: 14px 20px 2px; }
.mn-user-card, .mn-user-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: right;
  padding: 13px 14px; border-radius: 18px; cursor: pointer; color: var(--text); font-family: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, .20), rgba(192, 132, 252, .12));
  border: 1px solid rgba(139, 92, 246, .45);
  box-shadow: 0 8px 22px var(--glow); transition: .25s;
}
.mn-user-card:hover, .mn-user-btn:hover { transform: translateY(-2px); }
.mn-user-card b, .mn-user-btn b { display: block; font-size: .92rem; color: var(--text); }
.mn-user-card small, .mn-user-btn small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.mn-user-go { margin-inline-start: auto; color: var(--accent-2); display: grid; }
.mn-user-go .icon { width: 18px; height: 18px; }
.mn-body { flex: 1; overflow-y: auto; padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mn-group { margin: 14px 8px 6px; font-size: .68rem; font-weight: 800; color: var(--muted); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.mn-group::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.mn-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  color: var(--text); transition: background .22s, border-color .22s, transform .22s;
  border: 1px solid transparent;
}
.mn-link:hover { background: var(--surface); border-color: var(--border); transform: translateX(-4px); }
.mn-link:hover .mn-ico { box-shadow: 0 6px 16px var(--glow); transform: scale(1.06); }
.mn-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, .35);
  background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(192, 132, 252, .26));
  transition: .25s;
}
.mn-ico .icon { width: 20px; height: 20px; color: var(--accent-2); }
.mn-txt { flex: 1; min-width: 0; }
.mn-txt b { display: block; font-size: .92rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-txt small { display: block; color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-arr { color: var(--muted); opacity: .55; transition: .2s; flex-shrink: 0; }
.mn-arr .icon { width: 16px; height: 16px; }
.mn-link:hover .mn-arr { color: var(--accent-2); opacity: 1; transform: translateX(-3px); }
/* انیمیشن پله‌ای ساده و سازگار با همه مرورگرها: تاخیر مستقیم inline، بدون calc و متغیر */
.mobile-nav.open .mn-link { animation-name: mnIn; animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .3, 1); animation-fill-mode: backwards; }
@keyframes mnIn { from { opacity: 0; transform: translateX(26px); } }
.mn-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mn-foot > span { color: var(--muted); font-size: .72rem; }
.mn-socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mn-socials .soc { width: 38px; height: 38px; }
.mn-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mn-foot > span { color: var(--muted); font-size: .72rem; }
.mn-socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mn-socials .soc { width: 38px; height: 38px; }

/* ============================================================
   مودال‌ها
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 18px; opacity: 0; pointer-events: none; transition: .3s;
}
.modal::before { content: ''; position: absolute; inset: 0; background: rgba(5,7,14,.68); backdrop-filter: blur(5px); }
.modal-card {
  position: relative; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 24px; width: 100%; max-width: 880px; max-height: 92vh;
  overflow-y: auto; transform: translateY(26px) scale(.97); transition: .32s;
  box-shadow: var(--shadow);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal.open .modal-card { transform: none; }
.modal-card.sm { max-width: 580px; }
.modal-close {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.modal-close:hover { color: var(--red); border-color: var(--red); }

/* مودال جزئیات محصول */
.pm-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; padding: 26px; }
.pm-media { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; font-size: 6rem; position: sticky; top: 0; }
.pm-media .p-emoji { font-size: 6.4rem; }
.pm-colors { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
.c-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; transition: .2s; padding: 0; }
.c-dot.active { border-color: #fff; box-shadow: 0 0 0 3px var(--glow); transform: scale(1.08); }
.pm-info h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.6; margin: 6px 0 10px; }
.pm-desc { color: var(--muted); font-size: .9rem; margin: 10px 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.spec {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 12px; font-size: .78rem; display: flex; justify-content: space-between; gap: 8px;
}
.spec span { color: var(--muted); }
.spec b { font-weight: 700; }
.pm-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 16px; margin-top: 12px; flex-wrap: wrap;
}
.pm-price { display: flex; flex-direction: column; line-height: 1.5; }
.pm-price del { color: var(--muted); font-size: .8rem; }
.pm-price strong { font-size: 1.3rem; font-weight: 900; color: var(--accent-2); }
.pm-price small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.pm-off { color: var(--green); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.pm-actions { display: flex; gap: 10px; align-items: center; }
.pm-stock { font-size: .78rem; font-weight: 700; }
.pm-stock.ok { color: var(--green); }
.pm-stock.low { color: var(--gold); }
.pm-stock.out { color: var(--red); }

/* مودال ثبت سفارش */
.checkout-body { padding: 26px; }
.checkout-body h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.checkout-body .sub { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.co-summary {
  background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
  padding: 14px 16px; margin: 16px 0 6px;
}
.co-summary .sum-row.total { border: none; margin: 0; padding-top: 6px; }
.pay-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.pay-opt {
  border: 1px solid var(--border); border-radius: 14px; padding: 13px 8px; text-align: center;
  cursor: pointer; font-size: .8rem; background: var(--surface); transition: .2s;
  display: flex; flex-direction: column; gap: 6px; align-items: center; font-weight: 600;
}
.pay-opt .icon { width: 22px; height: 22px; color: var(--muted); }
.pay-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); color: var(--accent-2); }
.pay-opt:has(input:checked) .icon { color: var(--accent-2); }
.pay-opt input { display: none; }
.success-view { text-align: center; padding: 48px 24px; }
.success-ico {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green);
  display: grid; place-items: center; animation: pop .5s;
}
.success-ico .icon { width: 42px; height: 42px; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-view h2 { font-weight: 900; margin-bottom: 8px; }
.success-view p { color: var(--muted); font-size: .9rem; }
.order-num {
  display: inline-block; background: var(--surface); border: 1px dashed var(--accent);
  color: var(--accent-2); font-weight: 800; border-radius: 12px; padding: 8px 22px;
  margin: 16px 0; font-size: 1.05rem;
}

/* مودال علاقه‌مندی */
.fav-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 10px; }
.fav-item .ci-thumb { width: 54px; height: 54px; font-size: 1.5rem; }
.fav-item h4 { font-size: .85rem; font-weight: 700; flex: 1; }
.fav-item .fi-price { color: var(--accent-2); font-weight: 700; font-size: .82rem; white-space: nowrap; }

/* ---------- اعلان (توست) ---------- */
.toast-wrap {
  position: fixed; bottom: 22px; right: 50%; transform: translateX(50%);
  z-index: 500; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
  background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--green);
  padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; font-size: .87rem; font-weight: 600;
  animation: toastIn .35s; max-width: 92vw;
}
.toast.error { border-inline-start-color: var(--red); }
.toast.info { border-inline-start-color: var(--accent); }
.toast .icon { width: 19px; height: 19px; color: var(--green); }
.toast.error .icon { color: var(--red); }
.toast.info .icon { color: var(--accent-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- دکمه بازگشت به بالا ---------- */
.to-top {
  position: fixed; bottom: 22px; inset-inline-start: 22px; width: 46px; height: 46px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 150;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- انیمیشن ورود بخش‌ها ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   درباره ما و تماس
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.about-grid p { color: var(--muted); font-size: .93rem; margin-bottom: 10px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px; text-align: center; transition: .25s;
}
.stat-mini:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-mini b { font-size: 1.5rem; font-weight: 900; color: var(--accent-2); display: block; }
.stat-mini span { font-size: .78rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px 18px; text-align: center; transition: .25s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .f-ico { margin: 0 auto 12px; }
.contact-card h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: .84rem; }

/* ============================================================
   پنل مدیریت
   ============================================================ */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 30px; text-align: center; box-shadow: var(--shadow);
}
.login-card .logo-badge { margin: 0 auto 14px; width: 62px; height: 62px; font-size: 1.9rem; border-radius: 20px; }
.login-card h1 { font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: .84rem; margin-bottom: 22px; }
.login-card .field { text-align: right; margin-bottom: 14px; }
.login-err { color: var(--red); font-size: .8rem; min-height: 20px; margin-top: 8px; }
.hint { color: var(--muted); font-size: .74rem; margin-top: 14px; }
.hint kbd { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-family: inherit; direction: ltr; display: inline-block; }

.a-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50; flex-wrap: wrap;
}
.a-top .logo-text { font-size: 1.05rem; }
.a-top-actions { display: flex; gap: 8px; }
.a-tabs { display: flex; gap: 8px; padding: 18px 22px 0; max-width: 1200px; margin: auto; flex-wrap: wrap; }
.a-tab {
  padding: 10px 20px; border-radius: 14px 14px 0 0; background: var(--surface);
  border: 1px solid var(--border); border-bottom: none; color: var(--muted);
  cursor: pointer; font-weight: 700; font-size: .88rem; transition: .2s;
}
.a-tab.active { color: #fff; background: var(--grad); border-color: transparent; }
.a-wrap { max-width: 1200px; margin: auto; padding: 20px 22px 50px; }
.a-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.a-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.a-panel-head h2 { font-size: 1.05rem; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 4px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px; display: flex; gap: 14px; align-items: center; transition: .25s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card b { font-size: 1.35rem; font-weight: 900; display: block; }
.stat-card span { font-size: .78rem; color: var(--muted); }
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.a-table th, .a-table td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--border); font-size: .86rem; }
.a-table th { color: var(--muted); font-weight: 600; font-size: .76rem; }
.a-table tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.a-thumb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }
.a-actions { display: flex; gap: 6px; }
.mini-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); cursor: pointer; display: grid;
  place-items: center; transition: .2s;
}
.mini-btn .icon { width: 15px; height: 15px; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.order-card { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: var(--bg-soft); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-head b { color: var(--accent-2); }
.order-meta { color: var(--muted); font-size: .8rem; }
.order-items { margin: 10px 0; padding: 10px 14px; background: var(--surface); border-radius: 12px; font-size: .82rem; }
.order-items div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.order-items div b { color: var(--text); font-weight: 600; }
.status-select { padding: 6px 10px; border-radius: 10px; font-size: .78rem; font-weight: 700; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-height: 150px; overflow-y: auto; padding: 4px; }
.emoji-opt { font-size: 1.25rem; padding: 6px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; }
.emoji-opt:hover, .emoji-opt.active { border-color: var(--accent); background: var(--bg-soft); }

/* ============================================================
   صفحه راهنما
   ============================================================ */
.guide-wrap { max-width: 860px; margin: auto; padding: 40px 20px 60px; }
.guide-wrap h1 { font-size: 1.7rem; font-weight: 900; margin-bottom: 6px; }
.guide-wrap .lead { color: var(--muted); margin-bottom: 30px; }
.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 26px 28px; margin-bottom: 18px;
}
.guide-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.guide-card h2 .num {
  width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: .9rem; flex-shrink: 0;
}
.guide-card p, .guide-card li { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.guide-card ol, .guide-card ul { padding-inline-start: 22px; }
.guide-card b { color: var(--text); }
.guide-card code, .guide-card kbd {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 7px;
  padding: 1px 8px; font-size: .84rem; direction: ltr; display: inline-block; font-family: Consolas, monospace;
}
.guide-warn {
  border-inline-start: 4px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-size: .86rem;
}
.guide-ok {
  border-inline-start: 4px solid var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface));
  border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-size: .86rem;
}

/* ============================================================
   ثبت‌نام و حساب کاربری
   ============================================================ */
.auth-card { max-width: 600px; }
.auth-head { text-align: center; padding-top: 6px; }
.auth-head .logo-badge { margin: 0 auto 10px; width: 58px; height: 58px; font-size: 1.7rem; border-radius: 18px; }
.auth-head h2 { font-size: 1.25rem; font-weight: 900; }
.auth-head p { color: var(--muted); font-size: .84rem; }
.auth-tabs { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 14px; margin: 16px 0 4px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 11px; background: none; border: none; color: var(--muted); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .9rem; transition: .2s; }
.auth-tab.active { background: var(--grad); color: #fff; }

.stepper { display: flex; align-items: center; gap: 7px; margin: 16px 0 20px; }
.s-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; transition: .3s;
}
.s-dot.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--glow); }
.s-dot.done { background: var(--green); color: #04110a; }
.s-line { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-2); transition: .3s; }
.s-line.done { background: var(--green); }
.s-label { font-size: .68rem; color: var(--muted); margin-top: 4px; text-align: center; }

.reg-step { display: none; }
.reg-step.active { display: block; animation: toastIn .3s; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-fields { display: flex; flex-direction: column; gap: 13px; }

.pw-meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: .3s; }
.pw-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; }

.commit-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; font-size: .88rem; color: var(--muted); line-height: 2;
}
.commit-box b { color: var(--text); }
.commit-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.commit-check input { width: 18px; height: 18px; margin-top: 3px; cursor: pointer; }

.otp-row { display: flex; gap: 10px; direction: ltr; justify-content: center; margin: 18px 0; }
.otp-box {
  width: 52px; height: 60px; text-align: center; font-size: 1.45rem; font-weight: 800;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); outline: none; transition: .2s;
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sms-note {
  background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border: 1px dashed var(--gold);
  color: var(--gold); border-radius: 14px; padding: 12px 16px; font-size: .86rem; text-align: center; margin-bottom: 6px;
}
.sms-note b { font-size: 1.15rem; letter-spacing: 4px; direction: ltr; display: inline-block; }
.resend-row { text-align: center; margin-top: 14px; }
.resend-btn { background: none; border: none; color: var(--accent-2); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .86rem; }
.resend-btn:disabled { color: var(--muted); cursor: not-allowed; }
.reg-nav { display: flex; gap: 10px; margin-top: 20px; }
.reg-nav .btn { flex: 1; }

.user-chip { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .85rem; transition: .25s; max-width: 170px;
}
.user-btn:hover { border-color: var(--accent); }
.u-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.user-btn span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu {
  position: absolute; top: 52px; inset-inline-end: 0; width: 270px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; z-index: 120; display: none;
}
.user-menu.open { display: block; animation: toastIn .25s; }
.um-head { display: flex; flex-direction: column; padding-bottom: 10px; border-bottom: 1px dashed var(--border); margin-bottom: 10px; }
.um-head b { font-size: .95rem; }
.um-head span { color: var(--muted); font-size: .78rem; direction: ltr; text-align: right; }
.um-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.um-stats div { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; font-size: .7rem; color: var(--muted); text-align: center; }
.um-stats b { display: block; color: var(--accent-2); font-size: .95rem; }
.um-points-note { font-size: .72rem; color: var(--muted); text-align: center; margin-bottom: 10px; }
.um-logout { width: 100%; padding: 9px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--red); font-weight: 700; cursor: pointer; font-family: inherit; transition: .2s; }
.um-logout:hover { border-color: var(--red); }
.um-link { text-align: right; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit; font-weight: 600; font-size: .85rem; transition: .2s; }
.um-link:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- امتیاز در سبد ---------- */
.points-row { display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.points-note { font-size: .78rem; color: var(--muted); }
.points-note b { color: var(--accent-2); }

/* ---------- نشان وضعیت سفارش و تایم‌لاین ---------- */
.status-badge { font-size: .76rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.track { display: flex; justify-content: space-between; gap: 4px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; opacity: .4; }
.track-step.done { opacity: 1; }
.track-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.track-step.done .track-dot { background: var(--grad); color: #fff; box-shadow: 0 4px 12px var(--glow); }
.track-lbl { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.track-step.done .track-lbl { color: var(--text); font-weight: 700; }

/* ---------- گالری و رنگ‌ها در مودال محصول ---------- */
.pm-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pm-thumb { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); background: var(--surface-2); cursor: pointer; padding: 0; transition: .2s; display: grid; place-items: center; }
.pm-thumb img { max-width: 92%; max-height: 92%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.18); }
.pm-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px;
  border: 2px solid var(--border); background: var(--surface); cursor: pointer;
  color: var(--text); font-family: inherit; font-size: .8rem; font-weight: 600; transition: .2s;
}
.color-chip .cc-hex { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,.3); }
.color-chip small { color: var(--muted); font-size: .68rem; }
.color-chip.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.color-chip:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- ردیف‌های داینامیک پنل ---------- */
.dyn-list { display: flex; flex-direction: column; gap: 8px; }
.dyn-row { display: flex; gap: 8px; align-items: center; }
.dyn-row .input { flex: 1; }
.color-input { width: 44px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 3px; }

/* ---------- صفحه پرداخت کارت به کارت ---------- */
.cp-picker {
  max-height: 230px; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); display: flex; flex-direction: column; gap: 2px; padding: 6px;
}
.cp-urow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.cp-urow:hover { background: var(--surface-2); }
.cp-urow.active { border-color: var(--accent); background: rgba(139, 92, 246, .12); }
.cp-uinfo { flex: 1; min-width: 0; text-align: right; }
.cp-uinfo b { display: block; font-size: .85rem; color: var(--text); }
.cp-uinfo small { color: var(--muted); font-size: .72rem; direction: ltr; display: block; text-align: right; }
.cp-check { color: var(--accent-2); font-weight: 900; width: 20px; text-align: center; }
.cp-picked { font-size: .8rem; color: var(--accent-2); font-weight: 800; margin: 4px 0 6px; }

.cardpay { text-align: center; }
.cp-amount {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(192, 132, 252, .10));
  border: 1px dashed var(--accent); border-radius: 16px; padding: 12px 16px; margin: 12px 0;
}
.cp-amount small { display: block; color: var(--muted); font-size: .74rem; }
.cp-amount b { font-size: 1.25rem; font-weight: 900; color: var(--accent-2); }
.cp-card {
  display: flex; justify-content: center; margin: 8px 0 4px;
}
.cp-card img {
  width: min(280px, 82%); border-radius: 18px;
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  background: rgba(255, 255, 255, .06); padding: 4px;
}
.cp-num {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 16px; margin: 12px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; flex-wrap: wrap;
}
.cp-num small { display: block; color: var(--muted); font-size: .72rem; }
.cp-num b { font-size: 1.2rem; letter-spacing: 2px; }
.cp-holder { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.cp-holder b { color: var(--text); }
.cp-upload { margin: 10px 0; }
.cp-thumb {
  width: 130px; height: 90px; object-fit: contain; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); margin: 8px 0 4px; padding: 4px;
}
.cardpay .btn-block { margin-top: 8px; }

/* ---------- واکنش‌گرایی (موبایل و تبلت)
   ============================================================ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-media { position: static; max-width: 340px; margin: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .menu-btn { display: grid; }
  .nav { display: none; }
  .search-box { order: 10; flex-basis: 100%; max-width: none; }
  .user-btn .u-name { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .otp-box { width: 44px; height: 54px; font-size: 1.2rem; }
  .hero-frame { height: 320px; }
  .hero-imgwrap { width: 88px; padding: 6px; inset-inline-start: 3%; border-radius: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-opts { grid-template-columns: 1fr; }
  .a-tabs { overflow-x: auto; }
  .toolbar { gap: 10px; }
  .result-count { width: 100%; margin: 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero-frame { height: 360px; }
  .logo-text small { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}
