/* Yapı + Poppins Font + Soft Renk Paleti + Responsive Kurallar */

:root {
    /* BAYANLARA YÖNELİK SOFT RENK PALETİ */
    --primary-color: #3c3b40;      /* Koyu Vurgu/Metin Rengi (Yumuşak siyah) */
    --secondary-color: #9c879d;    /* Açık Mor/Lavanta Gri (Küçük linkler, ikonlar) */
    --accent-color: #d49494;       /* Ana Vurgu Rengi (Soft Gül Kurusu) */
    --background-color: #ffffff; 
    --light-gray: #fdf2f4;         /* Çok Açık Pembe/Krem (Banner ve Ayırıcılar) */
    --vurgu-mor: rgb(112, 48, 160); /* Üst ve Alt Bant Rengi */
    --max-width: 1200px;
}

/* Genel Sıfırlama */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Only için yumuşak kaydırma (Smooth Scroll) eklenmiştir */
html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease; 
}

a:hover {
    color: var(--accent-color);
}

/* ÜST BANTTAKİ LİNKLERİN RENGİ BEYAZ OLACAK */
.top-link {
    color: #fff !important; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.top-link:hover {
    color: var(--accent-color) !important; 
}

/* Sadece ana içerik (ürün listesi, gridler) bu kısıtlamaya tabidir */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================== */
/* 0. ÜST BANT VE SEPET SİMGESİ STİLİ   */
/* ==================================== */

/* Üst Bant Stili - TAM GENİŞLİK */
.top-announcement-bar {
    background-color: var(--vurgu-mor);
    color: #fff;
    padding: 8px 0; 
    text-align: center;
    border-bottom: none;
    width: 100%; 
}

/* İçeriği merkeze alan kısım */
.announcement-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 20px; 
    font-size: 0.9rem;
    flex-wrap: wrap;
}


/* Sepet Simgesi Kapsayıcı Stili */
.cart-icon-container {
    position: relative;
    line-height: 1; 
    transition: color 0.3s ease;
}

.cart-icon-container i {
    display: block;
    font-size: 4.4rem; 
    color: var(--accent-color); 
    transition: color 0.3s ease;
}

.cart-count {
    position: absolute;
    top: -5px; 
    right: -8px; 
    background-color: var(--vurgu-mor); 
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 22px; 
    text-align: center;
    line-height: 1.2;
    z-index: 10;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.cart-icon-container:hover i {
    color: var(--vurgu-mor);
}


/* ==================================== */
/* 1. HEADER VE YENİ BİLEŞENLER STİLİ   */
/* ==================================== */

/* HEADER Stili - TAM GENİŞLİK */
.header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--light-gray);
    width: 100%; 
    padding: 0; 
}

/* Header İçeriğini Merkeze Alan Kapsayıcı */
.header-inner {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 15px 20px; 
    gap: 20px;
}

/* Logo Stili */
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap; 
}

/* Arama Çubuğu Stili */
.search-bar {
    display: flex;
    flex-grow: 1; 
    max-width: 500px; 
    border: 1px solid var(--secondary-color); 
    border-radius: 25px; 
    overflow: hidden;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 10px 20px; 
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.search-bar button {
    background: none; 
    border: none;
    padding: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
}

/* Yeni Kullanıcı Aksiyonları ve Dil Desteği */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Aksiyon grubunun elemanları arası boşluk artırıldı (Sepet/Üyelik) */
.action-group {
    display: flex;
    align-items: center;
    gap: 25px; 
}

/* Üye Ol/Bayimiz Ol (Sade linkler) - KALIN PUNTO */
.action-item {
    font-size: 0.95rem; 
    font-weight: 700; 
    white-space: nowrap;
}

.member-link:hover {
    color: var(--vurgu-mor); 
}

/* Dil ve Para Birimi Seçicileri - BUTON GÖRÜNÜMÜ */
.locale-support {
    display: flex;
    gap: 5px;
}

.language-select, .currency-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px; 
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    font-weight: 500;
    text-align: center;
    min-width: 60px; 
    transition: all 0.2s ease; 
}

.language-select:hover, .currency-select:hover {
    border-color: var(--vurgu-mor);
    background-color: var(--light-gray);
    color: var(--vurgu-mor); 
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    margin-left: 20px;
}


/* ==================================== */
/* 2. SABİT SLIDER/BANNER STİLİ         */
/* ==================================== */

.slider-container {
    position: relative;
    max-width: 100%; 
    margin-bottom: 40px;
    overflow: hidden; 
    border-radius: 5px;
    
    height: 0; 
    padding-bottom: 40%; 
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; 
}

.slide {
    width: 100%; 
    height: 100%; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; 
    position: relative;
    
    background-color: var(--light-gray); 
}

/* Slider içeriği merkeze alınır ve kısıtlanır */
.slide-content {
    background: rgba(0, 0, 0, 0.4); 
    padding: 20px 40px;
    border-radius: 5px;
    max-width: var(--max-width); 
    margin: 0 20px;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color); 
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #c98282; 
}


/* YENİ: KATEGORİ/RESİM BLOKLARI STİLİ (SLIDER ALTI) */
.category-blocks {
    max-width: var(--max-width); /* Ana içerik genişliğine uyum */
    margin: 40px auto; /* Üstten ve alttan boşluk, yatayda ortalama */
    padding: 0 20px;
    display: grid;
    /* 5 eşit sütun, ortadaki boşluklar */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; /* Bloklar arası boşluk */
    justify-content: center; /* Yatayda ortalama */
    align-items: start; /* Dikeyde hizalama */
}

.category-block {
    text-align: center;
    text-decoration: none; /* Link olduğu için alt çizgiyi kaldırırız */
    color: var(--primary-color);
    display: block; /* Linkin tüm bloğu kaplaması için */
}

.category-block-image-wrapper {
    width: 150px; /* Sabit genişlik */
    height: 150px; /* Sabit yükseklik, yuvarlak olması için eşit olmalı */
    border-radius: 50%; /* YUVARLAK ŞEKİL */
    overflow: hidden; /* Taşmayı engeller */
    margin: 0 auto 15px auto; /* Dikeyde ortalama ve alttan başlık için boşluk */
    border: 3px solid var(--vurgu-mor); /* ÇERÇEVE RENGİ MOR OLDU */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Hafif gölge */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Hover efekti için geçişler */
}

.category-block:hover .category-block-image-wrapper {
    transform: translateY(-5px) scale(1.02); /* Üzerine gelince hafifçe yukarı ve büyür */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Gölge artar */
    border-color: var(--accent-color); /* Çerçeve rengi GÜL KURUSU olur */
}

.category-block-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görselin çerçeveye sığmasını sağlar */
    display: block;
}

.category-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    /* BAŞLIK RENGİ MOR OLDU */
    color: var(--vurgu-mor); 
    margin-top: 0;
    transition: color 0.3s ease;
}

.category-block:hover h3 {
    /* HOVER RENGİ GÜL KURUSU OLDU */
    color: var(--accent-color); 
}

/* ==================================== */
/* 3. ÖNE ÇIKAN ÜRÜN KARTLARI STİLİ    */
/* ==================================== */

#product-listing h2 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-weight: 700;
    /* BAŞLIK RENGİ MOR OLDU */
    color: var(--vurgu-mor); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding-bottom: 60px;
}

.product-card {
    position: relative; 
    background-color: var(--background-color); 
    
    /* TREND STİLİ: Hafif gölge ve yuvarlak köşeler */
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); 
    
    border-radius: 8px; 
    padding: 0; 
    display: flex; /* İçerik dikey hizalama için */
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Hover'da daha belirgin gölge */
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Ürün linki (resim ve temel bilgileri sarar) */
.product-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1; /* Sepet butonu alta sabitlenir */
}

.product-image-placeholder {
    height: 250px; 
    background-color: var(--light-gray); 
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.product-content-wrapper {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.product-description {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    min-height: 30px; 
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* ÜRÜN ROZETLERİ (YENİ, POPÜLER) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--vurgu-mor); 
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}


/* SEPETE EKLE BUTONU */
.btn-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color); 
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    gap: 5px;
    margin: 0 15px 15px 15px; /* Ürün kartının kenarlarından boşluk */
}

.btn-card:hover {
    background-color: var(--vurgu-mor);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}


/* ==================================== */
/* 4. TAM ÜRÜN LİSTESİ GRUPLARI STİLİ  */
/* ==================================== */

.full-listing-group {
    display: none; /* Varsayılan olarak tüm listeleri gizle */
    /* CSS :target kuralı ile gösterilecektir */
    padding-bottom: 60px;
}

.full-listing-group:target {
    display: block; /* URL'deki #ID eşleşirse göster */
}

.full-listing-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2rem;
    color: var(--vurgu-mor);
    text-transform: uppercase;
}

.product-grid-full {
    display: grid;
    /* Masaüstünde 4 sütunlu düzen */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ==================================== */
/* 5. YENİ: ÜRÜN DETAY SAYFASI STİLİ    */
/* ==================================== */

/* Sayfa Görünürlüğü */
.product-detail-container {
    padding: 60px 20px;
    background-color: var(--background-color); /* Sade Beyaz */
    min-height: 80vh;
    display: none; /* Varsayılan olarak gizle */
    position: relative; /* İçindeki elemanların konumlanması için */
    z-index: 50; /* Diğer listelerin üstünde olması için */
}

/* Sayfa Gösterimi */
#product-detail-page:target {
    display: block; 
}

/* Geri Dön Butonu Stili */
.back-to-list-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--vurgu-mor);
    transition: color 0.3s;
}

.back-to-list-link i {
    font-size: 1.2rem;
}

.back-to-list-link:hover {
    color: var(--accent-color);
}

/* 2 sütunlu grid yapısı: Görsel alanı ve Bilgi alanı */
.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr; /* Görsel alanı daha geniş */
    gap: 60px;
}

/* GÖRSEL ALANI */
.main-image-placeholder {
    height: 550px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--vurgu-mor);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px; /* Scroll için boşluk */
}

.thumbnail-placeholder {
    width: 80px;
    height: 80px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.thumbnail-placeholder:hover {
    border-color: var(--accent-color);
}


/* BİLGİ ALANI */
.detail-info-area {
    padding: 10px 0;
}

.detail-product-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.detail-product-description {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.detail-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.detail-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detail-options select, .detail-options input {
    padding: 10px 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.detail-options select:focus, .detail-options input:focus {
    border-color: var(--vurgu-mor);
}

.detail-options input {
    width: 70px;
    text-align: center;
}

.btn-detail-add-to-cart {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color); 
    color: #fff;
    padding: 15px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    gap: 5px;
}

.btn-detail-add-to-cart:hover {
    background-color: var(--vurgu-mor);
}

.detail-delivery-info {
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.detail-delivery-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* ==================================== */
/* 6. FOOTER STİLİ                      */
/* ==================================== */

.footer {
    background-color: var(--vurgu-mor); 
    color: #fff;
    padding: 40px 0 20px 0;
    width: 100%;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

.footer-section {
    flex: 1;
    min-width: 150px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--accent-color); 
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
    padding-top: 20px;
}


/* ==================================== */
/* 7. YUKARI DÖN BUTONU                 */
/* ==================================== */

#backToTopBtn {
    display: block; /* Varsayılan olarak gösteriyoruz */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

#backToTopBtn:hover {
    background-color: var(--vurgu-mor);
    transform: translateY(-2px);
}


/* ==================================== */
/* 8. RESPONSIVE KURALLAR (TABLET)     */
/* ==================================== */

@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }

    /* 5'li kategori blokları 3'e düşürüldü */
    .category-blocks {
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablette 3 sütun */
    }
    
    .product-grid-full {
        grid-template-columns: repeat(3, 1fr); /* Tam liste de 3 sütun */
    }
    
    .footer-content {
        flex-wrap: wrap; 
        gap: 20px;
    }
    
    .footer-section {
        flex-basis: 45%; 
    }
    
    /* DETAY SAYFASI TABLET UYUMU */
    .detail-content-grid {
        grid-template-columns: 1fr; /* 1 sütun */
        gap: 30px;
    }

    .main-image-placeholder {
        height: 450px;
    }
    
    .detail-product-name {
        font-size: 2rem;
    }
    
    .detail-price {
        font-size: 2.2rem;
    }
}


/* ==================================== */
/* 9. RESPONSIVE KURALLAR (MOBİL)      */
/* ==================================== */

@media (max-width: 768px) {
    
    .top-nav {
        display: none; 
    }

    /* Header Yapısı: Logo sola, aksiyonlar sağa, arama çubuğu alta */
    .header-inner {
        flex-wrap: wrap; 
        padding: 10px 20px;
    }
    
    .logo {
        order: 1;
        flex-grow: 1; 
    }
    
    /* Arama çubuğu tam genişlikte, ikinci sırada */
    .search-bar {
        order: 3;
        max-width: 100%;
        margin-top: 10px; 
    }
    
    /* Aksiyonlar (Sepet/Dil) sağda, üçüncü sırada */
    .header-actions {
        order: 2;
        gap: 10px;
        flex-basis: auto; 
    }

    .action-group {
        gap: 15px;
    }

    .member-link {
        display: none; 
    }
    
    .locale-support {
        display: none; 
    }

    .cart-icon-container i {
        font-size: 2.5rem;
    }
    
    .slide-container {
        padding-bottom: 50%; 
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        display: none; 
    }

    /* 5'li kategori blokları 2'ye düşürüldü */
    .category-blocks {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    
    .category-block-image-wrapper {
        width: 120px; 
        height: 120px;
    }

    /* Ürün listeleri 2 sütuna düşürüldü */
    .product-grid, .product-grid-full {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .product-image-placeholder {
        height: 180px; 
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-section a {
        display: inline-block;
        margin: 0 5px;
    }

    /* DETAY SAYFASI MOBİL UYUMU */
    .main-image-placeholder {
        height: 300px;
    }

    .detail-options {
        flex-direction: column;
    }
    
    .detail-options input {
        width: 100%;
        text-align: left;
    }

    .detail-options select {
        width: 100%;
    }
}