/* assets/css/style.css - VERSİYON 3.0 (PREMIUM + UX + COOKIE) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --primary-dark: #1a1a1a;
    --primary-burgundy: #6d1b1b;
    --gold-accent: #a67c52;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- TEMEL AYARLAR & TIKLAMA DENEYİMİ (UX FIX) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 1. Mavi Seçim Çizgilerini Kaldır */
*:focus { outline: none; } 

/* 2. Mobildeki Mavi Tıklama Rengini Kaldır */
* { -webkit-tap-highlight-color: transparent; }

/* 3. Tüm Buton ve Linklere "Tıklanma" Hissi (Hafif Küçülme) */
a:active, button:active, .btn:active, .campaign-card:active, .koleksiyon-kart:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease;
}

body { font-family: 'Jost', sans-serif; color: #333; background-color: var(--white); line-height: 1.6; }
h1, h2, h3, .serif-font { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- HAMBURGER MENÜ (MASAÜSTÜNDE GİZLE) --- */
.mobile-menu-btn {
    display: none; /* Varsayılan olarak GİZLİ */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 10px; /* Tıklama alanı genişlesin */
}

/* --- LAYOUT & NAVBAR --- */
.top-bar { background-color: var(--primary-dark); color: var(--white); text-align: center; padding: 10px 0; font-size: 0.75rem; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 25px 5%; background: var(--white); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: 3px; color: var(--primary-burgundy); text-transform: uppercase; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.85rem; text-transform: uppercase; font-weight: 500; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--primary-burgundy); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-icons { display: flex; gap: 20px; }
.nav-icons i { font-size: 1.2rem; cursor: pointer; color: var(--primary-dark); transition: color 0.3s; }
.nav-icons i:hover { color: var(--primary-burgundy); }

/* --- GÖRSEL KİLİDİ (FIX) --- */
.koleksiyon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; width: 100%; }
.koleksiyon-kart { background: #fff; border: 1px solid #f0f0f0; border-radius: 4px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.koleksiyon-kart:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.kart-gorsel-kutusu { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; position: relative; background: #f9f9f9; }
.kart-gorsel-kutusu img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top center; display: block; transition: transform 0.5s ease; }
.koleksiyon-kart:hover .kart-gorsel-kutusu img { transform: scale(1.05); }
.kart-bilgi { padding: 15px; text-align: center; }
.product-title { font-size: 1rem; margin-bottom: 5px; color: #444; }
.price-wrapper { font-weight: 600; font-size: 1.1rem; color: var(--primary-burgundy); }
.old-price { text-decoration: line-through; color: #aaa; font-size: 0.9rem; margin-right: 10px; }
.p-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; font-size: 0.7rem; font-weight: bold; color: #fff; z-index: 2; text-transform: uppercase; }
.bg-new { background: var(--primary-dark); }
.bg-sale { background: #b93a3a; }

/* --- BUTONLAR --- */
.btn, .btn-secondary { display: inline-block; padding: 15px 40px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s; border: none; font-size: 0.85rem; }
.btn { background: var(--primary-dark); color: #fff; }
.btn:hover { background: var(--primary-burgundy); }
.btn-secondary { background: transparent; border: 1px solid #333; color: #333; }
.btn-secondary:hover { background: #333; color: #fff; }

/* --- ANA SAYFA ELEMENTLERİ --- */
.hero { height: 85vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 50px 5%; }
.campaign-card { position: relative; aspect-ratio: 4/5; overflow: hidden; cursor: pointer; }
.campaign-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.campaign-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; }
.products-section, .detail-container, .checkout-container, .page-container { padding: 60px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-dark); }

/* --- ÇEREZ (COOKIE) POPUP --- */
.cookie-overlay {
    position: fixed; bottom: -200px; left: 0; width: 100%;
    background: #fff; border-top: 2px solid var(--primary-burgundy);
    padding: 20px 5%; z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
    transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 20px;
}
.cookie-overlay.show { bottom: 0; }
.cookie-text h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary-dark); }
.cookie-text p { font-size: 0.85rem; color: #666; margin: 0; }
.cookie-btn { background: var(--primary-burgundy); color: #fff; border: none; padding: 10px 25px; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* --- RESPONSIVE (MOBİL) --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; } /* Mobilde butonu göster */
    .navbar { padding: 15px 5%; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column; gap: 0;
        border-top: 1px solid #eee; display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid #f9f9f9; }
    .nav-links a { display: block; padding: 15px; font-size: 1rem; }
    
    .hero h1 { font-size: 2rem; }
    .cookie-overlay { flex-direction: column; text-align: center; padding: 30px 5%; }
    .cookie-btn { width: 100%; }
    
    .page-container { flex-direction: column; }
    .sidebar { width: 100%; margin-bottom: 30px; }
    .detail-container, .checkout-container { flex-direction: column; }
    .cart-table { display: block; overflow-x: auto; white-space: nowrap; }
}
/* --- FOOTER GÜVENLİK ALANI (DÜZELTME) --- */
.features {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 60px 5%;
    background: #f9f9f9; /* Hafif gri arka plan */
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    text-align: center; /* Ortala */
    gap: 30px;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* İkonları ortala */
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); /* Üzerine gelince hafif zıplasın */
}

.feature-item i {
    font-size: 2.5rem; /* İkon boyutu */
    color: var(--primary-burgundy); /* Marka rengi */
    margin-bottom: 15px;
    opacity: 0.9;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    max-width: 250px; /* Yazı çok yayılmasın */
    margin: 0 auto;
}

/* Mobilde alt alta düzgün dursun */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        padding: 40px 5%;
        gap: 40px;
    }
    .feature-item {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }
    .feature-item:last-child {
        border-bottom: none;
    }
}
/* --- PREMIUM SEPET VE ÖDEME SAYFALARI (V4.0) --- */

/* 1. SEPET TABLOSU (Modern & Ferah) */
.cart-table {
    width: 100%;
    border-collapse: separate; /* Satır aralarını açmak için */
    border-spacing: 0 15px; /* Satırlar arası boşluk */
    margin-bottom: 30px;
}

.cart-table thead th {
    text-align: left;
    padding: 10px 20px;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #eee;
}

.cart-table tbody tr {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Hafif gölge */
    transition: transform 0.2s ease;
}

.cart-table tbody tr:hover {
    transform: scale(1.01); /* Üzerine gelince hafif büyüsün */
}

.cart-table td {
    padding: 20px;
    vertical-align: middle;
}

.cart-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.cart-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cart-img {
    width: 80px;
    height: 100px; /* Dikey format */
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

/* Çöp Kutusu İkonu */
.btn-remove {
    color: #ccc;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-remove:hover {
    color: #e74c3c;
    background: #fff0f0;
}

/* 2. SEPET ÖZET KUTUSU (Sticky & Şık) */
.cart-summary {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Belirgin gölge */
    border: 1px solid #f5f5f5;
    position: sticky;
    top: 100px; /* Sayfayı kaydırınca takip etsin */
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

/* 3. ÖDEME SAYFASI FORMLARI */
.checkout-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-form {
    flex: 2;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.checkout-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form h3 i { color: var(--gold-accent); }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { width: 100%; }

.form-control {
    width: 100%;
    padding: 15px;
    background: #fbfbfb;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #333;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 4px rgba(109, 27, 27, 0.1); /* Odaklanınca hafif gölge */
}

/* Kredi Kartı Placeholder */
.payment-placeholder {
    border: 2px dashed #ddd;
    background: #fafafa;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #888;
    margin-top: 20px;
    transition: all 0.3s;
}

.payment-placeholder:hover {
    border-color: var(--primary-burgundy);
    color: var(--primary-burgundy);
    background: #fff5f5;
}

/* 4. BUTONLAR (SEPETE EKLE & SATIN AL) */
.btn-add-cart {
    background: var(--primary-dark);
    color: #fff;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-add-cart:hover {
    background: var(--primary-burgundy);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(109, 27, 27, 0.3); /* Premium Glow Effect */
}

/* MOBİL UYUM */
@media (max-width: 768px) {
    .checkout-container { flex-direction: column; }
    
    .cart-table thead { display: none; } /* Mobilde başlıkları gizle */
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
    }
    
    .cart-table td {
        padding: 10px 0;
        text-align: right; /* İçerik sağa yaslı */
        border-bottom: 1px solid #f9f9f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-table td:before {
        content: attr(data-label); /* data-label özelliğini CSS ile başlık yap */
        font-weight: 600;
        color: #888;
        float: left;
    }
    
    .cart-table td:last-child { border-bottom: none; }
    
    .cart-img { width: 60px; height: 80px; }
}
/* --- SEPET ADET BUTONLARI --- */
.qty-control {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 4px;
    width: fit-content;
    /* Mobilde sağa yaslama sorunu olursa diye: */
    margin-left: auto; 
}

/* Masaüstünde (768px üstü) sola yaslı olsun */
@media (min-width: 769px) {
    .qty-control { margin-left: 0; }
}

.qty-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    user-select: none;
}

.qty-btn:hover {
    background: #e0e0e0;
    color: var(--primary-burgundy);
}

.qty-btn.minus {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.qty-btn.plus {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.qty-value {
    width: 30px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}
/* --- PREMIUM ÜRÜN DETAY SAYFASI (V5.0) --- */

.pd-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Sol (Resim) biraz daha geniş, Sağ (Bilgi) daha dar */
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 5%;
    align-items: start; /* Yukarı hizala */
}

/* SOL TARAF: GÖRSEL ALANI */
.pd-image-area {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    cursor: zoom-in; /* Büyüteç ikonu */
}

.pd-image-area img {
    width: 100%;
    height: auto;
    max-height: 750px; /* Masaüstünde görselin devasa olmasını engeller */
    object-fit: cover; /* Resmi kutuya sığdır */
    display: block;
    transition: transform 0.3s ease;
}

.pd-image-area:hover img {
    transform: scale(1.02); /* Hafif zoom efekti */
}

/* SAĞ TARAF: BİLGİ ALANI (Sticky - Yapışkan) */
.pd-info-area {
    position: sticky;
    top: 120px; /* Navbar'ın altında kalsın */
    padding: 20px 0;
}

.pd-breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-breadcrumb a:hover { color: var(--primary-burgundy); text-decoration: underline; }

.pd-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 400; /* Daha zarif ince font */
}

.pd-price-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.pd-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

/* Miktar Seçici (Detay Sayfası İçin) */
.pd-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.pd-qty-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1rem;
    border-radius: 4px;
    color: #333;
}

/* Ek Bilgiler */
.pd-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: #777;
}

.pd-meta i { width: 25px; text-align: center; color: var(--primary-burgundy); }

/* --- RESPONSIVE (MOBİL) --- */
@media (max-width: 900px) {
    .pd-wrapper {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
        gap: 30px;
        padding: 20px 5%;
    }

    .pd-image-area img {
        max-height: 500px; /* Mobilde çok uzun olmasın */
    }

    .pd-title { font-size: 1.8rem; }
    
    .pd-info-area { position: static; /* Mobilde yapışkanlığı kaldır */ }
    
    .pd-actions { flex-direction: column; } /* Buton tam genişlik olsun */
    .pd-qty-input { width: 100%; padding: 15px; }
}
/* --- DUPLICATE BUTTON FIX (GELİŞMİŞ VERSİYON) --- */

/* 1. Masaüstünde: Kesinlikle gizle */
.mobile-only {
    display: none !important;
}

/* 2. Mobilde: Şık ve Düzenli Göster */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
        margin-top: 15px; /* Yukarıdan boşluk bırak */
        padding: 0 20px 20px 20px; /* Kenarlardan boşluk */
        border: none; /* Çizgiyi kaldır, daha temiz olsun */
        text-align: center; /* Ortala */
    }
    
    .mobile-only a {
        display: block;
        background: #f4f4f4; /* Hafif gri buton zemini */
        padding: 12px;
        border-radius: 6px;
        color: var(--primary-dark) !important;
        font-weight: 600;
        margin-bottom: 10px; /* Butonlar arası boşluk */
        transition: background 0.3s;
    }

    /* Giriş Yap / Çıkış Yap butonuna özel renk */
    .mobile-only a:last-child {
        margin-bottom: 0;
    }

    /* Eğer çıkış yap butonuysa kırmızı olsun (İsteğe bağlı) */
    .mobile-only a[href*="cikis"] {
        color: #d9534f !important;
        background: #fff5f5;
    }
}