/*
 * Left-to-right languages (English, German, Turkish, ...). Loaded after every other stylesheet, only when the
 * current language is not right-to-left. The site was drawn right-to-left with mostly logical properties, so only the
 * few direction-specific rules (drawers, badges, switches, arrows) need mirroring here.
 */

body {
    direction: ltr;
    text-align: start;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
    letter-spacing: 0;
}

/* headings and prices written with the Persian typeface elsewhere keep a readable Latin face */
h1, h2, h3, h4, h5, h6, button, input, select, textarea, .yp-btn { font-family: inherit; }

/* ---------- Drawers and filter panel slide in from the left ---------- */
.yp-drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 40px -10px rgba(0, 0, 0, .25); }
.yp-drawer--left { left: auto; right: 0; transform: translateX(105%); }
.yp-drawer.is-open { transform: none; }
@media (max-width: 991.98px) {
    .yp-filters { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 40px -10px rgba(0, 0, 0, .3); }
    .yp-filters.is-open { transform: none; }
}

/* ---------- Badges, ribbons and corner marks ---------- */
.yp-badge { left: auto; right: 4px; }
.yp-bottombar .yp-badge { left: auto; right: calc(50% - 22px); }
.yp-card__off { right: auto; left: 8px; }

/* ---------- Forms ---------- */
.yp-field input, .yp-field input::placeholder { text-align: left; }
.yp-pass input { padding-left: 14px; padding-right: 50px; }
.yp-pass__toggle { left: auto; right: 6px; }

/* ---------- Switch knob ---------- */
.yp-toggle__track::after { right: auto; left: 3px; }
.yp-toggle.is-on .yp-toggle__track::after { transform: translateX(16px); }

/* ---------- Arrows: icons are drawn pointing the RTL way ("next" = left) ---------- */
.yp-railbtn--next svg { transform: none; }
.yp-railbtn--prev svg { transform: scaleX(-1); }
.yd-gallery__nav--prev svg, .yd-lb__nav--prev svg { transform: none; }
.yd-gallery__nav--next svg, .yd-lb__nav--next svg { transform: rotate(180deg); }
.yp-nav__ico, .yp-more svg, .yp-crumbs svg, .yc-continue svg, .yc-checkout svg, .yo-btn svg { transform: scaleX(-1); }
.yp-nav__item .yp-nav__toggle svg { transform: none; }
.yp-trust li:hover { transform: translateX(4px); }

/* ---------- Text blocks that were pinned to the right ---------- */
.yd-en, .title-post { text-align: left; direction: ltr; padding-right: 0; padding-left: 15px; }

/* rich text typed in the editor keeps its own alignment but flows left-to-right */
.yp-prose, .yd-prose { direction: ltr; text-align: left; }

/* numbers and prices read left-to-right in every language */
.yp-card__price, .yd-price, [data-yd-final], [data-yd-old-price] { direction: ltr; unicode-bidi: plaintext; }
