/* =============================================================
   MVVGT — RTL overrides (Arabic only)
   ============================================================= */

.dir-rtl .grid-12,
.dir-rtl .grid { direction: rtl; }
.dir-rtl .grid-12 > *,
.dir-rtl .grid > * { direction: rtl; }

.dir-rtl .btn-row { justify-content: flex-start; }

.dir-rtl .menu-toggle span { /* no change */ }
.dir-rtl .hero__top .container { flex-direction: row-reverse; }
.dir-rtl .hero__line { left: auto; right: 0; }

.dir-rtl .chapter-mark { flex-direction: row-reverse; }

.dir-rtl .line-arrow::before { order: 2; }
.dir-rtl .line-arrow::after  { order: 1; }

.dir-rtl .site-footer__bottom { flex-direction: row-reverse; }

.dir-rtl .article__foot { flex-direction: row-reverse; }

/* Eyebrow underline-bar on the right side in RTL */
.dir-rtl .eyebrow, .dir-rtl .mono { letter-spacing: 0; }
.dir-rtl .form__label { letter-spacing: 0; }

/* Arabic letter-spacing reset on common patterns */
.dir-rtl .brand__mark { letter-spacing: .12em; }
.dir-rtl .lang-switch__btn { letter-spacing: 0; }
.dir-rtl .btn { letter-spacing: 0; }
.dir-rtl .post-card__category, .dir-rtl .article__category { letter-spacing: .15em; }

.dir-rtl .product-card__index, .dir-rtl .product-card__meta { letter-spacing: .15em; }

.dir-rtl .next-chapter__inner { flex-direction: row-reverse; }

/* ============================================================
   AWWWARDS LAYER — RTL mirrors for arrow hover and positional bits
   ============================================================ */

/* Arrow flips: in RTL, → should be ← and the hover motion mirrors */
[dir="rtl"] .aw-pillar__link-arrow,
[dir="rtl"] .aw-inner__item-link-arrow,
[dir="rtl"] .aw-catalog-row__arrow,
[dir="rtl"] .aw-closer__arrow,
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }

[dir="rtl"] .aw-pillar__link:hover .aw-pillar__link-arrow,
[dir="rtl"] .aw-inner__item-link:hover .aw-inner__item-link-arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .aw-catalog-row:hover .aw-catalog-row__arrow { transform: scaleX(-1) translateX(6px); }

/* Hero spec sits bottom-left in LTR; mirror to bottom-right in RTL */
[dir="rtl"] .aw-hero__spec { left: auto; right: clamp(24px, 5vw, 64px); }
[dir="rtl"] .aw-hero__hint { right: auto; left: clamp(24px, 5vw, 64px); }

/* Footer wax seal: top-right in LTR, mirror to top-left in RTL */
[dir="rtl"] .aw-footer__seal { /* uses inset-inline-end already, no override needed */ }

/* Marquee tracks scroll right-to-left in LTR; for RTL, scroll the other way is more natural */
[dir="rtl"] .aw-marquee__track { animation-direction: reverse; }

/* Lang switcher: keep LTR ordering of EN AR RU even in RTL pages */
[dir="rtl"] .lang-switch { direction: ltr; }

/* Catalog row layout uses grid-template-columns positionals — verify in RTL by setting direction */
[dir="rtl"] .aw-catalog-row,
[dir="rtl"] .aw-catalog-list { direction: rtl; }
