/* SMITH right to left: /ar/ and /he/ (2 Dec 2026, Tilen: »dodaj vse tri« - pt, ar, he).
   WordPress sets dir="rtl" on <html> from the language's core pack (00-smith-lang.php makes a new WP_Locale after the
   switch), and the browser then mirrors text, flex rows and grids by itself. This file mirrors only what smith.css,
   family.css and product.css place with a physical left or right; it is loaded only on a right-to-left page.
   Model codes, figures with units, prices and phone numbers stay readable left to right inside the line (bdi below). */

/* header: the offers button sits before the cart */
html[dir="rtl"] body.smith #masthead a.smith-offers-btn { margin-right: 0; margin-left: 10px; }
@media (max-width: 849px) { html[dir="rtl"] body.smith #masthead a.smith-offers-btn { margin-left: 8px; } }

/* home banner: the picture comes in from the other side, prev arrow on the right, next on the left, arrows point outward */
html[dir="rtl"] .sm-slide .sm-hero__img img { transform: translateX(-24px); }
html[dir="rtl"] .sm-slide.is-on .sm-hero__img img { transform: none; }
html[dir="rtl"] .sm-hero__arrow--prev { left: auto; right: clamp(6px, 1.5vw, 24px); }
html[dir="rtl"] .sm-hero__arrow--next { right: auto; left: clamp(6px, 1.5vw, 24px); }
html[dir="rtl"] .sm-hero__arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .sm-hero__dot span::after { left: auto; right: 0; }
html[dir="rtl"] .sm-hero__pause { margin-left: 0; margin-right: 6px; }
@media (max-width: 700px) { html[dir="rtl"] .sm-hero__pause { margin-right: 0; } }

/* mega menu: the caret after the label, the count at the far end */
html[dir="rtl"] body.smith #primary-menu > li.sm-mega-item > .menu-item-wrapper > a::after { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] body.smith #site-navigation .sm-mega__check small { margin-left: 0; margin-right: auto; }

/* red accent bars on the start side */
html[dir="rtl"] body.smith.woocommerce-cart .shadowed-right div:has(> p.bs-small),
html[dir="rtl"] body.smith .woocommerce-account-fields,
html[dir="rtl"] body.smith .pas-sc__mine-box { border-left-width: 1px !important; border-right: 3px solid var(--sm-red) !important; }

/* product: the sale badge corner, the spec table (label at the start, value at the end) */
@media (max-width: 700px) { html[dir="rtl"] body.smith.single-product div.product:has(span.onsale) h1.product_title { padding-right: 0; padding-left: 64px; } }
html[dir="rtl"] .sp-spec th, html[dir="rtl"] .sp-spec td { text-align: right; }
html[dir="rtl"] .sp-spec th { padding-right: 0; padding-left: 20px; }
html[dir="rtl"] .sp-spec td { text-align: left; }
@media (max-width: 700px) { html[dir="rtl"] .sp-spec td { text-align: right; } }
html[dir="rtl"] .sp-yt__note { left: auto; right: 16px; }

/* mobile menu: labels at the start, the close button in the other corner */
@media (max-width: 849px) {
	html[dir="rtl"] body.smith #primary-menu-mobile > li > a { text-align: right !important; }
	html[dir="rtl"] body.smith #primary-menu-mobile > li.bs-drawer-x { right: auto; left: 8px; }
}

/* family pages */
html[dir="rtl"] .sf-seg__b span { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .sf-card__nums div { border-left: 0; border-right: 1px solid #E3E6E8; }
html[dir="rtl"] .sf-card__nums div:first-child { padding-left: 10px; padding-right: 0; border-right: 0; }
html[dir="rtl"] .sf-card__p del { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .sx-terms ul { padding-left: 0; padding-right: 20px; }

/* left-to-right islands in a right-to-left line: model codes, prices, phone numbers and e-mail addresses keep their order
   (a phone number »+386 3 ...« otherwise shows its plus sign at the end) */
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"] { text-align: right; }

/* Arabic letters join: SMITH's letter-spaced capitals (kickers, buttons, headlines) would break every word into separate
   letters. Hebrew has no capitals either, so the spacing goes for both. */
html[dir="rtl"] body.smith, html[dir="rtl"] body.smith * { letter-spacing: 0 !important; }

/* language switch: its panel opens from the switch toward the page, i.e. leftward (it went 250 px past the right edge) */
html[dir="rtl"] body.smith .smith-langs__list { left: auto; right: 0; }

/* figure rows (home strip, machine page, family cards): the figure and its unit are two boxes in one line, which the
   right-to-left line showed as »mm 4,500« (2 Dec 2026, phone check); the value reads left to right, at the start side */
html[dir="rtl"] .sm-strip__in dd, html[dir="rtl"] .sp-nums dd, html[dir="rtl"] .sf-card__nums dd { direction: ltr; unicode-bidi: isolate; text-align: right; }
