/**
 * RTL polish for the Koochakzadeh theme.
 * Most layout uses logical properties (appearanceTools), so this file only
 * corrects components that assume a left-to-right flow.
 * @package Koochakzadeh
 */

body {
	direction: rtl;
}

/* Ensure Latin numerals / SKUs render left-to-right inside RTL text. */
.kz-specs__item dd,
.woocommerce-product-details__short-description,
.sku,
.wc-block-components-product-price,
.price bdi {
	unicode-bidi: plaintext;
}

/* Lists: move bullets/padding to the right side. */
.wp-block-list,
.woocommerce-MyAccount-navigation ul {
	padding-inline-start: 1.2em;
}

/* Footer link lists sit flush to the start (right in RTL). */
.kz-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kz-footer__list li {
	margin-bottom: 0.5rem;
}
.kz-footer__list a {
	color: var(--wp--preset--color--line, #e4ddce);
	text-decoration: none;
	transition: color 0.25s ease;
}
.kz-footer__list a:hover {
	color: var(--wp--preset--color--gold-light, #e6c976);
}

/* WooCommerce: keep the sale flash + gallery controls on the correct side. */
.woocommerce span.onsale {
	inset-inline-end: auto;
	inset-inline-start: 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--gold-deep, #b8860b);
}
.woocommerce .woocommerce-product-gallery .flex-viewport {
	direction: ltr;
}

/* Star ratings render LTR to stay visually correct. */
.woocommerce .star-rating,
.wc-block-components-product-rating {
	direction: ltr;
	display: inline-block;
}

/* Search icon button spacing inside RTL. */
.wp-block-search__inside-wrapper .wp-block-search__button {
	margin-inline-start: 0;
}

/* Breadcrumb separators flow naturally in RTL. */
.woocommerce-breadcrumb {
	direction: rtl;
}

/* Flip decorative gradients that assume LTR reading direction. */
.kz-cat-card::after {
	background: linear-gradient(200deg, rgba(255, 255, 255, 0.22), transparent 55%);
}
