/* ============================================================
   Yedek parça teklif sepeti (2026-11-01). yedek-parca.css'ten sonra yüklenir.
   ============================================================ */
/* betik yoksa sepet düğmeleri gizli, eski "Teklif Al" bağlantısı görünür */
html:not(.yp-sepet-js) [data-yp-sepet-ekle],html:not(.yp-sepet-js) .yp-serit__sepet,html:not(.yp-sepet-js) .yp-adet--detay{display:none!important}
html.yp-sepet-js .yp-sepet-yedek{display:none!important}

/* ---------- ekle düğmesi ---------- */
.yp-sepet-ekle{flex:1 1 auto;min-width:0;cursor:pointer}
.yp-sepet-ekle [data-yazi]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yp-sepet-ekle--var,.yp-sepet-ekle--var:hover{background:var(--yp-acik);border-color:var(--yp-marka);color:var(--yp-marka)!important}
.yp-kart__btn .yp-sepet-ekle{padding:0 12px;font-size:14px}

/* ---------- arama şeridindeki sepet bağlantısı ---------- */
.yp-serit__sepet{position:relative;white-space:nowrap}
.yp-sepet-rozet{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--yp-marka);color:#fff;font-size:12px;font-weight:600;line-height:1}
.yp-sepet-rozet[hidden]{display:none}

/* ---------- adet seçici ---------- */
.yp-adet{display:inline-flex;align-items:stretch;height:44px;border:1px solid var(--yp-cizgi-k);border-radius:10px;background:#fff;overflow:hidden;flex:0 0 auto}
.yp-adet__btn{display:flex;align-items:center;justify-content:center;width:38px;padding:0;border:0;background:transparent;color:var(--yp-lacivert);cursor:pointer}
.yp-adet__btn:hover{background:var(--yp-acik)}
.yp-adet__girdi{width:52px;padding:0;border:0;border-left:1px solid var(--yp-cizgi);border-right:1px solid var(--yp-cizgi);border-radius:0;background:#fff;font:inherit;font-size:15px;font-weight:600;color:var(--yp-metin);text-align:center;-moz-appearance:textfield;appearance:textfield}
.yp-adet__girdi::-webkit-outer-spin-button,.yp-adet__girdi::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.yp-adet__girdi:focus{outline:2px solid #9CD3E4;outline-offset:-2px}
.yp-adet--buyuk{height:56px;border-radius:12px}.yp-adet--buyuk .yp-adet__btn{width:44px}
.yp-eylem--sepet{flex-wrap:wrap}
.yp-eylem__sira{display:flex;flex-wrap:wrap;gap:10px;width:100%}
.yp-eylem__sira .yp-sepet-ekle{flex:1 1 220px}
.yp-eylem__sira>.yp-btn--cizgi,.yp-eylem__sira>.yp-btn--wa{flex:1 1 200px}

/* ---------- bildirim ---------- */
.yp-sepet-tost{position:fixed;left:50%;bottom:28px;z-index:995;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:12px;background:#0F2233;color:#fff;font-family:var(--zeena-font,Poppins,sans-serif);font-size:14px;line-height:1.4;box-shadow:0 14px 34px rgba(15,34,51,.28);opacity:0;visibility:hidden;transform:translate(-50%,12px);transition:opacity .2s,transform .2s,visibility 0s .2s}
.yp-sepet-tost--acik{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .2s,transform .2s,visibility 0s}
.yp-sepet-tost span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yp-sepet-tost a{flex:0 0 auto;color:#9CD3E4!important;font-weight:600;text-decoration:underline;white-space:nowrap}
.yp-sabit-gorunur .yp-sepet-tost{bottom:230px}

/* ---------- sepet sayfası ---------- */
.yp-sepet-sayfa{padding:32px 0 56px}
.yp-sepet{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:28px;align-items:start}
.yp-sepet[hidden]{display:none}
.yp-sepet__ust{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.yp-sepet__ust h2,.yp-sepet__form h2{margin:0;font-size:20px;font-weight:600;color:var(--yp-lacivert)}
.yp-sepet__ust h2 .yp-sayi{margin-left:6px;font-size:13px;font-weight:500;color:var(--yp-soluk)}
.yp-sepet__ust-btn{display:flex;gap:8px;flex-wrap:wrap}
.yp-sepet__ust-btn button{cursor:pointer}
.yp-sepet__kalemler{list-style:none;margin:0;padding:0;border:1px solid var(--yp-cizgi);border-radius:16px;background:#fff;overflow:hidden}
.yp-sepet__kalemler:empty{min-height:120px;background:var(--yp-zemin)}
.yp-sepet-kalem{display:grid;grid-template-columns:72px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 16px;border-top:1px solid var(--yp-cizgi)}
.yp-sepet-kalem:first-child{border-top:0}
.yp-sepet-kalem__gorsel{display:flex;align-items:center;justify-content:center;width:72px;height:72px;padding:6px;box-sizing:border-box;border:1px solid var(--yp-cizgi);border-radius:10px;background:#fff}
.yp-sepet-kalem__gorsel img{width:100%;height:100%;max-width:none;object-fit:contain}
.yp-sepet-kalem__bilgi{min-width:0;display:flex;flex-direction:column;gap:4px}
.yp-sepet-kalem__ad{font-size:14.5px;font-weight:600;line-height:1.35;color:var(--yp-lacivert)!important;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yp-sepet-kalem__ad:hover{text-decoration:underline}
.yp-sepet-kalem__sil{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--yp-soluk);cursor:pointer}
.yp-sepet-kalem__sil:hover{background:#FDECEC;color:#B42318}
.yp-sepet__form{position:sticky;top:110px;padding:24px;border-radius:16px;background:var(--yp-zemin)}
.yp-sepet__form>p{margin:6px 0 14px;font-size:14px;line-height:1.55;color:var(--yp-metin-2)}
.yp-sepet__form .yp-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.yp-sepet__gonder{gap:10px}
.yp-sepet__gonder .yp-btn{width:100%;cursor:pointer}
.yp-sepet__gonder button[disabled]{opacity:.65;cursor:progress}
.yp-sepet__form .yp-uyari{margin-bottom:12px}
.yp-sepet-sayfa [aria-invalid="true"]{border-color:#B42318;outline:2px solid #F3B2AC}
.hu-form-bildirim{grid-column:1/-1;display:grid;gap:2px;padding:12px 14px;border:1px solid;border-radius:10px;font-size:14px;line-height:1.5}
.hu-form-bildirim[hidden]{display:none}
.hu-form-bildirim:focus{outline:none}
.hu-form-bildirim--warning{border-color:#F5C17A;background:#FFF6E8;color:#7A4B00}
.hu-form-bildirim--error{border-color:#F3B2AC;background:#FDECEC;color:#8A1C1C}
.hu-form-bildirim--success{border-color:#A7D9BC;background:#ECF8F1;color:#0E5E2F}

/* kod listesi */
.yp-sepet-kodlar{margin-bottom:20px;border:1px solid var(--yp-cizgi);border-radius:14px;background:#fff}
.yp-sepet-kodlar summary{display:flex;align-items:center;gap:10px;padding:14px 16px;font-size:15px;font-weight:600;color:var(--yp-lacivert);cursor:pointer}
.yp-sepet-kodlar label{display:block;margin:0 16px 8px;font-size:13px;line-height:1.5;color:var(--yp-metin-2)}
.yp-sepet-kodlar textarea{display:block;width:calc(100% - 32px);margin:0 16px;font-family:var(--yp-mono);font-size:13.5px}
.yp-sepet-kodlar__alt{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px 16px}
.yp-sepet-kodlar__alt button{cursor:pointer}
.yp-sepet-kodlar__alt p{flex:1 1 240px;margin:0;font-size:13.5px;line-height:1.5;color:var(--yp-metin-2)}

/* gönderim sonrası */
.yp-sepet-tamam{max-width:560px;margin:24px auto;padding:40px 28px;border:1px solid var(--yp-cizgi);border-radius:18px;background:#fff;text-align:center}
.yp-sepet-tamam[hidden]{display:none}
.yp-sepet-tamam:focus{outline:none}
.yp-sepet-tamam__ikon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#ECF8F1;color:#0E7A3E}
.yp-sepet-tamam h2{margin:16px 0 8px;font-size:24px;font-weight:600;color:var(--yp-lacivert)}
.yp-sepet-tamam p{margin:0 0 10px;font-size:15px;line-height:1.6;color:var(--yp-metin-2)}
.yp-sepet-tamam__ref{font-family:var(--yp-mono);font-weight:600;color:var(--yp-metin)!important}
.yp-sepet-tamam .yp-btn{margin-top:10px}
#yp-sepet-bos[hidden],#yp-sepet-kodlar[hidden]{display:none}

@media (max-width:991px){
  .yp-sepet{grid-template-columns:minmax(0,1fr)}
  .yp-sepet__form{position:static}
}
@media (max-width:575px){
  .yp-sepet-sayfa{padding:20px 0 40px}
  .yp-sepet-kalem{grid-template-columns:56px minmax(0,1fr) auto;gap:10px 12px;padding:12px}
  .yp-sepet-kalem__gorsel{width:56px;height:56px;padding:4px}
  .yp-sepet-kalem__bilgi{grid-column:2/4}
  .yp-sepet-kalem .yp-adet{grid-column:2;justify-self:start;height:40px}
  .yp-sepet-kalem__sil{grid-column:3;justify-self:end}
  .yp-sepet__form{padding:18px 16px}
  .yp-sepet__form .yp-form{grid-template-columns:minmax(0,1fr)}
  .yp-sepet-tost{bottom:20px;left:16px;right:16px;max-width:none;justify-content:space-between;transform:translateY(12px)}
  .yp-sepet-tost--acik{transform:none}
  .yp-sabit-gorunur .yp-sepet-tost{bottom:160px}
  .yp-serit__sepet-yazi{display:none}
}
@media (prefers-reduced-motion:reduce){.yp-sepet-tost,.yp-sepet-tost--acik{transition:none}}
@media print{.yp-sepet-tost{display:none}}
