/* =============================================================
   ای گیمرز ۸۶ — استایل‌شیت اصلی
   دسکتاپ و موبایل در یک سایت ریسپانسیو (breakpoint: 768px)
   ============================================================= */

/* ── توکن‌های طراحی ─────────────────────────────────────────── */
:root {
  --bg-page:      #04060a;
  --bg-surface:   #070b12;
  --bg-input:     #04121a;
  --bg-card:      rgba(255, 255, 255, 0.035);

  --cyan:         #3fe0ff;
  --cyan-dark:    #1fb8d8;
  --orange:       #ff8a2a;
  --steam:        #9fc4ff;
  --purple:       #c9a6ff;
  --green:        #7ee787;

  --text:         #e8f2f7;
  --text-body:    #a9bcc7;
  --text-body-2:  #c4d6df;
  --muted:        #8fa6b3;
  --faint:        #63788a;

  --border:       rgba(63, 224, 255, 0.14);
  --border-str:   rgba(63, 224, 255, 0.5);

  --grad-cta:     linear-gradient(135deg, #3fe0ff, #1fb8d8);
  --glow-cyan:    0 0 36px rgba(63, 224, 255, 0.35);

  --r-card:   18px;
  --r-btn:    12px;
  --r-modal:  24px;
  --r-pill:   100px;

  --container: 1440px;

  --grid-line: rgba(63, 224, 255, 0.045);
  --scrollbar: rgba(63, 224, 255, 0.2);

  /* متن نوار اطلاع‌رسانی — در پنل قابل تغییر است */
  --announce-text: #cfe9f2;
  --announce-bg:   linear-gradient(90deg, rgba(255, 138, 42, 0.16), rgba(63, 224, 255, 0.16));
  color-scheme: dark;
}

/* ── تم روشن ────────────────────────────────────────────────── */
/* رنگ‌های برند (سایان/نارنجی) حفظ می‌شوند ولی پس‌زمینه و متن معکوس */
:root[data-theme="light"] {
  --bg-page:      #e9eff5;
  --bg-surface:   #f5f8fb;
  --bg-input:     #ffffff;
  --bg-card:      rgba(12, 45, 66, 0.035);

  --cyan:         #0b93b8;   /* تیره‌تر برای خوانایی روی پس‌زمینه روشن */
  --cyan-dark:    #0a7a99;
  --orange:       #e0700f;
  --steam:        #3b6ca8;
  --purple:       #7b52c9;
  --green:        #2f9e57;

  --text:         #0e2733;
  --text-body:    #38525f;
  --text-body-2:  #2b4552;
  --muted:        #5a7280;
  --faint:        #8598a4;

  --border:       rgba(11, 147, 184, 0.18);
  --border-str:   rgba(11, 147, 184, 0.5);

  --grad-cta:     linear-gradient(135deg, #22c3ec, #0b93b8);
  --glow-cyan:    0 6px 22px rgba(11, 147, 184, 0.28);

  --grid-line:    rgba(11, 147, 184, 0.05);
  --scrollbar:    rgba(11, 147, 184, 0.28);

  /* روی پس‌زمینه روشن باید متن تیره باشد وگرنه خوانده نمی‌شود */
  --announce-text: #0e2733;
  --announce-bg:   linear-gradient(90deg, rgba(224, 112, 15, 0.14), rgba(11, 147, 184, 0.14));
  color-scheme: light;
}

/* در تم روشن، متن روی دکمه اصلی سفید باشد نه تیره */
:root[data-theme="light"] .btn-primary { color: #fff; }
:root[data-theme="light"] .badge-sale  { color: #fff; }

/* هاله‌های نئونی در تم روشن ملایم شوند */
:root[data-theme="light"] .hero h1 .c,
:root[data-theme="light"] .hero h1 .o { text-shadow: none; }
:root[data-theme="light"] .dot,
:root[data-theme="light"] .dot-o,
:root[data-theme="light"] .step-num,
:root[data-theme="light"] .feature .bullet { box-shadow: none; }
:root[data-theme="light"] .hero-halo { opacity: .5; }

/* کارت‌ها در تم روشن سایه ملایم بگیرند تا از پس‌زمینه جدا شوند */
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .card,
:root[data-theme="light"] .cat-card,
:root[data-theme="light"] .feature,
:root[data-theme="light"] .testimonial,
:root[data-theme="light"] .accordion {
  box-shadow: 0 2px 10px rgba(12, 45, 66, 0.06);
}

/* ── پایه ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg-surface);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange); }

img { max-width: 100%; }

h1, h2, h3 { font-family: 'Lalezar', Tahoma, sans-serif; font-weight: 400; margin: 0; }

button { font-family: inherit; }

summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* اسکرول‌بار */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-str); }

body { transition: background .25s ease, color .25s ease; }

/* ── دکمه تغییر تم ───────────────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.theme-toggle:hover { border-color: var(--border-str); transform: translateY(-2px); }

.theme-toggle .theme-icon { line-height: 1; }
/* در تم تاریک آیکن ماه، در تم روشن آیکن خورشید نمایش داده شود */
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-dark  { display: none; }
:root[data-theme="light"] .theme-icon-light { display: inline; }

/* ── گرید سایبری پس‌زمینه ───────────────────────────────────── */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; }

/* ── انیمیشن‌ها ─────────────────────────────────────────────── */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── چیدمان ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 48px;
  width: 100%;
}

.container-narrow { max-width: 900px; }
.container-mid    { max-width: 1100px; }

.section { padding-block: 56px; }
.section-sm { padding-block: 32px; }

.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ── نوار اطلاع‌رسانی ───────────────────────────────────────── */
.announcement {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--announce-bg);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--announce-text);
  text-align: center;
}

.announcement b { color: var(--orange); font-weight: 700; }

/* ── ناوبری ─────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { color: var(--text); }

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(63, 224, 255, 0.35);
  object-fit: cover;
}

.brand-name {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.brand-name span { color: var(--cyan); }

.brand-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a.active { color: var(--text); }
.nav-links a:hover { color: var(--orange); }

.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── دکمه‌ها ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-align: center;
}

.btn-primary {
  background: var(--grad-cta);
  color: var(--bg-input);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--bg-input);
  box-shadow: 0 0 52px rgba(63, 224, 255, 0.55);
}

.btn-outline {
  border-color: var(--border-str);
  color: var(--cyan);
  background: transparent;
}

.btn-outline:hover { background: rgba(63, 224, 255, 0.12); color: var(--cyan); }

.btn-orange {
  border-color: rgba(255, 138, 42, 0.5);
  color: var(--orange);
  background: transparent;
}

.btn-orange:hover { background: rgba(255, 138, 42, 0.1); color: var(--orange); }

.btn-ghost {
  border-color: rgba(63, 224, 255, 0.4);
  color: var(--cyan);
  background: transparent;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
}

.btn-ghost:hover { background: rgba(63, 224, 255, 0.1); color: var(--cyan); }

.btn-lg { font-size: 17px; padding: 16px 44px; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── بج و چیپ ───────────────────────────────────────────────── */
.pill {
  display: inline-block;
  font-size: 13px;
  color: var(--cyan);
  border: 1px solid rgba(63, 224, 255, 0.35);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  background: rgba(63, 224, 255, 0.07);
}

.pill-orange {
  color: var(--orange);
  border-color: rgba(255, 138, 42, 0.35);
  background: rgba(255, 138, 42, 0.07);
}

.badge-sale {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: var(--orange);
  color: #1a0d02;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.badge-status {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  text-align: center;
  display: inline-block;
  white-space: nowrap;
}

/* ── کارت ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
}

.card-hl {
  background: rgba(63, 224, 255, 0.06);
  border-color: rgba(63, 224, 255, 0.25);
}

.card-orange {
  background: linear-gradient(160deg, rgba(255, 138, 42, 0.1), rgba(255, 138, 42, 0.02));
  border-color: rgba(255, 138, 42, 0.3);
}

/* ── کارت محصول ─────────────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-products-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
  color: var(--text);
}

.product-card:hover {
  border-color: var(--border-str);
  transform: translateY(-4px);
  color: var(--text);
}

.product-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.product-cover span.label {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 34px;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-title { font-weight: 700; font-size: 16px; }
.product-meta  { font-size: 12px; color: var(--muted); }

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-old {
  font-size: 12px;
  color: var(--faint);
  text-decoration: line-through;
}

.price-now { color: var(--cyan); font-weight: 700; }
.price-now small { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── فرم‌ها ─────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.input, .textarea, .select {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(63, 224, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color .18s ease;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--border-str);
}

.textarea { resize: vertical; min-height: 110px; }

.input::placeholder, .textarea::placeholder { color: var(--faint); }

.input-ltr { direction: ltr; text-align: left; font-family: monospace; }

/* ── پیام‌ها ────────────────────────────────────────────────── */
.alert {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.9;
  animation: fadeUp .25s ease;
}

.alert-success {
  background: rgba(126, 231, 135, 0.1);
  border: 1px solid rgba(126, 231, 135, 0.35);
  color: var(--green);
}

.alert-error {
  background: rgba(255, 138, 42, 0.1);
  border: 1px solid rgba(255, 138, 42, 0.35);
  color: var(--orange);
}

.alert-info {
  background: rgba(63, 224, 255, 0.08);
  border: 1px solid rgba(63, 224, 255, 0.3);
  color: var(--cyan);
}

/* ── آکاردئون ───────────────────────────────────────────────── */
.accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.accordion summary::after {
  content: '+';
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}

.accordion[open] summary::after { transform: rotate(45deg); }

.accordion p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 2;
  color: var(--text-body);
}

/* ── هیرو ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px 80px;
}

.hero h1 {
  font-size: 76px;
  line-height: 1.1;
  margin: 0;
}

.hero h1 .c { color: var(--cyan); text-shadow: 0 0 32px rgba(63, 224, 255, 0.55); }
.hero h1 .o { color: var(--orange); text-shadow: 0 0 32px rgba(255, 138, 42, 0.5); }

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-body);
  max-width: 520px;
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 224, 255, 0.22), transparent 65%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(63, 224, 255, 0.25);
  animation: floaty 6s ease-in-out infinite;
}

.trust-row { display: flex; gap: 28px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

.trust-row span { display: flex; align-items: center; gap: 8px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
}

.dot-o { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* ── تیترهای بخش ────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-head h2, .h2 { font-size: 40px; }
.h2-sm { font-size: 26px; }

.page-title { font-size: 60px; }

.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }

/* ── دسته‌بندی پلتفرم‌ها ────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--r-card);
  color: var(--text);
  border: 1px solid;
  transition: transform .2s ease, border-color .2s ease;
}

.cat-card:hover { transform: translateY(-4px); color: var(--text); }

.cat-card .t { font-family: 'Lalezar', Tahoma, sans-serif; font-size: 26px; }
.cat-card .d { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── نوار مراحل خرید ────────────────────────────────────────── */
.steps-band {
  padding-block: 56px;
  background: rgba(63, 224, 255, 0.03);
  border-top: 1px solid rgba(63, 224, 255, 0.1);
  border-bottom: 1px solid rgba(63, 224, 255, 0.1);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.step-num {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 56px;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(63, 224, 255, 0.5);
  line-height: 1;
}

.step-num.o { color: var(--orange); text-shadow: 0 0 24px rgba(255, 138, 42, 0.5); }
.step b { font-weight: 700; }
.step span.d { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── مزایا و نظرات ──────────────────────────────────────────── */
.split-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; }
.split-5-6 { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature .bullet {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
}

.feature .bullet.o { background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.testimonial {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial .quote {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 34px;
  line-height: 0.5;
  color: var(--cyan);
}

.testimonial p { margin: 0; font-size: 14px; line-height: 2; color: var(--text-body-2); }
.testimonial .who { font-size: 13px; color: var(--muted); }

/* ── صفحه محصول ─────────────────────────────────────────────── */
.product-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }

.cover-big {
  aspect-ratio: 1;
  border: 1px solid rgba(63, 224, 255, 0.2);
  border-radius: var(--r-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cover-big .label {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 96px;
  text-shadow: 0 0 48px rgba(63, 224, 255, 0.5);
}

.trust-badges { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }

.trust-badges span {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.capacity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.capacity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-body);
  transition: all .18s ease;
  text-align: center;
}

.capacity:hover { border-color: rgba(63, 224, 255, 0.35); }

.capacity.active {
  border-color: var(--cyan);
  background: rgba(63, 224, 255, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(63, 224, 255, 0.2);
}

.capacity .t { font-weight: 700; font-size: 15px; }
.capacity .s { font-size: 12px; opacity: .75; }
.capacity .p { font-weight: 700; font-size: 15px; }

.capacity.out { opacity: .45; }

/* ── منوی کشویی شیشه‌ای انتخاب ظرفیت ─────────────────────────── */
.capacity-select { position: relative; }

.capacity-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-btn);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  border: 1px solid var(--border-str);
  /* افکت شیشه‌ای */
  background: linear-gradient(135deg, rgba(63,224,255,0.08), rgba(63,224,255,0.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.capacity-trigger:hover { border-color: var(--cyan); }
.capacity-select.open .capacity-trigger {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(63, 224, 255, 0.2);
}

.capacity-trigger .cap-current { display: flex; flex-direction: column; gap: 3px; text-align: start; }
.capacity-trigger .cap-name { font-weight: 700; font-size: 15px; }
.capacity-trigger .cap-price { font-size: 14px; color: var(--cyan); font-weight: 700; }
.capacity-trigger .cap-price small { font-size: 11px; color: var(--muted); font-weight: 400; }

.capacity-arrow {
  color: var(--cyan);
  font-size: 14px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.capacity-select.open .capacity-arrow { transform: rotate(180deg); }

.capacity-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-card);
  border: 1px solid var(--border-str);
  /* fallback برای مرورگرهای قدیمی که color-mix ندارند */
  background: var(--bg-surface);
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  /* حالت بسته */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.capacity-select.open .capacity-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.capacity-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  text-align: start;
  transition: background .15s ease, color .15s ease;
}

.capacity-option:hover { background: rgba(63, 224, 255, 0.08); color: var(--text); }

.capacity-option.active {
  background: rgba(63, 224, 255, 0.12);
  border-color: var(--border-str);
  color: var(--cyan);
}

.capacity-option .co-name { font-weight: 700; font-size: 14px; }
.capacity-option .co-name small { font-weight: 400; font-size: 12px; color: var(--muted); margin-inline-start: 6px; }
.capacity-option .co-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.capacity-option.out { opacity: .5; }
.capacity-option.out .co-price::after { content: ' (ناموجود)'; font-size: 11px; color: var(--orange); }

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: rgba(63, 224, 255, 0.06);
  border: 1px solid rgba(63, 224, 255, 0.25);
  border-radius: 16px;
}

.price-box .big {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 36px;
  color: var(--cyan);
  line-height: 1;
}

.price-box .big small {
  font-size: 15px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--muted);
}

/* ── تایم‌لاین راهنمای خرید ─────────────────────────────────── */
.timeline-step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; }

.timeline-rail { display: flex; flex-direction: column; align-items: center; }

.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(63, 224, 255, 0.1);
  border: 1px solid rgba(63, 224, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 26px;
  color: var(--cyan);
  flex-shrink: 0;
}

.timeline-num.o {
  background: rgba(255, 138, 42, 0.1);
  border-color: rgba(255, 138, 42, 0.4);
  color: var(--orange);
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(63, 224, 255, 0.4), rgba(63, 224, 255, 0.08));
}

.timeline-line.o {
  background: linear-gradient(to bottom, rgba(255, 138, 42, 0.4), rgba(255, 138, 42, 0.08));
}

.timeline-body { padding-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.timeline-body h2 { font-size: 30px; }
.timeline-body p { margin: 0; font-size: 15px; line-height: 2; color: var(--text-body); }

/* ── پنل کاربری ─────────────────────────────────────────────── */
.panel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.panel-side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 24px;
}

.panel-tab {
  text-align: start;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: block;
  transition: all .18s ease;
}

.panel-tab:hover { color: var(--text); background: rgba(63, 224, 255, 0.05); }

.panel-tab.active {
  font-weight: 700;
  border-color: var(--border-str);
  background: rgba(63, 224, 255, 0.12);
  color: var(--cyan);
}

.panel-sep { height: 1px; background: rgba(63, 224, 255, 0.12); margin: 8px 4px; }

.stat-card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card .v {
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 32px;
  line-height: 1;
}

.stat-card .v small {
  font-size: 14px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--muted);
}

.stat-card .l { font-size: 13px; color: var(--muted); }

.stat-card.hl {
  background: rgba(63, 224, 255, 0.06);
  border-color: rgba(63, 224, 255, 0.25);
}

.stat-card.hl .v { color: var(--cyan); }

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.panel-box-head {
  padding: 20px 26px;
  border-bottom: 1px solid rgba(63, 224, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-box-head h2 { font-size: 24px; }

.order-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 150px 120px;
  gap: 16px;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(63, 224, 255, 0.07);
}

.order-row:last-child { border-bottom: none; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; }

.cred-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  word-break: break-all;
}

.cred-box .k { color: var(--muted); }
.cred-box .v { color: var(--text); }

.progress {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffb36b);
  border-radius: var(--r-pill);
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(63, 224, 255, 0.07);
  font-size: 14px;
}

.tx-row:last-child { border-bottom: none; }
.tx-in  { color: var(--green); font-weight: 700; }
.tx-out { color: var(--orange); font-weight: 700; }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

/* ── فوتر ───────────────────────────────────────────────────── */
.footer {
  padding-block: 32px;
  border-top: 1px solid rgba(63, 224, 255, 0.12);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-copy { font-size: 12px; color: var(--faint); }

/* ── منوی پایین موبایل ──────────────────────────────────────── */
.tabbar { display: none; }

/* ── چیپ‌های افقی (فیلتر موبایل) ────────────────────────────── */
.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.chip.active {
  border-color: var(--border-str);
  background: rgba(63, 224, 255, 0.12);
  color: var(--cyan);
  font-weight: 700;
}

/* ── نوار خرید چسبان موبایل ─────────────────────────────────── */
.buybar { display: none; }

/* =============================================================
   موبایل — زیر ۷۶۸ پیکسل
   ============================================================= */
@media (max-width: 767px) {

  .cyber-grid { background-size: 44px 44px; }

  .container { padding-inline: 20px; }

  body { padding-bottom: 88px; } /* جای منوی پایین */

  .section { padding-block: 36px; }

  /* ناوبری: لینک‌های وسط حذف، منوی پایین جایگزین */
  .nav-links { display: none; }
  .nav { padding-block: 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 20px; }

  /* هیرو */
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 28px 40px;
  }

  .hero h1 { font-size: 40px; }
  .hero p { font-size: 15px; }
  .hero-visual { order: -1; }
  .hero-logo { width: 200px; height: 200px; border-radius: 24px; }
  .hero-halo { width: 240px; height: 240px; }
  .hero .btn { width: 100%; }
  .hero .row { flex-direction: column; align-items: stretch; }

  .trust-row { gap: 16px; font-size: 13px; }

  /* تیترها */
  .section-head { margin-bottom: 20px; }
  .section-head h2, .h2 { font-size: 26px; }
  .page-title { font-size: 32px; }
  .h2-sm { font-size: 22px; }

  /* گریدها: تک‌ستونی */
  .grid-products,
  .grid-products-3,
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }

  .split-5-7,
  .split-7-5,
  .split-5-6,
  .product-hero { grid-template-columns: 1fr; gap: 28px; }

  /* کارت محصول: افقی */
  .product-card { flex-direction: row; }

  .product-cover {
    width: 96px;
    height: auto;
    min-height: 110px;
    flex-shrink: 0;
  }

  .product-cover span.label { font-size: 22px; }
  .product-body { padding: 14px; }
  .product-title { font-size: 14px; }

  .product-foot { flex-wrap: wrap; }

  /* دسته‌بندی‌ها: اسکرول افقی */
  .cats-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .cats-scroll::-webkit-scrollbar { display: none; }
  .cats-scroll .cat-card { min-width: 220px; padding: 20px; }
  .cats-scroll .cat-card .t { font-size: 20px; }

  /* نظرات: اسکرول افقی */
  .testimonials-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .testimonials-scroll::-webkit-scrollbar { display: none; }
  .testimonials-scroll .testimonial { min-width: 280px; }

  /* مراحل خرید */
  .steps-band .grid-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step-num { font-size: 40px; }

  /* صفحه محصول */
  .cover-big .label { font-size: 56px; }
  .capacity-grid { grid-template-columns: 1fr; }
  .capacity { flex-direction: row; justify-content: space-between; padding: 14px 16px; }

  /* باکس قیمت روی موبایل مخفی — نوار چسبان جایگزین */
  .price-box.desktop-only { display: none; }

  .buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    inset-inline: 0;
    bottom: 66px;
    z-index: 40;
    padding: 12px 20px;
    background: rgba(7, 11, 18, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }

  .buybar .p {
    font-family: 'Lalezar', Tahoma, sans-serif;
    font-size: 24px;
    color: var(--cyan);
    line-height: 1;
    white-space: nowrap;
  }

  .buybar .p small { font-size: 12px; font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--muted); }
  .buybar .btn { flex: 1; padding: 13px 20px; font-size: 15px; }

  body.has-buybar { padding-bottom: 150px; }

  /* تایم‌لاین */
  .timeline-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .timeline-num { width: 44px; height: 44px; font-size: 20px; }
  .timeline-body h2 { font-size: 22px; }
  .timeline-body p { font-size: 14px; }

  /* پنل کاربری */
  .panel-layout { grid-template-columns: 1fr; gap: 20px; }

  .panel-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px;
    gap: 8px;
  }

  .panel-side::-webkit-scrollbar { display: none; }

  .panel-tab {
    flex-shrink: 0;
    border-radius: var(--r-pill);
    padding: 9px 16px;
    font-size: 13px;
    border: 1px solid var(--border);
  }

  .panel-sep { display: none; }

  .grid-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .v { font-size: 24px; }

  /* سفارش‌ها: کارت به‌جای جدول */
  .order-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 16px 18px;
  }

  .order-row .col-code { grid-column: 1; font-size: 12px; }
  .order-row .col-title { grid-column: 1 / -1; order: -1; }
  .order-row .col-date { grid-column: 1; }
  .order-row .col-price { grid-column: 2; text-align: end; }
  .order-row .col-status { grid-column: 2; text-align: end; justify-self: end; }

  .panel-box-head { padding: 16px 18px; }
  .panel-box-head h2 { font-size: 20px; }

  /* فوتر */
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* منوی پایین ثابت */
  .tabbar {
    display: flex;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(7, 11, 18, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 0 10px;
  }

  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
    padding: 4px 0;
  }

  .tabbar a .ico { font-size: 20px; line-height: 1; }

  .tabbar a.active {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(63, 224, 255, 0.6);
  }

  .btn-lg { font-size: 15px; padding: 14px 28px; }

  .price-box { flex-direction: column; align-items: stretch; gap: 14px; }
  .price-box .btn { width: 100%; }
}

/* ── تبلت ───────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1100px) {
  .container { padding-inline: 28px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-products-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 52px; }
  .hero-logo { width: 280px; height: 280px; }
  .hero-halo { width: 320px; height: 320px; }
  .page-title { font-size: 44px; }
  .section-head h2, .h2 { font-size: 32px; }
  .nav-links { gap: 20px; font-size: 14px; }
}

/* ── چاپ ────────────────────────────────────────────────────── */
@media print {
  .cyber-grid, .tabbar, .buybar, .nav, .footer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =============================================================
   سرچ بار شیشه‌ای
   ============================================================= */

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin-inline: 24px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  /* افکت شیشه‌ای: پس‌زمینه نیمه‌شفاف + بلور پشت آن */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  border: 1px solid rgba(63, 224, 255, 0.18);
  border-radius: var(--r-pill);
  padding: 0 8px 0 18px;
  height: 46px;

  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.search-box::before {
  /* درخشش ملایم لبه بالایی — حس شیشه واقعی */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.search-wrap.is-open .search-box,
.search-box:focus-within {
  border-color: rgba(63, 224, 255, 0.55);
  background: rgba(63, 224, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(63, 224, 255, 0.08),
              0 8px 32px rgba(0, 0, 0, 0.45);
}

.search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  height: 100%;
  padding: 0;
}

.search-input::placeholder { color: var(--faint); }

.search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color .2s ease;
}

.search-box:focus-within .search-icon { color: var(--cyan); }

.search-clear {
  display: none;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.search-clear:hover { background: rgba(255, 138, 42, 0.16); color: var(--orange); }
.search-wrap.has-text .search-clear { display: flex; }

/* اسپینر بارگذاری */
.search-spin {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(63, 224, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: searchSpin .7s linear infinite;
}

.search-wrap.is-loading .search-spin { display: block; }
.search-wrap.is-loading .search-clear { display: none; }

@keyframes searchSpin { to { transform: rotate(360deg); } }

/* ── لیست نتایج ─────────────────────────────────────────────── */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: 60;

  background: rgba(10, 16, 26, 0.86);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);

  border: 1px solid rgba(63, 224, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.03) inset;

  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.search-wrap.is-open .search-results {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-list {
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(63, 224, 255, 0.06);
  transition: background .15s ease;
}

.search-item:last-child { border-bottom: none; }

.search-item:hover,
.search-item.is-active {
  background: rgba(63, 224, 255, 0.1);
  color: var(--text);
}

.search-item-cover {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lalezar', Tahoma, sans-serif;
  font-size: 13px;
  background-size: cover;
  background-position: center;
}

.search-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-item-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item-title mark {
  background: rgba(63, 224, 255, 0.22);
  color: var(--cyan);
  border-radius: 3px;
  padding: 0 2px;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.search-item-price { color: var(--cyan); font-weight: 700; }

.search-item-off {
  background: var(--orange);
  color: #1a0d02;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
}

/* پابرگ لیست */
.search-foot {
  padding: 11px 16px;
  border-top: 1px solid rgba(63, 224, 255, 0.12);
  background: rgba(63, 224, 255, 0.04);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-foot a { color: var(--cyan); font-weight: 500; }

.search-empty {
  padding: 26px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.search-empty b { display: block; color: var(--text); margin-bottom: 4px; }

.search-hint {
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid rgba(63, 224, 255, 0.08);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.search-hint kbd {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(63, 224, 255, 0.15);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 10.5px;
}

/* ── حالت شناور (اگر ادمین انتخاب کند) ──────────────────────── */
.search-wrap.is-floating {
  position: fixed;
  top: 76px;
  inset-inline: 0;
  max-width: 620px;
  margin: 0 auto;
  z-index: 55;
  padding-inline: 20px;
}

/* ── نوار جستجو در هیرو ─────────────────────────────────────── */
.search-wrap.is-hero {
  max-width: 100%;
  margin: 8px 0 0;
}

.search-wrap.is-hero .search-box { height: 54px; font-size: 15px; }
.search-wrap.is-hero .search-input { font-size: 15px; }

/* ── تبلت و موبایل ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .search-wrap { max-width: 300px; margin-inline: 14px; }
}

@media (max-width: 767px) {
  /* در نسخه موبایل، سرچ بار زیر هدر تمام‌عرض می‌شود */
  .search-wrap {
    max-width: 100%;
    margin: 0;
    order: 3;
    flex-basis: 100%;
  }

  .search-box { height: 44px; }
  .search-results { position: fixed; top: auto; inset-inline: 12px; }
  .search-list { max-height: 50vh; }
  .search-hint { display: none; }
}

/* =============================================================
   گالری تصاویر محصول
   ============================================================= */

.cover-big.has-photo { background: var(--bg-input); padding: 0; }

.cover-big .cover-photo,
.cover-big picture {
  width: 100%;
  height: 100%;
  display: block;
}

.cover-big picture img,
.cover-big .cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* نسبت استاندارد به‌جای مربع، وقتی عکس واقعی داریم */
.cover-big.has-photo { aspect-ratio: 16 / 9; cursor: zoom-in; }

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumb-btn {
  flex: 0 0 auto;
  width: 92px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}

.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumb-btn:hover { transform: translateY(-2px); }
.gallery-thumb-btn.is-active { border-color: var(--cyan); }

/* ── لایت‌باکس ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 10, .93);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(63, 224, 255, .3);
  background: rgba(10, 16, 26, .8);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(63, 224, 255, .18); border-color: var(--cyan); }

.lightbox-close { top: 20px; inset-inline-end: 20px; }
.lightbox-nav.prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  background: rgba(10, 16, 26, .8);
  border-radius: 100px;
  padding: 5px 16px;
}

@media (max-width: 767px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { inset-inline-start: 8px; }
  .lightbox-nav.next { inset-inline-end: 8px; }
}

/* ── فوتر: بخش معرفی و شبکه‌های اجتماعی ─────────────────────── */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(63, 224, 255, .08);
  flex-wrap: wrap;
}

.footer-about {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

.footer-socials { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-socials a { font-size: 13px; color: var(--muted); }
.footer-socials a:hover { color: var(--cyan); }

@media (max-width: 767px) {
  .footer-top { flex-direction: column; gap: 16px; text-align: center; }
  .footer-about { max-width: 100%; }
  .footer-socials { justify-content: center; }
}
