/* Abzarbin Tools - RTL Specific Styles */

body {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Adjust icons that should be mirrored in RTL */
.main-menu > li.menu-item-has-children > a::after {
    content: '\f078';
}

.breadcrumb li:not(:last-child)::after {
    content: '\f053';
    margin-right: 4px;
    margin-left: 4px;
}

/* Float adjustments */
.has-sidebar #primary {
    float: right;
    padding-left: var(--spacing-xl);
    padding-right: 0;
}

.has-sidebar #secondary {
    float: left;
}

@media (max-width: 991px) {
    .has-sidebar #primary,
    .has-sidebar #secondary {
        float: none;
        padding: 0;
    }
}

/* Mega menu position */
.mega-menu {
    right: 0;
    left: auto;
}

.sub-menu {
    right: 0;
    left: auto;
}

/* Alignments */
.alignright {
    float: left;
    margin: 0 0 1.5em 1.5em;
}

.alignleft {
    float: right;
    margin: 0 1.5em 1.5em 0;
}

.aligncenter {
    margin: 0 auto;
}

/* Cart icon position */
.header-action .count {
    right: auto;
    left: 0;
}

/* Mobile menu - slides from right */
.mobile-menu {
    right: -100%;
    left: auto;
    transition: right var(--transition-base);
}

.mobile-menu.active {
    right: 0;
}

/* Mini cart - slides from left */
.mini-cart-panel {
    left: -100%;
    right: auto;
    transition: left var(--transition-base);
}

.mini-cart-panel.active {
    left: 0;
}

/* Numbers should be LTR */
.price,
.price-value,
.mini-cart-total .amount,
.cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total td {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Phone numbers LTR */
a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    text-align: right;
}

input[type="number"],
input[type="tel"] {
    text-align: right;
    direction: ltr;
}

/* WooCommerce quantity */
.woocommerce .quantity .qty {
    direction: ltr;
}

/* Newsletter form alignment */
.newsletter-form {
    text-align: right;
}

/* Quick view close button */
.quick-view-close {
    left: var(--spacing-md);
    right: auto;
}

/* Hero slider dots */
.hero-slider-dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* Chevron icons in menus */
.mega-menu-column ul li a i,
.footer-widget ul li a i,
.shop-widget .widget-title::before {
    margin-left: var(--spacing-sm);
    margin-right: 0;
}

/* Section heading view all icon */
.section-heading .view-all i {
    margin-right: var(--spacing-sm);
    margin-left: 0;
}

/* Back to top position */
.back-to-top {
    right: var(--spacing-lg);
    left: auto;
}

/* Toast position */
.toast-notification {
    left: var(--spacing-xl);
    right: auto;
    transform: translateX(-120%);
}

.toast-notification.active {
    transform: translateX(0);
}

@media (max-width: 767px) {
    .toast-notification {
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
}

/* Product prices */
.product-prices .price-row {
    flex-direction: row;
}

/* Quantity buttons */
.quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-minus {
    order: 1;
}

.qty {
    order: 2;
}

.qty-plus {
    order: 3;
}

/* Footer contact items */
.footer-contact-item i {
    margin-left: 0;
    margin-right: 0;
    margin-top: 4px;
    width: 24px;
}

/* Pagination arrows */
.pagination .prev::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 4px;
}

.pagination .next::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}
