/* ================================
   YukiMotor Spare Parts - Theme CSS
   Path: wp-content/themes/yukimotor-parts/assets/css/theme.css
   ================================ */

:root{
  --brand:#1C69D4;        /* BMW mavi */
  --brand-dark:#0F4AA2;
  --accent:#0EA5E9;
  --text:#0B1520;
  --muted:#6B7280;
  --border:#E5E7EB;
  --bg:#FFFFFF;
  --bg-soft:#F7F9FC;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text); background:var(--bg); line-height:1.5; font-size:16px;
}

/* Genel elementler */
img{max-width:100%; height:auto; display:block}
a{color:var(--brand); text-decoration:none}
a:hover{color:var(--brand-dark)}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* Erişilebilirlik */
.screen-reader-text,
.sr-only{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; padding:8px 12px;
  background:#111; color:#fff; z-index:9999; border-radius:6px;
}

/* ================================
   BİRLEŞİK HEADER
   Logo + Primary Menü + Utility
   ================================ */
.site-header-merged{
  position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--border);
}
.header-inner{
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:16px; min-height:72px;
}

/* Logo */
.brand .logo{display:flex; align-items:center; gap:10px; font-weight:700; color:#111}
.logo-img{height:42px; max-height:52px; width:auto; object-fit:contain; display:block}
.logo-img-footer{height:36px}
.logo-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; background:var(--brand); color:#fff; border-radius:8px;
  font-weight:800;
}
.logo-text{font-size:18px}

/* Orta: Primary Menü */
.nav{display:flex; justify-content:center;}
.menu{list-style:none; display:flex; gap:18px; margin:0; padding:0}
.menu a{padding:8px 10px; border-radius:6px; color:var(--text)}
.menu a:hover{background:var(--bg-soft)}

/* Sağ: Utility alanı */
.header-utils{display:flex; align-items:center; gap:12px; position:relative}
.util-item{display:inline-flex; align-items:center; gap:8px; color:var(--text); position:relative}
.util-item:hover{color:var(--brand)}
.util-ico{color:#0066B1; font-size:16px; line-height:1}
.util-btn{
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:0; padding:6px 8px; border-radius:6px; cursor:pointer; color:var(--text);
}
.util-btn:hover{background:#EEF2FF}
.caret{font-size:12px; color:var(--muted); margin-left:2px}

/* Dropdownlar */
.util-dropdown{
  position:absolute; top:calc(100% + 6px); left:0;
  min-width:260px; background:#fff; border:1px solid var(--border);
  border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:10px; z-index:1000;
}
.util-dropdown a{
  display:block; padding:8px 10px; border-radius:6px; color:var(--text);
}
.util-dropdown a:hover{background:#F3F4F6}

/* Arama dropdown özel */
.search-dropdown{min-width:320px}
.util-search-form{display:flex; gap:8px}
.util-search-form input[type="search"]{
  flex:1; padding:8px 10px; border:1px solid var(--border); border-radius:8px; outline:none;
}
.util-search-form input[type="search"]:focus{border-color:var(--brand)}
.util-search-form button{
  padding:8px 12px; border:1px solid var(--brand); background:var(--brand); color:#fff; border-radius:8px; cursor:pointer;
}
.util-search-form button:hover{background:var(--brand-dark); border-color:var(--brand-dark)}

/* Sepet rozeti */
.util-cart .util-badge{
  display:inline-flex; min-width:18px; height:18px; padding:0 6px;
  align-items:center; justify-content:center; border-radius:999px;
  background:#0066B1; color:#fff; font-weight:700; font-size:11px;
}

/* Mobil menü tetikleyici */
.nav-toggle{display:none; background:transparent; border:0; cursor:pointer}
.nav-toggle .bar{display:block; width:22px; height:2px; background:#111; margin:4px 0; border-radius:1px}

/* ================================
   HERO
   ================================ */
.hero{background:linear-gradient(90deg, #F2F6FF, #FFFFFF); border-bottom:1px solid var(--border)}
.hero-inner{display:grid; grid-template-columns: 1.2fr 0.8fr; gap:24px; padding:42px 0}
.hero-text h1{font-size:36px; margin:0 0 8px}
.hero-text p{color:var(--muted); margin:0 0 16px}
.hero-actions{display:flex; gap:10px}
.btn{display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border:1px solid #d1d5db; border-radius:8px; cursor:pointer}
.btn-primary{background:var(--brand); border-color:var(--brand); color:#fff}
.btn-primary:hover{background:var(--brand-dark); border-color:var(--brand-dark)}
.btn-secondary{background:#fff}
.hero-visual .hero-art{
  width:100%; height:220px;
  background:
    radial-gradient(circle at 30% 50%, #1C69D4 0%, transparent 35%),
    radial-gradient(circle at 70% 40%, #0EA5E9 0%, transparent 35%);
  border-radius:16px; border:1px solid var(--border)
}

/* ================================
   ÖZELLİK KARTLARI
   ================================ */
.home-features{padding:24px 0}
.features-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.feature{background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px}
.feature .ico{font-size:24px; margin-bottom:6px}

/* ================================
   İÇERİK / SAYFA
   ================================ */
.content-wrap{padding:24px 0}
.page-title{margin:0 0 12px}
.page .page-content{background:#fff; border:1px solid var(--border); border-radius:8px; padding:16px}

/* ================================
   EN ÇOK İNCELENENLER (opsiyonel)
   ================================ */
.home-top-models{padding:8px 0 16px}
.home-top-models .ykm-top-title h3{font-size:20px;color:var(--text)}
.home-top-models .ykm-top-card{transition: box-shadow .15s ease, transform .15s ease}
.home-top-models .ykm-top-card:hover{box-shadow:0 6px 16px rgba(0,0,0,.06); transform: translateY(-2px)}

/* ================================
   FOOTER
   ================================ */
.site-footer{margin-top:24px; background:#0B1220; color:#E5E7EB}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:24px; padding:24px 0}
.f-brand{display:flex; align-items:center; gap:10px}
.f-brand .logo-mark{background:#fff; color:#0B1220}
.f-brand .logo-text{margin-left:8px; font-weight:700}
.f-brand-logos{display:flex; align-items:center; gap:16px; margin-top:14px; flex-wrap:wrap}
.f-brand-logos a{display:inline-flex; opacity:0.7; transition:opacity 0.2s ease}
.f-brand-logos a:hover{opacity:1}
.f-brand-logos img{height:28px; width:auto; filter:brightness(0) invert(1)}
.f-desc{margin-top:8px; color:#AAB0BA}
.f-payments{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.f-payments .pay-badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:28px; padding:0 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  color:#E5E7EB;
  font-weight:800;
  font-size:12px;
  letter-spacing:.04em;
  user-select:none;
}
.f-security{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.f-security .sec-badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:26px; padding:0 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#AAB0BA;
  font-weight:700;
  font-size:12px;
  user-select:none;
}
.f-col h4{margin:0 0 8px}
.footer-menu{list-style:none; padding:0; margin:0}
.footer-menu li a{color:#E5E7EB}
.footer-menu li a:hover{color:#fff}
.f-list{margin:0; padding:0; list-style:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; padding:12px 0; color:#AAB0BA}

/* ================================
   EKLENTİ ALANLARI (YukiMotor)
   Filtre formu, tablo vs. modern görünüm
   ================================ */
.yukimotor-filtreli-urunler select,
.yukimotor-filtreli-urunler textarea,
.yukimotor-filtreli-urunler input[type="number"]{
  border:1px solid var(--border); border-radius:8px; padding:8px;
}
.yukimotor-filtreli-urunler button.button,
.yukimotor-sepet .button{
  border:1px solid var(--brand); background:var(--brand); color:#fff; border-radius:8px; padding:8px 12px;
}
.yukimotor-filtreli-urunler button.button:hover,
.yukimotor-sepet .button:hover{
  background:var(--brand-dark); border-color:var(--brand-dark);
}
.yukimotor-filtreli-urunler table,
.yukimotor-sepet table{
  border:1px solid var(--border);
}
.yukimotor-filtreli-urunler th, .yukimotor-filtreli-urunler td,
.yukimotor-sepet th, .yukimotor-sepet td{
  border:1px solid var(--border);
}
.yukimotor-filtreli-urunler .urunler-tablosu{overflow:auto}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width:1100px){
  .menu{gap:14px}
}
@media (max-width:980px){
  .header-inner{grid-template-columns:auto auto 1fr; gap:10px}
  .nav{justify-content:flex-start;}
  .menu{gap:12px}
  .hero-inner{grid-template-columns:1fr}
}
@media (max-width:860px){
  /* Menü her zaman görünür, yan yana */
  .nav-toggle{display:none !important;}
  #primary-menu, .nav{display:flex !important; flex:1 1 auto;}
  .menu{flex-direction:row !important; flex-wrap:wrap !important; gap:4px !important;}
  .menu li{width:auto !important; border-bottom:none !important;}
  .menu a{padding:6px 10px !important; display:inline-block !important; font-size:12px !important; background:#F3F4F6 !important; border:1px solid #E5E7EB !important; border-radius:6px !important;}
  .menu a:hover{background:#1C69D4 !important; color:#fff !important;}

  /* Utility gizle */
  .header-utils{display:none !important;}

  /* Özellikler tek kolon */
  .features-grid{grid-template-columns:1fr}
}
/* Hero içine taşınan filtre formu */
.hero-filter-mount{
  position:relative;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  min-height:96px;
}

/* Form hero’ya taşınınca yatay akış */
.hero-filter-form{
  display:flex !important;
  gap:12px !important;
  align-items:flex-end !important;
  flex-wrap:wrap !important;
}
/* Geçici iskelet (form taşınmadan önce görünen placeholder) */
.hero-filter-placeholder{display:grid; grid-template-columns:1fr; gap:8px}
.hf-skel{
  height:18px; border:1px dashed #cbd5e1; border-radius:6px; background:repeating-linear-gradient(90deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
}

/* Select ve butonları hero’da biraz büyütelim */
.hero-filter-form select,
.hero-filter-form button{
  transform:translateZ(0); /* font niteliğini netleştirir */
}
.hero-filter-form select{
  min-width:220px;
}
.hero-filter-form button{
  height:40px;
}
/* Hero içindeki filtre formunu tam genişlik/dikey yığılmış yap */
.hero-filter-mount{
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

/* Formu dikey grid haline getir, boşlukları eşitle */
.hero-filter-form{
  display:grid !important;
  grid-template-columns: 1fr;
  gap:12px !important;
  align-items:stretch !important;
  margin:0 !important; /* eklenti inline margin-bottom'ını sıfırla */
}

/* Her satır (label + input) tam genişlik */
.hero-filter-form > div{
  width:100%;
}

/* Etiketleri aynı hizada göster */
.hero-filter-form label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
  color:var(--text);
}

/* Kutular eşit yükseklik ve tam genişlik */
.hero-filter-form select{
  width:100% !important;
  height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  outline:none;
}
.hero-filter-form select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28,105,212,0.12);
}

/* Listele butonu kutular kadar geniş ve en altta */
.hero-filter-form > div:last-child{
  grid-column: 1 / -1;
}
.hero-filter-form button[type="submit"],
.hero-filter-form .button{
  display:block;
  width:100%;
  height:44px;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:600;
  cursor:pointer;
}
.hero-filter-form button[type="submit"]:hover,
.hero-filter-form .button:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
}
/* Dil seçici eklentileri için görsel uyum */
.util-lang .trp-language-switcher,
.util-lang .gtranslate_wrapper {
  position: relative;
}

.util-lang select,
.util-lang .trp-language-switcher select,
.util-lang .gtranslate_wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:#fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6" fill="%236B7280"/></svg>') no-repeat right 10px center;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 34px 8px 10px;
  color:var(--text);
  cursor:pointer;
}

/* TranslatePress varsayılan anchor switcher’ı varsa */
.util-lang .trp-language-switcher > div > a {
  display:block; padding:8px 12px; border:1px solid var(--border); border-radius:8px; color:var(--text);
}

/* RTL (Arapça) uyumu: tarayıcı lang=ar olduğunda otomatik yön sağdan sola */
html[lang="ar"] body { direction: rtl; }
html[lang="ar"] .menu { justify-content: flex-end; }
/* YukiMotor – Filtreli Ürünler: yazı ve boşlukları biraz küçült */
.yukimotor-filtreli-urunler {
  font-size: 14px; /* genel taban */
}

/* Başlıklar ve bilgi kutusu */
.yukimotor-filtreli-urunler h3,
.yukimotor-filtreli-urunler .grup-resmi h3 {
  font-size: 16px;
}

/* Tablo metinleri ve arka plan (search.php ile uyumlu) */
.yukimotor-filtreli-urunler table {
  font-size: 13px; /* tablo içi */
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-collapse: collapse;
}

.yukimotor-filtreli-urunler thead {
  background: #1C69D4;
  border-bottom: 2px solid #1C69D4;
}

.yukimotor-filtreli-urunler th {
  padding: 12px 8px;
  font-weight: 800;
  color: #FFFFFF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.yukimotor-filtreli-urunler tbody tr {
  border-bottom: 1px solid #E5E7EB;
  transition: background-color 0.2s ease;
}

.yukimotor-filtreli-urunler tbody tr:hover {
  background: #F7F9FC;
}

.yukimotor-filtreli-urunler tbody tr:last-child {
  border-bottom: none;
}

/* Tablo hücre boşluklarını da biraz sıkılaştırın */
.yukimotor-filtreli-urunler td {
  padding: 12px 8px;
  color: #1F2937 !important;
}

/* Ürün adı rengi (search.php ile uyumlu) */
.yukimotor-filtreli-urunler td {
  color: #1F2937 !important;
}

/* Stok durumları aynı kalsın; sadece font biraz küçülsün */
.yukimotor-filtreli-urunler td span {
  font-size: 12.5px;
}

/* Sepet butonu ve form elemanları */
.yukimotor-filtreli-urunler .button {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
}

.yukimotor-filtreli-urunler input[type="number"] {
  font-size: 13px;
  width: 68px;
  padding: 5px 6px;
}

/* Filtre formu (üstteki 3 select ve Listele) */
.yukimotor-filtreli-urunler label {
  font-size: 13px;
}
.yukimotor-filtreli-urunler select {
  font-size: 13px;
  padding: 7px 8px;
}
.yukimotor-filtreli-urunler button[type="submit"] {
  font-size: 13px;
  padding: 7px 10px;
}

/* Geniş ekranlarda bir tık daha kompakt görünüm */
@media (min-width: 992px){
  .yukimotor-filtreli-urunler table {
    font-size: 12.5px;
  }
  .yukimotor-filtreli-urunler th,
  .yukimotor-filtreli-urunler td {
    padding: 5px 8px;
  }
}
.yukimotor-filtreli-urunler { max-width:1200px; margin:0 auto; padding:0 16px; }

/* ================================
   Marka/Model/Grup Grid Kartları – 4’lü
   [ykm_marka_tarama] için
   ================================ */
.ykm-brand-browser{max-width:1200px; margin:0 auto; padding:16px 0;}
.ykm-brand-browser .ykm-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.ykm-brand-browser .ykm-card{
  display:block;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .15s ease, transform .15s ease;
}
.ykm-brand-browser .ykm-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* Kart üst görsel alanı */
.ykm-brand-browser .ykm-card .cover{
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ykm-brand-browser .ykm-card .cover img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Marka kartlarında logo görselini orantılı göster (contain) */
.ykm-brand-browser .ykm-card.brand .cover img{
  object-fit: contain;
  padding:10px;
}

/* Grup fallback adı (resim yoksa) */
.ykm-brand-browser .ykm-card.group .cover .fallback{
  color:#8b5e00;
  font-weight:700;
  text-align:center;
  padding:16px;
}

/* Kart başlık alanı */
.ykm-brand-browser .ykm-card .meta{
  padding:10px 12px;
  font-weight:700;
  color:#0B1520;
}

/* Responsive sütunlar */
@media (max-width:1100px){
  .ykm-brand-browser .ykm-grid{grid-template-columns: repeat(3,1fr);}
}
@media (max-width:768px){
  .ykm-brand-browser .ykm-grid{grid-template-columns: repeat(2,1fr);}
}
@media (max-width:520px){
  .ykm-brand-browser .ykm-grid{grid-template-columns: 1fr;}
}
/* Grup resmi — daha büyük ve ortalı (eklenti kısa kodu kullanıldığında) */
.yukimotor-filtreli-urunler .grup-resmi{
  text-align:center;
  background:#FEFCE8;
  border:1px solid #FDE047;
  border-radius:12px;
  padding:16px;
}
.yukimotor-filtreli-urunler .grup-resmi img{
  display:block;
  margin:0 auto;
  max-height:520px;   /* önceki 260/400 yerine daha büyük */
  width:auto;
  height:auto;
  object-fit:contain;
}

/* Alt kategori resmi — ortala ve büyüt */
.yukimotor-filtreli-urunler .alt-kategori-resmi img{
  display:block;
  margin:0 auto !important;
  max-height:500px !important;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* ================================
   (YENİ) Ürün tablosu — daha küçük yazı ve sıkı padding (tema genelinde)
   ================================ */
.urunler-tablosu { font-size: 14px; }
.urunler-tablosu th {
  font-size: 14px;
  padding: 10px 8px;
}
.urunler-tablosu td {
  font-size: 13px;
  padding: 10px 8px;
}
/* Özel Kod rozeti (daire) */
.ozel-kod-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#2563eb;          /* vurgu rengi */
  color:#ffffff;
  font-weight:700;
  font-size:13px;
  line-height:1;
  border:2px solid #2563eb;     /* marka rengi çerçeve */
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
/* 3 ve daha fazla basamak için biraz daha büyük daire + daha küçük font */
.ozel-kod-badge.ozel-kod-badge--lg{
  width:40px;
  height:40px;
  font-size:12px;
}
/* Renk değişkenleri (isteğe bağlı) */
:root{
  --ykm-primary:#16a34a;       /* yeşil CTA */
  --ykm-primary-dark:#15803d;
  --ykm-gray-50:#f9fafb;
  --ykm-gray-100:#f3f4f6;
  --ykm-gray-200:#e5e7eb;
  --ykm-gray-300:#d1d5db;
  --ykm-gray-600:#4b5563;
  --ykm-gray-900:#111827;
}

/* Sepet kutusu: karta çevir, tam sığdır */
.yukimotor-sepet{
  box-sizing:border-box;
  max-width:1200px !important;  /* inline max-width:1000px'i genişlet ve override et */
  width:100% !important;
  margin:24px auto;
  padding:20px;
  background:#fff;
  border:1px solid var(--ykm-gray-200);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  overflow-x:auto;              /* küçük ekranlarda yatay taşı */
}

/* Başlık */
.yukimotor-sepet h3{
  margin:0 0 12px;
  font-size:22px;
  color:#0f172a;
}

/* Tablo: başlık açık gri, satır hover vurgusu */
.yukimotor-sepet table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--ykm-gray-200);
  border-radius:10px;
  overflow:hidden;              /* radius için */
}
.yukimotor-sepet thead tr{
  background:var(--ykm-gray-100);
}
.yukimotor-sepet th,
.yukimotor-sepet td{
  padding:12px 10px !important;
  border-bottom:1px solid var(--ykm-gray-200);
  color:#1f2937;
  font-size:14px;
}
.yukimotor-sepet tbody tr:hover{
  background:var(--ykm-gray-50);
}

/* Not/uyarı kutuları (plugin’in notice çıktısı) */
.yukimotor-sepet > div[style*="border:"],
.yukimotor-sepet > div[style*="background:"]{
  border-radius:10px !important;
}

/* Form alanları: yuvarlatılmış, focus yeşil halkalı */
.yukimotor-sepet input[type="text"],
.yukimotor-sepet input[type="email"],
.yukimotor-sepet input[type="tel"],
.yukimotor-sepet input[type="number"],
.yukimotor-sepet textarea,
.yukimotor-sepet select{
  width:auto;
  padding:9px 10px !important;
  border:1px solid var(--ykm-gray-300) !important;
  border-radius:10px !important;
  outline:none;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
}
.yukimotor-sepet input:focus,
.yukimotor-sepet textarea:focus,
.yukimotor-sepet select:focus{
  border-color:var(--ykm-primary) !important;
  box-shadow:0 0 0 3px rgba(22,163,74,.15);
}

/* Butonlar: modern görünüm (WP .button) */
.yukimotor-sepet .button,
.yukimotor-sepet button.button,
.yukimotor-sepet a.button{
  display:inline-block;
  border-radius:8px !important;
  padding:10px 14px !important;
  border:1px solid var(--ykm-gray-300) !important;
  background:#fff !important;
  color:#111 !important;
  font-weight:600;
  text-decoration:none !important;
  transition:all .2s ease;
}
.yukimotor-sepet .button:hover{
  background:var(--ykm-gray-100) !important;
  transform:translateY(-1px);
}

/* Yeşil CTA (Siparişi Tamamla): */
.yukimotor-sepet a.button[href*="/odeme"],
.yukimotor-sepet .button.button-primary{
  background:var(--ykm-primary) !important;
  border-color:var(--ykm-primary) !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(22,163,74,.25);
}
.yukimotor-sepet a.button[href*="/odeme"]:hover,
.yukimotor-sepet .button.button-primary:hover{
  background:var(--ykm-primary-dark) !important;
  border-color:var(--ykm-primary-dark) !important;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(21,128,61,.3);
}

/* Tehlikeli/temizle butonu (kırmızı) */
.yukimotor-sepet .button[style*="#e11d48"],
.yukimotor-sepet .button[style*="background:#e11d48"],
.yukimotor-sepet .button[style*="background: #e11d48"]{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(220,38,38,.25);
}
.yukimotor-sepet .button[style*="#e11d48"]:hover{
  background:#b91c1c !important;
}

/* Tablo içi “Güncelle/Sil” küçük butonlar */
.yukimotor-sepet td .button{
  padding:8px 10px !important;
  font-size:12px;
}

/* Toplamlar alanı (iki sütun arası hizalama) */
.yukimotor-sepet .totals-row,
.yukimotor-sepet div[style*="display:flex"][style*="justify-content:space-between"]{
  gap:12px;
}
.yukimotor-sepet .totals-row strong{
  color:var(--ykm-gray-900);
  font-weight:800;
}

/* Küçük ekran optimizasyonu */
@media (max-width: 768px){
  .yukimotor-sepet{
    padding:14px;
    border-radius:10px;
  }
  .yukimotor-sepet th, .yukimotor-sepet td{
    padding:10px 8px !important;
    font-size:13px;
  }
  .yukimotor-sepet .button{
    padding:9px 12px !important;
  }
}

/* (Opsiyonel) Yan menü – panel sayfalarında aktif link vurgusu */
.ykm-panel nav ul li a{
  border-radius:8px; transition:all .2s ease;
}
.ykm-panel nav ul li a:hover{
  background:var(--ykm-gray-100);
}
.ykm-panel nav ul li a[style*="background:#0073aa"]{
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

/* Anasayfa: Son sipariş edilen ürünler (sol alt sabit) */
.ykm-recent-orders{
  position:fixed;
  left:16px;
  bottom:16px;
  z-index:9999;
  width:320px;
  max-width:calc(100vw - 32px);
  background:#fff;
  border:1px solid var(--ykm-gray-200);
  border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  overflow:hidden;
}
.ykm-ro-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background:var(--ykm-gray-50);
  border-bottom:1px solid var(--ykm-gray-200);
}
.ykm-ro-title{
  font-size:13px;
  font-weight:800;
  color:var(--ykm-gray-900);
}
.ykm-ro-close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  color:var(--ykm-gray-600);
  padding:4px 6px;
  border-radius:8px;
}
.ykm-ro-close:hover{
  background:var(--ykm-gray-100);
}
.ykm-ro-body{
  max-height:260px;
  overflow:auto;
}
.ykm-ro-item{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid var(--ykm-gray-100);
  background:transparent;
  cursor:pointer;
}
.ykm-ro-item:hover{
  background:var(--ykm-gray-50);
}
.ykm-ro-name{
  font-size:13px;
  font-weight:800;
  color:var(--ykm-gray-900);
  line-height:1.25;
}
.ykm-ro-sku{
  font-size:12px;
  color:var(--ykm-gray-600);
  margin-top:2px;
}
.ykm-ro-foot{
  padding:8px 12px;
  font-size:11px;
  color:var(--ykm-gray-600);
  background:var(--ykm-gray-50);
}
@media (max-width: 520px){
  .ykm-recent-orders{left:12px; right:12px; width:auto; max-width:none;}
}

/* Genel: Ürün görseli placeholder (resim yüklenemiyorsa/yükleniyorsa) */
.ykm-imgbox{
  width:60px;
  height:60px;
  border-radius:8px;
  background:var(--ykm-gray-50);
  border:1px solid var(--ykm-gray-200);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin:0 auto;
}
.ykm-imgbox img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}
.ykm-imgph{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:10px;
  line-height:1.2;
  color:var(--ykm-gray-600);
  padding:6px;
}
/* Son Sipariş Edilen Ürünler */
.ykm-recent-orders{
  position:fixed;
  bottom:20px;
  left:20px;
  width:320px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0, 0, 0, 0.15);
  z-index:1000;
  display:flex;
  flex-direction:column;
  max-height:500px;
  overflow:hidden;
}

.ykm-ro-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid #e5e7eb;
  background:#f9fafb;
}

.ykm-ro-title{
  font-weight:700;
  font-size:14px;
  color:#0b1520;
}

.ykm-ro-close{
  background:transparent;
  border:none;
  font-size:18px;
  color:#6b7280;
  cursor:pointer;
  padding:0;
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  transition:background 0.2s, color 0.2s;
}

.ykm-ro-close:hover{
  background:#e5e7eb;
  color:#0b1520;
}

.ykm-ro-body{
  flex:1;
  overflow-y:auto;
  padding:10px;
}

.ykm-ro-item{
  display:flex;
  align-items:flex-start;
  padding:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  cursor:pointer;
  margin-bottom:8px;
  text-align:left;
  transition:all 0.2s ease;
  width:100%;
  box-sizing:border-box;
}

.ykm-ro-item:last-child{
  margin-bottom:0;
}

.ykm-ro-item:hover{
  background:#f9fafb;
  border-color:#2563eb;
  box-shadow:0 2px 8px rgba(37, 99, 235, 0.1);
}

.ykm-ro-name{
  font-weight:600;
  color:#0b1520;
  margin:0;
}

/* Favorilerim Modal */
.ykm-favoriler-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:saturate(120%) blur(2px);
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
}
.ykm-favoriler-modal[style*="display: flex"]{
  display:flex !important;
}
.ykm-favoriler-card{
  width:clamp(280px, 80vw, 520px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 20px 48px rgba(0,0,0,.18);
  overflow:hidden;
}
.ykm-favoriler-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background:#0b1520;
  color:#fff;
}
.ykm-favoriler-close{
  border:none;
  background:transparent;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  padding:4px 6px;
}
.ykm-favoriler-body{
  padding:16px 14px;
  max-height:50vh;
  overflow:auto;
  color:#475569;
  font-size:14px;
}
.ykm-ro-name{
  font-weight:600;
  color:#0b1520;
  font-size:13px;
  line-height:1.4;
}

/* ================================
   MOBİL UYUMLU TASARIM (RESPONSIVE)
   ================================ */

/* Tablet ve küçük ekranlar (768px ve altı) */
@media (max-width: 768px) {
  body{font-size:15px;}
  .container{padding:0 12px;}
  
  /* Header - menü yan yana görünür */
  .header-inner{display:flex; flex-wrap:wrap; gap:8px; min-height:56px; align-items:center;}
  #primary-menu, .nav{display:flex !important; flex:1 1 auto;}
  .menu{flex-direction:row !important; flex-wrap:wrap !important; gap:3px !important;}
  .menu li{width:auto !important; border:none !important;}
  .menu a{padding:5px 8px !important; display:inline-block !important; font-size:11px !important; background:#F3F4F6 !important; border:1px solid #E5E7EB !important; border-radius:5px !important;}
  .nav-toggle{display:none !important;}
  .header-utils{display:none !important;}
  
  /* Hero */
  .hero-inner{grid-template-columns:1fr; gap:16px; padding:24px 0;}
  .hero-text{width:100%; margin:0;}
  .hero-text h1{font-size:28px;}
  .hero-text p{font-size:14px;}
  .hero-visual-right{display:none;}
  
  /* Features */
  .features-grid{grid-template-columns:repeat(2,1fr); gap:12px;}
  .feature{padding:12px;}
  .feature h3{font-size:14px;}
  .feature p{font-size:12px;}
  
  /* Butonlar */
  .btn{padding:12px 16px; min-height:44px; font-size:14px;}
  .hero-actions{gap:8px;}
  
  /* Hero Markalar */
  .hero-brand-wrap{width:100%; margin:12px auto 0;}
  .hero-brand-row{gap:8px;}
  .hero-brand-card{min-width:140px; padding:10px;}
  
  /* Footer */
  .footer-grid{grid-template-columns:1fr; gap:16px; padding:16px 0;}
  .f-col{padding:12px 0;}
  .footer-bottom{flex-direction:column; gap:10px; padding:10px 0;}
  
  /* Modal'lar */
  .ykm-search-card{width:90vw;}
  .ykm-search-fields{grid-template-columns:1fr;}
  .ykm-favoriler-card{width:90vw;}
  .ykm-cookie-card{width:calc(100vw - 24px);}
  
  /* Sayfa */
  .page-title{font-size:24px;}
}

/* Küçük mobil (480px ve altı) */
@media (max-width: 480px) {
  body{font-size:14px;}
  .container{padding:0 10px;}
  
  .header-inner{min-height:56px; gap:8px;}
  .logo-img{height:36px;}
  
  .hero-text{margin:0; width:100%;}
  .hero-text h1{font-size:22px; margin:0 0 6px;}
  .hero-text p{font-size:13px; margin:0 0 12px;}
  
  .hero-actions{gap:6px; flex-direction:column;}
  .btn{width:100%; padding:10px 12px; font-size:13px;}
  
  .features-grid{grid-template-columns:1fr; gap:10px;}
  .feature{padding:10px; border-radius:8px;}
  .feature .ico{font-size:20px;}
  
  .hero-brand-wrap{margin:10px auto 0; padding:8px;}
  .hero-brand-row{gap:6px;}
  .hero-brand-card{min-width:130px; padding:8px;}
  .hero-brand-name{font-size:12px;}
  .hero-brand-cta{font-size:10px;}
  
  .footer-grid{gap:12px; padding:12px 0;}
  .footer-menu li{margin-bottom:6px;}
  
  .ykm-contact-grid{grid-template-columns:1fr;}
  .ykm-contact-badge{width:36px; height:36px; font-size:12px;}
  .ykm-contact-title{font-size:14px;}
  
  .ykm-search-card{width:95vw;}
  .ykm-search-fields{gap:8px; padding:10px;}
  .ykm-search-fields input{height:36px; font-size:14px;}
  .ykm-search-btn{height:36px; padding:0 12px; font-size:12px;}
  
  .ykm-cookie-modal{bottom:12px; right:12px; left:12px;}
  .ykm-cookie-card{width:100%; padding:12px;}
  .ykm-cookie-title{font-size:13px;}
  .ykm-cookie-text{font-size:12px;}
  .ykm-cookie-btn{padding:6px 10px; font-size:11px;}
  
  /* Util item'ler gizle (sadece ikonu göster) */
  .util-item span:not(.util-ico){display:none;}
  .util-item{gap:0;}
}

/* Landscape mobil (768px'den aşağı ama geniş) */
@media (max-width: 768px) and (orientation: landscape) {
  .header-inner{min-height:56px;}
  .hero-inner{padding:16px 0;}
  .hero-text h1{font-size:24px;}
  .features-grid{grid-template-columns:repeat(3,1fr);}
}

/* Touch-friendly butonlar (minimum 44x44px) */
button, a.btn, .util-item, [role="button"] {
  min-width: 44px;
  min-height: 44px;
}

/* Yazı okunabilirliği */
@media (max-width: 480px) {
  input, textarea, select {
    font-size: 16px;
    -webkit-appearance: none;
    border-radius: 4px;
  }
}

