/* --- MODERN ÜRÜN KARTI (REVİZE 2) --- */

.modern-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* --- GÖRSEL ALANI (GÜNCELLENDİ) --- */
.mc-img-wrap {
    position: relative;
    /* Hesaplama: 380px yükseklik / 304px genişlik = 1.25 
       Oranı %125 yaparak PHP'den gelen resimle kutuyu eşitledik.
    */
    padding-top: 125%;
    background-color: var(--white);
    /* Arka planı beyaz yaptık */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* Görselin bittiği yere hafif çizgi */
}

.mc-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ÖNEMLİ: 'cover' yerine 'contain' yapıyoruz. 
       Böylece resmin tamamı görünür, asla kesilmez.
    */
    object-fit: contain;
    padding: 10px;
    /* Görselin kenarlara yapışmaması için boşluk */
    transition: transform 0.5s ease;
}

.modern-card:hover .mc-img-wrap img {
    /* Zoom efektini biraz yumuşattık */
    transform: scale(1.08);
}

/* Rozetler */
.mc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.mc-badge-new {
    background-color: var(--text-dark);
}

.mc-badge-sale {
    background-color: var(--accent);
}

/* Favori Butonu */
.mc-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 3;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mc-fav-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* --- BİLGİ ALANI --- */
.mc-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Teslimat Notu (Ortalandı) */
.mc-delivery {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ortalamak için eklendi */
    gap: 4px;
}

/* Ürün Başlığı */
.mc-title {
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    /* Başlık da ortalansın mı? Değilse 'left' yap */
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mc-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.mc-title a:hover {
    color: var(--primary);
}

/* Fiyat Alanı */
.mc-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fiyat Ortalandı */
    gap: 8px;
    margin-bottom: 10px;
}

.mc-price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-main);
}

.mc-old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Kupon Kutusu (Kırmızı - Dikkat Çekici) */
.mc-coupon {
    background-color: #FEF2F2;
    /* Açık Kırmızı Arkaplan */
    border: 1px dashed #EF4444;
    /* Kırmızı Kesik Çizgi */
    color: #B91C1C;
    /* Koyu Kırmızı Yazı */
    font-size: 11px;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 12px;
}

/* --- Gradient Sipariş Butonu --- */
.btn-order-modern {
    margin-top: auto;
    /* En alta itmek için */
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    /* Style.css değişkenleri ile Gradient */
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    /* Yeşil gölge */
    transition: all 0.3s ease;
}

.btn-order-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    /* Tersi */
    color: var(--white);
}

/* Mobil Ayarları */
@media (max-width: 768px) {
    .mc-info {
        padding: 10px;
    }

    .mc-title {
        font-size: 13px;
        height: 36px;
    }

    .mc-price {
        font-size: 16px;
    }

    .btn-order-modern {
        font-size: 12px;
        padding: 8px;
    }
}