/* GharBazar — RTL stylesheet (Worker W6, O5)
   Loaded by the coordinator's layout snippet only when Lang::isUrdu().
   Flips direction and the most common left/right alignments. Component-level
   tweaks stay minimal: direction:rtl cascades to flex/grid automatically. */

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* generic left/right flips */
[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .text-right { text-align: left; }

/* header / nav */
[dir="rtl"] .header-in { flex-direction: row-reverse; }
[dir="rtl"] .main-nav ul { padding-right: 0; }
[dir="rtl"] .nav-search { flex-direction: row-reverse; }

/* cards & grids */
[dir="rtl"] .lcard-meta { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb ol { flex-direction: row-reverse; }

/* filter drawer slides from the left in RTL */
[dir="rtl"] .filter-drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .filter-drawer.open { transform: translateX(0); }

/* forms */
[dir="rtl"] .form label { text-align: right; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { text-align: right; }

/* tables */
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }

/* footer */
[dir="rtl"] .footer-grid { direction: rtl; }

/* charts / bars */
[dir="rtl"] .hbar-row { flex-direction: row-reverse; }
[dir="rtl"] .emi-bar { flex-direction: row-reverse; }

/* badges on listing images: mirror the stack */
[dir="rtl"] .lcard-badges { left: auto; right: .6rem; }
[dir="rtl"] .fav-btn { right: auto; left: .6rem; }
