/* Hamood TV — right-to-left (Arabic) adjustments. Loaded automatically in Arabic mode. */

/* Arabic typography: one clean Arabic face everywhere except icon ligatures. */
body.hmd-ar,
body.hmd-ar *:not(.material-symbols-outlined):not(code):not(pre) {
	font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Plus Jakarta Sans", system-ui, sans-serif !important;
	letter-spacing: 0 !important;
}
body.hmd-ar { line-height: 1.7; }
body.hmd-ar .uppercase { text-transform: none; }
body.hmd-ar h1, body.hmd-ar h2, body.hmd-ar h3 { line-height: 1.35; }
body.hmd-ar .text-display-lg, body.hmd-ar .md\:text-display-lg { line-height: 1.25; }
body.hmd-ar [dir="ltr"], body.hmd-ar .woocommerce-Price-amount, body.hmd-ar .hmd-product__model, body.hmd-ar .hmd-mc__model { unicode-bidi: isolate; }
body.hmd-ar .woocommerce-Price-amount { direction: ltr; display: inline-block; }

/* Directional icons */
.hmd-ar .hmd-flip,
.hmd-ar .hmd-link .material-symbols-outlined,
.hmd-ar .hmd-btn .material-symbols-outlined:last-child:not(:first-child),
.hmd-ar .hmd-cat-card__arrow .material-symbols-outlined,
.hmd-ar .hmd-pagination .material-symbols-outlined { transform: scaleX(-1); }
.hmd-ar .hmd-mega__card:hover .hmd-mega__go { transform: scaleX(-1); }

/* Utilities that are physical in Tailwind */
.hmd-ar .text-right { text-align: left; }
.hmd-ar .text-left { text-align: right; }
.hmd-ar .left-4 { left: auto; right: 1rem; }
.hmd-ar .right-4 { right: auto; left: 1rem; }
.hmd-ar .left-4.right-4 { left: 1rem; right: 1rem; }
@media (min-width: 640px) {
	.hmd-ar .sm\:-left-8 { left: auto; right: -2rem; }
	.hmd-ar .sm\:left-auto.sm\:-left-8 { left: auto; }
}

/* Header & search */
.hmd-ar .hmd-search__icon { left: auto; right: .85rem; }
.hmd-ar .hmd-search--mobile .hmd-search__icon { left: auto; right: 1.85rem; }
.hmd-ar .hmd-search__input { padding: 0 2.6rem 0 1rem; }
.hmd-ar .hmd-select, .hmd-ar .hmd-toolbar .woocommerce-ordering select { background-position: left .9rem center; padding-right: .9rem; padding-left: 2.5rem; }
.hmd-ar .hmd-cart-count { right: auto; left: 0; }
.hmd-ar .hmd-icon-btn--cart .hmd-cart-count { left: -5px; right: auto; }

/* Panels slide from the reading side */
.hmd-ar .hmd-offcanvas__panel { left: auto; right: 0; transform: translateX(100%); }
.hmd-ar .hmd-drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.hmd-ar .hmd-offcanvas.is-open .hmd-offcanvas__panel, .hmd-ar .hmd-drawer.is-open .hmd-drawer__panel { transform: none; }
@media (max-width: 1023px) {
	.hmd-ar .hmd-filter-drawer__panel { left: auto; right: 0; transform: translateX(100%); }
	.hmd-ar .hmd-filter-drawer.is-open .hmd-filter-drawer__panel { transform: none; }
}

/* Mega menu & dropdowns */
.hmd-ar .hmd-mega__card { padding: .85rem .85rem .85rem 1.75rem; }
.hmd-ar .hmd-mobile-nav .hmd-mega__card { padding: .8rem; }
.hmd-ar .hmd-mega__sublist { padding: 0 4.5rem 0 0; }
.hmd-ar .hmd-mobile-nav .hmd-sub .hmd-sub { padding: 0 1rem 0 0; }

/* Cards, badges, floating elements */
.hmd-ar .hmd-float-wa { right: auto; left: 1.25rem; }
.hmd-ar .hmd-product__badges { left: auto; right: .75rem; align-items: flex-end; }
.hmd-ar .hmd-product__install { right: auto; left: .75rem; }
.hmd-ar .hmd-timeline::before { left: auto; right: 11px; }
.hmd-ar .hmd-timeline__item { padding-left: 0; padding-right: 2.5rem; }
.hmd-ar .hmd-timeline__dot { left: auto; right: 4px; }
@media (min-width: 1024px) {
	.hmd-ar .hmd-timeline::before { right: 0; left: 0; }
	.hmd-ar .hmd-timeline__item { padding: 2.25rem 0 0; }
	.hmd-ar .hmd-timeline__dot { right: 1.25rem; }
}
.hmd-ar .hmd-faq[open] { box-shadow: inset -3px 0 0 #b9f643; }
.hmd-ar .hmd-steps-line::before { background: linear-gradient(270deg, #b9f643, rgba(185, 246, 67, .1)); }

/* Tables & WooCommerce */
.hmd-ar .hmd-table th, .hmd-ar .hmd-table td, .hmd-ar .woocommerce table.shop_attributes th, .hmd-ar .hmd-wc-page table.shop_table th { text-align: right; }
.hmd-ar .hmd-wc-page .cart_totals table.shop_table td { text-align: left; }
.hmd-ar .woocommerce-message, .hmd-ar .woocommerce-info, .hmd-ar .woocommerce-error { padding: 1rem 3rem 1rem 1.25rem !important; border-left: 1px solid #e6e9e5 !important; border-right: 4px solid #001915 !important; }
.hmd-ar .woocommerce-error { border-right-color: #ba1a1a !important; }
.hmd-ar .woocommerce-message::before, .hmd-ar .woocommerce-info::before, .hmd-ar .woocommerce-error::before { left: auto !important; right: 1.1rem !important; }
.hmd-ar .woocommerce-message .button, .hmd-ar .woocommerce-info .button { margin-left: 0 !important; margin-right: auto !important; }
.hmd-ar .hmd-wc-page table.cart td.actions .coupon { float: right; }
.hmd-ar .hmd-wc-page table.cart td.actions > .button { float: left; }
@media (max-width: 767px) {
	.hmd-ar .hmd-wc-page table.shop_table_responsive tr td { text-align: left !important; }
	.hmd-ar .hmd-wc-page table.shop_table_responsive tr td::before { float: right; }
}
.hmd-ar .woocommerce .star-rating { direction: ltr; }
.hmd-ar .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 2rem !important; padding-right: .9rem !important; }
.hmd-ar .select2-container .select2-selection--single .select2-selection__arrow { right: auto !important; left: 6px !important; }

/* Content */
.hmd-ar .entry-content ul, .hmd-ar .entry-content ol { padding-left: 0; padding-right: 1.4rem; }
.hmd-ar .entry-content blockquote { border-left: 0; border-right: 4px solid #b9f643; padding: .5rem 1.25rem .5rem 0; }
.hmd-ar .hmd-comment-list .children { padding-left: 0; padding-right: 1.5rem; }

/* Product page: gallery arrows and spec table */
.hmd-ar .hmd-single__gallery .flex-direction-nav .flex-prev { left: auto; right: 1.5rem; }
.hmd-ar .hmd-single__gallery .flex-direction-nav .flex-next { right: auto; left: 1.5rem; }
.hmd-ar .hmd-single__gallery .flex-direction-nav .flex-prev::before { content: 'chevron_right'; }
.hmd-ar .hmd-single__gallery .flex-direction-nav .flex-next::before { content: 'chevron_left'; }
.hmd-ar .hmd-video__btn .material-symbols-outlined { transform: none; }

/* English product / category names inside RTL layouts keep their own direction */
.hmd-ar .hmd-product__title a, .hmd-ar .hmd-mc__name, .hmd-ar .hmd-mega__title, .hmd-ar .hmd-mega__link-label,
.hmd-ar .hmd-inquiry__name, .hmd-ar .product_title, .hmd-ar .hmd-search__txt strong, .hmd-ar .hmd-card-specs dd,
.hmd-ar .hmd-spec__table td, .hmd-ar .hmd-spec--legacy td, .hmd-ar .hmd-bc a, .hmd-ar .hmd-cat-card bdi { unicode-bidi: plaintext; }
