﻿/* ============================================================
   ar-style.css  —  EMA Plast Arapça (RTL) override katmanı
   ------------------------------------------------------------
   SADECE _ARLayout.cshtml tarafından yüklenir.
   Paylaşılan theme.css / responsive.css dosyalarına DOKUNULMAZ;
   böylece TR ve EN siteler etkilenmez. Tüm RTL kuralları burada
   toplanır ve en son yüklenerek temayı override eder.
   ============================================================ */

/* --- Arapça font: tüm metin elementleri --- */
body, p, h1, h2, h3, h4, h5, h6, span, a, li, td, th,
label, input, textarea, select, button, div, section, header, footer, nav {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* --- İkon fontlarını koru (font kuralı bunları ezmesin) --- */
.fab, .fab * { font-family: "Font Awesome 6 Brands" !important; }
.fas, .fas * { font-family: "Font Awesome 6 Free" !important; }
.far, .far * { font-family: "Font Awesome 6 Free" !important; }
[class*="twi-"], [class*="twi-"] * { font-family: "themewar" !important; }
[class*="bpro-"], [class*="bpro-"] * { font-family: "bepro" !important; }

/* --- İkon yönü her zaman LTR (rakam/ok ters dönmesin) --- */
i { direction: ltr !important; unicode-bidi: isolate !important; }
i[class*="fa-"] { direction: ltr !important; unicode-bidi: isolate !important; }

/* --- Sabit konumlu yardımcı butonlar --- */
.social-media { right: 30px !important; left: auto !important; }   /* WhatsApp fiziksel sağda */
#backtotop { left: 30px !important; right: auto !important; }       /* yukarı çık fiziksel solda */

/* --- Topbar --- */
.topbar01 .col-md-3 { text-align: left !important; }

/* --- Menü --- */
.mainMenu ul { padding-right: 0; }
.mainMenu .sub-menu { left: auto !important; right: 0 !important; }
.navbar01 .mainMenu li:hover > .sub-menu { left: auto; right: 0; }

/* --- Footer --- */
.aboutWidget p, .widget p, .Copyright { text-align: right !important; }
.menu li a { text-align: right !important; }

/* --- Breadcrumb / tablo / input --- */
.breadcrumbs { direction: rtl; }
table { direction: rtl; }
td, th { text-align: right !important; }
input, textarea { text-align: right; }

/* --- Achievement listesi --- */
.listItem.withbg { float: none !important; width: 100% !important; }
.listItem.withbg li { float: none !important; display: block !important; width: 100% !important; clear: both; }
.listItem.withbg li span { display: flex !important; align-items: center; gap: 10px; justify-content: flex-end; text-align: right; }
.listItem.withbg li span i { flex-shrink: 0; }

/* --- Owl carousel RTL --- */
.owl-carousel.owl-rtl .owl-item { float: right; }

/* --- Service kartları --- */
.service_item_01 .sitem_con { text-align: right !important; }
.service_item_01 .sitem_con h3,
.service_item_01 .sitem_con p { text-align: right !important; }
.service_item_01 .ibMeta { justify-content: flex-end !important; text-align: right !important; float: none !important; }

/* --- Genel içerik hizalaması --- */
.secTitle, .subTitle { text-align: right !important; }
.sec_title_box { text-align: right !important; }
.sitem_con, .item_con, .content-box { text-align: right !important; }

/* --- service_item_02 kartları --- */
.service_item_02 { text-align: right !important; }
.service_item_02 .stpmeta { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 12px; }
.service_item_02 .stpmeta h3 { text-align: right !important; margin: 0; }
.service_item_02 .ibMeta { flex-shrink: 0; }
.service_item_02 p { text-align: right !important; }

/* ============================================================
   Ek RTL düzeltmeleri (yeni)
   ============================================================ */

/* Yönlü oklar: "Daha Fazlası →" gibi okları sola çevir */
.berpo_btn .bp-text + i,
.qu_link i,
.fa-arrow-right, .fa-long-arrow-right, .fa-arrow-right-long,
[class*="arrow-right"] { transform: scaleX(-1); display: inline-block; }

/* Genel metin gövdesi sağa yasla (içerik paragrafları) */
.abCon1, .beproTabCon, .ctaCon, .testiItem01 { text-align: right; }

/* Form alanlarındaki ikon solda kalsın, metin sağdan başlasın */
.input-field { text-align: right; }

/* İletişim/footer içindeki telefon-email-adres LTR (HTML'de dir="ltr" ile de işaretli) */
.abIcon span[dir="ltr"],
a[href^="tel:"], a[href^="mailto:"] { unicode-bidi: isolate; }

/* Blog/haber kartlarında tarih ve içerik hizası */
.blogContent { text-align: right; }
.blogContent .bmeta { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Açıklama / paragraf metinleri RTL (kapsamlı override)
   .text-center başlık blokları ve video bölümü hariç tutulur.
   <p> öğeleri doğrudan hedeflenir ve !important ile temayı ezer.
   ============================================================ */
.abCon1 p,
.achivementSection01 .col-xl-5 p,
.beproTabCon p,
.beproTabCon .secTitle,
.testiItem01 p,
.testiItem01 .quotation,
.testiItem01 h5,
.testiItem01 .ts_author span,
.card-body,
.bepAccordion .card-header button,
.blogContent p,
.blogContent h3,
.blogContent .bmeta,
.service_item_01 .sitem_con p,
.service_item_02 p,
.qu_link,
.ctaCon {
    text-align: right !important;
}

/* SSS soru butonunda numara solda kalsın, metin sağa aksın */
.bepAccordion .card-header button { display: block; }

/* Tab içerikleri ve kart gövdeleri rtl yön */
.beproTabCon, .card-body, .testiItem01, .blogContent, .abCon1 { direction: rtl; }

/* ============================================================
   Kurumsal / tekli içerik (singleBlog) sayfaları RTL
   ============================================================ */
.sic_the_content,
.sic_the_content p,
.sic_the_content h3,
.sic_the_content h4,
.sic_the_content h5,
.sic_the_content cite,
.wp-block-quote,
.wp-block-quote p,
.postMeta, .tags,
.sidebar, .widget, .widget_title, .tagcloud { text-align: right !important; direction: rtl; }

/* Alıntı bloğu sağ kenardan şerit */
.wp-block-quote { border-left: 0 !important; border-right: 4px solid var(--theme-color, #003e7a); padding-right: 20px; }

/* Liste öğeleri: işaret/ikon sağda, metin sağa */
.listItem, .listItem.lIleft { text-align: right !important; }
.listItem li, .listItem.lIleft li { text-align: right !important; padding-left: 0; padding-right: 26px; }
.listItem li::before, .listItem.lIleft li::before { left: auto !important; right: 0 !important; }

/* Sidebar kategori listesi: metin sağda, chevron solda, ok yönü çevrili */
.widget_categories ul li { display: flex; justify-content: space-between; align-items: center; text-align: right; }
.widget_categories ul li .fa-angle-right,
.sidebar .fa-angle-right { transform: scaleX(-1); }

/* Etiket bulutu sağa akar */
.tagcloud { display: flex; flex-wrap: wrap; justify-content: flex-start; }

/* ============================================================
   Ürün liste (shopPage) ve ürün detay (product-details) sayfaları RTL
   ============================================================ */
/* Ölçü rozetleri / kodlar LTR kalsın (rakamlar ters dönmesin) */
.pro-measure-badge { direction: ltr !important; unicode-bidi: isolate !important; text-align: center; }
.pro-measure-badge * { direction: ltr !important; unicode-bidi: isolate !important; }
.pro-dim-bold { direction: ltr !important; unicode-bidi: isolate !important; display: inline-block; }
/* Ürün detay ölçü tablosu hücreleri de LTR */
.cp-elegant-table td { direction: ltr !important; unicode-bidi: isolate; }

/* Liste başlığı ve sayfalama */
.sptitle { text-align: right !important; }
.bepro_pagination { direction: rtl; }
.bepro_pagination .twi-angle-left, .bepro_pagination .twi-angle-right { transform: scaleX(-1); }

/* shopPage sidebar kategori listeleri */
.shopPage .widget_categories ul li { display: flex; justify-content: space-between; align-items: center; text-align: right; }

/* Ürün detay sağ panel */
.product-about, .product-about .product-title, .product-about .text,
.product-about .price, .product-about .checklist, .product-about .checklist li,
.product_meta { text-align: right !important; direction: rtl; }
.product-about .checklist ul { padding-right: 0; }

/* Ürün detay açıklama sekmesi ve tablo */
.product-tab-style2 { justify-content: flex-start; direction: rtl; }
.tab-content .cp-elegant-table, .tab-content .cp-elegant-table th,
.tab-content p { text-align: right !important; direction: rtl; }
/* Ölçü değeri hücresi LTR ve ortalı (rakamlar ters dönmesin) */
.tab-content .cp-elegant-table td { direction: ltr !important; unicode-bidi: isolate !important; text-align: center !important; }
.cp-elegant-table-container { direction: rtl; }

/* CTA başlıkları */
.shopcta .ctaCons { text-align: right; }

/* Ürün galerisi okları RTL'de aynalanmasın (❮ ❯ bidi-mirror engeli) */
.main-img-prev, .main-img-next, .lightbox-prev, .lightbox-next {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
}
/* Footer "آخر المستجدات" haber bloğu RTL: görsel sağda, metin sağa (LTR'de sola taşmasın) */
.pp_post_item { padding: 6px 110px 0 0 !important; text-align: right; }
.pp_post_item img { left: auto !important; right: 0 !important; }
.pp_post_item span, .pp_post_item a { text-align: right; }
/* Mobil RTL: hamburger butonu sola, logo sağa (LTR header'ın aynası) */
@media (max-width: 991px) {
    .navbar01 .menu_btn { margin-left: 0 !important; margin-right: auto !important; }
}