/* ════════════════════════════════════════════════════════════════════
   P3D TEDARIK BADGES + SEPET SPLIT — Izole CSS Dosyası
   ════════════════════════════════════════════════════════════════════
   Versiyon: 1.1 (izole, 2026-05-26)
   Hedef:    Print3D ürün kartlarında tedarik kaynağı badge (Stoktan /
             Tedarikçi / Ek Kargo) ve sepet sayfasında iki-grup split
             gösterimi için tüm stiller.
   Bağımlılık YOK: hiçbir kuralın üstüne yazmaz, yalnız yeni class'lar.
   ════════════════════════════════════════════════════════════════════ */

/* ───── BADGE TEMEL ───── */
.p3d-tdrk-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: help;
    overflow: visible;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.p3d-tdrk-badge i {
    font-size: 11px;
}

/* ── 1) STOKTAN GÖNDERİM (Yeşil — Premium) ── */
.p3d-tdrk-stok {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── 2) TEDARİKÇİ GÖNDERİMİ (Mavi — Güven) ── */
.p3d-tdrk-premium {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37,99,235,0.30), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── 3) TEDARİKÇİ + EK KARGO (Amber — Dikkat) ── */
.p3d-tdrk-ek-kargo {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(217,119,6,0.32), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Hover lift ── */
.p3d-tdrk-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.08) saturate(1.1);
}

/* ── TOOLTIP ── */
.p3d-tdrk-badge .p3d-tdrk-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 11px;
    border-radius: 6px;
    width: 220px;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 10px 25px rgba(15,23,42,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
}
.p3d-tdrk-badge .p3d-tdrk-tip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 5px solid transparent;
    border-bottom-color: #0f172a;
}
.p3d-tdrk-badge:hover .p3d-tdrk-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ───── MOBİL ───── */
@media (max-width: 768px) {
    .p3d-tdrk-badge { font-size: 8.5px; padding: 3.5px 6.5px; }
    .p3d-tdrk-badge i { font-size: 9.5px; }
    .p3d-tdrk-badge .p3d-tdrk-tip { width: 180px; font-size: 10px; }
}


/* ════════════════════════════════════════════════════════════════════
   P3D SEPET — TEDARIK SPLIT (İki Grup + İki Progress Bar)
   ════════════════════════════════════════════════════════════════════ */
.p3d-sepet-split {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
}

.p3d-grup-blok {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.p3d-grup-blok:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15,23,42,0.05);
}

.p3d-grup-stok { border-left: 4px solid #16a34a; }
.p3d-grup-tedarikci { border-left: 4px solid #2563eb; }

.p3d-grup-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}
.p3d-grup-baslik .p3d-grup-iko {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.p3d-grup-stok .p3d-grup-iko {
    background: linear-gradient(135deg,#15803d,#16a34a);
    box-shadow: 0 3px 8px rgba(22,163,74,0.25);
}
.p3d-grup-tedarikci .p3d-grup-iko {
    background: linear-gradient(135deg,#1d4ed8,#2563eb);
    box-shadow: 0 3px 8px rgba(37,99,235,0.25);
}

.p3d-grup-baslik .p3d-grup-aciklama {
    margin-left: auto;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Grup içi mini-bar (kargo eşiği) */
.p3d-mini-bar-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.p3d-mini-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #475569;
}
.p3d-mini-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.p3d-mini-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.p3d-bar-stok { background: linear-gradient(90deg, #15803d 0%, #16a34a 100%); }
.p3d-bar-tedarikci { background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%); }
.p3d-bar-bedava { background: linear-gradient(90deg, #15803d 0%, #22c55e 100%); }
.p3d-bar-uyari { background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%); }

.p3d-mini-bar-msg {
    margin-top: 6px;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.4;
}
.p3d-mini-bar-msg.bedava { color: #16a34a; font-weight: 700; }

/* Sepet ek-kargo satırı */
.p3d-ozet-ek-kargo {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p3d-ozet-ek-kargo i { font-size: 14px; }

/* 2-paket bilgisi (alt not) */
.p3d-2paket-not {
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 11.5px;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p3d-2paket-not i { color: #2563eb; font-size: 14px; }

@media (max-width: 768px) {
    .p3d-grup-blok { padding: 14px 14px; }
    .p3d-grup-baslik { font-size: 13px; }
    .p3d-grup-baslik .p3d-grup-aciklama { display: none; }
}
/* P3D-TEDARIK-CSS BITTI */
