/* ======================================================================
   YQ Gelişmiş Arama — arama ekranı (/yq-service-sasi-arama) ve
   arama geçmişi (/yq-aramalarim).

   Tema dili chassis-lookup.css ile aynı (Direction-D): krem sayfa zemini,
   koyu navy hero bandı, beyaz kartlar (r=18px), --f-display başlık,
   --f-mono etiket. Eski yq-catalog.css'in yerini alır; araç DETAY sayfası
   (yq-vehicle-detail.css) Faz 5'e kadar eski dosyayı kullanmaya devam eder.

   JS bağımlılıkları (yq-catalog.js) — ID'ler DEĞİŞTİRİLEMEZ:
     #yqCatalogPage #findVehiclePage #yqQuotaBadge #yqMonthlyLimit
     #yqRemainingCount #vinOrSaseNoInput #yqHistoryPanel #yqHistoryList
     #yqFreeAccessNotice #yqQuotaConfirmModal #fv-vehicle-table-body
     #fv-vehicle-count #fv-no-results-message #fv-detail-modal
     .yq-tab / .yq-tab-content / .fv-clickable-row / .catalogTitle
   ====================================================================== */

/* Katman sırası burada da bildirilir: bu dosya bundle.min.css'ten ÖNCE
   yüklenebiliyor ve ilk gördüğü katman `features` olursa cascade bozulur
   (bkz. chassis-lookup.css'teki aynı not). */
@layer tokens, base, vendor, nop, forms, layout, primitives, components, pages, features, utilities;

@layer features {

/* ── Sayfa kabuğu ─────────────────────────────────────────────────── */
.yq-page { margin: 0 0 var(--pv-space-9); }

/* ── HERO ─────────────────────────────────────────────────────────── */
.yq-hero {
  position: relative;
  overflow: hidden;
  margin: var(--pv-space-6) 0 var(--pv-space-6);
  padding: 36px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--d-navy) 0%, var(--d-navy-2) 58%, var(--pv-ink) 100%);
  color: var(--pv-color-white);
}
.yq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 18%, rgb(243 124 32 / 20%), transparent 55%);
}
.yq-hero > * { position: relative; }

.yq-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--pv-space-4); flex-wrap: wrap;
}

.yq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 11px;
  border-radius: var(--r-pill, 999px);
  background: rgb(243 124 32 / 20%);
  color: var(--pv-orange);
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.yq-eyebrow .pv-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pv-orange); }

.yq-hero h1 {
  margin: 14px 0 0;
  max-width: 24ch;
  color: var(--pv-color-white);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.yq-hero h1 em { color: var(--pv-orange); font-style: normal; }

.yq-hero p {
  margin: 12px 0 0;
  max-width: 66ch;
  color: rgb(255 255 255 / 72%);
  font-size: var(--pv-text-sm);
  line-height: 1.6;
}

/* Kota rozeti — hero'nun sağ üstünde, ne harcandığı hep görünür. */
.yq-quota-badge {
  display: flex; flex-wrap: wrap; gap: var(--pv-space-4);
  padding: var(--pv-space-3) var(--pv-space-4);
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(4px);
}
.yq-quota-badge__item { display: flex; flex-direction: column; gap: 2px; }
.yq-quota-badge__label {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgb(255 255 255 / 60%);
}
.yq-quota-badge strong {
  font-family: var(--f-display);
  font-size: var(--pv-text-lg);
  font-weight: 700;
  color: var(--pv-color-white);
}
.yq-quota-badge__renew {
  width: 100%;
  margin-top: 2px;
  font-size: 11px;
  color: rgb(255 255 255 / 55%);
}

/* ── Arama kartı ──────────────────────────────────────────────────── */
.yq-query-card {
  padding: var(--pv-space-6);
  border-radius: 18px;
  border: 1px solid var(--d-line);
  background: var(--pv-color-white);
  box-shadow: 0 1px 3px rgb(15 28 45 / 4%);
}

.yq-tabs { display: flex; gap: var(--pv-space-2); margin-bottom: var(--pv-space-5); }

.yq-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--d-line);
  background: var(--pv-cream);
  color: var(--d-muted);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--pv-text-sm);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.yq-tab:hover { color: var(--d-text); }
.yq-tab.active {
  background: var(--pv-color-white);
  border-color: var(--pv-orange);
  color: var(--pv-orange);
}

.yq-tab-content { display: none; }
.yq-tab-content.active { display: block; }

.yq-input-group { margin-bottom: var(--pv-space-4); }

.yq-input-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-muted);
}

.yq-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--d-line);
  background: var(--pv-color-white);
  color: var(--d-text);
  font-family: var(--f-mono);
  font-size: var(--pv-text-base);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .12s, box-shadow .12s;
}
.yq-input::placeholder { text-transform: none; letter-spacing: normal; color: var(--d-muted); }
.yq-input:focus {
  outline: none;
  border-color: var(--pv-orange);
  box-shadow: 0 0 0 3px rgb(243 124 32 / 14%);
}

.yq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-pill, 999px);
  background: var(--pv-orange);
  color: var(--pv-color-white);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--pv-text-sm);
  cursor: pointer;
  transition: background .12s;
}
.yq-btn:hover { background: var(--pv-orange-700, #B5550A); color: var(--pv-color-white); }

.yq-query-actions { display: flex; justify-content: center; }

/* Ücretlendirme açıklaması — arama kutusunun altında, her zaman görünür. */
.yq-input-hint {
  margin: var(--pv-space-4) 0 0;
  padding-top: var(--pv-space-4);
  border-top: 1px dashed var(--d-line);
  text-align: center;
  font-size: var(--pv-text-xs);
  line-height: 1.6;
  color: var(--d-muted);
}
.yq-input-hint strong { color: var(--d-text); }

/* ── Son Aramalarım paneli + geçmiş sayfası ortak satır ───────────── */
.yq-history-panel { margin-top: var(--pv-space-5); }

.yq-history-panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--pv-space-3);
}
.yq-history-panel__head h4 {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--pv-text-base);
  font-weight: 700;
  color: var(--d-text);
}
.yq-history-panel__head a { font-size: var(--pv-text-xs); color: var(--pv-orange); }

.yq-history-list,
.yq-history-table { display: flex; flex-direction: column; gap: var(--pv-space-2); }

.yq-history-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--pv-space-4);
  padding: var(--pv-space-3) var(--pv-space-4);
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: var(--pv-color-white);
  color: var(--d-text);
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
.yq-history-row:hover { border-color: rgb(243 124 32 / 45%); background: var(--pv-cream); }

.yq-history-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yq-history-row__main strong {
  font-family: var(--f-display);
  font-size: var(--pv-text-sm);
  font-weight: 600;
}
.yq-history-row__ident,
.yq-history-row__date {
  font-family: var(--f-mono);
  font-size: var(--pv-text-xs);
  color: var(--d-muted);
  letter-spacing: .04em;
}
.yq-history-row__meta { display: flex; align-items: center; gap: var(--pv-space-4); flex-shrink: 0; }

.yq-history-badge {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--d-line);
  background: var(--pv-cream);
  color: var(--d-muted);
  font-size: 11px;
  white-space: nowrap;
}
.yq-history-badge--active {
  border-color: rgb(22 163 74 / 35%);
  background: rgb(22 163 74 / 10%);
  color: #15803D;
}

/* ── Ücretsiz erişim şeridi (sonuç üstü) ──────────────────────────── */
.yq-free-notice {
  margin-top: var(--pv-space-3);
  padding: var(--pv-space-3) var(--pv-space-4);
  border-radius: 12px;
  border: 1px solid var(--d-line);
  background: var(--pv-cream);
  color: var(--d-text);
  font-size: var(--pv-text-xs);
  line-height: 1.55;
}
.yq-free-notice[data-state="cached"] {
  border-color: rgb(22 163 74 / 35%);
  background: rgb(22 163 74 / 8%);
}

/* ── Sonuç listesi (findVehiclePage) ──────────────────────────────── */
.fv-container { margin: var(--pv-space-6) 0 0; }

.oem-header { margin-bottom: var(--pv-space-4); }
.oem-header > div { display: flex; align-items: center; gap: var(--pv-space-3); margin-bottom: var(--pv-space-2); }

.catalogTitle,
.oem-header h4 {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--pv-text-lg);
  font-weight: 700;
  color: var(--d-text);
}

.yq-sub { margin: 0; font-size: var(--pv-text-xs); color: var(--d-muted); }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-pill, 999px);
  background: var(--pv-color-white);
  color: var(--d-text);
  font-size: var(--pv-text-xs);
  font-weight: 600;
  cursor: pointer;
}
.back-btn:hover { border-color: var(--pv-orange); color: var(--pv-orange); }
.back-btn__icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fv-table-container {
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--pv-color-white);
  overflow: hidden;
}

.fv-vehicle-table { width: 100%; border-collapse: collapse; }

.fv-vehicle-table thead th {
  padding: 12px 18px;
  background: var(--pv-cream);
  border-bottom: 1px solid var(--d-line);
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--d-muted);
}

.fv-vehicle-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
  font-size: var(--pv-text-sm);
  color: var(--d-text);
  vertical-align: top;
}
.fv-vehicle-table tbody tr:last-child td { border-bottom: 0; }

.fv-clickable-row { cursor: pointer; transition: background .12s; }
.fv-clickable-row:hover { background: var(--pv-cream); }

.fv-col-name strong { font-family: var(--f-display); font-weight: 600; }
.fv-col-name span,
.fv-col-detail span { font-size: var(--pv-text-xs); color: var(--d-muted); }
.fv-col-detail strong { color: var(--d-text); font-weight: 600; }

/* ── Araç detay modalı (sonuç satırına tıklanınca) ────────────────── */
/* DİKKAT: modallar/overlay'ler jQuery .show() ile açılıyor; .show() display'i "block"a
   çeviriyor. Bu yüzden flex ile ortalama YAPILMAZ — içerik margin ile ortalanır, yoksa
   açıldığında düzen bozulur. */
.fv-modal {
  position: fixed; inset: 0; z-index: 1000;
  padding: 6vh var(--pv-space-4);
  background: rgb(20 17 14 / 55%);
  overflow-y: auto;
}
.fv-modal__content {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: var(--pv-space-6);
  border-radius: 18px;
  background: var(--pv-color-white);
}
.fv-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--pv-space-4); }
.fv-modal__head h3 { margin: 0; font-family: var(--f-display); font-size: var(--pv-text-lg); font-weight: 700; }
.fv-modal__close {
  width: 32px; height: 32px;
  border: 1px solid var(--d-line); border-radius: 50%;
  background: var(--pv-color-white); color: var(--d-muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.fv-modal__close:hover { border-color: var(--pv-orange); color: var(--pv-orange); }

.fv-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--pv-space-3); }
.fv-detail-item {
  padding: var(--pv-space-3);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--pv-cream);
}
.fv-detail-item__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--d-muted);
}
.fv-detail-item__value { font-size: var(--pv-text-sm); color: var(--d-text); }

.fv-detail-group + .fv-detail-group { margin-top: var(--pv-space-5); }
.fv-group-heading {
  margin: 0 0 var(--pv-space-3);
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--d-muted);
}
.fv-feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fv-feature-list li { font-size: var(--pv-text-sm); color: var(--d-text); }

.fv-modal__actions {
  display: flex; justify-content: flex-end;
  margin-top: var(--pv-space-5);
  padding-top: var(--pv-space-4);
  border-top: 1px solid var(--d-line);
}

/* Parça referans akışı (tab2) — sekmesi kapalı ama markup ayakta. */
.oem-detail-header {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: var(--pv-space-3);
  font-size: var(--pv-text-sm);
}
.oem-part-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); }
.oem-part-name { font-weight: 600; color: var(--d-text); }
.oem-clickable-part { color: var(--pv-orange); text-decoration: underline; }

.yq-brand-grid {
  display: grid; gap: var(--pv-space-2);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.yq-brand-item {
  padding: 12px 14px;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--pv-color-white);
  font-size: var(--pv-text-sm);
  cursor: pointer;
}
.yq-brand-item:hover { border-color: var(--pv-orange); color: var(--pv-orange); }

.yq-details-grid {
  display: grid; gap: var(--pv-space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ── Kota onay modalı ─────────────────────────────────────────────── */
.yq-confirm-modal {
  position: fixed; inset: 0; z-index: 1100;
  padding: 18vh var(--pv-space-4) var(--pv-space-4);
  background: rgb(20 17 14 / 55%);
  overflow-y: auto;
}
.yq-confirm-modal__content {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: var(--pv-space-6);
  border-radius: 18px;
  background: var(--pv-color-white);
  text-align: center;
}
.yq-confirm-modal__content h3 {
  margin: 0 0 var(--pv-space-3);
  font-family: var(--f-display);
  font-size: var(--pv-text-lg);
  font-weight: 700;
  color: var(--d-text);
}
.yq-confirm-modal__content p { margin: 0; font-size: var(--pv-text-sm); line-height: 1.6; color: var(--d-muted); }
.yq-confirm-modal__content p strong { color: var(--d-text); }
.yq-confirm-modal__remaining { margin-top: var(--pv-space-3) !important; font-size: var(--pv-text-xs) !important; }

.yq-confirm-modal__actions {
  display: flex; gap: var(--pv-space-3); justify-content: center;
  margin-top: var(--pv-space-5);
}
.yq-confirm-modal__btn {
  padding: 11px 24px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--d-line);
  background: var(--pv-color-white);
  color: var(--d-text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--pv-text-sm);
  cursor: pointer;
}
.yq-confirm-modal__btn--confirm { background: var(--pv-orange); border-color: var(--pv-orange); color: var(--pv-color-white); }
.yq-confirm-modal__btn--cancel:hover { border-color: var(--d-muted); }

/* ── Yükleniyor ───────────────────────────────────────────────────── */
.yq-loading-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgb(255 255 255 / 70%);
}
.yq-loading-overlay__inner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--pv-space-3);
  font-size: var(--pv-text-xs);
  color: var(--d-muted);
}
.yq-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgb(243 124 32 / 25%);
  border-top-color: var(--pv-orange);
  border-radius: 50%;
  animation: yq-spin 1s linear infinite;
}
@keyframes yq-spin { to { transform: rotate(360deg); } }

/* ── Geçmiş sayfası (/yq-aramalarim) ──────────────────────────────── */
.yq-history-intro {
  margin-bottom: var(--pv-space-5);
  font-size: var(--pv-text-sm);
  line-height: 1.6;
  color: var(--d-muted);
}
.yq-history-intro strong { color: var(--d-text); }
.yq-history-quota { margin-top: var(--pv-space-2); color: var(--d-text); }

.yq-history-empty {
  padding: var(--pv-space-8) var(--pv-space-4);
  text-align: center;
  border: 1px dashed var(--d-line);
  border-radius: 16px;
  color: var(--d-muted);
}
.yq-history-empty .yq-btn { margin-top: var(--pv-space-4); }

.yq-history-pager {
  display: flex; align-items: center; justify-content: center; gap: var(--pv-space-5);
  margin-top: var(--pv-space-5);
  font-size: var(--pv-text-xs);
  color: var(--d-muted);
}
.yq-history-pager a { color: var(--pv-orange); }

/* ── Duyarlılık ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .yq-hero { padding: 28px 22px; }
  .yq-hero-top { flex-direction: column; }
  .yq-quota-badge { width: 100%; }
}

@media (max-width: 640px) {
  .yq-query-card { padding: var(--pv-space-4); }
  .yq-tabs { flex-wrap: wrap; }
  .yq-history-row { flex-direction: column; align-items: flex-start; gap: var(--pv-space-2); }
  .yq-history-row__meta { flex-direction: row-reverse; justify-content: space-between; width: 100%; }

  /* Sonuç tablosu mobilde kart olur — yatay kaydırma yerine satır bazlı okuma. */
  .fv-vehicle-table thead { display: none; }
  .fv-vehicle-table tbody tr { display: block; border-bottom: 1px solid var(--d-line); }
  .fv-vehicle-table tbody tr:last-child { border-bottom: 0; }
  .fv-vehicle-table tbody td { display: block; border: 0; padding: 10px 16px; }
  .fv-vehicle-table tbody td:first-child { padding-top: 16px; }
  .fv-vehicle-table tbody td:last-child { padding-bottom: 16px; }
}

/* ══════════════════════════════════════════════════════════════════
   ARAÇ DETAY SAYFASI (/yq-service-vehicle-detail)
   yqcatalog-vehicle-detail.js'in ürettiği DOM'a göre yazıldı; sınıf
   adları JS sözleşmesidir (nt-*, oem-unit-viewer__*, oem-parts-viewer__*,
   vsb-*) ve DEĞİŞTİRİLEMEZ.
   ══════════════════════════════════════════════════════════════════ */

.yq-detail-shell { display: grid; grid-template-columns: 300px 1fr; gap: var(--pv-space-5); align-items: start; }

/* ── Kategori ağacı (sol sütun) ───────────────────────────────────── */
.nt-container {
  padding: var(--pv-space-4);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--pv-color-white);
  position: sticky; top: var(--pv-space-4);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.nt-header { margin-bottom: var(--pv-space-2); }
.nt-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--pv-text-base);
  font-weight: 700;
  color: var(--d-text);
}
.nt-subtitle { margin: 0 0 var(--pv-space-3); font-size: var(--pv-text-xs); color: var(--d-muted); }

.nt-category-list { margin: 0; padding: 0; list-style: none; }
.nt-children-container .nt-category-list { padding-left: var(--pv-space-3); }
.nt-category-item { border-bottom: 1px solid var(--d-line); }
.nt-category-item:last-child { border-bottom: 0; }

.nt-category-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 4px;
  cursor: pointer;
  font-size: var(--pv-text-sm);
  color: var(--d-text);
  transition: color .12s;
}
.nt-category-header:hover { color: var(--pv-orange); }
.nt-expander-icon { width: 12px; flex-shrink: 0; color: var(--d-muted); font-size: 11px; }
.nt-category-name { min-width: 0; }
.nt-no-results { padding: var(--pv-space-4); font-size: var(--pv-text-xs); color: var(--d-muted); }

/* ── Ünite kartları (sağ sütun) ───────────────────────────────────── */
.oem-unit-viewer__header { margin-bottom: var(--pv-space-3); }
.oem-unit-viewer__subtitle { margin: 4px 0 0; font-size: var(--pv-text-xs); color: var(--d-muted); }

.oem-unit-viewer__search-container {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: var(--pv-space-4);
  padding: 4px 4px 4px 16px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-pill, 999px);
  background: var(--pv-color-white);
}
#oem-unit-viewer__search-input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font-size: var(--pv-text-sm);
  color: var(--d-text);
}
.oem-unit-viewer__search-button {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--pv-orange); color: var(--pv-color-white);
  display: grid; place-items: center;
  cursor: pointer;
}
.oem-unit-viewer__search-button svg { width: 16px; height: 16px; }

.oem-unit-viewer__units-grid {
  display: grid; gap: var(--pv-space-3);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.oem-unit-viewer__unit-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: var(--pv-color-white);
  overflow: hidden;
  transition: border-color .12s, box-shadow .12s;
}
.oem-unit-viewer__unit-card:hover {
  border-color: rgb(243 124 32 / 45%);
  box-shadow: 0 4px 14px rgb(15 28 45 / 6%);
}

.oem-unit-viewer__image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--pv-cream);
  display: grid; place-items: center;
  overflow: hidden;
}
.oem-unit-viewer__unit-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.oem-unit-viewer__zoom-icon {
  position: absolute; right: 8px; bottom: 8px;
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 6px;
  background: rgb(255 255 255 / 85%);
  color: var(--d-muted);
}

.oem-unit-viewer__info { display: flex; flex-direction: column; gap: var(--pv-space-2); padding: var(--pv-space-3); }
.oem-unit-viewer__details { min-width: 0; }
.oem-unit-viewer__code {
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--pv-text-xs);
  font-weight: 700;
  color: var(--pv-orange);
  letter-spacing: .05em;
}
.oem-unit-viewer__name { margin: 2px 0 0; font-size: var(--pv-text-xs); color: var(--d-text); line-height: 1.45; }

.oem-unit-viewer__actions { margin-top: auto; }
.oem-unit-viewer__action-button {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--pv-cream);
  color: var(--d-text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--pv-text-xs);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.oem-unit-viewer__action-button:hover {
  background: var(--pv-orange); border-color: var(--pv-orange); color: var(--pv-color-white);
}

.oem-unit-viewer__message { padding: var(--pv-space-4); font-size: var(--pv-text-xs); color: var(--d-muted); }
.oem-unit-viewer__error { color: #B42318; }

/* ── Patlatma şeması + parça tablosu ──────────────────────────────── */
.oem-parts-viewer__header {
  display: flex; align-items: center; gap: var(--pv-space-3);
  margin-bottom: var(--pv-space-4);
}
.oem-parts-viewer__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--pv-text-lg);
  font-weight: 700;
  color: var(--d-text);
}

.oem-parts-viewer__content-wrapper {
  display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: var(--pv-space-4);
  align-items: start;
}

.oem-parts-viewer__image-panel {
  padding: var(--pv-space-3);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--pv-color-white);
  /* Hotspot koordinatları JS'te 650px sabit genişliğe göre ölçekleniyor (FIXED_DISPLAY_WIDTH).
     Şemayı küçültmek işaretlerin kaymasına yol açar; bu yüzden daraldığında KAYDIRILIR. */
  overflow-x: auto;
}

.oem-parts-viewer__image-map-container { position: relative; width: 650px; }
.oem-parts-viewer__diagram-image { display: block; width: 650px; height: auto; }

.oem-parts-viewer__area-highlight {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background .1s, border-color .1s;
}
.oem-parts-viewer__area-highlight.highlighted {
  background: rgb(243 124 32 / 22%);
  border-color: var(--pv-orange);
}
.oem-parts-viewer__area-highlight.selected {
  background: rgb(243 124 32 / 32%);
  border-color: var(--pv-orange);
}

/* Listede karşılığı olmayan numara (başka donanım varyantına ait) — tıklanabilir görünmesin. */
.oem-parts-viewer__area-highlight.is-unmatched { cursor: help; }
.oem-parts-viewer__area-highlight.is-unmatched.highlighted {
  background: rgb(106 114 131 / 14%);
  border-color: rgb(106 114 131 / 45%);
}

.oem-parts-viewer__list-panel {
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--pv-color-white);
  overflow: hidden;
  max-height: 78vh;
  overflow-y: auto;
}

.oem-parts-viewer__parts-table { width: 100%; border-collapse: collapse; }
.oem-parts-viewer__parts-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 12px;
  background: var(--pv-cream);
  border-bottom: 1px solid var(--d-line);
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-muted);
}
.oem-parts-viewer__parts-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--d-line);
  font-size: var(--pv-text-xs);
  color: var(--d-text);
}
.oem-parts-viewer__parts-table tbody tr:hover { background: var(--pv-cream); }
.oem-parts-viewer__parts-table tbody tr.selected { background: rgb(243 124 32 / 10%); }

/* OEM kodu — siteye arama köprüsü. Yanındaki AI aksiyonu, arama sonuç vermezse
   kullanıcının çıkmaza düşmemesi için (testte 3B0601373A → 0 ürün). */
.oem-clickable-part {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--pv-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Katalog Numarası sütunu — YQ'nun katalog içi numarası, yalnız bilgi. Tıklanabilir değil:
   sitede aranan numara OE numarasıdır. */
.oem-catalog-part {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--d-muted);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Bölüm başlığı satırı (ON HALI, ESIK KAPLAMASI …) — birim birden çok bölüm içeriyorsa. */
.oem-parts-viewer__section-row td {
  padding: 8px 12px !important;
  background: var(--pv-cream);
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-muted);
}
.oem-parts-viewer__section-row:hover td { background: var(--pv-cream); }

.oem-part-ai {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-pill, 999px);
  background: var(--pv-color-white);
  color: var(--d-muted);
  font-size: 10px;
  cursor: pointer;
}
.oem-part-ai:hover { border-color: var(--pv-orange); color: var(--pv-orange); }

/* INFO butonu — tooltip içeriğini barındırır, hover'da açılır. */
.oem-parts-viewer__info-button {
  position: relative;
  padding: 3px 9px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-pill, 999px);
  background: var(--pv-color-white);
  color: var(--d-muted);
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  cursor: pointer;
}
.oem-parts-viewer__info-button:disabled { opacity: .4; cursor: default; }
.oem-parts-viewer__info-button:not(:disabled):hover { border-color: var(--pv-orange); color: var(--pv-orange); }

.oem-parts-viewer__tooltip {
  display: none;
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5;
  width: max-content; max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pv-ink);
  color: var(--pv-color-white);
  font-family: var(--f-body, inherit);
  font-size: 11px; font-weight: 400; line-height: 1.5;
  text-align: left;
  letter-spacing: normal;
}
.oem-parts-viewer__info-button:hover .oem-parts-viewer__tooltip { display: block; }
.oem-parts-viewer__tooltip p { margin: 0 0 2px; }
.oem-parts-viewer__tooltip p:last-child { margin-bottom: 0; }

.oem-unit-viewer__action-info { /* .oem-unit-viewer__action-button ile aynı görünüm */ }

.vsb-attribute-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-muted);
}
.vsb-attribute-value { color: var(--d-text); }

/* ── Araç özellikleri kenar çubuğu ────────────────────────────────── */
/* Konteyner GENİŞLİKSİZ: panel translateX(100%) ile ekran dışında dursa da layout'ta yer
   kaplıyor; genişlik verilirse aç/kapa butonu panel kadar (360px) içeri kayıp sayfanın
   ortasında beliriyordu. İki çocuk da viewport sağ kenarına göre konumlanır. */
.vsb-sidebar { position: fixed; right: 0; top: 30%; width: 0; z-index: 900; }
.vsb-toggle-btn {
  position: absolute; right: 0; top: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--d-line); border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--pv-color-white);
  cursor: pointer;
  transition: right .18s ease;
}
.vsb-sidebar.vsb-open .vsb-toggle-btn { right: min(360px, 92vw); }
.vsb-toggle-btn img { width: 22px; height: 22px; object-fit: contain; }

.vsb-panel {
  position: absolute; right: 0; top: 0;
  width: min(360px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: var(--pv-space-4);
  border: 1px solid var(--d-line);
  border-radius: 16px 0 0 16px;
  background: var(--pv-color-white);
  box-shadow: -6px 0 24px rgb(15 28 45 / 8%);
  transform: translateX(100%);
  transition: transform .18s ease;
}
.vsb-sidebar.vsb-open .vsb-panel { transform: translateX(0); }
.vsb-sidebar.vsb-closed .vsb-panel { transform: translateX(100%); }

.vsb-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--pv-space-3); margin-bottom: var(--pv-space-3); }
.vsb-vehicle-name { margin: 0; font-family: var(--f-display); font-size: var(--pv-text-sm); font-weight: 700; }
.vsb-close-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--d-line); border-radius: 50%;
  background: var(--pv-color-white); color: var(--d-muted);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.vsb-group-title {
  margin: 0 0 var(--pv-space-2);
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--d-muted);
}
.vsb-mt-20 { margin-top: var(--pv-space-4); }
.vsb-attribute-grid { display: grid; gap: 6px; }
.vsb-attribute-item {
  padding: 8px 10px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--pv-cream);
  font-size: var(--pv-text-xs);
}
.vsb-feature-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--pv-text-xs); color: var(--d-text); }

/* ── Şema büyütme modalı ──────────────────────────────────────────── */
.oem-parts-viewer__modal {
  position: fixed; inset: 0; z-index: 1300;
  display: none;
  padding: 5vh var(--pv-space-4);
  background: rgb(20 17 14 / 60%);
  overflow: auto;
}
.oem-parts-viewer__modal-content {
  width: fit-content; max-width: 100%;
  margin: 0 auto;
  padding: var(--pv-space-4);
  border-radius: 16px;
  background: var(--pv-color-white);
}
.yq-img-modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--pv-space-3); margin-bottom: var(--pv-space-3); }
.oem-parts-viewer__modal-title { margin: 0; font-family: var(--f-display); font-size: var(--pv-text-base); font-weight: 700; }
.oem-parts-viewer__modal-close {
  width: 30px; height: 30px;
  border: 1px solid var(--d-line); border-radius: 50%;
  background: var(--pv-color-white); color: var(--d-muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.oem-parts-viewer__modal-info { margin: var(--pv-space-3) 0 0; font-size: 11px; color: var(--d-muted); text-align: center; }

/* ── Detay sayfası duyarlılık ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .yq-detail-shell { grid-template-columns: 1fr; }
  .nt-container { position: static; max-height: none; }
  .oem-parts-viewer__content-wrapper { grid-template-columns: 1fr; }
  .oem-parts-viewer__list-panel { max-height: none; }
}

@media (max-width: 640px) {
  .vsb-panel { width: 100vw; border-radius: 0; }
}

}
