/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme — RTL + Vazirmatn (امین الکترو)
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.1.1
 Text Domain:  woodmart
*/

/* =========================================================
   امین الکترو — فارسی / راست‌چین / فونت وزیرمتن
   ========================================================= */

:root {
	--ae-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

html {
	direction: rtl;
}

body,
button,
input,
select,
textarea,
.wp-block,
.elementor-widget,
.elementor-button,
.wd-nav,
.wd-nav a,
.wd-header,
.wd-footer,
.woocommerce,
.woocommerce-page,
.product,
.price,
.btn,
.button,
.woodmart-hover,
.wd-entities-title,
.entry-title,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label, td, th {
	font-family: var(--ae-font) !important;
}

body {
	direction: rtl;
	text-align: right;
	font-family: var(--ae-font) !important;
}

/* Elementor / WoodMart text alignment for RTL */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-button,
.banner-inner,
.wd-slide-content,
.wd-banner-content,
.wd-banner .banner-subtitle,
.wd-banner .banner-title,
.wd-banner .banner-inner-wrapper,
.slider-content,
.slide-content {
	text-align: right !important;
}

.elementor-widget-heading .elementor-heading-title[style*="text-align: left"],
.elementor-widget-text-editor[style*="text-align: left"],
.elementor-element[data-settings*="left"] .elementor-widget-container {
	text-align: right !important;
}

/* Keep hero banners readable in RTL */
body.rtl .wd-banner .content-banner,
body.rtl .wd-slide .content-slide,
body.rtl .banner-content {
	text-align: right;
	right: auto;
}

/* Flip common LTR paddings that look wrong in RTL demo layouts */
.elementor-section .elementor-widget-wrap > .elementor-element {
	text-align: inherit;
}

/* Forms */
input,
textarea,
select {
	text-align: right;
	direction: rtl;
}

input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
.ltr,
code,
pre,
.sku {
	direction: ltr;
	text-align: left;
	unicode-bidi: embed;
}

/* WooCommerce */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	text-align: right;
}

.woocommerce div.product .product_title,
.woocommerce div.product .summary {
	text-align: right;
}

.woocommerce .quantity .qty {
	text-align: center;
	direction: ltr;
}

/* Breadcrumbs & meta */
.woocommerce .woocommerce-breadcrumb,
.wd-breadcrumbs,
.posted-on,
.wd-product-brands {
	direction: rtl;
}

/* Search */
.wd-search-form input[type="search"],
.wd-search-form input[type="text"],
.searchform input {
	text-align: right;
}

/* Sticky toolbar already Persian — keep font consistent */
.wd-toolbar,
.wd-toolbar span,
.wd-toolbar a {
	font-family: var(--ae-font) !important;
}

/* Admin bar on frontend */
#wpadminbar,
#wpadminbar * {
	font-family: var(--ae-font) !important;
}

/* Fix arrow/chevron directions that stay LTR */
.rtl .wd-nav .menu-item-has-children > a:after,
.rtl .woodmart-nav-link:after {
	transform: scaleX(-1);
}

/* Price numbers stay LTR for readability */
.price,
.amount,
.woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: embed;
	display: inline-block;
}
