/*
 * Deir Store: right-to-left (Arabic) adjustments.
 * Loaded automatically after style.css when the site language is RTL.
 * Most layout already uses CSS logical properties, so only direction-
 * specific transforms and gradients need flipping here.
 */

body { direction: rtl; unicode-bidi: embed; }

/* Off-canvas drawers slide from the correct side */
.drawer--start { transform: translateX(100%); }
.drawer--end { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }

/* Arrows and chevrons point the other way */
.deir-flip { transform: rotate(180deg); }
.deir-flip-prev { transform: none; }
.banner:hover .banner__cta .deir-icon { transform: rotate(180deg) translateX(3px); }

/* Prices: keep numbers and currency readable */
.price, .amount, .woocommerce-Price-amount { unicode-bidi: isolate; }
.countdown__time, .header-phone strong { direction: ltr; unicode-bidi: isolate; }

/* Hero gradient follows the text side */
@media (min-width: 768px) {
	.slide--has-image::after { background: linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 65%); }
}

@media (min-width: 1024px) {
	.departments__menu > li.menu-item-has-children > a::after { transform: rotate(135deg); }
	.departments__menu > li > .sub-menu { border-radius: var(--deir-radius) 0 0 var(--deir-radius); }
	.shop-sidebar.drawer { transform: none; }
}

/* WooCommerce bits that use physical left/right */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { left: 10px; right: auto; }
.woocommerce .woocommerce-ordering select { background-position: left 12px center; }
.woocommerce-mini-cart-item a.remove { left: 0; right: auto; }
.woocommerce form .form-row-first { margin-inline-end: 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { left: 4px; right: auto; }
.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { text-align: left; }
.woocommerce table.shop_table_responsive tr td::before { float: none; text-align: right; }
