/* ============================================================
   BASE — ریست، تایپوگرافی پایه، تنظیمات RTL
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn');
  font-weight: 100 900;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
input, select, textarea { font-family: inherit; }

/* ارقام فارسی/تبدیل‌شده به‌صورت جدولی برای قیمت‌ها */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.3;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* فوکوس قابل مشاهده برای دسترس‌پذیری */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

::selection { background: var(--gold-400); color: #1c1a16; }

/* اسکرول‌بار ظریف */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
