/* =====================================================================================================================
   YAPIOK VİTRİN ARAÇLARI (27.09.2026) — Görselle Ara, İlham Galerisi, Seçim Sihirbazı, Sanal Showroom, Paket Oluştur,
   Asistan sayfalarının ORTAK bileşenleri. tasarim.css (--yt- değişkenleri, .yt- temel bileşenler) üzerine kurulur; önce o yüklenir.
   Kural: yalnız .yt- önekli sınıflar; temanın sınıflarına dokunmaz. Sayfa başına tek dosya: bu dosya + aracın kendi dosyası.
   ===================================================================================================================== */

/* ------------------------------------------------------------------ araç başlığı (sayfa başı bandı + araç geçişi) */
.yt-arac-bas { position: relative; background: linear-gradient(180deg, var(--yt-l-zemin) 0%, var(--yt-beyaz) 100%); border-bottom: 1px solid var(--yt-cizgi); }
.yt-arac-bas__ic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; padding: 14px 0 16px; }
.yt-arac-bas .breadcrumb { background: transparent; padding: 0; margin: 0 0 8px; font-size: 13px; }
.yt-arac-bas .breadcrumb > li { display: inline-block !important; }
/* Sayfa adi breadcrumb'da gorunur; yinelenen H1 sadece ekran okuyucular icin korunur. */
.yt-arac-bas h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; letter-spacing: 0; }
.yt-arac-bas__alt { font-size: 15px; line-height: 1.6; color: var(--yt-m2); margin: 0; max-width: none; letter-spacing: 0; }
.yt-arac-bas__guven { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--yt-m2); }
.yt-arac-bas__guven i { color: var(--yt-ok); margin-right: 6px; }
.yt-arac-bas__sag { display: flex; align-items: center; gap: 8px; }

/* Araçlar arası geçiş şeridi: 6 araç tek yerde; bulunulan araç vurgulu (aria-current) */
.yt-araclar { display: flex; gap: 6px; margin: 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yt-araclar::-webkit-scrollbar { display: none; }
.yt-araclar a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--yt-cizgi-g); border-radius: 999px;
  background: var(--yt-beyaz); color: var(--yt-m2); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.yt-araclar a i { color: var(--yt-l); font-size: 14px; width: 16px; text-align: center; }
.yt-araclar a:hover, .yt-araclar a:focus-visible { border-color: var(--yt-l); color: var(--yt-l-koyu); text-decoration: none; }
.yt-araclar a[aria-current="page"] { background: var(--yt-l); border-color: var(--yt-l); color: #fff; }
.yt-araclar a[aria-current="page"] i { color: #fff; }
.yt-arac-bas .yt-araclar { margin-top: 18px; }

/* ------------------------------------------------------------------ sürükle-bırak / fotoğraf alanı */
.yt-surukle { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px;
  padding: 28px 20px; border: 2px dashed var(--yt-cizgi-g); border-radius: var(--yt-r-b); background: var(--yt-l-zemin); text-align: center;
  color: var(--yt-m2); transition: border-color .15s ease, background-color .15s ease; cursor: pointer; }
.yt-surukle:hover, .yt-surukle:focus-within, .yt-surukle.ustunde { border-color: var(--yt-l); background: var(--yt-l-acik); }
.yt-surukle__s { width: 56px; height: 56px; border-radius: 50%; background: var(--yt-beyaz); color: var(--yt-l); display: flex; align-items: center;
  justify-content: center; font-size: 22px; box-shadow: var(--yt-g1); }
.yt-surukle__t { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--yt-l-koyu); margin: 0; }
.yt-surukle__a { font-size: 13px; line-height: 18px; margin: 0; }
.yt-surukle input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ ürün kartı (ızgara) */
.yt-urunler { display: grid; gap: 16px; grid-template-columns: repeat(var(--yt-urun-sutun, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.yt-urunler--3 { --yt-urun-sutun: 3; } .yt-urunler--5 { --yt-urun-sutun: 5; }
.yt-urun { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--yt-beyaz); border: 1px solid var(--yt-cizgi);
  border-radius: var(--yt-r-o); overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease; }
.yt-urun:hover, .yt-urun:focus-within { box-shadow: var(--yt-g2); border-color: var(--yt-l-orta); }
.yt-urun__g { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--yt-zemin); overflow: hidden; }
.yt-urun__g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.yt-urun:hover .yt-urun__g img { transform: scale(1.03); }
.yt-urun__rozetler { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.yt-urun__b { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1 1 auto; }
.yt-urun__marka { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yt-m3); }
.yt-urun__ad { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--yt-l-koyu); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.yt-urun__ad::after { content: ""; position: absolute; inset: 0; }   /* kartın tamamı tıklanır; iç düğmeler z-index ile üstte */
.yt-urun__ad:hover { color: var(--yt-l); text-decoration: none; }
.yt-urun__alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.yt-urun__fiyat { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--yt-m); font-variant-numeric: tabular-nums; }
.yt-urun__fiyat small { font-size: 12px; font-weight: 400; color: var(--yt-m3); }
.yt-urun__teklif { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--yt-l); }
.yt-urun__neden { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.yt-urun__neden li { font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 999px; background: var(--yt-ok-z); color: var(--yt-ok); }
.yt-urun__neden li.ters { background: var(--yt-uyari-z); color: var(--yt-uyari); }
.yt-urun .yt-btn, .yt-urun button { position: relative; z-index: 1; }
.yt-benzerlik { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--yt-l); }
.yt-benzerlik__cubuk { width: 48px; height: 4px; border-radius: 999px; background: var(--yt-l-orta); overflow: hidden; }
.yt-benzerlik__cubuk > span { display: block; height: 100%; background: var(--yt-l); }

/* ------------------------------------------------------------------ yükleniyor iskeleti */
.yt-iskelet { position: relative; overflow: hidden; background: #eef1f5; border-radius: var(--yt-r); }
.yt-iskelet::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: yt-parilti 1.3s infinite; }
@keyframes yt-parilti { 100% { transform: translateX(100%); } }
.yt-iskelet--kare { aspect-ratio: 1 / 1; } .yt-iskelet--satir { height: 12px; margin-top: 8px; } .yt-iskelet--kisa { width: 60%; }

/* ------------------------------------------------------------------ adım çubuğu (sihirbaz, paket) */
.yt-adim-cubugu { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: yt-ac; }
.yt-adim-cubugu > li { flex: 1 1 0; min-width: 0; counter-increment: yt-ac; }
.yt-adim-cubugu > li > * { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 16px; color: var(--yt-m3); text-decoration: none; }
.yt-adim-cubugu > li > *::before { content: ""; display: block; height: 4px; border-radius: 999px; background: var(--yt-l-orta); }
.yt-adim-cubugu > li.tamam > *::before, .yt-adim-cubugu > li[aria-current] > *::before { background: var(--yt-l); }
.yt-adim-cubugu > li[aria-current] > * { color: var(--yt-l-koyu); font-weight: 600; }
.yt-adim-cubugu > li.tamam > a:hover { color: var(--yt-l); }
.yt-adim-cubugu__ad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ büyük seçim kartları (tek soru ekranı) */
.yt-secenekler { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.yt-secenek { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--yt-cizgi-g);
  border-radius: var(--yt-r-o); background: var(--yt-beyaz); color: var(--yt-m); text-decoration: none; cursor: pointer; text-align: left; font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.yt-secenek:hover, .yt-secenek:focus-visible { border-color: var(--yt-l); box-shadow: var(--yt-g1); text-decoration: none; color: var(--yt-m); }
.yt-secenek[aria-pressed="true"], .yt-secenek.secili, .yt-secenek:has(input:checked) { border-color: var(--yt-l); background: var(--yt-l-acik); box-shadow: inset 0 0 0 1px var(--yt-l); }
.yt-secenek input { position: absolute; opacity: 0; pointer-events: none; }
.yt-secenek__g { aspect-ratio: 16 / 10; margin: -16px -16px 6px; border-radius: var(--yt-r-o) var(--yt-r-o) 0 0; overflow: hidden; background: var(--yt-zemin); }
.yt-secenek__g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-secenek__s { width: 40px; height: 40px; border-radius: var(--yt-r-o); background: var(--yt-l-acik); color: var(--yt-l); display: flex; align-items: center;
  justify-content: center; font-size: 17px; }
.yt-secenek__t { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--yt-l-koyu); }
.yt-secenek__a { font-size: 13px; line-height: 18px; color: var(--yt-m2); }

/* ------------------------------------------------------------------ sayı girişi (m², adet) */
.yt-sayac { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--yt-cizgi-g); border-radius: var(--yt-r); background: var(--yt-beyaz); overflow: hidden; }
.yt-sayac:focus-within { border-color: var(--yt-l); box-shadow: var(--yt-halka); }
.yt-sayac button { width: 36px; border: 0; background: var(--yt-l-zemin); color: var(--yt-l); font-size: 16px; cursor: pointer; }
.yt-sayac button:hover { background: var(--yt-l-acik); }
.yt-sayac input { width: 84px; border: 0; text-align: center; font: inherit; font-size: 15px; font-weight: 600; color: var(--yt-l-koyu); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.yt-sayac input::-webkit-outer-spin-button, .yt-sayac input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.yt-sayac input:focus { outline: 0; }
.yt-sayac__birim { display: flex; align-items: center; padding: 0 10px; font-size: 13px; color: var(--yt-m3); background: var(--yt-l-zemin); border-left: 1px solid var(--yt-cizgi); }

/* ------------------------------------------------------------------ özet paneli (yapışkan; paket, sihirbaz sonucu) */
.yt-ozet { background: var(--yt-beyaz); border: 1px solid var(--yt-cizgi); border-radius: var(--yt-r-o); box-shadow: var(--yt-g1); }
.yt-ozet__bas { padding: 16px 20px; border-bottom: 1px solid var(--yt-cizgi); }
.yt-ozet__govde { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.yt-ozet__satir { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.yt-ozet__satir > :last-child { font-weight: 600; color: var(--yt-l-koyu); font-variant-numeric: tabular-nums; text-align: right; }
.yt-ozet__toplam { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--yt-cizgi);
  font-size: 15px; font-weight: 600; color: var(--yt-l-koyu); }
.yt-ozet__toplam strong { font-size: 22px; line-height: 28px; font-variant-numeric: tabular-nums; }
.yt-ozet__alt { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------------ büyütme penceresi (dialog) */
.yt-pencere { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--yt-r-b); box-shadow: var(--yt-g3); overflow: hidden; color: var(--yt-m); }
.yt-pencere::backdrop { background: var(--yt-ortu); }
.yt-pencere__ic { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); max-height: 92vh; }
.yt-pencere__g { position: relative; background: #0f151e; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.yt-pencere__g img { max-width: 100%; max-height: 92vh; object-fit: contain; display: block; }
.yt-pencere__b { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.yt-pencere__kapat { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--yt-l-koyu); font-size: 18px; cursor: pointer; box-shadow: var(--yt-g1); }

/* ------------------------------------------------------------------ bölüm başlığı + sonuç başı */
.yt-bolum { margin: 32px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yt-bolum:first-child { margin-top: 0; }
.yt-bolum__t { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--yt-l-koyu); margin: 0; }
.yt-bolum__a { font-size: 14px; line-height: 20px; color: var(--yt-m2); margin: 4px 0 0; }
.yt-sonuc-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; color: var(--yt-m2); }
.yt-sonuc-bas strong { color: var(--yt-l-koyu); }

/* ------------------------------------------------------------------ renk paleti noktaları */
.yt-palet { display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 0; list-style: none; }
.yt-palet li { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--yt-beyaz); box-shadow: 0 0 0 1px var(--yt-cizgi-g); }

/* ------------------------------------------------------------------ duyarlı */
@media (max-width: 1199px) { .yt-urunler { --yt-urun-sutun: 3; } .yt-urunler--5 { --yt-urun-sutun: 4; } }
@media (max-width: 991px) {
  .yt-arac-bas__ic { grid-template-columns: minmax(0, 1fr); }
  .yt-urunler, .yt-urunler--3, .yt-urunler--5 { --yt-urun-sutun: 2; }
  .yt-pencere__ic { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .yt-pencere__g { min-height: 240px; }
}
@media (max-width: 767px) {
  .yt-arac-bas__alt { font-size: 15px; }
  .yt-arac-bas__ic { padding: 14px 0 18px; }
  .yt-bolum__t { font-size: 19px; line-height: 26px; }
  .yt-surukle { min-height: 180px; }
  .yt-adim-cubugu__ad { display: none; }
}
@media (max-width: 400px) { .yt-urunler, .yt-urunler--3, .yt-urunler--5 { gap: 10px; } .yt-urun__b { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .yt-iskelet::after { animation: none; } .yt-urun__g img { transition: none; } }
