/* product.css - GÜNCELLENMİŞ HALİ */

:root {
    --card-bg: #ffffff;
    --card-border: #e6e6e6;
    --text-main: #333;
    --text-light: #888;
    --gold: #d4af37;
    --gold-hover: #bfa140;
}

/* --- SLIDER GENEL --- */

.product-box{
    padding: 2rem 0;
    background-color: #f3eeee;
}
.slider-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f3eeee;
}

.slider-wrapper {
    position: relative;
    padding: 0 0px;
}

/* Başlık Düzenlemesi (Daha Küçük ve Modern Font) */
.slider-title {
    font-family: 'Montserrat', sans-serif; /* Farklı, modern font */
    font-size: 1.5rem; /* Biraz küçültüldü */
    font-weight: 600;
    color: var(--text-main);
    margin-left: 5px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
}

.product-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 25px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-track::-webkit-scrollbar { display: none; }

/* --- ÜRÜN KARTI --- */
.product-card {
    flex: 0 0 auto;
    width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Taşmaları gizle */
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* --- GÖRSEL ALANI --- */
.product-image-box {
    position: relative;
    width: 100%;
    height: 320px;
    background: #fcfcfc;
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.08);
}

/* BADGE */
.product-badge-featured {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-badge-featured.new { background-color: var(--gold); color: #000; }

/* --- SEPETE EKLE BUTONU (Style.css'ten Taşındı & Geliştirildi) --- */
/* Desktop Varsayılan: Overlay (Gizli, Hover'da çıkar) */
.product-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex; justify-content: center;
    z-index: 4;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--white); /* Buton beyaz */
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.add-cart-btn:hover {
    background: var(--gold);
    color: #fff;
}

/* --- ÜRÜN BİLGİLERİ --- */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    z-index: 6; /* Resmin üstünde kalsın */
}

.product-category {
    font-size: 0.65rem;
    color: #999;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Ürün Adı - Klasik Font ve Okunabilir */
.product-info h3 {
    font-family: Arial, Helvetica, serif; /* Klasik Font */
    font-size: 1.1rem; /* Boyut ideal */
    color: #222; /* Tam siyah değil, yumuşak koyu */
    font-weight: 500; /* Çok kalın olmasın */
    margin: 5px 0;
    line-height: 1.3;
    
    /* Uzun isimleri kes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.product-price-wrapper {
    margin-top: auto;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Slider Okları */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%; background: #fff; border: 1px solid #eee;
    color: #333; font-size: 1rem; cursor: pointer; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }



/* --- İNDİRİMLİ FİYAT GÖRÜNÜMÜ (ÜRÜN KARTLARI İÇİN) --- */
.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px; /* Fiyatlar arası boşluk */
    margin-top: 5px;
}

.current-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.current-price.discounted {
    color: #e74c3c; /* İndirim varsa yeni fiyat kırmızı olsun */
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}


/* --- MOBİL İÇİN ÖZEL DÜZENLEMELER (Trendyol Tarzı) --- */
@media (max-width: 768px) {
    .product-card {
        width: 165px; /* Yan yana 2 tane sığsın */
        border: 1px solid #f0f0f0;
    }
    
    .product-image-box {
        height: 220px; /* Görsel alanı */
        display: flex;
        flex-direction: column;
        position: relative;
    }

    /* Mobilde Overlay'i İPTAL EDİP, Görünür Yapıyoruz */
    .product-overlay {
        position: absolute; /* Artık resmin üstünde yüzmüyor */
        opacity: 1; /* Hep görünür */
        transform: none;
        background: transparent;
        padding: 8px;
        margin-top: auto; /* En alta it */
        width: 100%;
    }

    /* Buton Tasarımı - Mobilde Turuncu/Gold Borderlı */
    .add-cart-btn {
        background: rgb(255, 255, 255);
        color: var(--dark);
        font-size: 0.75rem;
        padding: 8px;
        border-radius: 6px;

    }
    
    .add-cart-btn:active {
        background: var(--gold);
        color: #fff;
    }

    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .slider-title {
        font-size: 1.2rem; /* Mobilde başlık daha küçük */
        margin-left: 10px;
    }

    .slider-btn { display: none; } /* Mobilde ok yok, kaydırma var */
}



/* KOLLEKSİYON SAYFASI */
.collection-section {
    padding: 2rem 4rem;
    background-color: #f9f9f9;
    min-height: 80vh;
}

/* Filtre Butonları */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.cat-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cat-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cat-btn.active {
    background: var(--gold);
    color: #fff; /* Yazı beyaz */
    border-color: var(--gold);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Ürün Grid Yapısı (Masaüstü 4'lü, Mobil 2'li) */
.collection-grid {
    display: grid;
    /* Kartlar min 250px olsun, sığdığı kadar yan yana gelsin */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 25px; /* Kartlar arası boşluk */
    
    /* İçeriği ortala ve çok yayılmasını engelle */
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    
    /* Eğer az ürün varsa ortada dursunlar */
    justify-content: center; 
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablette 3'lü */
    }
}

@media (max-width: 768px) {
    .collection-section {
        padding: 1rem; /* Kenar boşluklarını azalttık */
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde 2'li */
        gap: 10px; /* Mobilde arayı biraz daha kıs */
    }
    
    .cat-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    /* Kartların mobilde dışarı taşmaması için genişlik ayarı */
    .collection-grid .product-card {
        width: 100% !important; /* Slider'daki sabit genişliği ezmek için */
    }
}