/* ============================================================
   darkEX SHOP — استایل اصلی فروشگاه
   طراحی اختصاصی، تیره، گیمینگ و واکنش‌گرا
   ============================================================ */

/* ---------- فونت ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

/* ---------- متغیرها ---------- */
:root {
  --bg: #080808;
  --bg-1: #0d0d0d;
  --bg-2: #111111;
  --card: #171717;
  --card-2: #1d1d1d;
  --card-hover: #1b1b1b;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f5f5;
  --text-2: #cfcfcf;
  --muted: #9a9a9a;
  --muted-2: #6e6e6e;
  --red: #ff2020;
  --red-hover: #d60000;
  --red-dark: #8f0000;
  --red-soft: rgba(255, 32, 32, 0.12);
  --red-glow: rgba(255, 32, 32, 0.35);
  --green: #22c55e;
  --amber: #f5a524;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --gold: #f5c451;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 10px 40px rgba(255, 32, 32, 0.18);
  --container: 1240px;
  --header-h: 74px;
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- ریست ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 32, 32, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(255, 32, 32, 0.04), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0c0c;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  right: 16px;
  z-index: 999;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}
.icon {
  flex-shrink: 0;
}
.mono {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}
.nowrap {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- دکمه‌ها ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg {
  transition: transform 0.25s var(--ease);
}
.btn:hover svg.icon {
  transform: translateX(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #c40000 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 32, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff3a3a 0%, var(--red-hover) 100%);
  box-shadow: 0 12px 32px rgba(255, 32, 32, 0.36);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.btn-disabled {
  background: #1a1a1a;
  color: var(--muted-2);
  border-color: var(--line);
  cursor: not-allowed;
}
.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 9px;
}
.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.is-loading .btn-spinner {
  display: inline-block;
}
.is-loading .btn-label {
  opacity: 0.7;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: all 0.22s var(--ease);
}
.icon-btn:hover {
  color: #fff;
  border-color: rgba(255, 32, 32, 0.45);
  background: var(--red-soft);
}

/* ---------- بج‌ها و چیپ‌ها ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.badge-discount {
  background: rgba(255, 32, 32, 0.92);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 32, 32, 0.35);
}
.badge-featured {
  background: rgba(245, 196, 81, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 196, 81, 0.35);
}
.badge-unavailable {
  background: rgba(8, 8, 8, 0.85);
  color: #ff8080;
  border: 1px solid rgba(255, 32, 32, 0.4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--red);
  color: #fff;
  background: var(--red-soft);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.tone-success {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: rgba(34, 197, 94, 0.1) !important;
}
.tone-warning {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: rgba(245, 165, 36, 0.1) !important;
}
.tone-progress {
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
  background: rgba(56, 189, 248, 0.1) !important;
}
.tone-danger {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.32) !important;
  background: rgba(255, 32, 32, 0.1) !important;
}
.tone-info {
  color: #7dd3fc !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  background: rgba(56, 189, 248, 0.08) !important;
}
.tone-muted {
  color: var(--muted) !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

/* ---------- اعلان و پیام ---------- */
.announcement {
  background: linear-gradient(90deg, #9b0000, var(--red) 50%, #9b0000);
  color: #fff;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  justify-content: center;
}
.announcement-inner p {
  margin: 0;
  text-align: center;
}
.announcement-close {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.toasts {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(23, 23, 23, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  color: var(--text);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease-out);
  border-right: 3px solid var(--red);
}
.toast.is-success {
  border-right-color: var(--green);
}
.toast.is-success .toast-icon {
  color: var(--green);
}
.toast.is-error {
  border-right-color: var(--red);
}
.toast.is-error .toast-icon {
  color: #ff6b6b;
}
.toast.is-info {
  border-right-color: var(--blue);
}
.toast.is-info .toast-icon {
  color: var(--blue);
}
.toast.is-hiding {
  animation: toastOut 0.3s var(--ease) forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}
.form-error {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 32, 32, 0.1);
  border: 1px solid rgba(255, 32, 32, 0.3);
  color: #ff8c8c;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.form-error.is-visible {
  display: flex;
}
.field-error input {
  border-color: var(--red) !important;
}

/* ---------- فرم‌ها ---------- */
.field {
  display: block;
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 13px;
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  color: var(--muted);
}
.field-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 32, 32, 0.12);
  color: var(--red);
}
.field-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-block: 12px;
  color: var(--text);
  outline: none;
  font-size: 14px;
}
.field-input-wrap input::placeholder {
  color: var(--muted-2);
}
.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 6px;
  line-height: 1.7;
}
input[type='text'],
input[type='search'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='datetime-local'],
select,
textarea {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.8;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(0% + 16px) calc(50% + 1px), calc(0% + 21px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-left: 38px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 32, 32, 0.12);
}
.field-input-wrap input:focus {
  box-shadow: none;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  margin-block: 14px 8px;
  line-height: 1.8;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.checkbox-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #0e0e0e;
  color: transparent;
  transition: all 0.18s var(--ease);
}
.checkbox input:checked + .checkbox-box {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 32, 32, 0.4);
}
.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.checkbox a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-note {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.9;
  margin: 6px 0 16px;
}

/* ============================================================
   هدر و ناوبری
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}
.header-logo {
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 0 14px rgba(255, 32, 32, 0.35));
  transition: transform 0.4s var(--ease);
}
.header-logo:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #fff;
}
.brand-name > span {
  color: var(--red);
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 6px;
  color: var(--muted-2);
  font-weight: 700;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.is-active {
  color: #fff;
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 13px;
  left: 13px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--red);
}
.nav-drop {
  position: relative;
}
.nav-drop-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-drop-toggle[aria-expanded='true'] {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-drop-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.nav-drop-toggle svg {
  transition: transform 0.25s var(--ease);
}
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 50%;
  transform: translateX(50%) translateY(-6px);
  width: 300px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 32, 32, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s var(--ease);
  backdrop-filter: blur(20px);
}
.nav-drop.is-open .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) translateY(0);
}
.nav-drop-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  padding: 6px 10px 8px;
  letter-spacing: 0.2px;
}
.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.18s var(--ease);
}
.nav-drop-item:hover {
  background: var(--red-soft);
  color: #fff;
}
.nav-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--red);
}
.nav-drop-arrow {
  margin-inline-start: auto;
  color: var(--muted-2);
}
.nav-drop-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 32, 32, 0.08);
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
}
.nav-drop-all:hover {
  background: var(--red);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.admin-link {
  width: 38px;
  height: 38px;
  background: transparent;
  border-color: transparent;
  color: var(--muted-2);
}
.admin-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--muted);
}
.buyer-btn {
  margin-inline-start: 4px;
}
.menu-toggle {
  display: none;
}

/* منوی موبایل */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: #0f0f0f;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu-panel {
  transform: none;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-body {
  padding: 16px 14px;
  flex: 1;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.mobile-link svg {
  color: var(--muted);
}
.mobile-menu-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  margin: 18px 14px 8px;
}
.mobile-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.mobile-cat:hover {
  background: var(--red-soft);
  color: #fff;
}
.mobile-cat svg {
  color: var(--red);
}
.mobile-menu-foot {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.mobile-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-2);
}

/* جستجو */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}
.search-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.search-overlay.is-open .search-backdrop {
  opacity: 1;
}
.search-panel {
  position: relative;
  width: min(680px, calc(100vw - 28px));
  margin: 12vh auto 0;
  border-radius: 20px;
  background: rgba(16, 16, 16, 0.98);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(-14px) scale(0.98);
  opacity: 0;
  transition: all 0.28s var(--ease-out);
}
.search-overlay.is-open .search-panel {
  transform: none;
  opacity: 1;
}
.search-head {
  padding: 16px 16px 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 13px;
  background: #0b0b0b;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.search-form:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 32, 32, 0.12);
  color: var(--red);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-block: 13px;
  outline: none;
  font-size: 15px;
  color: var(--text);
}
.search-form input:focus {
  box-shadow: none;
}
.search-form .icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
}
.search-hint {
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 9px 4px 0;
}
.search-hint kbd {
  background: #1c1c1c;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-family: inherit;
}
.search-suggest {
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px 16px 18px;
}
.search-empty {
  text-align: center;
  padding: 22px 12px 10px;
  color: var(--muted-2);
}
.search-empty svg {
  margin: 0 auto 10px;
  color: var(--red);
  opacity: 0.7;
}
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 11px;
  transition: background 0.18s var(--ease);
}
.search-result:hover,
.search-result:focus {
  background: rgba(255, 255, 255, 0.05);
}
.search-result img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: #0b0b0b;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-info span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
}
.search-result-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  color: var(--muted);
  font-size: 13px;
}
.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.search-noresult {
  text-align: center;
  padding: 26px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   نوار اسپانسر
   ============================================================ */
.sponsor-section {
  position: relative;
  background: linear-gradient(120deg, #120303 0%, #0b0b0b 45%, #0b0b0b 60%, #140404 100%);
  border-bottom: 1px solid rgba(255, 32, 32, 0.16);
  overflow: hidden;
}
.sponsor-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 32, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 32, 32, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}
.sponsor-section::before {
  content: '';
  position: absolute;
  right: -140px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 32, 32, 0.16), transparent 65%);
  pointer-events: none;
}
.sponsor-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 18px;
}
.sponsor-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.sponsor-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  border: 1px solid rgba(255, 32, 32, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(255, 32, 32, 0.18), rgba(10, 10, 10, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.4);
}
.sponsor-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.sponsor-cube {
  position: relative;
  width: 30px;
  height: 34px;
  display: block;
}
.sponsor-cube i {
  position: absolute;
  left: 0;
  width: 30px;
  height: 17px;
  transform-origin: center;
}
.sponsor-cube i:nth-child(1) {
  top: 0;
  background: #4a9a32;
  clip-path: polygon(50% 0, 100% 26%, 50% 52%, 0 26%);
}
.sponsor-cube i:nth-child(2) {
  top: 8px;
  left: -8px;
  width: 17px;
  height: 24px;
  background: #6b4225;
  clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 78%);
}
.sponsor-cube i:nth-child(3) {
  top: 8px;
  left: 22px;
  width: 17px;
  height: 24px;
  background: #54331c;
  clip-path: polygon(0 22%, 100% 0, 100% 78%, 0 100%);
}
.sponsor-info {
  min-width: 0;
}
.sponsor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}
.sponsor-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.sponsor-check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 32, 32, 0.18);
  color: var(--red);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 32, 32, 0.35);
}
.sponsor-tagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
}
.sponsor-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
}
.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.server-pill.is-online {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(34, 197, 94, 0.08);
}
.server-pill.is-online .server-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
  animation: pulseDot 2.2s infinite;
}
.server-pill.is-offline {
  color: #ff7b7b;
  border-color: rgba(255, 32, 32, 0.3);
  background: rgba(255, 32, 32, 0.07);
}
.server-pill.is-offline .server-dot {
  background: #ff5c5c;
}
.server-pill.is-unknown {
  color: var(--muted);
}
.server-pill.is-loading .server-dot {
  background: var(--muted);
  animation: pulseDot 1.2s infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.server-meta {
  font-size: 11px;
  color: var(--muted-2);
}
.server-meta b {
  color: var(--text-2);
  font-weight: 700;
}
.sponsor-connect {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sponsor-connect-label {
  font-size: 10.5px;
  color: var(--muted-2);
  display: none;
}
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(255, 32, 32, 0.35);
  color: #fff;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  transition: all 0.22s var(--ease);
}
.ip-copy:hover {
  border-color: var(--red);
  background: rgba(255, 32, 32, 0.08);
}
.ip-copy:active {
  transform: scale(0.98);
}
.ip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.ip-text {
  letter-spacing: 0.03em;
}
.ip-copy-icon {
  color: var(--muted);
  display: inline-flex;
}
.sponsor-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}
.sponsor-cta:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   هیرو
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  z-index: -1;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.hero-glow-1 {
  width: 520px;
  height: 420px;
  top: -80px;
  left: -120px;
  background: rgba(255, 32, 32, 0.14);
}
.hero-glow-2 {
  width: 340px;
  height: 340px;
  bottom: -160px;
  right: 10%;
  background: rgba(255, 32, 32, 0.08);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.hero-content {
  max-width: 580px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 32, 32, 0.28);
  background: rgba(255, 32, 32, 0.07);
  color: #ffb4b4;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 32, 32, 0.15);
  animation: pulseDot 2s infinite;
}
.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-title-dark {
  font-size: clamp(52px, 8.2vw, 104px);
  font-weight: 900;
  letter-spacing: -4px;
  color: #fff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.hero-title-ex {
  background: linear-gradient(180deg, #ff5a5a 0%, var(--red) 45%, #8d0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 32, 32, 0.35));
}
.hero-title-shop {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: clamp(12px, 2.6vw, 26px);
  color: var(--muted-2);
  margin-top: 8px;
  direction: ltr;
  text-align: right;
}
.hero-sub {
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  color: var(--muted);
  line-height: 2;
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero-stat strong {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}
.hero-stat strong span {
  font-size: 12px;
  color: var(--muted);
  margin-inline-start: 2px;
}
.hero-stat span {
  font-size: 11px;
  color: var(--muted-2);
}
.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
}

/* هنر سه‌بعدی */
.hero-art {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 32, 32, 0.16);
  box-shadow: inset 0 0 80px rgba(255, 32, 32, 0.06);
  animation: slowSpin 40s linear infinite;
}
.hero-ring::before,
.hero-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}
.hero-ring::before {
  inset: 34px;
}
.hero-ring::after {
  inset: 80px;
  border-color: rgba(255, 32, 32, 0.14);
}
@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}
.iso-scene {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 900px;
  transform-style: preserve-3d;
  animation: floatScene 7s ease-in-out infinite;
}
@keyframes floatScene {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.iso-cube {
  position: absolute;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
}
.iso-cube span {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
}
.iso-cube .f-top {
  background: linear-gradient(135deg, #ff4b4b, #b80000);
  transform: rotateX(60deg) rotateZ(45deg) translateZ(0);
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}
.iso-cube .f-left {
  background: linear-gradient(180deg, #7c0000, #3d0000);
  transform: rotateX(60deg) rotateZ(45deg) translateZ(-50px) translateY(50px);
}
.iso-cube .f-right {
  background: linear-gradient(180deg, #a00000, #580000);
  transform: rotateX(60deg) rotateZ(-45deg) translateZ(-50px) translateY(50px);
}
.iso-cube-1 {
  left: 100px;
  top: 60px;
  animation: cubeFloat 6s ease-in-out infinite;
}
.iso-cube-2 {
  left: 40px;
  top: 140px;
  transform: scale(0.62);
  opacity: 0.75;
  animation: cubeFloat 7.5s ease-in-out infinite reverse;
}
.iso-cube-3 {
  left: 158px;
  top: 158px;
  transform: scale(0.46);
  opacity: 0.55;
  animation: cubeFloat 9s ease-in-out infinite;
}
.iso-cube-4 {
  left: 132px;
  top: 100px;
  transform: scale(0.3);
  opacity: 0.4;
  animation: cubeFloat 5s ease-in-out infinite reverse;
}
@keyframes cubeFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: floatCard 6s ease-in-out infinite;
}
.hero-float span {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.hero-float b {
  font-size: 11.5px;
  color: #fff;
  font-weight: 700;
}
.hero-float small {
  font-size: 9.5px;
  color: var(--muted-2);
}
.hero-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
}
.hero-float-icon.is-green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.hero-float-1 {
  top: 22px;
  right: 0;
  animation-delay: 0.6s;
}
.hero-float-2 {
  bottom: 84px;
  left: -6px;
  animation-delay: 1.4s;
}
.hero-float-3 {
  bottom: 4px;
  right: 26px;
  animation-delay: 2.2s;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* ============================================================
   نوار اعتماد
   ============================================================ */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 24px;
  border-inline-start: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.trust-item:first-child {
  border-inline-start: 0;
}
.trust-item:hover {
  background: rgba(255, 32, 32, 0.035);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.trust-item span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
}

/* ============================================================
   بخش‌ها و ریل محصولات
   ============================================================ */
.rail-section {
  padding-block: clamp(34px, 5vw, 52px);
}
.rail-featured {
  padding-top: clamp(40px, 6vw, 64px);
}
.rail-newest {
  background: linear-gradient(180deg, transparent, rgba(255, 32, 32, 0.025), transparent);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-head-center {
  justify-content: center;
  text-align: center;
}
.section-head-text {
  display: flex;
  align-items: center;
  gap: 13px;
}
.section-head-center .section-head-text {
  flex-direction: column;
  gap: 10px;
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255, 32, 32, 0.16);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.35;
  position: relative;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background: linear-gradient(180deg, var(--red), transparent);
  border-radius: 3px;
  margin-inline-end: 9px;
  vertical-align: -0.08em;
}
.section-head-center .section-title::before {
  display: none;
}
.section-sub {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 2px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
  white-space: nowrap;
}
.section-link:hover {
  color: var(--red);
  gap: 9px;
}

.rail {
  position: relative;
}
.rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.rail-track::-webkit-scrollbar {
  display: none;
}
.rail-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}
.rail-track.is-dragging a {
  pointer-events: none;
}
.rail-track > * {
  scroll-snap-align: start;
  flex: 0 0 clamp(230px, 24vw, 268px);
}
.rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: all 0.22s var(--ease);
  backdrop-filter: blur(8px);
}
.rail-nav:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 32, 32, 0.35);
}
.rail-nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.rail-prev {
  right: -14px;
}
.rail-next {
  left: -14px;
}

/* ---------- کارت محصول ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card) 0%, #141414 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 32, 32, 0.32);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 32, 32, 0.08),
    0 16px 40px rgba(255, 32, 32, 0.08);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #0c0c0c;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
.product-card:hover .card-media img {
  transform: scale(1.06);
  filter: brightness(1.06);
}
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.07) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.product-card:hover .card-shine {
  transform: translateX(120%);
}
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.05) 40%, rgba(8, 8, 8, 0.55) 100%);
  pointer-events: none;
}
.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  z-index: 2;
}
.card-discount-circle {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 32, 32, 0.95);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(255, 32, 32, 0.45);
}
.is-unavailable .card-media img {
  filter: grayscale(0.65) brightness(0.7);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 15px 15px;
  gap: 7px;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-stock {
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.is-unavailable .card-stock {
  color: #ff6b6b;
}
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
}
.card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease);
}
.card-title a:hover {
  color: var(--red);
}
.card-desc {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  margin-bottom: 2px;
}
.card-price {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.price-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.5;
}
.price-old {
  font-size: 10.5px;
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 32, 32, 0.6);
}
.price-final {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}
.price-final small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 7px;
  margin-top: 5px;
}
.card-actions .btn {
  flex: 1;
  min-height: 35px;
  padding-inline: 8px;
  font-size: 11.5px;
  border-radius: 8px;
}
.card-actions .btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
}
.card-actions .btn-ghost:hover {
  border-color: var(--line-strong);
}

/* ============================================================
   دسته‌بندی‌ها، مراحل، CTA
   ============================================================ */
.categories-section {
  padding-block: clamp(36px, 5vw, 60px) clamp(10px, 2vw, 20px);
}
.category-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category-chip {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: all 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.category-chip::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 32, 32, 0.18), transparent 70%);
  top: -40px;
  left: -30px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.category-chip:hover {
  border-color: rgba(255, 32, 32, 0.35);
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(255, 32, 32, 0.08), rgba(255, 255, 255, 0.02));
}
.category-chip:hover::after {
  opacity: 1;
}
.category-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 32, 32, 0.1);
  border: 1px solid rgba(255, 32, 32, 0.18);
  color: var(--red);
}
.category-chip-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.category-chip-count {
  font-size: 10.5px;
  color: var(--muted-2);
}

.steps-section {
  padding-block: clamp(44px, 6vw, 76px);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012), transparent);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--card), #121212);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.step-card:hover {
  border-color: rgba(255, 32, 32, 0.3);
  transform: translateY(-4px);
}
.step-number {
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 54px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
  letter-spacing: -3px;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2;
}

.cta-section {
  padding-block: clamp(30px, 4vw, 50px) clamp(50px, 7vw, 86px);
}
.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 4.5vw, 54px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 32, 32, 0.18), transparent 60%),
    linear-gradient(135deg, #171010, #0e0e0e 60%);
  border: 1px solid rgba(255, 32, 32, 0.22);
  overflow: hidden;
  isolation: isolate;
}
.cta-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 32, 32, 0.14);
  filter: blur(90px);
  left: -80px;
  bottom: -160px;
  z-index: -1;
}
.cta-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 12px;
}
.cta-content h2 {
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cta-content p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-art {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-cube {
  position: relative;
  width: 100px;
  height: 100px;
  animation: cubeFloat 6s ease-in-out infinite;
}
.cta-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 32, 32, 0.28);
  animation: slowSpin 26s linear infinite;
}

/* ============================================================
   فوتر
   ============================================================ */
.site-footer {
  position: relative;
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 32, 32, 0.08), transparent 65%);
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-block: 48px 34px;
  position: relative;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-about {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 2.1;
  max-width: 40ch;
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.22s var(--ease);
}
.social-btn:hover {
  background: var(--red-soft);
  border-color: rgba(255, 32, 32, 0.35);
  color: var(--red);
  transform: translateY(-2px);
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--red);
}
.footer-muted {
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
  flex-wrap: wrap;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-bottom-links a:hover {
  color: var(--text-2);
}
.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  display: inline-block;
}
.footer-admin {
  opacity: 0.7;
}

/* ============================================================
   صفحه‌های داخلی
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(30px, 4.5vw, 48px) 0 clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero-sm {
  padding-bottom: clamp(22px, 3vw, 30px);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 100% at 30% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 30% 0%, #000, transparent 75%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: 8%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 32, 32, 0.1), transparent 68%);
  pointer-events: none;
}
.page-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}
.page-title {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.4;
}
.page-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 62ch;
}
.page-count {
  text-align: center;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.page-count strong {
  display: block;
  font-size: 21px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.3;
}
.page-count span {
  font-size: 10px;
  color: var(--muted-2);
}
.page-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 32, 32, 0.2);
  color: var(--red);
  flex-shrink: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover {
  color: var(--red);
}
.breadcrumb span {
  color: var(--text-2);
}

/* ---------- فروشگاه ---------- */
.shop-section {
  padding-block: clamp(26px, 3.5vw, 40px) clamp(50px, 7vw, 80px);
}
.shop-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.filter-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: linear-gradient(180deg, var(--card), #141414);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}
.filter-head svg {
  color: var(--red);
}
.filter-close {
  display: none;
  color: var(--muted);
  padding: 4px;
}
.filter-group {
  margin-bottom: 20px;
}
.filter-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 9px;
}
.input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 11px;
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted-2);
}
.input-with-icon:focus-within {
  border-color: var(--red);
}
.input-with-icon input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 12.5px;
  outline: none;
  box-shadow: none;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.filter-radio:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}
.filter-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.filter-radio-box {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s var(--ease);
}
.filter-radio input:checked + .filter-radio-box {
  border-color: var(--red);
}
.filter-radio input:checked + .filter-radio-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.filter-radio input:checked ~ span {
  color: #fff;
}
.filter-count {
  margin-inline-start: auto;
  font-size: 10px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 99px;
  padding: 1px 7px;
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-inputs input {
  padding: 8px 7px;
  font-size: 11.5px;
  text-align: center;
}
.price-inputs span {
  font-size: 10px;
  color: var(--muted-2);
}
.filter-form select {
  padding: 9px 12px;
  font-size: 12px;
  padding-left: 34px;
}
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.filter-actions .btn {
  min-height: 38px;
  font-size: 12px;
}
.filter-toggle {
  display: none;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 16px;
}
.shop-toolbar-info {
  font-size: 12.5px;
  color: var(--muted);
}
.shop-toolbar-info strong {
  color: var(--text);
}
.shop-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.sort-inline select {
  width: auto;
  padding: 7px 11px;
  padding-left: 32px;
  font-size: 11.5px;
  border-radius: 8px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.page-btn:hover {
  border-color: var(--line-strong);
  color: #fff;
}
.page-btn.is-current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 32, 32, 0.3);
}
.page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.page-dots {
  color: var(--muted-2);
  padding-inline: 4px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.012);
}
.empty-art {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255, 32, 32, 0.2);
}
.empty-state h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 20px;
}
.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shop-filter-backdrop {
  display: none;
}

/* ---------- صفحه محصول ---------- */
.product-section {
  padding-block: 22px clamp(30px, 4vw, 46px);
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 44px);
  margin-top: 16px;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c0c;
  aspect-ratio: 5 / 4;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-main:hover img {
  transform: scale(1.03);
}
.gallery-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.gallery-zoom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.gallery-zoom:hover {
  color: #fff;
  border-color: var(--red);
}
.gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.55;
  transition: all 0.2s var(--ease);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover {
  opacity: 0.85;
}
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 32, 32, 0.18);
}
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.product-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(255, 32, 32, 0.2);
  padding: 4px 10px;
  border-radius: 7px;
}
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.product-status.is-in {
  color: #4ade80;
}
.product-status.is-out {
  color: #ff7b7b;
}
.product-title {
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.product-short {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 20px;
}
.product-price-card {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 32, 32, 0.09), rgba(255, 255, 255, 0.02) 55%);
  border: 1px solid rgba(255, 32, 32, 0.2);
  margin-bottom: 16px;
  overflow: hidden;
}
.product-price-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 32, 32, 0.12);
  filter: blur(50px);
  left: -50px;
  top: -60px;
  pointer-events: none;
}
.price-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.price-old-lg {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 32, 32, 0.7);
}
.discount-chip {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 2px 8px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(255, 32, 32, 0.35);
}
.price-final-lg {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.4;
  color: #fff;
}
.price-final-lg small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price-save {
  font-size: 11px;
  color: #4ade80;
  margin-top: 1px;
}
.discount-timer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--muted);
}
.discount-timer svg {
  color: var(--amber);
}
.discount-timer b {
  color: var(--amber);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.product-buy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.product-buy-row .btn {
  flex: 1;
}
.product-assurances {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.product-assurances li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.product-assurances svg {
  color: var(--red);
  opacity: 0.85;
}
.product-accordions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.accordion summary svg {
  transition: transform 0.25s var(--ease);
  color: var(--muted-2);
}
.accordion[open] summary svg {
  transform: rotate(180deg);
  color: var(--red);
}
.accordion > p,
.accordion > ul,
.accordion > a {
  margin-inline: 16px;
}
.accordion > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 10px;
}
.accordion > a {
  display: inline-flex;
  margin-bottom: 14px;
}
.feature-list {
  display: grid;
  gap: 8px;
  padding: 2px 16px 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.feature-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red);
}
.inline-link:hover {
  color: #ff5c5c;
}
.product-description-section {
  padding-block: 8px 26px;
}
.panel {
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), #141414);
  border: 1px solid var(--line);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.panel-title svg {
  color: var(--red);
}
.panel-title-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.panel-title-sm svg {
  color: var(--red);
}
.panel-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  margin: -4px 0 16px;
  line-height: 1.9;
}
.rich-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 2.1;
}
.rich-text p {
  margin-bottom: 12px;
}
.rich-text p:last-child {
  margin-bottom: 0;
}
.rich-text p + p {
  margin-top: 4px;
}
.rich-text h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rich-text h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--red);
}
.rich-text h3:first-child {
  margin-top: 0;
}
.rich-text ul,
.rich-text ol {
  padding-inline-start: 4px;
  margin-bottom: 12px;
}
.rich-text li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 6px;
}
.rich-text ul li::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 0.82em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}
.rich-text ol {
  counter-reset: item;
}
.rich-text ol li {
  counter-increment: item;
}
.rich-text ol li::before {
  content: counter(item) '.';
  position: absolute;
  right: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}
.rich-text strong {
  color: #fff;
}
.rich-text a {
  color: var(--red);
  text-decoration: underline;
}
.related-section {
  padding-block: 20px clamp(40px, 6vw, 70px);
}

/* ---------- صفحات محتوایی و پیگیری ---------- */
.content-section {
  padding-block: clamp(26px, 3.5vw, 42px) clamp(48px, 7vw, 80px);
}
.content-narrow {
  max-width: 900px;
}
.content-panel h3 {
  font-size: 17px;
}
.content-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 32, 32, 0.05);
  border: 1px solid rgba(255, 32, 32, 0.16);
  flex-wrap: wrap;
}
.content-help-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-help-text svg {
  color: var(--red);
  flex-shrink: 0;
}
.content-help-text strong {
  display: block;
  font-size: 13px;
}
.content-help-text span {
  font-size: 11.5px;
  color: var(--muted);
}
.content-help-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.track-panel {
  padding: clamp(20px, 3vw, 32px);
}
.track-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.track-side p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 14px;
}
.track-form {
  margin-top: 8px;
}
.track-form .btn-lg {
  margin-top: 6px;
}
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.16);
  color: var(--muted);
}
.security-note svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}
.security-note p {
  font-size: 11px;
  line-height: 1.9;
  margin: 0;
}
.support-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.link-copy {
  display: flex;
  gap: 7px;
}
.link-copy input {
  font-size: 11px;
  direction: ltr;
  text-align: left;
  background: #0a0a0a;
  border-color: var(--line);
  color: var(--muted);
  min-width: 0;
}

/* ---------- تیکت مشتری ---------- */
.ticket-topbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 32, 32, 0.05), transparent);
  padding-block: 20px;
}
.ticket-topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ticket-id-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ticket-label {
  font-size: 10.5px;
  color: var(--muted-2);
}
.ticket-id {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.4;
}
.ticket-topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ticket-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted-2);
}
.ticket-topbar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ticket-content {
  padding-block: clamp(20px, 3vw, 30px) clamp(46px, 6vw, 70px);
}
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}
.chat-subject {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chat-subject-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  flex-shrink: 0;
}
.chat-subject h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.chat-subject p {
  font-size: 10.5px;
  color: var(--muted-2);
}
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted-2);
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chat-online .status-dot {
  color: var(--green);
}
.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(58vh, 620px);
  overflow-y: auto;
  min-height: 260px;
  scroll-behavior: smooth;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.chat-message {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: msgIn 0.35s var(--ease-out);
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-message.is-customer {
  align-self: flex-start;
  flex-direction: row;
}
.chat-message.is-admin {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}
.is-admin .msg-avatar {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(255, 32, 32, 0.2);
}
.msg-body {
  min-width: 0;
}
.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 10.5px;
}
.msg-head strong {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
}
.msg-head time {
  color: var(--muted-2);
  font-size: 9.5px;
}
.is-admin .msg-head {
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.msg-bubble {
  padding: 11px 14px;
  border-radius: 13px;
  border-start-start-radius: 4px;
  background: #1c1c1c;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.is-admin .msg-bubble {
  background: linear-gradient(150deg, rgba(255, 32, 32, 0.16), rgba(255, 32, 32, 0.06));
  border-color: rgba(255, 32, 32, 0.22);
  border-start-start-radius: 13px;
  border-start-end-radius: 4px;
  color: #fbe9e9;
}
.msg-text {
  white-space: pre-line;
}
.msg-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-2);
}
.msg-file:hover {
  border-color: var(--red);
  color: #fff;
}
.msg-image {
  display: block;
  margin-top: 9px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 240px;
}
.msg-image img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.chat-system {
  align-self: center;
  max-width: 94%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.chat-system-inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--line-strong);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.95;
  text-align: right;
}
.chat-system-inner svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}
.chat-system-text {
  white-space: pre-line;
}
.chat-system-time {
  font-size: 9.5px;
  color: var(--muted-2);
}
.chat-composer {
  border-top: 1px solid var(--line);
  padding: 14px 18px 16px;
  background: rgba(255, 255, 255, 0.015);
}
.composer-box {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d0d0d;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.composer-box:focus-within {
  border-color: rgba(255, 32, 32, 0.5);
}
.composer-box textarea {
  border: 0;
  background: transparent;
  border-radius: 0;
  min-height: 72px;
  padding: 12px 14px;
  font-size: 13px;
  resize: vertical;
}
.composer-box textarea:focus {
  box-shadow: none;
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  max-width: 180px;
}
.attach-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}
.attach-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer-hint {
  font-size: 9.5px;
  color: var(--muted-2);
  margin-inline-start: auto;
}
.composer-actions .btn {
  min-height: 34px;
}
.composer-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 8px;
}
.chat-closed {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 20px 20px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}
.chat-closed svg {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-closed strong {
  display: block;
  color: var(--text-2);
  font-size: 12.5px;
  margin-bottom: 3px;
}
.chat-closed p {
  font-size: 11px;
  line-height: 1.9;
}
.ticket-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticket-side .panel {
  padding: 18px;
}
.order-card .order-product {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 14px;
}
.order-product img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.order-product strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
}
.order-cat {
  font-size: 10.5px;
  color: var(--muted-2);
}
.order-cat b {
  color: var(--text-2);
  font-weight: 600;
}
.order-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.order-details dt {
  color: var(--muted-2);
  flex-shrink: 0;
}
.order-details dd {
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  margin: 0;
  min-width: 0;
}
.order-details dd.is-discount {
  color: #4ade80;
}
.status-pill {
  font-size: 10px !important;
  padding: 3px 9px !important;
}
.save-link-card p {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.9;
  margin-bottom: 10px;
}
.save-link-card .link-copy input {
  font-size: 10px;
  padding: 8px 9px;
}
.support-card p {
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 10px;
}

/* ============================================================
   مودال خرید
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-panel {
  position: relative;
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: 7vh auto 0;
  background: linear-gradient(180deg, #191919, #111111);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 32, 32, 0.06);
  animation: modalIn 0.35s var(--ease-out);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s var(--ease);
}
.modal-close:hover {
  background: var(--red-soft);
  color: var(--red);
}
.checkout-head {
  padding: 26px 26px 14px;
  border-bottom: 1px solid var(--line);
}
.checkout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(255, 32, 32, 0.18);
  padding: 4px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.checkout-head h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 5px;
}
.checkout-head p {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.9;
  max-width: 46ch;
}
.checkout-body {
  padding: 18px 26px 24px;
}
.checkout-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.checkout-thumb img {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.checkout-product-info {
  min-width: 0;
  flex: 1;
}
.checkout-product-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-meta {
  font-size: 10.5px;
  color: var(--muted-2);
}
.checkout-price {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.checkout-price-old {
  font-size: 10px;
  color: var(--muted-2);
  text-decoration: line-through;
}
.checkout-price-final {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}
.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 12px;
}
.checkout-success {
  text-align: center;
}
.success-mark {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.18);
  animation: popIn 0.45s var(--ease-out);
}
@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.checkout-success h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 5px;
}
.checkout-success > p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.order-summary {
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 16px;
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.order-summary > div:first-child {
  border-top: 0;
}
.order-summary dt {
  color: var(--muted-2);
}
.order-summary dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-2);
  overflow-wrap: anywhere;
  text-align: left;
  min-width: 0;
}
.checkout-success .field {
  text-align: right;
}
.checkout-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.checkout-warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 10.5px;
  color: var(--amber);
  background: rgba(245, 165, 36, 0.06);
  border: 1px solid rgba(245, 165, 36, 0.18);
  border-radius: 9px;
  padding: 10px 12px;
  line-height: 1.85;
  margin-top: 14px;
  text-align: right;
}
.checkout-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- بنر پیش‌نمایش ---------- */
.preview-banner {
  background: rgba(245, 165, 36, 0.08);
  border-bottom: 1px solid rgba(245, 165, 36, 0.22);
  color: #fbbf24;
  font-size: 12px;
}
.preview-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.preview-banner .btn {
  margin-inline-start: auto;
}

/* ============================================================
   خطا و تعمیرات
   ============================================================ */
.error-page,
.maintenance-page {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 60px 80px;
  overflow: hidden;
}
.error-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.error-code-bg {
  font-size: clamp(180px, 32vw, 380px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.018);
  letter-spacing: -20px;
  user-select: none;
  direction: ltr;
}
.error-inner,
.maintenance-inner {
  position: relative;
  text-align: center;
  max-width: 560px;
}
.error-art {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  animation: floatScene 6s ease-in-out infinite;
}
.error-cube {
  position: relative;
  width: 76px;
  height: 76px;
  display: block;
}
.error-cube i {
  position: absolute;
  width: 100%;
  height: 100%;
}
.error-cube .f-top {
  background: linear-gradient(135deg, #ff4b4b, #b80000);
  clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
}
.error-cube .f-left {
  background: linear-gradient(180deg, #7c0000, #3d0000);
  clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%);
}
.error-cube .f-right {
  background: linear-gradient(180deg, #a00000, #580000);
  clip-path: polygon(100% 25%, 100% 75%, 50% 100%, 50% 50%);
}
.error-code {
  display: inline-block;
  font-size: 74px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #fff, #ff3a3a 70%, #8d0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-inner h1,
.maintenance-inner h1 {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 900;
  margin-bottom: 10px;
}
.error-inner > p,
.maintenance-inner > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 22px;
}
.error-ref {
  font-size: 11px;
  color: var(--muted-2);
  margin: -12px 0 18px !important;
}
.error-ref code {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}
.error-actions,
.maintenance-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 32, 32, 0.25);
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.maintenance-art {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.maintenance-scene {
  width: 180px;
  height: 160px;
  transform: scale(0.7);
}
.maintenance-admin {
  margin-top: 30px !important;
  font-size: 11px !important;
}
.maintenance-admin a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.maintenance-admin a:hover {
  color: var(--red);
}

/* ============================================================
   انیمیشن ورود عناصر
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 1140px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-float-1 {
    right: 0;
  }
  .rail-nav {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .buyer-btn span {
    display: none;
  }
  .buyer-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-content {
    max-width: 620px;
  }
  .hero-art {
    min-height: 340px;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-float-2 {
    left: 0;
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-item {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding: 16px 18px;
  }
  .trust-item:nth-child(-n + 2) {
    border-top: 0;
  }
  .trust-item:nth-child(even) {
    border-inline-start: 1px solid var(--line);
  }
  .sponsor-inner {
    flex-wrap: wrap;
    gap: 14px;
  }
  .sponsor-connect {
    margin-inline-start: 0;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 2px;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: fixed;
    inset: 0;
    z-index: 250;
    visibility: hidden;
    pointer-events: none;
  }
  .shop-sidebar.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .filter-card {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    padding: 20px 18px 30px;
    top: 0;
  }
  .shop-sidebar.is-open .filter-card {
    transform: none;
  }
  .filter-close {
    display: inline-flex;
  }
  .shop-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
  }
  .filter-toggle {
    display: inline-flex;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    position: static;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .ticket-layout {
    grid-template-columns: 1fr;
  }
  .track-layout {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-block: 36px 26px;
  }
  .cta-art {
    display: none;
  }
  .product-form-grid,
  .admin-chat-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .container {
    padding-inline: 16px;
  }
  .category-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .category-chip {
    padding: 14px 12px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: center;
  }
  .section-sub {
    display: none;
  }
  .product-grid {
    gap: 11px;
  }
  .card-body {
    padding: 11px 12px 13px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-desc {
    font-size: 10.5px;
    -webkit-line-clamp: 1;
    min-height: 1.8em;
  }
  .price-final {
    font-size: 15px;
  }
  .card-actions .btn-ghost {
    display: none;
  }
  .card-actions .btn {
    font-size: 10.5px;
    min-height: 33px;
  }
  .badge {
    font-size: 9.5px;
    padding: 3px 7px;
  }
  .card-discount-circle {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .card-badges {
    top: 7px;
    right: 7px;
    gap: 3px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-title-dark {
    font-size: 62px;
    letter-spacing: -3px;
  }
  .hero-title-shop {
    letter-spacing: 14px;
  }
  .hero-sub {
    font-size: 13px;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
    font-size: 13px;
  }
  .hero-stats {
    gap: 14px;
  }
  .hero-stat strong {
    font-size: 18px;
  }
  .hero-art {
    min-height: 300px;
  }
  .iso-scene {
    transform: scale(0.82);
  }
  .hero-float {
    padding: 8px 10px;
  }
  .hero-float-icon {
    width: 28px;
    height: 28px;
  }
  .hero-float b {
    font-size: 10px;
  }
  .hero-float small {
    font-size: 8.5px;
  }
  .hero-float-1 {
    top: 0;
  }
  .hero-float-3 {
    bottom: 0;
  }
  .sponsor-icon {
    width: 46px;
    height: 46px;
  }
  .sponsor-name {
    font-size: 17px;
  }
  .sponsor-tagline {
    font-size: 10.5px;
    white-space: normal;
    max-width: 34ch;
  }
  .sponsor-connect {
    flex-wrap: wrap;
  }
  .ip-copy {
    flex: 1;
    justify-content: center;
    font-size: 12px;
  }
  .sponsor-cta {
    display: none;
  }
  .server-meta {
    display: none !important;
  }
  .sponsor-status-row .server-meta:first-of-type {
    display: inline !important;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-brand {
    order: -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .page-hero-row {
    align-items: flex-start;
  }
  .page-count {
    display: none;
  }
  .page-icon-badge {
    width: 48px;
    height: 48px;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .shop-toolbar-actions {
    justify-content: space-between;
  }
  .product-buy-row {
    flex-direction: column;
  }
  .product-assurances {
    padding: 13px;
  }
  .product-price-card {
    padding: 15px 16px;
  }
  .chat-body {
    padding: 14px;
    max-height: 62vh;
  }
  .chat-message {
    max-width: 96%;
  }
  .msg-avatar {
    width: 28px;
    height: 28px;
  }
  .ticket-topbar-actions {
    width: 100%;
    margin-inline-start: 0;
  }
  .ticket-topbar-actions .btn {
    flex: 1;
  }
  .ticket-topbar-actions form {
    flex: 1;
  }
  .ticket-topbar-actions form .btn {
    width: 100%;
  }
  .modal-panel {
    margin-top: 4vh;
    max-height: 92vh;
  }
  .checkout-head,
  .checkout-body {
    padding-inline: 18px;
  }
  .checkout-product {
    flex-wrap: wrap;
  }
  .checkout-price {
    margin-inline-start: auto;
  }
  .content-help {
    flex-direction: column;
    align-items: flex-start;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: none;
  }
  .announcement-inner {
    padding-inline: 40px;
  }
  .announcement-inner p {
    font-size: 11.5px;
  }
  .error-code {
    font-size: 56px;
  }
  .error-code-bg {
    font-size: 150px;
  }
  .product-description-section .panel,
  .related-section .panel {
    padding: 16px;
  }
  .gallery-main {
    aspect-ratio: 4 / 3;
  }
  .section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .section-title {
    font-size: 17px;
  }
  .rail-track > * {
    flex-basis: 62vw;
    max-width: 250px;
  }
  .rail-section {
    padding-block: 24px;
  }
  .cta-card {
    padding: 24px 20px;
  }
  .cta-actions .btn {
    flex: 1;
    font-size: 12.5px;
    padding-inline: 10px;
  }
}

@media (max-width: 400px) {
  .hero-title-dark {
    font-size: 52px;
    letter-spacing: -2px;
  }
  .hero-title-shop {
    letter-spacing: 10px;
    font-size: 16px;
  }
  .category-chips {
    grid-template-columns: 1fr;
  }
  .card-desc {
    display: none;
  }
  .sponsor-main {
    gap: 10px;
  }
  .sponsor-name {
    font-size: 15px;
  }
  .sponsor-tagline {
    display: none;
  }
}

/* حالت چاپ */
@media print {
  .site-header,
  .site-footer,
  .sponsor-section,
  .hero-actions,
  .chat-composer,
  .toasts {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================================
   تکمیل پوشش کلاس‌های قالب
   ============================================================ */
[hidden] {
  display: none !important;
}

.filter-close {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.filter-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
}
.shop-filter-backdrop {
  display: none;
}
@media (max-width: 980px) {
  .filter-close {
    display: inline-flex;
  }
  .filter-toggle {
    display: inline-flex;
  }
  .shop-filter-backdrop:not([hidden]) {
    display: block;
  }
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-arrow {
  font-size: 0;
}
.page-arrow.is-disabled {
  opacity: 0.35;
}

.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-buy {
  flex: 1;
}

.ticket-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.maintenance-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 32, 32, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 90%, rgba(255, 32, 32, 0.06), transparent 65%),
    #080808;
  pointer-events: none;
}
.maintenance-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* نتایج جستجو و نمایش بزرگ تصویر */
.search-result-all {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 32, 32, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.18s var(--ease);
}
.search-result-all:hover {
  background: rgba(255, 32, 32, 0.12);
  border-color: rgba(255, 32, 32, 0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(4, 4, 4, 0.94);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.22s var(--ease);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s var(--ease-out);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* حذف دکمه پیش‌فرض مرورگر در فیلد جستجو */
.search-form input[type='search']::-webkit-search-cancel-button,
.search-form input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type='search'] {
  -webkit-appearance: none;
  appearance: none;
}
