/* ==========================================================================
   TAKSİT KARTLARI — ürün / ilan / skin detay sayfaları (Plan 689e3016)
   Hızlı bakıştaki taksit sekmesinin (css/pm-quick-view.css, Plan cec9ae3a) birebir
   aynısı: belirteçler aynı değerler, sınıflar .pmqTk* → .tk*. Açık tema: body.light.
   İşaretleme _shared/taksit-alan.blade.php, davranış js/taksit-kart.js.
   ========================================================================== */

.tkAlan {
    --tkKart2: #272834;
    --tkKenar: #333444;
    --tkKenar2: #2A2B38;
    --tkKenar3: #4E4F5C;
    --tkM0: #EDEEF2;
    --tkM1: #C8C9D8;
    --tkM2: #ABACB5;
    --tkM3: #8B8C99;
    --tkAcc: #80F1B1;
    width: 100%;
}

body.light .tkAlan {
    --tkKart2: #F5F4EE;
    --tkKenar: #E3E1D9;
    --tkKenar2: #E8E6DF;
    --tkKenar3: #C7C5BC;
    --tkM0: #1F1E1D;
    --tkM1: #1F1E1D;
    --tkM2: #6B6A65;
    --tkM3: #5F5E58;
    --tkAcc: #137E4C;
}

.tkAlan [hidden] {display: none !important;}

/* kart ızgarası (#paytr_taksit_tablosu) */
.tkAlan .tkKartlar {width: 100%; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start;}
.tkKart {min-width: 0; border: 1px solid var(--tkKenar); border-radius: 12px; background: var(--tkKart2); overflow: hidden;}
.tkBas {display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--tkKenar);}
.tkRenk {flex: none; width: 10px; height: 10px; border-radius: 3px;}
.tkBas b {min-width: 0; font-size: 13px; font-weight: 700; color: var(--tkM0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.tkSutun, .tkSatir {display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 6px 12px;}
.tkSutun span {font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tkM3); text-align: right;}
.tkSutun span:first-child {text-align: left;}
.tkSatir {padding: 7px 12px; border-top: 1px solid var(--tkKenar2); font-size: 12.5px; font-variant-numeric: tabular-nums;}
.tkSatir > span:first-child {color: var(--tkM1);}
.tkSatir > b {font-weight: 700; color: var(--tkM0); text-align: right; white-space: nowrap;}
.tkSatir > span:last-child {color: var(--tkM2); text-align: right; white-space: nowrap;}

/* yükleniyor */
.tkYuk {display: flex; flex-direction: column; gap: 12px;}
.tkYukSatir {display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tkM2);}
.tkDonen {width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--tkKenar3); border-top-color: var(--tkAcc); animation: tkDon .8s linear infinite;}
@keyframes tkDon {to {transform: rotate(360deg);}}
.tkIskKap {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;}
.tkIsk {display: block; height: 220px; border-radius: 12px; background: var(--tkKart2); animation: tkNabiz 1.2s ease-in-out infinite;}
@keyframes tkNabiz {0%, 100% {opacity: 1;} 50% {opacity: .5;}}
@media (prefers-reduced-motion: reduce) {.tkDonen {animation-duration: 2.4s;} .tkIsk {animation: none;}}

/* hata + üst sınır bilgi notu */
.tkBos {display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; border-radius: 12px; border: 1px dashed var(--tkKenar3);}
.tkBos.kucuk {padding: 24px 16px;}
.tkBos .ikon {display: inline-flex; color: var(--tkM3);}
.tkBos > b {font-size: 14.5px; color: var(--tkM1);}
.tkBos > span {max-width: 420px; font-size: 12.5px; line-height: 1.55; color: var(--tkM3);}
.tkBtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; margin-top: 4px; padding: 0 18px; border-radius: 10px;
    border: 1px solid var(--tkKenar3); background: transparent; color: var(--tkM1);
    font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap; cursor: pointer;
}
.tkBtn:hover {border-color: var(--tkAcc); color: var(--tkM0);}

/* Masaüstü 4 sütun (Özgür 19.11); dar ekranda 3, mobilde 1 (hızlı bakışla aynı kırılım). */
@media (max-width: 1200px) {
    .tkAlan .tkKartlar, .tkIskKap {grid-template-columns: repeat(3, minmax(0, 1fr));}
    .tkIskKap .tkIsk:nth-child(n+4) {display: none;}
}
@media (max-width: 860px) {
    .tkAlan .tkKartlar, .tkIskKap {grid-template-columns: minmax(0, 1fr);}
    .tkIskKap .tkIsk:nth-child(n+2) {display: none;}
}
