/*!
 * ptitange.tn — kidz-child RTL overrides
 * Chargé par mu-plugin ptitange-rtl-overrides.php quand is_rtl() = true
 * (locale AR via TranslatePress). Vient APRÈS kidz-child style.css et
 * APRÈS la rtl.css du thème parent (ideapark-rtl) pour corriger les
 * cas non couverts et les ajouts du child theme.
 *
 * Scope : règles structurelles essentielles uniquement (50-150 lignes).
 * Hors scope : widgets Elementor custom (audit visuel séparé requis),
 *              classes .intigo-* et .ptitange-* (gérées par leur propre CSS).
 */

/* ========== 1. Base direction (safety redundancy) ========== */
html[lang^="ar"],
html[lang^="ar"] body {
	direction: rtl;
	unicode-bidi: embed;
}

/* ========== 2. Child-theme style.css : overrides spécifiques ========== */
/* Menu "âge" ajouté par kidz-child/style.css */
ul.menu-agelist,
.menu-agelist {
	padding-left: 0;
	padding-right: 0;
}

li.menu-ageterm {
	border-left: none;
	border-right: solid 1px;
}

ul li.menu-ageterm:last-child {
	border-right: none;
	border-left: solid 1px;
}

/* Produits boucle shop sur mobile (child override) */
@media (max-width: 600px) and (min-width: 360px) {
	.page-id-582 .entry-content div.products .product,
	div.products .product {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ========== 3. WooCommerce : safety nets pour fragments non couverts ========== */
.woocommerce-breadcrumb {
	text-align: right;
}

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	left: auto;
	right: 0;
	border-radius: 3px 0 0 3px;
}

.woocommerce .quantity .qty {
	text-align: center; /* reste symétrique */
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding-left: 1em;
	padding-right: 3.5em;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	left: auto;
	right: 1em;
}

.woocommerce-MyAccount-navigation ul li {
	text-align: right;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	text-align: right;
}

.woocommerce table.shop_table .product-remove,
.woocommerce table.shop_table .product-quantity {
	text-align: center;
}

/* ========== 4. Checkout & forms ========== */
.woocommerce form .form-row label {
	text-align: right;
}

.woocommerce form .form-row .required {
	margin-left: 0;
	margin-right: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	right: auto;
	left: 1px;
}

/* ========== 5. Breadcrumbs Yoast / RankMath séparateur ========== */
.rank-math-breadcrumb span.separator,
#breadcrumbs .separator {
	display: inline-block;
	transform: scaleX(-1);
}

/* ========== 6. Boutons avec icônes : inverser l'espace ========== */
.btn-video,
.ip-watch-video-btn--single svg {
	margin-left: 5px;
	margin-right: 0;
}

/* ========== 7. Account / login forms ========== */
.woocommerce-form__label-for-checkbox .woocommerce-form__input-checkbox {
	margin-right: 0;
	margin-left: 6px;
}

/* ========== 8. Alignements texte globaux pour contenu AR ========== */
.entry-content p,
.entry-content li,
.single-product .woocommerce-product-details__short-description,
.woocommerce-Tabs-panel {
	text-align: right;
}

/* ========== 9. Pagination : flèches directionnelles sémantiques ========== */
/* On NE touche PAS .slick-prev / .slick-next (gérés par le parent) ni
   les chevrons slider (sémantique de direction visuelle, pas de lecture). */

/* ========== 10. Dropdowns top-menu alignement ========== */
#header .main-menu .sub-menu {
	text-align: right;
}

/* ========== 11. Footer colonnes alignement ========== */
#footer .widget,
#footer .contacts {
	text-align: right;
}

#footer .contacts .contact-ico {
	margin-left: 10px;
	margin-right: 0;
}

/* ========== 12. Fin — classes custom ptitange / intigo exclues volontairement ========== */
/* .ptitange-* et .intigo-* ont leur propre feuille de style qui gère RTL */
