/**
 * RTL Edge-Case Fixes for Leklook Theme
 *
 * WordPress and block editor handle most RTL flipping automatically.
 * This file handles edge cases that need manual overrides.
 *
 * @package Leklook
 * @since 1.0.0
 */

/* Default text alignment for RTL */
.wp-block-group,
.wp-block-column,
.wp-block-cover__inner-container {
    text-align: right;
}

/* Centered content stays centered */
.has-text-align-center {
    text-align: center !important;
}

/* Prices should remain LTR (digits) */
.wc-block-components-product-price,
.wc-block-grid__product-price,
.price,
.woocommerce-Price-amount,
.amount {
    direction: ltr;
    unicode-bidi: embed;
}

/* Phone numbers and numeric content */
.leklook-phone,
[dir="ltr"],
input[type="tel"],
input[type="number"],
input[type="email"] {
    direction: ltr;
    unicode-bidi: embed;
    text-align: right;
}

/* Navigation submenu positioning */
.wp-block-navigation .wp-block-navigation__submenu-container {
    left: auto;
    right: 0;
}

/* Search input alignment */
.wp-block-search__input {
    text-align: right;
}

/* Form labels */
label {
    text-align: right;
}

/* WooCommerce checkout fields */
.woocommerce-checkout .form-row {
    text-align: right;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    direction: rtl;
}

/* WooCommerce product gallery */
.woocommerce-product-gallery {
    direction: ltr;
}

/* Fix list markers position */
ul, ol {
    padding-inline-start: 1.5em;
    padding-inline-end: 0;
}

/* Swiper/slider RTL */
.swiper-rtl {
    direction: rtl;
}

/* Mini cart dropdown position */
.wc-block-mini-cart__drawer {
    left: 0;
    right: auto;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Select dropdown alignment */
select {
    text-align: right;
}
