/* ==========================================================================
   BRANDSSLAB — Arabic / RTL layer
   Loaded only when the active language is Arabic.
   ========================================================================== */

/* 1. Typography ---------------------------------------------------------- */
.rtl,
.bsl-lang-ar{
  --lab-serif:"Noto Kufi Arabic","Instrument Serif",Georgia,serif;
  --lab-sans:"Noto Sans Arabic","Manrope",Arial,sans-serif;
}
.bsl-lang-ar body,
body.bsl-lang-ar{font-family:var(--lab-sans);direction:rtl;text-align:right}
body.bsl-lang-ar h1,body.bsl-lang-ar h2,body.bsl-lang-ar h3,body.bsl-lang-ar h4,
body.bsl-lang-ar .bsl-lab-display,body.bsl-lang-ar .bsl-lab-eyebrow{font-family:var(--lab-serif);letter-spacing:0}
/* Arabic script does not take Latin letter-spacing or uppercasing well. */
body.bsl-lang-ar .bsl-lab-eyebrow,
body.bsl-lang-ar .bsl-lab-menu>li>a,
body.bsl-lang-ar .bsl-lab-btn,
body.bsl-lang-ar .bsl-lab-badge,
body.bsl-lang-ar button,
body.bsl-lang-ar .button{letter-spacing:0;text-transform:none}
body.bsl-lang-ar .bsl-lang-flag{letter-spacing:.09em;text-transform:uppercase}

/* Keep Latin fragments (brand names, SKUs, prices) rendering left-to-right. */
.bsl-lang-ar .woocommerce-Price-amount,
.bsl-lang-ar .bsl-lab-product-price,
.bsl-lang-ar .price{direction:ltr;unicode-bidi:embed;display:inline-block}
.bsl-lang-ar .bsl-lab-product-price bdi,
.bsl-lang-ar .price bdi{direction:ltr}

/* 2. Global direction ---------------------------------------------------- */
.rtl .bsl-site,
.rtl .bsl-main,
.rtl .bsl-lab-header,
.rtl footer{direction:rtl}
.rtl input,.rtl textarea,.rtl select{text-align:right;direction:rtl}
.rtl input[type="email"],.rtl input[type="tel"],.rtl input[type="url"],.rtl input[type="number"]{direction:ltr;text-align:right}

/* 3. Header -------------------------------------------------------------- */
.rtl .bsl-cart-count{right:auto;left:-7px}
@media (max-width:900px){.rtl .bsl-cart-count{right:auto;left:-1px}}
.rtl .bsl-lab-menu>li>a:after{right:0;left:100%;transition:left .2s}
.rtl .bsl-lab-menu>li:hover>a:after,
.rtl .bsl-lab-menu>.current-menu-item>a:after{left:0}
.rtl .bsl-lab-search-close{right:auto;left:42px}
.rtl .skip-link:focus{left:auto;right:8px}

/* 4. Drawers and off-canvas panels -------------------------------------- */
@media (max-width:900px){
  /* Only the off-canvas (fixed) variants flip; the desktop sidebar is a grid column. */
  .rtl .bsl-ajax-filter-panel,
  .rtl .bsl-ajax-shop-sidebar{left:auto;right:0;inset:0 0 0 auto;transform:translateX(105%)}
  .rtl .bsl-ajax-filter-panel.is-open,
  .rtl .bsl-ajax-shop-sidebar.is-open,
  .rtl .bsl-ajax-filter-panel.is-active,
  .rtl .bsl-ajax-shop-sidebar.is-active{transform:translateX(0)}
}
.rtl .bsl-lab-drawer-language span{margin-right:0;margin-left:auto}

/* 5. Product cards ------------------------------------------------------- */
.rtl .bsl-lab-badge{left:auto;right:10px}
@media (max-width:900px){.rtl .bsl-lab-badge{left:auto;right:12px}}
.rtl .bsl-lab-heart{right:auto;left:10px}
@media (max-width:900px){.rtl .bsl-lab-heart{right:auto;left:12px}}
.rtl .bsl-lab-quick-view{left:auto;right:10px}
.rtl .bsl-lab-quick-view-panel>.bsl-lab-modal-x{right:auto;left:16px}
.rtl .bsl-lab-product-price del{margin-left:0;margin-right:4px}

/* 6. Grids with directional dividers ------------------------------------ */
.rtl .bsl-lab-process-grid>div,
.rtl .bsl-lab-designer-directory>a,
.rtl .bsl-lab-auth-grid article{border-right:0;border-left:1px solid var(--lab-border)}
.rtl .bsl-lab-process-grid>div{padding:24px 0 10px 25px}
.rtl .bsl-lab-process-grid>div:not(:first-child){padding-left:0;padding-right:25px}
.rtl .bsl-lab-designer-directory>a{padding:30px 0 30px 35px}
.rtl .bsl-lab-designer-directory>a:nth-child(3n+2),
.rtl .bsl-lab-designer-directory>a:nth-child(3n+3){padding-left:0;padding-right:35px}
.rtl .bsl-lab-auth-grid article{padding:30px 0 25px 28px}
.rtl .bsl-lab-auth-grid article:nth-child(3n+2),
.rtl .bsl-lab-auth-grid article:nth-child(3n+3){padding-left:0;padding-right:28px}
.rtl .bsl-lab-service{border-right:0;border-left:1px solid var(--lab-border)}
.rtl .bsl-lab-service:last-child{border-left:0}
.rtl .bsl-lab-discovery-links a{margin-right:0;margin-left:26px}
.rtl .bsl-lab-policy-body section:before{left:auto;right:28px}
@media (max-width:900px){
  .rtl .bsl-lab-policy-body section:before{left:auto;right:18px}
  .rtl .bsl-lab-process-grid>div,
  .rtl .bsl-lab-process-grid>div:not(:first-child),
  .rtl .bsl-lab-designer-directory>a,
  .rtl .bsl-lab-designer-directory>a:nth-child(n),
  .rtl .bsl-lab-auth-grid article,
  .rtl .bsl-lab-auth-grid article:nth-child(n){padding-left:0;padding-right:0;border-left:0}
  .rtl .bsl-lab-discovery-links a{margin-left:0}
}

/* 7. Editorial overlays -------------------------------------------------- */
.rtl .bsl-lab-department-copy{left:auto;right:36px}
.rtl .bsl-lab-category-copy{left:18px;right:18px}
@media (max-width:900px){.rtl .bsl-lab-department-copy{left:auto;right:16px}}
.rtl .bsl-live-sales{left:auto;right:24px}
@media (max-width:900px){.rtl .bsl-live-sales{left:12px;right:12px}}

/* 8. Shop, filters, listings -------------------------------------------- */
.rtl .bsl-filter-heading{text-align:right}
.rtl .bsl-subcat-list{padding-left:0;padding-right:16px}
.rtl .bsl-filter-brand-list{padding-right:0;padding-left:5px}
.rtl .bsl-shop-view-switcher{margin-left:0;margin-right:auto}
.rtl .bsl-cat-toggle:before,
.rtl .bsl-cat-toggle:after{left:auto;right:8px}
.rtl .bsl-lab-faq-item summary:after{margin-left:0;margin-right:auto}

/* 9. Product page -------------------------------------------------------- */
.rtl .single-product form.cart .variations th,
.rtl .single-product form.cart .variations td{text-align:right}
.rtl .single-product .single_add_to_cart_button{margin-left:0!important;margin-right:8px!important}
.rtl .bsl-product-trust span:nth-child(even){padding-left:0;padding-right:20px}

/* 10. Cart, checkout, account ------------------------------------------- */
.rtl .bsl-shopify-cart-summary table th,
.rtl .bsl-shopify-cart-summary table td,
.rtl .bsl-checkout-order-review table th,
.rtl .bsl-checkout-order-review table td{text-align:right}
.rtl .bsl-checkout-summary{border-left:0;border-right:1px solid var(--lab-border)}
@media (max-width:1100px){.rtl .bsl-checkout-summary{border-right:0}}
.rtl .bsl-shopify-update-cart{margin-left:0!important;margin-right:auto!important}
@media (max-width:900px){.rtl .bsl-shopify-update-cart{margin-right:0!important}}
.rtl .woocommerce-order-overview li{border-right:0!important;border-left:1px solid var(--lab-border)!important}
.rtl .woocommerce-account .woocommerce-MyAccount-navigation a:hover{transform:translateX(-2px)}
.rtl .woocommerce table.shop_table th,
.rtl .woocommerce table.shop_table td,
.rtl .woocommerce-MyAccount-content table th,
.rtl .woocommerce-MyAccount-content table td{text-align:right}
.rtl .woocommerce form .form-row label{text-align:right;display:block}

/* 11. Elementor sections ------------------------------------------------- */
.rtl .elementor-section,
.rtl .elementor-widget-container{direction:rtl}

/* 12. Misc --------------------------------------------------------------- */
.rtl .bsl-lab-announcement-track{direction:rtl}
.rtl blockquote{border-left:0;border-right:2px solid var(--lab-border);padding-left:0;padding-right:18px}
.rtl ul,.rtl ol{padding-left:0;padding-right:1.2em}

/* 13. Logo lockup keeps its Latin order ------------------------------- */
.rtl .bsl-lab-header-logo,
.rtl .bsl-lab-logo-link,
.rtl .bsl-lab-drawer-logo,
.rtl .bsl-lab-footer-logo{direction:ltr}
