/***** RTL OVERRIDES FOR ARABIC *****/
/* Dosya adı: assets/css/rtl.css */

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Montserrat', sans-serif;
}

/* Top Bar */
body[dir="rtl"] .top-bar-inner { flex-direction: row-reverse; }
body[dir="rtl"] .top-left { flex-direction: row-reverse; }
body[dir="rtl"] .top-right { flex-direction: row-reverse; }

/* Header */
body[dir="rtl"] .header-inner { flex-direction: row-reverse; }
body[dir="rtl"] .main-nav { flex-direction: row-reverse; }
body[dir="rtl"] .main-nav > a.active::after {
    left: 16px;
    right: 16px;
}

/* Slider arrows */
body[dir="rtl"] .slider-prev i { transform: rotate(180deg); }
body[dir="rtl"] .slider-next i { transform: rotate(180deg); }
body[dir="rtl"] .slider-arrows { flex-direction: row-reverse; }

/* Hero */
body[dir="rtl"] .slide-overlay {
    background: linear-gradient(-90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

/* Product cards */
body[dir="rtl"] .cat-card:hover::before { transform: scaleX(1); }
body[dir="rtl"] .cat-link i { transform: rotate(180deg); }
body[dir="rtl"] .cat-card:hover .cat-link i { transform: rotate(180deg) translateX(5px); }

/* Section title lines */
body[dir="rtl"] .section-title-bar.left { text-align: right; }
body[dir="rtl"] .section-title-bar.left .title-line { justify-content: flex-end; }

/* Search form */
body[dir="rtl"] .sorgula-form input {
    border-radius: 0 8px 8px 0;
}
body[dir="rtl"] .sorgula-form button {
    border-radius: 8px 0 0 8px;
}

/* News */
body[dir="rtl"] .news-date { justify-content: flex-end; }

/* Ar-Ge */
body[dir="rtl"] .arge-grid { direction: rtl; }

/* Footer */
body[dir="rtl"] .footer-grid { direction: rtl; }
body[dir="rtl"] .footer-col h4::after { right: 0; left: auto; }
body[dir="rtl"] .footer-col ul li a:hover { padding-right: 5px; padding-left: 0; }
body[dir="rtl"] .footer-bottom-inner { flex-direction: row-reverse; }

/* Product Detail Page */
body[dir="rtl"] .product-layout {
    direction: rtl;
}

body[dir="rtl"] .product-left { max-width: 100%; }
body[dir="rtl"] .info-label { border-right: none; border-left: 1px solid #eee; }

body[dir="rtl"] .vehicle-section h3 { border-bottom: none; border-bottom: 2px solid var(--kirmizi); }

body[dir="rtl"] .vehicle-table th,
body[dir="rtl"] .vehicle-table td,
body[dir="rtl"] .content-table th,
body[dir="rtl"] .content-table td {
    text-align: right;
}

/* Tablo köşe border-radius RTL */
body[dir="rtl"] .vehicle-table th:first-child { border-radius: 0 0 0 0; }
body[dir="rtl"] .vehicle-table th:last-child  { border-radius: 0 0 0 0; }

/* VB toggle button RTL */
body[dir="rtl"] .vb-toggle { flex-direction: row-reverse; }
body[dir="rtl"] .vb-count  { margin-left: 0; margin-right: 6px; }

/* Vehicle section title RTL */
body[dir="rtl"] .vehicle-section h3 { display: flex; align-items: center; flex-direction: row-reverse; justify-content: flex-end; }

body[dir="rtl"] .reverse-item {
    flex-direction: row-reverse;
    text-align: right;
}
body[dir="rtl"] .reverse-info {
    text-align: right;
}
body[dir="rtl"] .reverse-btn i.fa-arrow-right {
    transform: rotate(180deg);
}
body[dir="rtl"] .related-slide-card { text-align: right; }

/* Related slider RTL */
body[dir="rtl"] .slider-prev { right: 8px; left: auto; }
body[dir="rtl"] .slider-next { left: 8px; right: auto; }
body[dir="rtl"] .slider-prev i { transform: rotate(180deg); }
body[dir="rtl"] .slider-next i { transform: rotate(180deg); }

/* Detail block RTL */
body[dir="rtl"] .detail-block h3 { flex-direction: row-reverse; display: flex; align-items: center; gap: 6px; }

/* Info row RTL */
body[dir="rtl"] .info-row { flex-direction: row-reverse; }

/* Products list page */
body[dir="rtl"] .products-layout { direction: rtl; }
body[dir="rtl"] .filter-item i { transform: rotate(180deg); }
body[dir="rtl"] .card-info { text-align: right; }

/* Breadcrumb */
body[dir="rtl"] .breadcrumb a::after,
body[dir="rtl"] .breadcrumb i { transform: rotate(180deg); display: inline-block; }

/* Cookie banner */
body[dir="rtl"] .cookie-inner { flex-direction: row-reverse; }

/* Mobile */
@media (max-width: 992px) {
    body[dir="rtl"] #mobileNav {
        direction: rtl;
        text-align: right;
    }
    body[dir="rtl"] .mobile-nav-header {
        flex-direction: row-reverse;
    }
    body[dir="rtl"] .mobile-nav-links a {
        text-align: right;
    }
    body[dir="rtl"] .mobile-nav-lang {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body[dir="rtl"] .footer-bottom-inner { flex-direction: column; }
    body[dir="rtl"] .cookie-inner { flex-direction: column; }
}
