/* Language selector, RTL and CJK/Greek font stacks. Loaded after kurucum.css. */
#kf-lang{display:flex;justify-content:flex-end;padding:6px 10px}
#kf-lang select{padding:5px 10px;font-size:14px;font-weight:700;color:#39843C;background:#fff;border:1px solid #39843C;border-radius:14px;cursor:pointer}
[dir=rtl] #templatemo_menu{direction:ltr}
[dir=rtl] #templatemo_left_col{direction:rtl;text-align:right}
[dir=rtl] #templatemo_left_col ul{padding-right:1.4em;padding-left:0}
html[lang=zh] :is(body,h1,h2,h3,p,li,a,button,select){font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif}
html[lang=ja] :is(body,h1,h2,h3,p,li,a,button,select){font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif}
html[lang=ko] :is(body,h1,h2,h3,p,li,a,button,select){font-family:"Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif}
html[lang=el] :is(body,h1,h2,h3,p,li,a,button,select){font-family:"Segoe UI",Roboto,Arial,sans-serif}
/* === RTL düzeltmeleri (css_duzeltme.py) === */
#kf-lang{direction:ltr}
[dir=rtl] #gallery{direction:ltr}
[dir=rtl] .col_w900:has(#gallery){direction:ltr}
[dir=rtl] .col_w900:has(#gallery) :is(p,ul,ol,li,h1,h2,h3,h4,table,.gallery_box){direction:rtl}
[dir=rtl] #templatemo_container{margin-left:auto;margin-right:auto}
/* Arama düğmesi + dil seçici: üst menünün en sağında yan yana (kf-search.js #kf-tools oluşturur). Dar ekranlarda menünün altında sağa hizalı satır. */
#kf-tools{display:flex;align-items:center;gap:8px;direction:ltr}
#templatemo_menu li#kf-tools-li{min-width:156px;flex:0 0 auto!important;display:flex!important;align-items:center;margin:0 0 0 10px!important;padding:0!important;list-style:none;width:auto!important;height:auto!important;position:static!important}
/* kategori sayfalarında ürün adları: her kelime büyük harfle başlar (dile göre; tr i->İ, ar etkilenmez) */
#gallery .gallery_box h2,#gallery .gallery_box h2 a{text-transform:capitalize}
/* kategori galerisi: float yerine flex satırları (kutu yükseklikleri 1-2px farklı olunca satırda boşluk/kayma oluşuyordu) */
#gallery{display:flex!important;flex-wrap:wrap;align-items:stretch;align-content:flex-start;justify-content:center}
#gallery>.cleaner{display:none!important}
/* kurucum.css'teki float ortalama numarası (son satırdaki 2 karta margin-left:181px) flex+justify-content:center ile çakışıp çifti sağa kaydırıyordu */
@media (min-width:901px){#gallery .gallery_box:nth-last-child(2):nth-child(3n+1){margin-left:0}#gallery .gallery_box:last-child:nth-child(3n+1){margin-left:0;margin-right:15px}}
/* eski menu1 arama ikonu (.kk-ara-btn) yalnızca mobilde menü küçülünce (body.scrolled) görünür; geniş ekranda arama düğmesi #kf-search-btn */
@media (min-width:601px){#templatemo_menu .kk-ara-btn{display:none!important}}
/* mobil (<=600px): menünün altında tek satır; arama %60 (hap, sayfa içi), dil %40 (hap), aynı hizada */
#kf-sbox{display:none}
@media (max-width:600px){
#templatemo_menu li#kf-tools-li{grid-column:1/-1;flex:0 0 100%!important;width:100%!important;min-width:0!important;height:46px!important;margin:0!important;padding:4px 12px!important;box-sizing:border-box;position:relative!important}
html body:not(.scrolled) #templatemo_menu ul{grid-auto-rows:74px 74px 46px}
#kf-tools{width:100%;gap:10px}
#kf-search-btn{display:none!important}
#kf-sbox{display:flex;align-items:center;gap:8px;flex:3 1 0;min-width:0;height:38px;box-sizing:border-box;padding:0 14px;border:1px solid #39843C;border-radius:19px;background:#fff;color:#39843C}
#kf-sbox #kf-search-input{flex:1;min-width:0;width:auto;border:0;border-radius:0;padding:0;height:100%;background:transparent;font-size:15px}
#kf-tools #kf-lang{flex:2 1 0;min-width:0}
#kf-tools #kf-lang select{width:100%;height:38px;border-radius:19px;padding:0 4px 0 12px;font-size:14px}
#kf-search-panel{left:10px;right:10px;width:auto}
}
/* çeviri gelene kadar içerik gizli (yerleşim zıplamasın); kf-ready motor tarafından eklenir, JS yoksa 2.5 sn sonra kendiliğinden açılır */
html:not(.kf-ready) main,html:not(.kf-ready) #templatemo_main,html:not(.kf-ready) #templatemo_footer{visibility:hidden;animation:kfshow 0s 2.5s forwards}
@keyframes kfshow{to{visibility:visible}}
/* motor #kf-lang'i önce sayfa akışına koyar; menüye taşınana kadar içeriği itmesin (zıplama) */
#templatemo_container>#kf-lang,body>#kf-lang{position:fixed!important;top:0;left:0;visibility:hidden;pointer-events:none}
#kf-tools #kf-lang{padding:0}
#kf-tools #kf-lang select{width:96px}
#kf-search-btn{width:32px;height:32px;padding:0;border:1px solid #39843C;border-radius:50%;background:#fff;color:#39843C;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
#kf-search-btn:hover,#kf-search-btn[aria-expanded=true]{background:#39843C;color:#fff}
#kf-search-panel{position:absolute;right:10px;top:100%;width:min(430px,94vw);background:#fff;border:1px solid #cfe3cf;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18);padding:10px;z-index:80;direction:ltr}
[dir=rtl] #kf-search-panel{direction:rtl}
#kf-search-panel[hidden]{display:none}
#kf-search-input{width:100%;box-sizing:border-box;padding:9px 12px;border:1px solid #39843C;border-radius:10px;font:600 15px Nunito,Arial,sans-serif;outline:none}
#kf-search-results{list-style:none;margin:8px 0 0;padding:0;max-height:min(60vh,420px);overflow:auto}
#kf-search-results li a{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;color:#3f3f3f;text-decoration:none;font:600 14px Nunito,Arial,sans-serif}
#kf-search-results li a:hover{background:#eef6ee}
#kf-search-results img{width:44px;height:44px;object-fit:cover;border-radius:8px;flex:none}
#kf-search-results .kf-none{padding:8px;color:#777;font:600 14px Nunito,Arial,sans-serif}
/* Arapça menü yazısı İngilizceden 2px büyük (11px -> 13px); şekiller sabit */
@media (min-width:901px){
html[lang=ar] #templatemo_menu li a{font-size:15px!important}
}
/* Üst menü şekilleri tüm dillerde aynı: genişlik etiket uzunluğuna (60%) bağlıydı; İngilizcedeki boyutlar sabitlenir */
@media (min-width:901px){
#templatemo_menu li:nth-child(2) a .mi.wide{width:65px!important}
#templatemo_menu li:nth-child(3) a .mi.wide{width:47px!important}
#templatemo_menu li:nth-child(7) a .mi.wide{width:47px!important}
#templatemo_menu li:nth-child(8) a .mi.wide{width:43px!important}
}
/* === /RTL düzeltmeleri === */
/* Genel Bilgilendirme (kf-rich.js disclaimer): ürün sayfası sonunda küçük, dengeleyici not */
.kf-genel{clear:both;margin:30px 0 10px;padding:14px 16px;border-top:1px solid #e3dcc3;background:#fffdf6;border-radius:0 0 10px 10px;font-size:13px;line-height:1.65;color:#6b5d4f}
.kf-genel h3{margin:0 0 6px;font-size:14px;font-weight:800;color:#4a3f35;text-transform:none}
.kf-genel p{margin:0}
