/*
Theme Name: QoopDesign - RTL
Description: RTL version for Persian/Arabic languages
Text Domain: qoopdesign
*/

/* ===== RTL STYLES ===== */
html[dir="rtl"],
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body,
span.date_label,
.timeline_items li h3 span,
input,
textarea,
select,
.offer_li .title h3,
.mfn-menu-item-megamenu,
.lead,
.big,
#menu>ul>li>a,
#overlay-menu ul li a,
#Subheader .title,
h1,
h2,
h3,
h4,
h5,
h6,
.text-logo #logo,
blockquote,
.chart_box .chart .num,
.counter .desc_wrapper .number-wrapper,
.how_it_works .image .number,
.pricing-box .plan-header .price,
.quick_fact .number-wrapper,
.woocommerce .product div.entry-summary .price,
.famad-menu-container .menu-text,
.famad-menu-dark-container .menu-text,
.minimal-account-dashboard {
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
}

.elementor-templates-modal .dialog-widget-content {
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
}

/* Header RTL */
#mfn-header-template {
    left: auto;
    right: 0;
}

#Header_wrapper {
    left: auto;
    right: 0;
}

/* Breadcrumbs RTL */
#Subheader ul.breadcrumbs {
    float: right !important;
    padding: 0 4.25rem 0 0 !important;
}

#Subheader ul.breadcrumbs li span {
    margin: 0 .25rem !important;
}

#Subheader ul.breadcrumbs li span i::before {
    content: "\\2022" !important;
}

/* Content RTL */
#Content {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Menu Containers RTL */
.famad-menu-container .menu-text,
.famad-menu-dark-container .menu-text {
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
    margin-left: 0;
    margin-right: 2.5rem;
}

.famad-menu-container .menu-button::before,
.famad-menu-container .menu-button::after,
.famad-menu-dark-container .menu-button::before,
.famad-menu-dark-container .menu-button::after {
    left: auto;
    right: 4px;
    margin-right: 0;
    margin-left: 2.5rem;
}

/* Drawer RTL */
.famad-menu-drawer {
    left: auto;
    right: -100%;
    transition: right 0.4s ease;
}

.famad-menu-drawer.open {
    left: auto;
    right: 0;
}

.famad-drawer-parent li.famad-drawer-menu-language-selector a {
    justify-content: start;
    flex-direction: row-reverse;
}

.famad-drawer-parent li a, .famad-drawer-parent li a h3, .famad-drawer-parent li a h4 {
    text-align: start;
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
}

.subheader-both-left #Subheader .breadcrumbs {
    text-align: right !important;
}

/* Accordion RTL */
.accordion .question>.title>.acc-icon-plus,
.accordion .question .title>.acc-icon-minus {
    left: 0 !important;
    right: auto !important;
}

.style-simple .accordion .question .title {
    padding-left: 50px !important;
    padding-right: 0 !important;
}

/* WooCommerce RTL */
.woocommerce table.shop_table th:last-child,
.woocommerce table.shop_table td:last-child {
    text-align: right !important;
}

/* Product Colors RTL */
.product .categories-heading-title h3 {
    flex-direction: row-reverse;
}

.product .categories-heading-title h3 a {
    flex-direction: row-reverse;
}

.product .categories-heading-title h3 .product-color-name {
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
    text-align: left !important;
}

/* Dropdown RTL */
.custom-dropdown-wrapper {
    text-align: right;
}

.dropdown-trigger {
    flex-direction: row-reverse;
}

.option-content {
    flex-direction: row-reverse;
}

.dropdown-arrow {
    transform: rotate(0deg);
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Image Links RTL */
.if-modern-overlay .image_frame .image_wrapper .image_links {
    left: auto !important;
    right: 10px !important;
}

/* Wishlist RTL */
.wishlist-fragment {
    font-family: 'Estedad Regular', Tahoma, Arial, sans-serif !important;
}

.yith-add-to-wishlist-button-block {
    left: auto;
    right: 0.25rem;
}

/* Search Form RTL */
.mfn-header-tmpl .column_header_icon .search_wrapper>form,
.mfn-sidemenu-tmpl .column_header_icon .search_wrapper>form {
    text-align: right;
}

/* Minimal Dashboard RTL */
.minimal-card {
    flex-direction: row-reverse;
}

/* Product Archive RTL */
.product-colors-archive-wrapper {
    text-align: right;
}

.colors-switcher-archive {
    justify-content: flex-end;
}

/* Breadcrumb Separator RTL */
#Subheader ul.breadcrumbs li span i::before {
    content: "\2022" !important;
}

/* Splide Slider RTL */
.splide--rtl {
    direction: ltr;
}

.splide__arrows--rtl .splide__arrow--prev {
    left: auto;
    right: 1em;
}

.splide__arrows--rtl .splide__arrow--next {
    left: 1em;
    right: auto;
}

/* Text Alignment RTL */
.woocommerce table.woocommerce-product-attributes td,
.woocommerce table.woocommerce-product-attributes th {
    text-align: right;
}

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

/* Float RTL */
.alignleft {
    float: right;
    margin-left: 1rem;
    margin-right: 0;
}

.alignright {
    float: left;
    margin-right: 1rem;
    margin-left: 0;
}

a.wcpoa_attachmentbtn {
    float: left !important;
}

/* Mobile RTL Styles */
@media (min-width: 0px) and (max-width: 767px) {

    .famad-menu-container .menu-text,
    .famad-menu-dark-container .menu-text {
        margin-left: 0;
        margin-right: 2.5rem;
    }

    .famad-drawer-children-mobile {
        margin: 30px 30px 0 0 !important;
    }

    .famad-drawer-parent li {
        padding: 1rem 0 1rem 1.5rem;
    }

    .famad-drawer-parent li a svg {
        transform: rotate(180deg) !important;
    }

    .famad-drawer-parent li a.open svg {
        transform: rotate(90deg) !important;
    }

    .product .categories-heading-title h3 {
        flex-direction: row-reverse;
    }
    
	#Subheader ul.breadcrumbs {
		display: block !important;
		padding: 0 !important;
		float: none !important;
	}
}

/* Tablet RTL Styles */
@media (min-width: 768px) and (max-width: 1024px) {

    .famad-menu-container .menu-text,
    .famad-menu-dark-container .menu-text {
        margin-left: 0;
        margin-right: 2.5rem;
    }

    .product .categories-heading-title h3 {
        flex-direction: row-reverse;
    }
}

/* Additional RTL Utilities */
.rtl-text-right {
    text-align: right;
}

.rtl-text-left {
    text-align: left;
}

.rtl-float-right {
    float: right;
}

.rtl-float-left {
    float: left;
}

.rtl-ml-auto {
    margin-left: 0;
    margin-right: auto;
}

.rtl-mr-auto {
    margin-right: 0;
    margin-left: auto;
}