/* ============================
   JINANÉ PARIS — RTL (Arabic) Override
   ============================ */

body {
    font-family: var(--font-arabic);
}

.nav a,
.btn,
.form-group label,
.feature-item h4,
.category-filter a,
.cart-table th,
.footer-col h4 {
    font-family: var(--font-arabic);
}

.logo-name {
    font-family: var(--font-logo);
}

/* Flip elements for RTL */
.cart-count {
    right: auto;
    left: -10px;
}

.cart-summary {
    margin-left: 0;
    margin-right: auto;
}

.cart-table th {
    text-align: right;
}

.product-card-badge {
    left: auto;
    right: 16px;
}

/* Adjust letter spacing for Arabic */
.nav a,
.btn,
.hero-label,
.form-group label,
.feature-item h4,
.section-title h2,
.footer-col h4,
.category-filter a {
    letter-spacing: 0.5px;
}

.logo-name {
    letter-spacing: 6px;
}

/* Hero RTL */
.hero-content {
    text-align: right;
}

.hero-label {
    justify-content: flex-end;
}

.hero-label::before {
    display: none;
}

.hero-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.hero p {
    margin-left: auto;
    margin-right: 0;
}

.hero-buttons {
    justify-content: flex-end;
}

.hero-image::before {
    right: auto;
    left: -20px;
}

/* About RTL */
.about-story-text {
    text-align: right;
}

.about-story-image::after {
    right: auto;
    left: -16px;
}

/* RTL Mobile */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-label::after {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-story-text {
        text-align: center;
    }

    .cart-table td {
        text-align: right;
    }
}

/* ---- New Features RTL ---- */

.account-dropdown-menu {
    right: auto;
    left: 0;
}

.order-total {
    margin-left: 0;
    margin-right: 12px;
}

.chat-msg-customer {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-msg-admin {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-input-form .btn {
    border-left: none;
    border-right: 1px solid var(--grey);
}

@media (max-width: 768px) {
    .account-dropdown-menu {
        right: auto;
        left: -20px;
    }
}

/* Chat Widget RTL */
.cw-toggle {
    right: auto;
    left: 24px;
}

.cw-panel {
    right: auto;
    left: 24px;
    transform-origin: bottom left;
}

.cw-channel {
    text-align: right;
}

.cw-msg-me {
    align-self: flex-start;
    align-items: flex-start;
}

.cw-msg-them {
    align-self: flex-end;
    align-items: flex-end;
}

.cw-send-btn {
    border-left: none;
    border-right: 1px solid var(--grey);
}

@media (max-width: 768px) {
    .cw-panel {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .cw-panel {
        left: 0;
        right: 0;
    }
    .cw-toggle {
        left: 16px;
        right: auto;
    }
}

/* Animation direction flip for RTL */
.hero-anim-img {
    transform: translateX(-40px);
}
@keyframes heroImgEntrance {
    to { opacity: 1; transform: translateX(0); }
}
[data-anim="fade-left"] {
    transform: translateX(50px);
}
[data-anim="fade-right"] {
    transform: translateX(-50px);
}
@keyframes animFadeLeft {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes animFadeRight {
    to { opacity: 1; transform: translateX(0); }
}
