/* TABORA Style - Premium E-Ticaret CSS Framework (Revised Image Handling)
    Target: Clean, Minimalist, Mobile-First, Full Image Fit, Larger Displays
*/

/* --- 1. GENEL AYARLAR & TIPOGRAFI --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: #fcfcfc;
    color: #111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1366px; /* İsteğin üzerine container'ı da biraz genişlettik */
    margin: 0 auto;
    padding: 0 30px; /* Kenar boşluklarını artırdık premium his için */
}

a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; } /* Temel resim ayarı */
button { font-family: 'Jost', sans-serif; transition: 0.3s; }

/* Bildirimler */
.bildirim { padding: 20px; margin-bottom: 30px; border-radius: 4px; font-weight: 500; font-size: 15px; }
.bildirim.basari { background: #e8f8f5; color: #27ae60; border-left: 5px solid #27ae60; }
.bildirim.hata { background: #fdedec; color: #e74c3c; border-left: 5px solid #e74c3c; }

/* --- 2. HEADER & NAVIGASYON --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.main-menu ul {
    display: flex;
    gap: 40px;
}

.main-menu a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-menu a:hover { color: #888; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-actions a { font-weight: 500; font-size: 15px; }

/* Mobil Menü Butonu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: #111;
}

/* --- 3. VİTRİN & ÜRÜN KARTLARI (REVİZE EDİLDİ: BÜYÜTÜLDÜ & SIĞDIRILDI) --- */
.vitrin-alani { padding: 80px 0; }

.bolum-basligi { text-align: center; margin-bottom: 60px; }
.bolum-basligi h2 { font-size: 36px; font-weight: 400; letter-spacing: 3px; }
.bolum-basligi p { color: #777; margin-top: 10px; font-weight: 300; }

.urun-grid {
    display: grid;
    /* REVIZE: Kart boyutları artırıldı (minmax: 280px -> 320px) */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px; /* Boşluk artırıldı premium his için */
}

.urun-karti {
    position: relative;
    transition: transform 0.4s ease;
}

.urun-karti:hover { transform: translateY(-8px); }

/* REVIZE: Resim Kutuya Sığdırıldı ve En-Boy Oranı Korundu */
.urun-karti img {
    width: 100%;
    /* Eski height: 400px; silindi. */
    height: auto;
    /* REVIZE: Premium portrait (dikey) en-boy oranı. 3 birim genişlik, 4 birim yükseklik */
    aspect-ratio: 3 / 4; 
    /* CRITICAL REVIZE: Resim her zaman kutunun içine sığar, kırpılmaz (cover -> contain) */
    object-fit: contain; 
    /* İsteğe bağlı: Resim sığarken kutunun boş kalan kısımları için hafif bir arka plan rengi */
    background-color: #f7f7f7; 
    border-radius: 4px;
}

/* Etiketler */
.etiket-konteyner {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.etiket {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.etiket-yeni { background: #27ae60; }
.etiket-yeni-sezon { background: #8e44ad; } 
.etiket-indirimli { background: #e74c3c; }
.etiket-on-siparis { background: #f39c12; }
.etiket-kargo-bedava { background: #2980b9; }
.etiket-tukendi { background: #7f8c8d; }
.etiket-video-ikon {background: #f39c12; }
.etiket-video { background: #f39c12;}

.urun-baslik {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    font-weight: 400;
}

.fiyat-alani { text-align: center; margin-top: 8px; }
.fiyat-ustu-cizik { text-decoration: line-through; color: #aaa; margin-right: 10px; font-size: 14px; }
.fiyat-gecerli { font-weight: 600; color: #111; font-size: 17px; }

/* --- 4. ÜRÜN DETAY SAYFASI (REVİZE EDİLDİ: RESİM ALANI BÜYÜTÜLDÜ) --- */
.urun-detay-kapsayici {
    display: flex;
    gap: 80px; /* Bilgi ve Resim alanı arası boşluk artırıldı */
    padding: 60px 0;
}

/* REVIZE: Ürün Detay Resim Alanı Büyütüldü (flex: 1.2 -> 1.5) */
.urun-gorsel-alani { 
    flex: 1.5; /* Yaklaşık sayfanın %60'ı resim olur */
}

.galeri-kapsayici {
    display: flex;
    gap: 20px;
}

.thumbnail-listesi {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-img, .thumb-video-icon {
    width: 90px;
    height: 110px;
    object-fit: contain; /* Küçük resimler de kutuya sığsın */
    background: #f7f7f7;
    border: 1px solid #eee;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}
.thumb-img:hover, .thumb-img.aktif { border-color: #111; }

.thumb-video-icon {
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* REVIZE: Ana Görsel Penceresi Büyütüldü */
.ana-gorsel-pencere {
    flex: 1;
    /* REVIZE: Yükseklik artırıldı (600px -> 750px) */
    height: 750px; 
    overflow: hidden;
    position: relative;
    /* REVIZE: Arka plan vitrin kartlarıyla uyumlu hale getirildi sığan resimler için */
    background: #f7f7f7; 
    border-radius: 4px;
    cursor: zoom-in;
}

.ana-gorsel-pencere img {
    width: 100%;
    height: 100%;
    /* EXISTING: Zaten sığma (contain) ayarı vardı, koruduk kırpmaması için */
    object-fit: contain; 
    transition: transform 0.1s ease-out;
}

.video-mevcut-etiketi {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.8); color: #fff;
    font-size: 11px; font-weight: 600; padding: 6px 12px;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 20px; z-index: 5;
}

/* Varyant Seçenekleri (Değişmedi) */
.urun-bilgi-alani { flex: 1; }
.detay-baslik { font-size: 32px; margin-bottom: 20px; font-weight: 500; }
.detay-fiyat { margin-bottom: 10px; }
.detay-fiyat .buyuk { font-size: 26px; }

.varyant-alani { margin-top: 30px; }
.varyant-baslik { display: block; margin-bottom: 15px; font-size: 14px; color: #666; }
.varyant-baslik strong { color: #111; margin-left: 7px; text-transform: uppercase; }

/* Renk Butonları */
.renk-buton-grubu { display: flex; gap: 12px; flex-wrap: wrap; }
.renk-btn {
    width: 70px; height: 90px; border: 2px solid #eee;
    padding: 2px; cursor: pointer; border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.renk-btn.aktif { border-color: #111; }
.renk-btn:hover:not(.aktif) { border-color: #ccc; }
.renk-btn img { width: 100%; height: 100%; object-fit: contain; background: #f7f7f7; }

/* Beden Butonları (Siyah Yuvarlak) */
.beden-buton-grubu { display: flex; gap: 15px; flex-wrap: wrap; }
.beden-btn {
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid #ccc; background: #fff; color: #111;
    font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase;
}
.beden-btn.aktif { background: #111; color: #fff; border-color: #111; }
.beden-btn:hover:not(.aktif):not(:disabled) { border-color: #111; }
.beden-btn.stok-yok { color: #ccc; border-color: #eee; text-decoration: line-through; cursor: not-allowed; }

/* --- 5. SEPET & AKSİYONLAR (Değişmedi) --- */
.satin-alma-aksiyonlari { margin-top: 50px; }
.btn-primary {
    background: #111; color: #fff; border: none;
    padding: 20px; width: 100%; font-weight: 600;
    font-size: 16px; cursor: pointer; border-radius: 4px;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover:not(:disabled) { background: #333; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.urun-aciklama { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
.urun-aciklama h3 { font-size: 18px; font-weight: 500; margin-bottom: 20px; }
.urun-aciklama p { color: #555; font-size: 15px; line-height: 1.8; }

.sepet-kapsayici { padding: 80px 0; }
.sepet-tablo { width: 100%; border-collapse: collapse; margin-top: 30px; }
.sepet-tablo th { text-align: left; padding: 20px; border-bottom: 1px solid #eee; color: #888; font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;}
.sepet-tablo td { padding: 25px 20px; border-bottom: 1px solid #f9f9f9; }
.btn-sil { color: #e74c3c; font-size: 14px; font-weight: 500; }
.btn-sil:hover { text-decoration: underline; }

/* --- 6. MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
    .urun-detay-kapsayici { gap: 50px; }
    .ana-gorsel-pencere { height: 650px; }
}

@media (max-width: 992px) {
    .urun-detay-kapsayici { flex-direction: column; padding: 40px 0; }
    .urun-gorsel-alani, .urun-bilgi-alani { flex: 1; width: 100%; }
    /* REVIZE: Mobilde kartlar 2'li kalmaya devam etsin premium duruyor */
    .urun-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .bolum-basligi h2 { font-size: 30px; }
    .ana-gorsel-pencere { height: 550px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    
    .site-header { padding: 15px 0; }
    .logo a { font-size: 24px; letter-spacing: 3px; }

    .main-menu {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background: #fff; z-index: 2000; padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 40px rgba(0,0,0,0.06);
    }
    
    .main-menu.active { right: 0; }
    .main-menu ul { flex-direction: column; gap: 25px; }
    .main-menu a { font-size: 16px; }

    .galeri-kapsayici { flex-direction: column-reverse; gap: 15px; }
    .thumbnail-listesi { 
        flex-direction: row; width: 100%; gap: 10px;
        overflow-x: auto; padding-bottom: 10px;
        scrollbar-width: none;
    }
    .thumbnail-listesi::-webkit-scrollbar { display: none; }
    .thumb-img, .thumb-video-icon { width: 75px; height: 95px; flex-shrink: 0; }
    
    .ana-gorsel-pencere { height: 450px; cursor: default; }
    /* Mobilde Zoom'u kapatmak kullanıcı deneyimi için daha iyidir */
    .ana-gorsel-pencere:active img { transform: none !important; }

    .beden-btn { width: 48px; height: 48px; }

/* Görsel Sütunu ve Resim Boyutu */
.td-resim { 
    width: 80px; /* Sütun genişliğini sabitledik */
    padding-right: 0 !important; 
}

.sepet-urun-resim { 
    width: 60px; /* Genişliği 60px'e düşürdük */
    height: 75px; /* Yüksekliği orantılı şekilde ayarladık */
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid #f0f0f0;
    display: block;
    transition: transform 0.2s ease;
}

.sepet-urun-resim:hover { 
    transform: scale(1.1); /* Üzerine gelince hafif büyüme efekti hala premium hissettirir */
    border-color: #ff6600; /* Turuncu vurgu renginle uyumlu */
}

/* Tablo Hücre Düzenlemesi */
.sepet-tablo td {
    padding: 15px; /* Hücre iç boşluklarını biraz daralttık */
    border-bottom: 1px solid #f5f5f5;
}

/* Mobil için Resim Boyutu */
@media (max-width: 992px) {
    .sepet-urun-resim {
        width: 50px; 
        height: 65px;
        margin: 0 auto;
    }
    .td-resim {
        width: 100%;
        text-align: center;
    }
}}

/* --- 7. FOOTER & EKSTRALAR --- */
.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 100px;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
}


/* --- 8. YENİ EKLENEN İŞLEVSEL STİLLER --- */

/* Masaüstü 3'lü Gösterim */
.uclu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Ürün İçi Aksiyon Butonları (Sepet & Favori) */
.urun-karti { 
    position: relative; 
    overflow: hidden; 
}
.urun-aksiyonlar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    opacity: 0; /* Normalde gizli */
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.urun-karti:hover .urun-aksiyonlar {
    opacity: 1; /* Üzerine gelince belirir */
    transform: translateX(0);
}
.aksiyon-btn {
    background: #fff;
    border: 1px solid #f0f0f0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    font-size: 20px;
    color: #111;
    transition: 0.3s;
}
.aksiyon-btn:hover { background: #111; color: #fff; transform: scale(1.1); }

/* Kategori Butonu */
.kategori-buton-alani {
    text-align: center;
    margin-top: 50px;
}
.btn-kategori-gor {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #111;
    color: #111;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    font-size: 14px;
}
.btn-kategori-gor:hover {
    background: #111;
    color: #fff;
}

/* --- MOBİL CİHAZLAR İÇİN YATAY KAYDIRMA (SWIPE) --- */
@media (max-width: 992px) {
    /* Mobilde aksiyon butonları her zaman görünsün */
    .urun-aksiyonlar { 
        opacity: 1; 
        transform: translateX(0); 
        top: 10px; right: 10px;
    }
    .aksiyon-btn { width: 38px; height: 38px; font-size: 16px; }

    /* Mobilde Yatay Kaydırma Ayarı */
    .urun-slider-kapsayici {
        width: 100%;
        overflow: hidden; /* Dışarı taşanları gizle */
    }
    .yatay-kaydirma {
        display: flex !important; /* Grid'i ezip Flex yapıyoruz */
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Ekrana tam oturma hissi için */
        padding-bottom: 20px; /* Kaydırma çubuğu boşluğu */
        gap: 15px !important;
        -webkit-overflow-scrolling: touch; /* iOS'ta akıcı kaydırma */
    }
    /* Kaydırma çubuğunu gizlemek istersen (isteğe bağlı) */
    .yatay-kaydirma::-webkit-scrollbar { display: none; }
    
    .yatay-kaydirma .urun-karti {
        flex: 0 0 75%; /* Kart genişliği mobil ekranın %75'i kadar olsun */
        scroll-snap-align: center; /* Kaydırınca tam ortaya otursun */
    }
}