/* Mini sepet çekmecesi (ekip K): sablonlar/_sepet_cekmece.html + statik/sepet_cekmece.js.
   Masaüstünde sağdan kayan 440 px panel, mobilde (≤760 px) tam yükseklikte alttan gelen sayfa.
   Renkler sitenin paleti; hareket statik/hareket.css belirteçleriyle (yalnız transform/opacity). */
.yd-ck { position: fixed; inset: 0; z-index: 80; }
.yd-ck[hidden] { display: none; }
.yd-ck-perde { position: absolute; inset: 0; background: rgba(12, 21, 56, .42); }
.yd-ck-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); box-sizing: border-box;
  display: flex; flex-direction: column; background: #FFFFFF; color: #0C1538;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.45;
  box-shadow: -24px 0 48px -24px rgba(12, 21, 56, .35); outline: none;
}
.yd-ck-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px;
  border-bottom: 1px solid #E4E3EE; flex: 0 0 auto; }
.yd-ck-baslik { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: -.01em; }
.yd-ck-sayi { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; color: #4B5275; }
.yd-ck-kapat { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0;
  border-radius: 10px; background: transparent; color: #0C1538; cursor: pointer; }
.yd-ck-kapat:hover { background: #F5F3FF; }
.yd-ck-govde { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 16px; }
.yd-ck-alt { flex: 0 0 auto; border-top: 1px solid #E4E3EE; padding: 16px 24px 20px; background: #FAFAFC;
  display: flex; flex-direction: column; gap: 12px; }
.yd-ck-alt[hidden] { display: none; }
:where(.yd-ck) :focus-visible { outline: 2px solid #5B4BE8; outline-offset: 2px; }
.yd-ck-panel:focus, .yd-ck-panel:focus-visible { outline: none; }

/* yükleniyor */
.yd-ck-iskelet { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.yd-ck-iskelet span { display: block; height: 72px; border-radius: 12px; background: linear-gradient(90deg, #F2F1F8, #FAFAFC, #F2F1F8);
  background-size: 200% 100%; }
.yd-ck-iskelet span:nth-child(2) { opacity: .7; } .yd-ck-iskelet span:nth-child(3) { opacity: .45; }

/* satırlar */
.yd-ck-liste { list-style: none; margin: 0; padding: 0; }
.yd-ck-satir { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0;
  border-bottom: 1px solid #E4E3EE; }
.yd-ck-satir:last-child { border-bottom: 0; }
.yd-ck-satir.yd-ck-yeni { margin: 8px -12px 0; padding: 14px 12px; border: 1.5px solid #CFC8FF; border-radius: 14px;
  background: #F5F3FF; }
.yd-ck-yeni-etiket { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #4636C4; }
.yd-ck-gorsel { width: 72px; height: 72px; border-radius: 10px; border: 1px solid #E4E3EE; background: #FFFFFF; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.yd-ck-gorsel img { width: 100%; height: 100%; object-fit: contain; }
.yd-ck-gorsel-bos { background: #F5F3FF; border-style: dashed; border-color: #CFC8FF; }
.yd-ck-bilgi { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.yd-ck-bas { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.yd-ck-ad { font-weight: 700; font-size: 15.5px; color: #0C1538; text-decoration: none; overflow-wrap: anywhere; }
.yd-ck-ad:hover { color: #4636C4; text-decoration: underline; }
.yd-ck-sil { flex: 0 0 auto; width: 36px; height: 36px; margin: -6px -8px 0 0; display: inline-flex; align-items: center;
  justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #4B5275; cursor: pointer; }
.yd-ck-sil:hover { background: #FEF3F2; color: #B42318; }
.yd-ck-ozet { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 12px; color: #4B5275; overflow-wrap: anywhere; }
.yd-ck-cip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; }
.yd-ck-cip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yd-ck-cip-gecti, .yd-ck-cip-kaynak { background: #DDF5E8; color: #0B5A36; }
.yd-ck-cip-uyari, .yd-ck-cip-bekleniyor { background: #FFF0B3; color: #5C4300; }
.yd-ck-cip-hata { background: #FEF3F2; color: #7A271A; }
.yd-ck-cip-tasarim { background: #F5F3FF; color: #4636C4; }
/* v14: çipin yanında satırın eylemi (dosya yükle / bilgileri yaz) */
.yd-ck-cip-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.yd-ck-eylem { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 700; color: #4636C4;
  text-decoration: underline; text-underline-offset: 3px; }
.yd-ck-eylem:hover { color: #33288F; }
.yd-ck-hata { font-size: 13px; font-weight: 600; color: #B42318; }
.yd-ck-satir-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.yd-ck-adet { display: inline-flex; align-items: center; border: 1px solid #B9BCD0; border-radius: 10px; background: #FFFFFF; }
.yd-ck-adet button { width: 40px; height: 40px; border: 0; background: transparent; color: #0C1538; font: inherit; font-size: 18px;
  line-height: 1; cursor: pointer; border-radius: 9px; }
.yd-ck-adet button:hover:not(:disabled) { background: #F5F3FF; }
.yd-ck-adet button:disabled { opacity: .35; cursor: default; }
.yd-ck-adet-deger { min-width: 64px; padding: 0 4px; text-align: center; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600; white-space: nowrap; }
/* v12: paketli üründe değerin altında paket sayısı ("2 paket"); satır yüksekliği düğmeyle aynı kalır. "2.000 adet"
   390 genişlikte fiyatla aynı satıra sığsın diye değer biraz sıkı */
.yd-ck-adet-deger { padding: 0 2px; font-size: 12.5px; line-height: 1.25; }
.yd-ck-adet-ek { display: block; font-size: 11px; font-weight: 500; line-height: 1.2; color: #4B5275; }
.yd-ck-fiyat { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.yd-ck-fiyat > span:first-child { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; white-space: nowrap; }
.yd-ck-kdv { font-size: 12px; color: #4B5275; }
.yd-ck-satir[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* geri al şeridi */
.yd-ck-geri { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; padding: 10px 14px;
  border-radius: 12px; background: #0C1538; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.yd-ck-geri button { min-height: 36px; padding: 0 12px; border: 1px solid #FFFFFF; border-radius: 8px; background: transparent;
  color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
.yd-ck-geri button:hover { background: rgba(255, 255, 255, .12); }
.yd-ck-uyari { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3F2; color: #7A271A; font-size: 14px; font-weight: 600; }

/* özet */
.yd-ck-tablo { margin: 0; display: flex; flex-direction: column; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.yd-ck-tablo > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; }
.yd-ck-tablo dt { color: #4B5275; }
.yd-ck-tablo dd { margin: 0; text-align: right; white-space: nowrap; }
.yd-ck-tablo .yd-ck-indirim dd { color: #0B5A36; font-weight: 600; }
.yd-ck-kalem { display: block; font-size: 11.5px; color: #4B5275; }
.yd-ck-tablo .yd-ck-toplam { margin-top: 4px; padding-top: 10px; border-top: 1.5px solid #0C1538; }
.yd-ck-tablo .yd-ck-toplam dt { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: #0C1538; }
.yd-ck-tablo .yd-ck-toplam dd { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.yd-ck-not { margin: 0; display: flex; gap: 8px; font-size: 12.5px; color: #4B5275; }
.yd-ck-not svg { flex: 0 0 auto; margin-top: 1px; }
.yd-ck-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yd-ck-birincil, .yd-ck-ikincil { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px;
  border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; box-sizing: border-box; text-align: center; }
.yd-ck-birincil { background: #5B4BE8; color: #FFFFFF; border: 0; }
.yd-ck-birincil:hover { background: #4636C4; }
.yd-ck-ikincil { background: #FFFFFF; color: #0C1538; border: 1.5px solid #0C1538; }
.yd-ck-ikincil:hover { background: #F5F3FF; }
.yd-ck-engel { font-size: 13px; font-weight: 600; color: #B42318; }

/* boş sepet */
.yd-ck-bos { display: flex; flex-direction: column; gap: 14px; padding: 20px 0 8px; }
.yd-ck-bos-simge { width: 56px; height: 56px; border-radius: 16px; background: #F5F3FF; color: #5B4BE8; display: flex; align-items: center;
  justify-content: center; }
.yd-ck-bos h3 { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 20px; }
.yd-ck-bos p { margin: 0; font-size: 14px; color: #4B5275; }
.yd-ck-oneri-baslik { margin: 10px 0 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: .06em;
  color: #4B5275; text-transform: uppercase; }
.yd-ck-oneriler { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yd-ck-oneriler a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px;
  border: 1px solid #E4E3EE; border-radius: 12px; color: #0C1538; text-decoration: none; background: #FFFFFF; }
.yd-ck-oneriler a:hover { border-color: #CFC8FF; background: #F5F3FF; }
.yd-ck-oneriler b { font-weight: 700; font-size: 15px; }
.yd-ck-oneriler span { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 12px; color: #4B5275; white-space: nowrap; }

/* mobil: tam yükseklikte sayfa */
@media (max-width: 760px) {
  .yd-ck-panel { width: 100vw; left: 0; height: 100%; height: 100dvh; box-shadow: none; }
  .yd-ck-ust { padding: 6px 8px 6px 16px; }
  .yd-ck-govde { padding: 4px 16px 12px; }
  .yd-ck-alt { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .yd-ck-tablo { font-size: 13px; }
  .yd-ck-tablo > div { padding: 3px 0; }
  .yd-ck-tablo .yd-ck-toplam dd { font-size: 22px; }
}

/* hareket (statik/hareket.css belirteçleri; JS .yd-ck-acik ekler, kapanırken kaldırıp geçiş bitince gizler) */
@media (prefers-reduced-motion: no-preference) {
  .yd-ck-perde { opacity: 0; transition: opacity var(--h-yavas, 320ms) var(--h-egri, ease); }
  .yd-ck-panel { transform: translateX(100%); transition: transform 240ms var(--h-egri-cikis, ease-in); }
  .yd-ck.yd-ck-acik .yd-ck-perde { opacity: 1; }
  .yd-ck.yd-ck-acik .yd-ck-panel { transform: none; transition: transform 380ms var(--h-egri-vurgu, ease-out); }
  @media (max-width: 760px) {
    .yd-ck-panel { transform: translateY(100%); }
  }
  .yd-ck-iskelet span { animation: yd-ck-parilti 1.2s linear infinite; }
  .yd-ck-satir.yd-ck-yeni { animation: h-yukari var(--h-yavas, 320ms) var(--h-egri-vurgu, ease-out) both; }
  .yd-ck-geri, .yd-ck-uyari { animation: h-yukari var(--h-orta, 200ms) var(--h-egri-vurgu, ease-out) both; }
  .yd-ck-satir.yd-ck-gidiyor { opacity: 0; translate: 24px 0; transition: opacity 180ms var(--h-egri-cikis, ease-in), translate 180ms var(--h-egri-cikis, ease-in); }
}
@keyframes yd-ck-parilti { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* v16 · ücretsiz kargo çubuğu (statik/sepet_cekmece.js; veri /api/sepet → yd/kargo_yurtici.py) */
.yd-ck-cubuk { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; font-size: 13.5px; color: #0C1538; }
.yd-ck-cubuk-yol { display: block; height: 6px; border-radius: 999px; background: #E4E3EE; overflow: hidden; }
.yd-ck-cubuk-dolu { display: block; height: 100%; border-radius: 999px; background: #5B4BE8; }
.yd-ck-cubuk-tamam { color: #0B5A36; font-weight: 600; }
.yd-ck-cubuk-tamam .yd-ck-cubuk-dolu { background: #0B5A36; }

/* v21 (ekip D): döviz fiyatlı satır — ana fiyat TL; döviz tutarı ve uygulanan kur küçük, ikincil (yd/doviz.py) */
.yd-ck-doviz { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 11.5px; color: #4B5275; overflow-wrap: anywhere; }
.yd-ck-doviz-guncel { font-size: 12px; font-weight: 600; color: #6B4E00; }

/* ---------- v30.9 · yeni görünüm: kurumsal yazı (eş aralıklı yazı yok), eşit genişlikte rakam, yumuşak kartlar ----------
   Yalnız görünüm; metinler ve tutarlar /api/sepet'ten aynen. Döviz satırı ("16,00 USD · 1 USD = 50,0724 TL") okunaklı rozet. */
.yd-ck-panel { font-variant-numeric: tabular-nums; }
.yd-ck-ust { padding: 14px 12px 14px 24px; }
.yd-ck-sayi { margin-left: 2px; font-size: 14px; font-weight: 600; color: #4B5275; letter-spacing: 0; }
.yd-ck-yeni-etiket { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.yd-ck-satir { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.yd-ck-gorsel { width: 76px; height: 76px; border-radius: 14px; background: #FAFAFC; }
.yd-ck-ad { font-size: 15.5px; line-height: 1.35; }
.yd-ck-ozet { font-size: 13px; line-height: 1.45; }
.yd-ck-adet { border-radius: 999px; border-color: #D5D7E5; }
.yd-ck-adet button { width: 40px; height: 40px; border-radius: 999px; }
.yd-ck-adet-deger { font-size: 13.5px; font-weight: 700; }
.yd-ck-adet-ek { font-weight: 500; }
.yd-ck-fiyat > span:first-child { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.yd-ck-doviz { align-self: flex-start; display: inline-flex; max-width: 100%; box-sizing: border-box; padding: 3px 10px; border-radius: 999px;
  background: #F5F3FF; color: #33288F; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.yd-ck-alt { background: #FFFFFF; box-shadow: 0 -16px 32px -24px rgba(12, 21, 56, .4); gap: 14px; }
.yd-ck-tablo { font-size: 14px; }
.yd-ck-tablo > div { padding: 4px 0; }
.yd-ck-tablo dt { font-weight: 500; }
.yd-ck-tablo dd { font-weight: 600; color: #0C1538; }
.yd-ck-tablo .yd-ck-toplam { margin-top: 6px; padding-top: 12px; border-top: 1px solid #E4E3EE; }
.yd-ck-tablo .yd-ck-toplam dd { font-size: 26px; }
.yd-ck-not { padding: 10px 12px; border-radius: 12px; background: #F7F7FB; font-size: 12.5px; line-height: 1.45; }
.yd-ck-birincil, .yd-ck-ikincil { gap: 8px; min-height: 52px; border-radius: 14px; font-size: 15.5px; transition: background-color .15s ease; }
.yd-ck-birincil { box-shadow: 0 10px 24px -12px rgba(91, 75, 232, .8); }
.yd-ck-birincil svg { flex: 0 0 auto; }
.yd-ck-oneri-baslik { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.yd-ck-oneriler span { font-size: 12.5px; }
:where(.yd-ck) :focus-visible { outline-width: 3px; }
@media (max-width: 760px) {
  .yd-ck-satir { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .yd-ck-gorsel { width: 64px; height: 64px; }
  .yd-ck-tablo { font-size: 13.5px; }
  .yd-ck-tablo > div { padding: 3px 0; }
  .yd-ck-tablo .yd-ck-toplam dd { font-size: 24px; }
  .yd-ck-not { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .yd-ck-birincil, .yd-ck-ikincil { transition: none; } }
