/* --- TEMEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #164A41;
    --accent-color: #4D774E;
    --secondary-color: #E3A69F;
    --text-color: #333333;
    --soft-black: #2c2c2c;      
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Jost', sans-serif; color: var(--text-color); background-color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }

/* HEADER (GÜNCELLENMİŞ) */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
}

.site-header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(22, 74, 65, 0.1);
    transition: 0.3s;
}

.site-header.scrolled {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-bottom: none;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Alanı yay */
    align-items: center;
    position: relative; /* Logo ortalamak için */
}

/* LOGO - TAM ORTADA */
.site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.site-logo a {
    font-size: 26px; /* Biraz büyüttük */
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
}

.site-header.scrolled .site-logo a {
    color: var(--secondary-color);
}

/* MENÜ - SOL TARAFTA (Paylı) */
.desktop-nav {
    display: none;
    gap: 25px;
    margin-left: 20px; /* Soldan pay bıraktık */
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link, .desktop-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-color);
    text-transform: uppercase;
    position: relative;
}

/* Linklerin Alt Çizgi Efekti */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.site-header.scrolled .desktop-nav a {
    color: #e0e0e0 !important; /* Açık gri */
}

.site-header.scrolled .desktop-nav a:hover,
.site-header.scrolled .desktop-nav a.active {
    color: var(--secondary-color) !important;
}

.site-header.scrolled .desktop-nav a::after {
    background-color: var(--secondary-color);
}

/* MOBİL MENÜ BUTONU (SAĞDA) */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: auto; /* Sağa it */
}

.site-header.scrolled .mobile-toggle {
    color: var(--secondary-color);
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

/* MOBİL MENÜ İÇERİĞİ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.mobile-menu-content a {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 35px;
    color: var(--primary-color);
    cursor: pointer;
}

/* BANNER */
.hero-section, .boncuk-hero { position: relative; height: 85vh; width: 100%; overflow: hidden; background-color: var(--primary-color); }
@media (max-width: 768px) { .hero-section, .boncuk-hero { height: 50vh; } }
#hero-collage { width: 100%; height: 100%; position: relative; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; opacity: 0; transition: opacity 1.5s ease; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { width: 33.333%; height: 100%; object-fit: cover; border-right: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 768px) { .hero-slide img { width: 100%; display: none; } .hero-slide img:first-child { display: block; } }
.hero-section::after, .boncuk-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(22, 74, 65, 0.4); z-index: 5; pointer-events: none; }
.hero-content { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); z-index: 20; max-width: 600px; text-align: left; }
.hero-content h2 { font-size: 3.5rem; color: #fff; font-weight: 300; letter-spacing: 2px; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; color: #f0f0f0; letter-spacing: 1px; font-weight: 400; text-shadow: 0 2px 5px rgba(0,0,0,0.3); margin-bottom: 25px; }
.hero-btn-custom { display: inline-block; background-color: #ffffff; color: #333333; padding: 15px 40px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--soft-black); border-radius: 0; transition: all 0.3s ease; cursor: pointer; }
.hero-btn-custom:hover { background-color: var(--primary-color); color: var(--secondary-color); border-color: var(--primary-color); }

/* Sayfalar */
.page-title-section { text-align: center; padding: 50px 0 20px 0; background: var(--white); }
.page-title-section h1 { font-size: 2.5rem; color: var(--primary-color); font-weight: 500; letter-spacing: 3px; margin-bottom: 10px; text-transform: uppercase; }
.page-title-section p { font-size: 1.1rem; color: #666; letter-spacing: 1px; margin: 0; font-weight: 400; }
.category-hero { background-color: var(--secondary-color); height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; margin-bottom: 40px; }
.hero-overlay h1 { font-size: 2.5rem; letter-spacing: 3px; color: var(--primary-color); margin: 0; font-weight: 500; }
.hero-overlay p { color: var(--primary-color); margin-top: 10px; opacity: 0.9; letter-spacing: 1px; }
.category-section { margin-bottom: 80px; scroll-margin-top: 100px; }
.category-header { text-align: center; margin-bottom: 40px; padding-top: 20px; }
.category-header h2 { font-size: 2.2rem; letter-spacing: 3px; font-weight: 500; text-transform: uppercase; color: var(--primary-color); display: inline-block; }
.mini-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1300px; margin: 0 auto; padding: 0 50px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }

/* --- ÜRÜN KARTI (DÜZELTİLDİ) --- */
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid #f0f0f0; transition: 0.3s; position: relative; height: 100%; }
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-color: var(--secondary-color); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background-color: #f9f9f9; width: 100%; }
.slider-track { position: relative; width: 100%; height: 100%; }

/* RESİMLERİN GÖRÜNMESİNİ SAĞLAYAN KISIM */
.slide-wrapper { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.8s ease-in-out; 
    z-index: 1; 
    pointer-events: none;
}
/* JS ile 'active' sınıfı eklenince görünür olur */
.slide-wrapper.active { 
    opacity: 1 !important; /* Kesinlikle görünür yap */
    z-index: 2; 
}

.slider-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-info { padding: 20px 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; gap: 10px; }
.card-info h4 { font-size: 15px; font-weight: 500; margin-bottom: 5px; color: var(--text-color); line-height: 1.4; }
.category-tag { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.trendyol-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #164A41 0%, #a36f63 100%); color: #fff; padding: 12px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-top: auto; width: 100%; }

/* Sidebar */
.category-layout { display: flex; gap: 50px; align-items: flex-start; }
.sidebar { width: 250px; flex-shrink: 0; position: sticky; top: 100px; text-align: center; }
.sidebar-menu { display: flex; flex-direction: column; align-items: center; }
.sidebar-title { font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary-color); color: var(--primary-color); display: inline-block; }
.menu-item { display: block; width: 100%; padding: 12px 15px; color: #555; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 6px; transition: all 0.3s ease; text-align: center; margin-bottom: 5px; }
.menu-item:hover { background-color: var(--primary-color) !important; color: var(--white) !important; box-shadow: 0 4px 10px rgba(22, 74, 65, 0.2); }
.menu-item.active { background-color: var(--secondary-color) !important; color: var(--primary-color) !important; font-weight: 700; }
.site-footer { background-color: var(--secondary-color); padding: 50px 0; margin-top: 80px; text-align: center; color: var(--primary-color); }
.product-content { flex-grow: 1; width: 100%; }
.fade-in-up { transform: translate3d(0, 30px, 0); opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* Responsive */
@media (max-width: 900px) {
    .shop-grid, .mini-product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 10px; }
    .category-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; overflow-x: auto; padding-bottom: 10px; }
    .sidebar-menu { display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-start; }
    .menu-item { padding: 10px 20px; white-space: nowrap; margin-bottom: 0; }
    .sidebar-title { display: none; }
}



/* --- WhatsApp İletişim Butonu Tasarımı --- */
.footer-contact {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* İkon ile yazı arasındaki boşluk */
    background-color: #25D366; /* WhatsApp Yeşili */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px; /* Yuvarlak kenarlar */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); /* Hafif gölge */
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* Üzerine gelince koyulaşır */
    transform: translateY(-3px); /* Hafifçe yukarı kalkar */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}


/* Bilgilendirme Metni Tasarımı */
.hint-text {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}
.hint-text b {
    color: #d88184; /* Sitenin temasına uygun pembe tonu */
    font-weight: 600;
}





/* Alt sayfalarda bannerı gizle */
.sub-page .hero-section {
    display: none !important;
}

/* Alt sayfalarda menüden sonra boşluk bırak (Header sticky olduğu için) */
.sub-page .site-header {
    position: relative !important; /* Veya sticky kalsın istersen margin ver */
    margin-bottom: 30px;
}





/* --- MOBİL ÜRÜN YERLEŞİMİ DÜZELTME (SAĞA TAŞMAYI ÖNLER) --- */
@media (max-width: 900px) {
    
    /* 1. Ana kapsayıcının kenar boşluklarını düzenle */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        overflow-x: hidden; /* Taşmayı engelle */
    }

    /* 2. Ürünlerin olduğu kutuyu (Grid) tam ortala ve sığdır */
    .shop-grid, .mini-product-grid {
        display: grid;
        /* Ekrana tam sığan iki eşit parça */
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 10px; /* Ürünler arasındaki boşluğu küçülttük (önceki 15-30px idi) */
        width: 100%;
        margin: 0 auto; /* Ortala */
        padding: 0; /* İç boşluğu sıfırla */
    }

    /* 3. Ürün kartının dış sınırlarını temizle */
    .product-card {
        width: 100%;
        box-sizing: border-box; /* Kenarlıklar genişliğe dahil olsun */
        margin: 0;
    }

    /* 4. Sidebar ve İçerik Düzeni */
    .category-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .product-content {
        width: 100%;
        padding: 0;
        margin-top: 15px; /* Menü ile ürünler arasına az boşluk */
    }

    /* 5. Mobilde Sidebar (Yatay Menü) Ayarı */
    .sidebar {
        width: 100%;
        padding: 0 5px 15px 5px; /* Hafif boşluk */
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
}





/* --- HEADER DÜZELTMELERİ (SON RÖTUŞLAR) --- */

/* 1. Header Kapsayıcısı */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* Logoyu merkeze almak için */
    position: relative; /* Diğer elemanları buna göre konumlandıracağız */
    padding: 0 20px;
    height: 80px;
}

/* 2. Logo Ayarları (Tam Ortada ve Okunur) */
.site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* En üstte olsun */
    text-align: center;
    width: auto;
    white-space: nowrap; /* Yazının alt satıra düşmesini engeller */
}

.site-logo a {
    font-size: 24px; /* Mobilde çok büyük olmasın */
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-decoration: none;
    background-color: transparent; /* Arka planı temizle */
}

/* 3. Masaüstü Menü (Çakışmayı önlemek için sınırlandırıyoruz) */
.desktop-nav {
    position: absolute;
    left: 20px; /* Soldan başla */
    display: flex;
    gap: 20px;
    z-index: 5;
}

/* 4. Mobil Menü Butonu (Üç Çizgi - Tam Sağda) */
.mobile-toggle {
    display: none; /* Masaüstünde gizli, aşağıda açacağız */
    position: absolute;
    right: 20px; /* SAĞA YASLA */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 20;
    padding: 5px; /* Tıklama alanını genişlet */
}

/* --- KRİTİK AYAR: BREAKPOINT (Kırılma Noktası) --- */
/* Ekran 1200px'den küçükse (Laptop ve Tabletler dahil) Menüyü Gizle, Mobili Aç */
/* Bu sayede menü yazıları asla logoya değmez */
@media (max-width: 1200px) {
    /* Masaüstü menüsünü gizle */
    .desktop-nav {
        display: none !important;
    }

    /* Mobil butonu (üç çizgi) göster */
    .mobile-toggle {
        display: block !important;
    }

    /* Logo boyutunu mobilde biraz küçült, taşmasın */
    .site-logo a {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    /* Header yüksekliğini mobilde biraz düşür */
    .header-inner {
        height: 70px;
    }
}

/* --- Çok küçük ekranlar (Telefonlar) için ince ayar --- */
@media (max-width: 400px) {
    .site-logo a {
        font-size: 18px; /* İyice küçült */
        letter-spacing: 1px;
    }
}




/* --- LIGHTBOX (TAM EKRAN GALERİ) --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Arka planı karart */
    z-index: 10000; /* En üstte olsun */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Arka planı bulanıklaştır */
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pop-up efekti */
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* Kapatma Butonu (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--secondary-color); transform: rotate(90deg); }

/* Oklar (Sağ - Sol) */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    z-index: 10002;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Mobilde okları biraz küçültelim */
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 18px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}


/* --- LIGHTBOX CSS GÜNCELLEMESİ (YUMUŞAK GEÇİŞ İÇİN) --- */

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    
    /* BAŞLANGIÇ DURUMU (Görünür) */
    opacity: 1;
    transform: scale(1);
    
    /* Geçiş Animasyonu (0.4 saniye, yumuşak) */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; 
}

/* Resim değişirken alacağı hal (Görünmez ve hafif küçük) */
.lightbox-img.changing {
    opacity: 0;
    transform: scale(0.95); /* Hafifçe geriye gider */
}