/* Ortak ürün kartı (tzl-urun-karti) stilleri - _UrunKarti.cshtml partial'ı ile birlikte kategori/arama
   listesinde ve son görüntülenen ürünlerde kullanılır. */

.tzl-urun-karti {
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: none; /* Bootstrap grid ile çakışmaması için sınırı kaldırdık */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tzl-urun-karti:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* -------------------- ÜRÜN RESMİ -------------------- */
.tzl-resim-kapsayici {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

.tzl-urun-resmi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -------------------- ROZETLER (BADGES) -------------------- */
.tzl-rozet-kapsayici {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tzl-rozet-resmi {
    width: 50px !important;
    height: auto;
    display: block;
}

@media (min-width: 767px) {
    .tzl-rozet-resmi {
        width: 65px !important;
    }
}

/* -------------------- RENK SEÇENEKLERİ -------------------- */
.tzl-renk-secenekleri {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    z-index: 2;
}

.tzl-renk-daire {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    flex-shrink: 0;
}

.tzl-renk-adet {
    font-size: 10px;
    font-weight: 600;
    color: #666;
}

/* -------------------- ÜRÜN İÇERİĞİ -------------------- */
.tzl-urun-icerik {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* -------------------- KARGO BİLGİSİ (ANİMASYONLU) -------------------- */
.tzl-kargo-bilgi-kapsayici {
    height: 32px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    width: 100%;
}

.tzl-kargo-kayici {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.tzl-kargo-bilgi {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.tzl-kargo-bilgi.tzl-yesil {
    background: #00c853;
    color: white;
}

.tzl-kargo-bilgi.tzl-gri {
    background: #757575;
    color: white;
}

.tzl-kargo-bilgi.tzl-turuncu {
    background: #f27a1a;
    color: white;
}

.tzl-kargo-bilgi.tzl-mor {
    background: #8e44ad;
    color: white;
}

/* -------------------- ÜRÜN BAŞLIK -------------------- */
.tzl-urun-baslik {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    padding: 12px 16px 0 10px;
}

.tzl-marka-adi {
    font-weight: 700;
}

.tzl-urun-adi-metni {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------- DURUM BİLGİLERİ (ANİMASYONLU) -------------------- */
.tzl-durum-kapsayici {
    height: 28px;
    overflow: hidden;
    position: relative;
    padding: 0 10px;
}

.tzl-durum-kayici {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.tzl-durum-ogesi {
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tzl-durum-ogesi .tzl-sayi,
.tzl-durum-ogesi .tzl-turuncu-yazi {
    color: #f27a1a;
    font-weight: 700;
}

/* -------------------- PUAN VE YORUM -------------------- */
.tzl-puan-kapsayici {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-size: 13px;
    padding: 0 10px;
}

.tzl-puan-degeri {
    font-weight: 700;
    color: #333;
    margin-right: 6px;
}

.tzl-yildizlar {
    display: flex;
    margin-right: 6px;
    gap: 2px;
}

.tzl-yildiz {
    color: #FFC100;
    font-size: 14px;
}

.tzl-yorum-sayisi {
    color: #666;
    margin-right: 6px;
    font-weight: 700;
}

/* -------------------- PROMOSYON/KAMPANYA -------------------- */
.tzl-promosyon-kapsayici {
    display: flex;
    flex-direction: column;
    padding: 5px 3px;
    margin: 0 10px 2px 10px;
    border-radius: 4px;
}

.tzl-promosyon-satiri-ana-kampanya {
    display: flex;
    align-items: center;
    background: linear-gradient(270deg, rgba(255, 165, 0, 0) 0%, rgba(255, 140, 0, .1) 50%, rgba(255, 69, 0, .15) 100%);
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 2px;
}

.tzl-promosyon-satiri-sepette-indirim {
    display: flex;
    align-items: center;
    background: linear-gradient(270deg, rgba(255, 145, 41, 0) 0%, rgba(255, 103, 32, .05) 50%, rgba(255, 22, 184, .1) 100%);
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 2px;
}

.tzl-promosyon-metni-turuncu-metin {
    font-size: 13px;
    font-weight: 600;
    color: #ff6600;
}

.tzl-promosyon-metni-pembe-metin {
    font-size: clamp(10px, 3vw, 13px);
    font-weight: 600;
    color: #ff4988;
}

.tzl-promosyon-metni-pembe-fiyat {
    font-size: clamp(10px, 3vw, 16px);
    font-weight: 700;
    color: #ff4988;
}

.tzl-indirim-orani {
    background: linear-gradient(135deg, #dc143c 0%, #ff174400 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

/* -------------------- FİYAT -------------------- */
.tzl-fiyat-kapsayici {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 16px 16px 16px;
}

.tzl-cizikli-fiyat {
    font-size: clamp(10px, 3vw, 14px);
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.tzl-fiyat {
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #f27a1a;
}

/* -------------------- FAVORI BUTONU -------------------- */
.tzl-favori-butonu {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    z-index: 2;
    border: none;
}

.tzl-favori-butonu:hover {
    transform: scale(1.1);
}

.tzl-favori-ikonu {
    width: 20px;
    height: 20px;
}

/* -------------------- RENK DÖNEMEZLİ POZİSYON -------------------- */
.tzl-renk-daire {
    position: relative;
    z-index: 1;
}

.tzl-renk-daire:nth-child(2) {
    z-index: 2;
}

.tzl-renk-daire:nth-child(3) {
    z-index: 3;
}

/* -------------------- İKON BOYUTLARI -------------------- */
.tzl-renk-ikonu {
    width: 14px;
    height: 14px;
}

.tzl-durum-ikonu {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.tzl-kamera-ikonu {
    width: 16px;
    height: 16px;
}

/* -------------------- PROMOSYON EKLENTİLERİ -------------------- */
.tzl-promosyon-satiri-net-indirim {
    display: flex;
    align-items: center;
    background: linear-gradient(270deg, rgba(220, 20, 60, 0) 0%, rgba(220, 20, 60, .1) 50%, rgba(178, 34, 34, .15) 100%);
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 2px;
}

.tzl-promosyon-metni-kirmizi-metin {
    font-size: clamp(10px, 3vw, 13px);
    font-weight: 600;
    color: #dc143c;
    white-space: nowrap;
}

.tzl-promosyon-metni-kirmizi-fiyat {
    font-size: clamp(10px, 3vw, 16px);
    font-weight: 700;
    color: #dc143c;
    white-space: nowrap;
}

.tzl-promosyon-metni-turuncu-fiyat {
    font-size: clamp(10px, 3vw, 16px);
    font-weight: 700;
    color: #ff6600;
    white-space: nowrap;
}

.tzl-bilgilendirme-mesaji {
    font-size: 12px;
    color: #b00;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------- RESPONSİF TASARIM -------------------- */
@media (max-width: 767px) {
    .tzl-promosyon-kapsayici ~ .tzl-fiyat-kapsayici .tzl-fiyat {
        font-size: clamp(10px, 3vw, 13px);
    }
}

/* -------------------- YATAY ÜRÜN LİSTESİ (son görüntülenenler vb.) -------------------- */
/* Kütüphane (Swiper) gerektirmeyen, CSS scroll-snap ile kayan tek satır; kart genişliği
   kategori listesindeki kartla aynı ölçüde kalır: mobil 2, tablet 3, masaüstü 4 kart. */
.tzl-yatay-liste-kapsayici {
    position: relative;
}

.tzl-yatay-liste {
    --tzl-yatay-bosluk: 10px;
    --tzl-yatay-adet: 2;
    display: flex;
    gap: var(--tzl-yatay-bosluk);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
}

.tzl-yatay-oge {
    flex: 0 0 calc((100% - (var(--tzl-yatay-adet) - 1) * var(--tzl-yatay-bosluk)) / var(--tzl-yatay-adet));
    min-width: 0;
    display: flex;
    scroll-snap-align: start;
}

.tzl-yatay-oge > .tzl-urun-karti {
    flex: 1 1 auto;
}

.tzl-yatay-ok {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #333;
    cursor: pointer;
    display: none;
}

.tzl-yatay-ok-sol { left: -12px; }
.tzl-yatay-ok-sag { right: -12px; }

@media (min-width: 768px) {
    .tzl-yatay-liste {
        --tzl-yatay-bosluk: 20px;
        --tzl-yatay-adet: 3;
    }

    .tzl-yatay-liste-kapsayici.tzl-tasiyor .tzl-yatay-ok {
        display: block;
    }
}

@media (min-width: 1024px) {
    .tzl-yatay-liste {
        --tzl-yatay-adet: 4;
    }
}
