/* ===== Rashrash Computers — RTL / Arabic Stylesheet ===== */
/* Loaded in addition to main.css for Arabic (dir="rtl") users */

/* ── Arabic typography ── */
body {
  font-family: "Cairo", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.rr-section-title, .rr-hero-heading, .rr-product-title, .rr-footer-col h4 {
  font-family: "Cairo", sans-serif;
}

/* ── Floating chat tab ── */
/* Two rules for .ecom-chat-tab were present; combined here */
.ecom-chat-tab { right: auto; left: 0; border-radius: 0 6px 6px 0; writing-mode: vertical-lr; }

/* ── Header right ── */
.header-right { flex-direction: row-reverse; }

/* ── Navigation ── */
.ecom-nav-inner { flex-direction: row-reverse; }

/* ── Category page: toolbar dropdowns ── */
.rr-toolbar-dd-menu {
  right: auto;
  left: 0;
}
.rr-toolbar-dd-item.is-selected::before {
  left: auto;
  right: 0;
  border-radius: 2px 0 0 2px;
}

/* ── Category pagination arrows ── */
.category-page-nav {
  transform: scaleX(-1);
}

/* ── Category listing: product list view ── */
.category-products-grid.category-products--list .product-card-citycenter .product-body {
  text-align: right;
}
.category-products-grid.category-products--list .product-card-citycenter .product-specs {
  text-align: right;
}
.category-products-grid.category-products--list .product-card-citycenter .product-price {
  justify-content: flex-end;
}

/* ── Hero slider arrows: swap sides ── */
.rr-hero-arrow--prev { left: auto; right: 4px; }
.rr-hero-arrow--next { right: auto; left: 4px; }

/* ── Cart table header alignment ── */
.rr-cart-th { text-align: right; }

/* ── Track order: breadcrumb + search ── */
.rr-track-bc {
  flex-direction: row-reverse;
}
.rr-track-search {
  flex-direction: row-reverse;
}

/* ── Track result card tabs ── */
.rr-trc-tab + .rr-trc-tab {
  border-left: none;
  border-right: 1.5px solid var(--rr-brand, #00a89c);
}

/* ── Vertical timeline (account / order details) ── */
.rr-tlv__dot {
  left: auto;
  right: -29px;
}
.rr-tlv__item--done .rr-tlv__icon--check,
.rr-tlv__item--current .rr-tlv__icon--accent {
  direction: ltr;
}

/* ── Auth page tabs ── */
.rr-auth-tab:not(:first-child) {
  border-left: none;
  border-right: 1px solid #008b94;
}

/* ── Filter row arrows: mirror for RTL ── */
.category-filters-citycenter .filter-row-arrow {
  transform: scaleX(-1);
}
/* Keep pointing down when expanded (combined transform) */
.category-filters-citycenter .filter-row-btn[aria-expanded="true"] ~ .filter-row-arrow,
.category-filters-citycenter .filter-row-btn:not(.collapsed) ~ .filter-row-arrow {
  transform: scaleX(-1) rotate(90deg);
}


/* ── Side menu drawer: slide from right in RTL ── */
.rr-side-menu {
  left: auto;
  right: 0;
  transform: translateX(100%);
}
.rr-side-menu.show {
  transform: translateX(0);
}
.rr-side-menu-close {
  margin-left: 0;
  margin-right: auto;
}

/* ── Filter sidebar drawer: slide from right in RTL ── */
@media (max-width: 991px) {
  .category-sidebar.category-sidebar--drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .category-sidebar.category-sidebar--drawer.is-open {
    transform: translateX(0);
  }
}
.category-drawer-close {
  margin-left: 0;
  margin-right: auto;
}
