/* ==========================================================================
   PERSIAN RTL TYPOGRAPHY SYSTEM
   Font Stack: Vazirmatn (Local Zero-Latency WOFF2) / High-Fidelity Modern RTL
   Strict Persian digit support and Zero-Width Non-Joiner compliance
   ========================================================================== */

@import url('../fonts/vazirmatn_embedded.css');

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  background-color: var(--bg-app);
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Persian Tabular Price Figures (Fixed Width Numbers for Grid Alignment) */
.price-figure {
  font-family: 'Vazirmatn', sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on;
  letter-spacing: -0.02em;
}

/* Headings with high typographic authority */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.35;
}

.text-hero {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.text-section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

.text-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-price-primary {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--accent-crimson-text, #be123c);
}

[data-theme="dark"] .text-price-primary {
  color: var(--accent-crimson-text, #fda4af);
}

.text-price-strike {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}

.text-badge {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.currency-unit {
  font-size: 0.75rem;
  font-weight: 500;
  margin-inline-start: 0.25rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Model 2 Locked (Phase 9): Zero-Bar Clean Ergonomic Scrolling
   Zero visual scrollbar clutter while retaining native touch & wheel momentum
   ========================================================================== */
html, body, *, *::before, *::after {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

[data-theme="dark"] ::-webkit-scrollbar,
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  display: none;
  background: transparent;
}

@media (max-width: 900px) {
  html, body, * {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  *::-webkit-scrollbar,
  *::-webkit-scrollbar-track,
  *::-webkit-scrollbar-thumb {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }
}
