/* Genel ürün kartı stilleri - Tüm stiller tek bir yerde tanımlanıyor */
/* Bu dosya tüm ürün kartı stillerini birleştirip tekrarlanan kodları temizler */

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px 4px 12px 4px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 230px;
    max-width: 280px;
    height: 370px;
    box-sizing: border-box;
    margin: 10px 5px;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(42,57,90,0.13);
    transform: translateY(-4px) scale(1.03);
}

/* Ürün resmi için stil */
.product-card .product-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain !important; /* Önemli: Resmin orantılı şekilde gösterilmesi */
    margin-bottom: 10px;
    border-radius: 10px;
    background: transparent;
}

/* Ürün bilgi alanı */
.product-card .product-info {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card .product-info h3 {
    font-size: 16px;
    color: #2a395a;
    margin: 0 0 6px 0; /* Başlık alt boşluğunu azalt */
    font-weight: 600;
    line-height: 1.25;
    min-height: 44px;
    text-align: center;
}

.product-card .product-info a {
    text-decoration: none;
}

/* Fiyat stilleri */
.product-card .product-price {
    margin: 6px 0 6px; /* Fiyat alanını sıklaştır */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 6px;
}

.product-card .price {
    color: #d32f2f;
    font-weight: bold;
    font-size: 16px;
}

/* Sepete ekle butonu */
.product-card .add-to-cart {
    background: #ffd700;
    color: #2a395a;
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0; /* Butonu biraz yukarı al */
    width: auto;
    display: inline-block;
}

/* Sepete ekle butonu hover durumu */
.product-card .add-to-cart:hover {
    background: #2a395a;
    color: #fff;
}

/* Fırsat ürünleri için özel stiller */
.product-card.deal-product .product-image img {
    width: auto;
    max-width: 140px;
    height: auto;
    max-height: 90px;
    object-fit: contain !important;
    background-color: transparent !important;
    margin: 0 auto;
}

/* Kalp düğmesinin konumu */
.product-card .wishlist {
    position: absolute;
    bottom: 10px;
    left: 8px;
    z-index: 3;
}

/* Product card inner div (haftanın fırsatları için) */
.deal-product .product-card-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    background: #fff;
}

/* İndirim etiketi */
.product-card .discount-badge {
    position: absolute;
    top: 6px; /* Görselin üzerine taşı */
    left: 6px;
    background-color: #d32f2f;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 4;
    line-height: 1.2;
}

/* Deals alanında üstteki rozet kapatıldı; indirim bilgisi fiyatın yanında gösteriliyor */
.deals-carousel .product-card .discount-badge { display: none !important; }

/* En çok satanlar için düzeltme */
.best-sellers-carousel .product-card {
    margin: 8px;
    height: 340px;
}

/* En çok satanlar için yazı boyutu düzeltmesi */
.best-sellers-carousel .product-card h3 {
    font-size: 15px;
    text-transform: none;
}

/* Ürün kartı iç yapısı */
.product-card .product-card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Özel Haftanın Fırsatları stil modifikasyonları */
.product-card.deal-product {
    max-width: 170px;
    min-width: unset;
    height: auto;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: none;
    box-sizing: border-box;
}

.product-card.deal-product .product-image img {
    height: 120px;
    max-height: 120px;
}

.product-card.deal-product .product-info {
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    text-align: left;
}

.product-card.deal-product .product-info h3 {
    font-size: 12px;
    min-height: 36px;
    margin-top: 5px;
    text-align: left;
}

.product-card.deal-product .product-price {
    align-items: flex-start;
    margin-top: 5px;
    margin-bottom: 8px;
}

.product-card.deal-product .old-price {
    font-size: 10px;
    margin-bottom: 2px;
    display: block;
}

.product-card.deal-product .price {
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.product-card.deal-product .add-to-cart {
    font-size: 11px;
    padding: 6px 10px;
}

/* Haftanın fırsatları için ok stilleri */
.deals-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin-top: -20px;
    left: -10px;
    width: calc(100% + 20px);
}

.deals-carousel .owl-prev,
.deals-carousel .owl-next {
    background: white !important;
    color: #333 !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.deals-carousel .owl-prev {
    left: 0px;
}

.deals-carousel .owl-next {
    right: 0px;
}

/* Mobil için özel ayarlamalar */
@media (max-width: 768px) {
    .product-card {
        min-width: 160px;
        height: auto;
        padding: 5px;
    }
    
    .product-card .product-image img {
        height: 120px;
    }
    
    .product-card .product-info h3 {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-card .price {
        font-size: 14px;
    }
    
    .product-card .old-price {
        font-size: 12px;
    }
    
    .product-card.deal-product {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 5px;
    }
    
    .deals-carousel .owl-carousel {
        padding: 0;
    }
    
    .deals-carousel .owl-item {
        padding: 0 5px;
    }
    
    /* Mobil okları alta yerleştirme */
    .deals-carousel .owl-nav {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 15px 0 0;
        left: 0;
    }
    
    .deals-carousel .owl-prev, 
    .deals-carousel .owl-next {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        display: inline-block !important;
        margin: 0 5px;
        width: 30px;
        height: 30px;
        font-size: 16px !important;
    }
    
    .product-card .discount-badge {
        font-size: 8px;
        padding: 1px 3px;
        bottom: 10px;
        left: 40px;
        top: auto;
        right: auto;
    }
}
