/* =====================================================================
   لایه‌ی انطباق با «کتابچه‌ی قواعد فارسی/RTL» (سنّت دیوار، دستور خط
   فرهنگستان، pwcag.ir ۲.۲، Material Bidi) — پژوهش ۱۳ شهریور ۱۴۰۵.

   هر قاعده کنارش شماره‌ی منبع دارد. این فایل بعد از همه بار می‌شود و فقط
   جاهایی را که ممیزی خودکار (tools/ui-check/persian_ux_audit.py) خطا
   گرفته اصلاح می‌کند؛ چیدمان طرح دست نمی‌خورد.
   ===================================================================== */

/* ── [Sonnat/Typography] کوچک‌ترین اندازه (caption) = 12px ─────────────
   طرح جاهایی ۱۰٫۵/۱۱/۱۱٫۵ داشت: بج‌ها، برچسب استوری، امتیاز، «تومان»،
   لینک‌های ریز فوتر، برچسب نوار پایین. همه به کف ۱۲ می‌رسند. */
.store [style*="font-size:10.5px"], .store [style*="font-size: 10.5px"], .store [style*="font-size:10px"],
.store [style*="font-size:11px"], .store [style*="font-size: 11px"],
.store [style*="font-size:11.5px"], .store [style*="font-size: 11.5px"] { font-size: 12px !important; }
/* «تومان»ِ کنار قیمت‌ها (span تودرتو با اندازه‌ی ریز) */
.store [style*="font-size:10.5px"] > span, .store span[style*="font-size:10.5px"] { font-size: 12px !important; }
.store .hh-story-lbl { font-size: 12px !important; }
.store .hh-hero__kick { font-size: 12px !important; }
.store .tabbar a { font-size: 12px; }
.store .hh-card-stock { font-size: 12px !important; }

/* ── [Sonnat/Typography] ارتفاع خط بی‌واحد: بدنه ۲، عنوان ۱٫۵ ─────────
   فقط برای متن‌های جاری (پاراگراف/فهرست/توضیح) که خودشان line-height
   صریح ندارند؛ کنترل‌ها و کارت‌ها دست نمی‌خورند. */
.store main p:not([style*="line-height"]),
.store main li:not([style*="line-height"]),
.store main dd:not([style*="line-height"]),
.store .prose, .store .hh-seo-card p, .store .content-body { line-height: 2; }
.store main h1:not([style*="line-height"]),
.store main h2:not([style*="line-height"]),
.store main h3:not([style*="line-height"]) { line-height: 1.5; }
/* پاراگراف‌های ریزِ راهنما (۱٫۵ در طرح) هم به ۲ */
.store main p[style*="line-height:1.5"] { line-height: 2 !important; }

/* ── [pwcag ۲.۵.۸ / سنّت] هدف لمسی: ≥ ۴۴px برای دکمه‌های آیکنی ────────── */
.store .hh-topbar-close { width: 44px !important; height: 44px !important; }
/* نقطه‌های اسلایدر: طرح موبایل خودش با border-block شفاف ناحیه‌ی ۲۰px می‌دهد؛ دست نمی‌خورد. */
/* چیپ «مشاهده همه» خودش ۳۴/۳۰ است؛ هدف لمسی ۴۴ با ::before نامرئی تأمین می‌شود (store.css) */
.store .hh-more { display: inline-flex; align-items: center; }
.store nav[aria-label="مسیر"] a, .store nav[aria-label="مسیر صفحه"] a { display: inline-flex; align-items: center; min-height: 32px; }
.store nav[aria-label="مسیر"], .store nav[aria-label="مسیر صفحه"] { align-items: center; }
.store nav[aria-label="مسیر"] > [aria-hidden="true"], .store nav[aria-label="مسیر صفحه"] > [aria-hidden="true"] { flex-shrink: 0; }
.store .hh-swatch { min-width: 24px; min-height: 24px; }
.store .hh-navlink { display: inline-flex; align-items: center; min-height: 43px; }   /* ردیف ناوبری دسکتاپ ۴۳ است */

/* ── [Sonnat/Button] برچسب دکمه تک‌خطی و بدون شکستن ───────────────────── */
.store .btn, .store button[style*="background:var(--brand)"], .store a[style*="background:var(--brand)"] { white-space: nowrap; }

/* ── [Sonnat/Button] در نوار پایین موبایل: یک دکمه تمام‌عرض، دو دکمه نصف ── */
@media (max-width: 719px) {
  .store .hh-atc__acts { display: flex; gap: 8px; }
  .store .hh-atc__acts > * { flex: 1 1 0%; }
}

/* ── [Material Bidi] چیزهایی که در RTL آینه نمی‌شوند: اعداد، ساعت، لوگوی
   لاتین، نمودار. شمارنده‌ها و کدها همیشه LTR داخل متن RTL. ─────────────── */
.store [data-pdp-counter], .store .hh-sale-timer, .store time, .store .num { direction: ltr; unicode-bidi: isolate; }
