/* =============================================
   RTL Stylesheet for Arabic
   ============================================= */

body.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
.rtl .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
.rtl .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
.rtl .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
.rtl .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }

.rtl .float-end { float: left !important; }

.rtl .text-md-end { text-align: left !important; }
.rtl .text-end { text-align: left !important; }

/* Discount badge RTL */
.rtl .discount-badge {
    right: auto;
    left: 4px;
}

.rtl .discount-badge-lg {
    left: auto;
    right: 10px;
}

/* Category tabs RTL */
.rtl .cat-tab-discount {
    right: auto;
    left: -4px;
}

.rtl .cat-tab-scroll-left {
    left: auto;
    right: -14px;
}

.rtl .cat-tab-scroll-right {
    right: auto;
    left: -14px;
}

/* Sidebar RTL */
.rtl .category-nav {
    padding-right: 0;
}

/* Breadcrumb RTL */
.rtl .breadcrumb-item + .breadcrumb-item::before {
    content: "\\";
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Toast RTL */
.rtl .toast-container {
    right: auto;
    left: 12px;
}

.rtl .toast-notification {
    border-left: none;
    border-right: 4px solid var(--success);
    flex-direction: row-reverse;
}

.rtl .toast-notification.error { border-right-color: var(--danger); }
.rtl .toast-notification.warning { border-right-color: var(--warning); }

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Form check RTL */
.rtl .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

.rtl .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

/* Product popup RTL */
.rtl .product-popup-close {
    right: auto;
    left: 12px;
}

.rtl .popup-variant-label {
    flex-direction: row-reverse;
}

.rtl .popup-variant-price {
    text-align: left;
}

.rtl .product-popup-footer {
    flex-direction: row-reverse;
}

.rtl .menu-discount-badge {
    right: auto;
    left: 10px;
}

/* Delivery method card RTL */
.rtl .delivery-icon {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Add to cart button RTL */
.rtl .btn-add-cart i {
    margin-right: 0 !important;
    margin-left: 4px !important;
}

/* Floating cart RTL */
.rtl .floating-cart-btn {
    direction: rtl;
}
