/**
 * Conservative RTL mobile flex/grid intrinsic-width fix.
 * No changes to body, Goldsmith drawer positioning or overflow clipping.
 * Prevents a wide child (product tiles, forms or long localized labels) from
 * imposing its intrinsic min-content width on a mobile content column.
 */
@media (max-width: 767px) {
  html[lang^="ar"] body.rtl .site-content,
  html[lang^="ar"] body.rtl .goldsmith-products-column,
  html[lang^="ar"] body.rtl .woocommerce,
  html[lang^="ar"] body.rtl .woocommerce-page .site-content .container,
  html[lang^="ar"] body.rtl .site-content .row > [class*="col-"] {
    min-inline-size: 0;
  }
  html[lang^="ar"] body.rtl .site-content .goldsmith-products-column,
  html[lang^="ar"] body.rtl .site-content .woocommerce {
    max-inline-size: 100%;
  }
}
@media (max-width: 782px) {
  html[lang^="ar"] body.rtl nav.goldsmith-header-mobile {
    max-inline-size: 100vw;
    box-sizing: border-box;
  }
  html[lang^="ar"] body.rtl nav.goldsmith-header-mobile .goldsmith-header-mobile-content {
    min-inline-size: 0;
  }
}

/*
 * Goldsmith emits a duplicate scroll-activated shop toolbar in RTL archives.
 * This desktop sticky bar contains nowrap sort/column/count controls, and the
 * supplied Ele.txt confirms it is the element whose removal restores the
 * narrow mobile layout. Normal mobile Filters and Sort remain available.
 * Do not clip body overflow or mutate the theme's desktop toolbar.
 */
@media (max-width: 1023px) {
  html[lang^="ar"] body.rtl .goldsmith-header-bottom-bar.show-on-scroll.shop-layout-left-sidebar {
    display: none !important;
  }
}
