﻿/* =============================================================================
   ÜRÜN LİSTESİ SAYFALARI — ürün kartı, ızgara, araç çubuğu, güven şeridi
   -----------------------------------------------------------------------------
   Kullanan sayfalar: Anasayfa (Index), Amaca Göre kategori (katMenu_listele),
   İlçe sayfası (listele), Arama sonuçları (cicekara).
   Kart markup'ı tek yerde: Views\Shared\_YtUrunKart.cshtml.
   Kaynak: Çiçek Lazım yeni-tasarim.css "6) ÜRÜN KARTLARI", "7) GÜVEN ŞERİDİ",
   "10) KATEGORİ (ÜRÜN LİSTESİ) SAYFASI" (29-09-2026).
   ============================================================================= */

/* ---- ızgara: masaüstünde satırda 6, liste sayfalarında 5 ---- */
.yt-urunIzgara {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

/* ⚠ min-width ŞART: iki sınıflı seçici aşağıdaki dar ekran kurallarını ezmesin */
@media (min-width: 1280px) {
    .yt-urunIzgara.yt-listeIzgara {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ---- ürün kartı (kartın tamamı ürün sayfasına gider) ---- */
.yt-urunKart {
    background: #fff;
    border: 1px solid var(--yt-cerceve-ince);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--yt-metin);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

    .yt-urunKart:hover, .yt-urunKart:focus {
        border-color: var(--yt-cerceve-koyu);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
        transform: translateY(-3px);
        text-decoration: none;
        color: var(--yt-metin);
    }

    .yt-urunKart .yt-urunGorsel {
        position: relative;
        padding-top: 100%;
        overflow: hidden;
        background: var(--yt-krem);
    }

        .yt-urunKart .yt-urunGorsel img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* ürün kodu rozeti (Çiçek Lazım'daki ürün kodu) */
.yt-urunKod {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--yt-siyah);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: .02em;
}

.yt-urunKart .yt-urunAlt {
    padding: 16px 12px 18px;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.yt-urunKart .yt-urunAd {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fiyat: urunHelper.fiyatHtml çıktısı. span = eski (üstü çizili) fiyat, kalan metin = geçerli fiyat. */
.yt-fiyat {
    margin-top: auto;
    padding-top: 10px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 18px;
    font-weight: 600;
    color: var(--yt-fiyat);
}

    .yt-fiyat span {
        display: block;
        font-size: 13.5px;
        font-weight: 400;
        color: var(--yt-metin-soluk);
        text-decoration: line-through;
        margin-bottom: 2px;
    }

/* "Hemen Satın Al" — DOLGU zeminli (sınıf adı Çiçek Lazım'dan, tarihsel) */
.yt-sepetDugme {
    display: block;
    margin-top: 14px;
    width: 100%;
    background: var(--yt-siyah);
    color: #fff;
    border: 0;
    padding: 11px 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-align: center;
    transition: background .15s;
}

.yt-urunKart:hover .yt-sepetDugme,
.yt-sepetDugme:hover {
    background: var(--yt-siyah-hover);
    color: #fff;
}

/* ---- araç çubuğu: ürün sayısı ---- */
.yt-araclar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid var(--yt-cerceve-ince);
    border-bottom: 1px solid var(--yt-cerceve-ince);
    margin-bottom: 26px;
}

.yt-urunSayisi {
    font-size: 14px;
    color: var(--yt-metin);
}

    .yt-urunSayisi b {
        font-size: 18px;
        font-weight: 600;
    }

/* ---- kategori / ilçe açıklaması (yönetimden HTML gelir) ---- */
.yt-listeAciklama {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
    font-size: 16px;
    line-height: 1.75;
    color: var(--yt-metin-ikincil);
}

    .yt-listeAciklama p {
        margin: 0 0 12px;
    }

        .yt-listeAciklama p:last-child {
            margin-bottom: 0;
        }

    .yt-listeAciklama a {
        color: var(--yt-metin);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

/* ---- güven şeridi (Views\Shared\_YtGuvenSeridi.cshtml) ---- */
.yt-guven {
    margin-top: 56px;
    border-top: 1px solid var(--yt-cerceve);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yt-guvenOge {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 34px 26px;
}

    .yt-guvenOge .ytIkon {
        width: 38px;
        height: 38px;
    }

    .yt-guvenOge b {
        display: block;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .yt-guvenOge span {
        display: block;
        font-size: 13.5px;
        color: var(--yt-metin-ikincil);
        line-height: 1.6;
    }


/* ============================ DAR EKRAN ============================= */
@media (max-width: 1279px) {
    .yt-urunIzgara {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .yt-guven {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .yt-urunIzgara {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .yt-urunIzgara {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .yt-urunKart .yt-urunAlt {
        padding: 11px 9px 13px;
    }

    .yt-urunKart .yt-urunAd {
        font-size: 13px;
        min-height: 36px;
    }

    .yt-urunKod {
        top: 8px;
        left: 8px;
        font-size: 11.5px;
        padding: 3px 8px;
    }

    .yt-fiyat {
        min-height: 44px;
        padding-top: 8px;
        font-size: 16px;
    }

        .yt-fiyat span {
            font-size: 12px;
        }

    .yt-sepetDugme {
        margin-top: 10px;
        padding: 9px 6px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .yt-araclar {
        padding: 13px 0;
        margin-bottom: 20px;
    }

    .yt-listeAciklama {
        font-size: 15px;
        text-align: left;
        margin-bottom: 22px;
    }

    .yt-guven {
        margin-top: 30px;
    }

    .yt-guvenOge {
        gap: 11px;
        padding: 18px 6px;
    }

        .yt-guvenOge .ytIkon {
            width: 28px;
            height: 28px;
        }

        .yt-guvenOge b {
            font-size: 11.5px;
            letter-spacing: .05em;
            margin-bottom: 3px;
        }

        .yt-guvenOge span {
            font-size: 11.5px;
            line-height: 1.5;
        }
}
