/* Sunfere Fashion 3.0 — Arabic RTL overrides (2026-11-14)
   Loaded only when request.document_direction == "rtl".
   Keep the original base/index.css and all section stylesheets. */

/* 1. Mobile navigation drawer: anchor to the right and slide in from the right. */
html[dir="rtl"] .header-nav-drawer__content {
  transform: translateX(100%);
}
html[dir="rtl"] .header-nav-drawer.open .header-nav-drawer__content {
  transform: translateX(0);
}

/* 2. Facet/cart drawers: match their entry animation to the RTL side.
   The existing inset-inline positioning already mirrors automatically. */
html[dir="rtl"] theme-modal[data-placement="left"] > details > summary + :not(details, summary) {
  --modal-animation-name: animation-slide-in-right;
}
html[dir="rtl"] theme-modal[data-placement="right"] > details > summary + :not(details, summary) {
  --modal-animation-name: animation-slide-in-left;
}

/* 3. Back and pagination arrows. Do not flip down-chevron icons. */
html[dir="rtl"] .breadcrumb__icon,
html[dir="rtl"] .pagination-simple__button--previous,
html[dir="rtl"] .pagination-standard__button--previous {
  transform: rotate(0deg);
}
html[dir="rtl"] .pagination-simple__button--next,
html[dir="rtl"] .pagination-standard__button--next {
  transform: rotate(180deg);
}

/* 4. Keep amounts in their normal currency/number order.
   This changes text direction only, NOT the order of price/compare-at elements. */
html[dir="rtl"] .product-price__item,
html[dir="rtl"] .cart-item__total-final,
html[dir="rtl"] .cart-item__total-original {
  direction: ltr;
  unicode-bidi: isolate;
}

/* 5. Collection filter/sort and item count on mobile.
   Restore 20px right spacing for Arabic RTL. */
@media(max-width:959px){
html[dir="rtl"] theme-facets-form[data-type="mobile"] .page-width.facets-count{
transform:translateX(-10px)!important;
}
}
