/* ── RTL Overrides ── */
/* These styles specifically handle RTL layout differences */

/* Flex direction reversals (only where not handled by logical CSS) */
.lang-ar .topbar__inner,
.lang-ar .header-main__inner {
    flex-direction: row-reverse;
}

.lang-ar .topbar__info { flex-direction: row-reverse; }
.lang-ar .topbar__actions { flex-direction: row-reverse; }
.lang-ar .hero__actions { flex-direction: row-reverse; }

/* Navigation arrow directions */
.lang-ar .site-nav__link .site-nav__arrow svg {
    transform: scaleX(-1);
}

/* Footer brand alignment */
.lang-ar .footer__brand-desc { max-width: 280px; }
.lang-ar .footer__col-title::after { inset-inline-start: auto; inset-inline-end: 0; }
.lang-ar .footer-nav__link { flex-direction: row-reverse; }

/* Product card badge positioning */
.lang-ar .product-card__badges {
    inset-inline-start: auto;
    inset-inline-end: var(--space-3);
}

/* Mobile menu slides from right in Arabic */
/* (Handled by inset-inline-end in header.css) */

/* Contact form */
.lang-ar .contact-form__row { direction: rtl; }

/* Calculator */
.lang-ar .calc-input { text-align: center; }
.lang-ar .calc-paint-types { direction: rtl; }

/* Color chips */
.lang-ar .color-chip__name { text-align: right; }
.lang-ar .color-chip__code,
.lang-ar .color-chip__hex { text-align: right; direction: ltr; }

/* Color modal values (keep hex/rgb LTR) */
.lang-ar .color-modal__value-text { direction: ltr; }

/* Breadcrumbs separator direction */
.lang-ar .breadcrumbs__sep { transform: scaleX(-1); display: inline-block; }

/* Gallery thumbs */
.lang-ar .product-gallery__thumbs { flex-direction: row-reverse; }

/* Mega menu arrow */
.lang-ar .mega-menu__item-arrow { transform: scaleX(-1); }
.lang-ar .mega-menu__item:hover .mega-menu__item-arrow {
    transform: scaleX(-1) translateX(4px);
}

/* Footer social */
.lang-ar .footer__social { flex-direction: row-reverse; }

/* Project meta */
.lang-ar .project-card__meta { flex-direction: row-reverse; }
.lang-ar .project-single__meta { flex-direction: row-reverse; }

/* Whatsapp float RTL */
.lang-ar .whatsapp-float {
    inset-inline-end: var(--space-8);
}

/* Phone numbers always LTR */
.topbar__phone,
.contact-info__value a[href^="tel"],
.contact-info__value a[href^="https://wa"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Colors search icon position */
.lang-ar .colors-search-bar__icon {
    inset-inline-start: auto;
    inset-inline-end: 14px;
}

.lang-ar .colors-search-bar__input { padding-inline-end: 44px; padding-inline-start: 16px; }

/* Select dropdown arrow */
.lang-ar select.form-control {
    background-position: left 12px center;
    padding-inline-start: 40px;
    padding-inline-end: 16px;
}

/* Filter list item indent */
.lang-ar .filter-list__link:hover {
    padding-inline-start: 10px;
    padding-inline-end: 14px;
}
