/* Custom RTL overrides */
body {
    direction: rtl;
    text-align: right;
}
.f-right {
    float: left !important;
}
/* Header Top Bar */
.header-info > ul > li {
    margin-left: 20px !important;
    margin-right: 0 !important;
}
.header-info > ul > li:last-child {
    margin-left: 0 !important;
}
.header-info > ul > li:before {
    left: -10px !important;
    right: auto !important;
}
.header-info a i {
    margin-left: 5px !important;
    margin-right: 0 !important;
}
.header-info a i.fi-rs-angle-small-down {
    margin-right: 5px !important;
    margin-left: 0 !important;
}

/* Logo & Main Layout */
.logo.logo-width-1 {
    margin-left: 70px !important;
    margin-right: 0 !important;
}

/* Search Bar RTL fixes */
.search-unified select {
    border-left: 1px solid #e0e0e0 !important;
    border-right: none !important;
}
.search-unified button {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 5px !important;
}
.search-unified input {
    text-align: right !important;
}

/* Select2 Category Dropdown overrides */
.header-style-1 .select2-container--default .select2-selection--single {
    border-radius: 0 35px 35px 0 !important;
    padding-right: 20px !important;
    padding-left: 30px !important;
}
.header-style-1 .select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.header-style-1 .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 15px !important;
    right: auto !important;
}
.header-style-1 .select2-container--default .select2-selection--single .select2-selection__rendered:after {
    left: 0 !important;
    right: auto !important;
}

/* User profile alignment */
.user-welcome {
    text-align: right !important;
}
.cart-dropdown-wrap.account-dropdown {
    left: 0 !important;
    right: auto !important;
}

/* General text & paddings */
.text-end {
    text-align: left !important;
}
.text-start {
    text-align: right !important;
}
.pl-30 {
    padding-right: 30px !important;
    padding-left: 0 !important;
}
.pr-30 {
    padding-left: 30px !important;
    padding-right: 0 !important;
}
.detail-info {
    text-align: right !important;
}
.slick-slider {
    direction: rtl !important;
}
.slick-slide {
    direction: rtl !important;
}

/* Product card alignment in RTL */
.product-card-custom {
    text-align: right !important;
}
.product-card-custom .product-content-custom {
    text-align: right !important;
}
.product-card-custom .product-title-custom {
    text-align: right !important;
}
.product-card-custom .product-price-custom {
    text-align: right !important;
}
.product-card-custom .product-price-wrapper {
    justify-content: flex-start !important;
    text-align: right !important;
}
.product-card-custom .product-price-wrapper > div {
    text-align: right !important;
    width: 100% !important;
}
.product-card-custom .product-price-wrapper div[style*="display: flex"] {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: center !important;
}
.product-card-custom .discount-val {
    margin-right: 15px !important;
    margin-left: 0 !important;
}
.product-card-custom .fav-toggle-btn {
    left: 12px !important;
    right: auto !important;
}

/* Fix link decoration in RTL */
a, a:hover, a:focus, 
.account-dropdown ul li a, 
.cart-dropdown-wrap ul li a {
    text-decoration: none !important;
}

/* Fix spacing and alignment of user profile dropdown items in RTL */
.cart-dropdown-wrap.account-dropdown ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* aligns content to right in RTL */
    width: 100% !important;
    text-align: right !important;
}

.cart-dropdown-wrap.account-dropdown ul li a i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* Sidebar menu and profile options RTL spaces */
.dashboard-menu .menu-item i:first-child {
    margin-left: 12px !important;
    margin-right: 0 !important;
}
.profile-option-icon {
    margin-left: 15px !important;
    margin-right: 0 !important;
}

/* RTL Arrow direction override (flips right-pointing arrows to point left) */
.dashboard-menu .menu-item i:last-child {
    transform: scaleX(-1);
    display: inline-block;
}
.profile-option-arrow {
    transform: scaleX(-1);
    display: inline-block;
}

/* Contact methods RTL overrides */
.contact-method-value {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block !important;
}
.contact-method-arrow i {
    transform: scaleX(-1);
    display: inline-block;
}

/* FAQ RTL overrides */
.faq-question {
    text-align: right !important;
}
.question-text {
    margin-left: 15px !important;
    margin-right: 0 !important;
}
.faq-answer {
    text-align: right !important;
}


