/* --- GENEL VE HEADER STİLLERİ --- */

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Arka plan rengi */
    padding-top: 60px; /* Sabit header için boşluk */
}

/* Ana Header Kapsayıcısı */
.main-header {
    background-color: #ffffff; /* Beyaz arkaplan */
    border-bottom: 1px solid #eeeeee; /* Alt çizgi */
    padding: 10px 0;
    position: fixed; /* Header'ı sayfaya yapıştır */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header Kaybolma Efekti */
.main-header.hidden {
    top: -100px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Alanı */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 700;
    color: #383f48;
}

.logo img {
    width: 35px;
    height: auto;
    margin-right: 5px;
}

.logo-text {
    font-weight: 601; /* 600 yaptım */
}

/* Menü Alanı */
.main-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 40px;
}

.main-nav a {
    text-decoration: none;
    color: #383f48;
    font-size: 0.95em;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3e6df9;
}

/* Telefon Butonu */
.phone-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #4285F4;
    color: #ffffff;
    font-size: 1em;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.phone-button:hover {
    background-color: #3a75e0;
}

/* WhatsApp ikonu */
.phone-button .fa-whatsapp {
    margin-right: 8px;
    font-size: 1.2em;
}

/* --- GİRİŞ (HERO) SLIDER STİLLERİ --- */

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

/* Slayt Üstündeki Yazı Alanı */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-family: "Archivo Black", sans-serif;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Ana Buton Stili */
.btn-primary {
    background-color: #3e6df9;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2b55c9;
}

/* --- TANITIM/HAKKIMIZDA BÖLÜMÜ STİLLERİ --- */

.intro-section {
    padding: 60px 0;
    background-color: #f7faff;
}
.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Sol Alan: İkon ve Metin */
.intro-icon-area {
    flex-basis: 35%;
    min-width: 300px;
    text-align: center;
    padding-top: 20px;
}

.service-icon {
    max-width: 100%;
    height: auto;
}

.icon-text {
    font-family: "Archivo Black", sans-serif;
    font-size: 2.5em;
    color: #4285F4;
    line-height: 1;
    margin-top: -40px;
}

/* Sağ Alan: Yazı İçeriği */
.intro-content-area {
    flex-basis: 65%;
}

.intro-content-area h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #383f48;
    margin-top: 0;
    margin-bottom: 20px;
}

.intro-content-area .text-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.intro-content-area .text-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.intro-content-area p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* Vurgulu kelimeler */
.highlight {
    font-weight: 700;
    color: #4285F4;
}

/* --- ÜRÜN KATEGORİLERİ BÖLÜMÜ STİLLERİ --- */

.category-section {
    padding: 60px 0;
    background-color: #f2f2f2;
    text-align: center;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: "Archivo Black", sans-serif;
    font-size: 2.2em;
    color: #383f48;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.category-item {
    background-color: transparent;
    border-radius: 8px;
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* üstten hizala */
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 280px; /* biraz daha yüksek */
}
.category-item a {
    text-decoration: none; /* Link alt çizgisini kaldır */
}

.category-item:hover {
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.category-item h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #383f48;
    margin-top: 15px;
    text-transform: uppercase;
}

.category-item img {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    object-fit: cover; /* Görseli kırparak sığdır */
    object-position: center; /* Ortadan kırpsın */
    border-radius: 4px;
}

/* --- SABİT WHATSAPP BUTONU STİLLERİ --- */

.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #1da851;
    transform: scale(1.05);
}

/* --- HİZMET VURGULARI (FEATURES) BÖLÜMÜ STİLLERİ --- */

.features-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex-basis: 33.333%;
    max-width: 350px;
    padding: 20px;
}

/* İmaj ikonları için boyutlandırma */
.feature-img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.feature-item h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #383f48;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}


/* --- FOOTER (ALT BİLGİ) STİLLERİ --- */

.main-footer {
    background-color: #383f48; /* Koyu Gri Arkaplan */
    color: #ffffff;
    padding: 50px 0 0;
    font-size: 0.95em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex-basis: calc(25% - 25px); /* %25'lik 4 sütun kuralı */
    min-width: 200px;
    /* Bu min-width değeri, mobil kuralların tersine, büyük ekranda yatay kalmasını sağlar. */
}

/* Footer Logosu */
.footer-logo {
    font-family: "Archivo Black", sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4285F4;
}

/* Başlıklar */
.main-footer h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* İletişim Detayları */
.contact-info p {
    margin: 8px 0;
    line-height: 1.5;
    color: #ccc;
}
.contact-detail a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-detail a:hover {
    color: #4285F4;
}
.contact-detail i {
    margin-right: 8px;
    color: #4285F4;
}

/* Hızlı Linkler ve Servis Bölgeleri Listesi */
.quick-links ul, .service-areas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links a, .service-areas li {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}
.quick-links a:hover {
    color: #4285F4;
}

/* Sosyal Medya ve Ödeme İkonları */
.payment-icons i {
    font-size: 2.2em;
    margin-right: 10px;
    color: #ccc;
}

.social-icons a {
    font-size: 2em;
    color: #4285F4;
    margin-right: 10px;
    transition: color 0.2s;
}
.social-icons a:hover {
    color: #ffffff;
}

/* Telif Hakkı (Footer Bottom) */
.footer-bottom {
    background-color: #2a3038;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85em;
    color: #999;
}


/* --- YENİ SAYFALAR İÇİN GENEL STİLLER (CESİTLERİMİZ.HTML) --- */

/* Hero Slider'ın yerini alan sabit başlık alanı */
.page-hero-title {
    height: 300px; /* Sabit yükseklik */
    background-image: url('images/urun_hero_bg.jpg'); /* Resim yolu */
    background-size: cover; /* Resmi kapla */
    background-position: center; /* Resmi ortala */
    
    /* BURASI ÖNEMLİ: Flexbox ile ANA KAPSAYICIYI ortala */
    display: flex; /* Flexbox'ı etkinleştir */
    justify-content: center; /* Yatayda ortala */
    align-items: center; /* Dikeyde ortala */
    
    /* KARARTMA VE RENK KURALLARI */
    position: relative; /* İçindeki content'in position:absolute'unu yönetmek için */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5); /* Görsel üzerine yarı saydam siyah katman */
    overflow: hidden; /* Taşmayı engelle */
}

/* Hero içeriği (yazılar) */
.page-hero-title .hero-content {
    /* Buradaki position: absolute; kuralını KALDIRIYORUZ! */
    /* Çünkü parent (page-hero-title) zaten flex olduğu için gerek yok */
    
    text-align: center; /* İçindeki metni ortala */
    color: white; /* Yazı rengi beyaz */
    z-index: 2; /* Arkaplanın üzerinde kalması için */
    max-width: 800px; /* Yazının maksimum genişliği */
    width: 100%; /* İçerik tüm genişliği kapsasın */
    padding: 0 20px; /* Kenarlardan boşluk bırak, mobil uyum için */
    box-sizing: border-box; /* Padding dahil genişlik hesapla */
    
    /* Ekstra kaydırmayı kaldıralım, çünkü flexbox zaten ortalayacak */
    transform: none; 
    top: auto; 
    left: auto;
}
.page-hero-title h1 {
    font-size: 3em;
    font-family: "Archivo Black", sans-serif;
    margin: 0;
    color: white;
}

.page-hero-title p {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
    color: white;
}


/* --- YENİ ÜRÜN KARTLARI STİLLERİ (CESİTLERİMİZ.HTML) --- */

.product-list-section {
    max-width: 1200px; 
    margin: 60px auto;
    padding: 0 20px;
    background-color: #f0f0f0; /* İSTEDİĞİN AÇIK GRİ ARKA PLAN */
    border-radius: 8px;
    padding: 40px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.main-section-title {
    text-align: center;
    font-family: "Archivo Black", sans-serif;
    font-size: 2.5em;
    color: #383f48;
    margin-bottom: 40px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.product-category-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: white; /* Kartların içi beyaz olsun */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-image-area {
    flex-basis: 40%;
    max-width: 400px;
    text-align: center;
}

.card-image-area img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 250px;
    object-fit: contain;
}

.card-content {
    flex-basis: 60%;
}

.card-content h3 {
    font-family: "Archivo Black", sans-serif;
    font-size: 2em;
    color: #4285F4; /* Başlık Rengi: Mavi yapalım */
    margin-top: 0;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Ters sıralama (Kuruyemişler için) */
.product-category-card.reverse {
    flex-direction: row-reverse;
}

.product-list {
    list-style: none; /* Noktalı listeyi kaldıralım */
    padding: 0;
    margin: 0;
}

.product-list li {
    font-size: 1em;
    padding: 5px 0 5px 25px;
    color: #383f48;
    position: relative;
}

.product-list li::before {
    content: "\f00c"; /* Font Awesome Check İkonu */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #25d366;
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 0.9em;
}


/* --- MOBİL UYARLAMALAR --- */

/* --- YENİ EKLENECEK MOBİL MENÜ STİLLERİ --- */

/* Hamburger İkonu */
.menu-toggle {
    display: none; /* Masaüstünde gizle */
    font-size: 1.5em;
    color: #383f48;
    cursor: pointer;
    order: 1; /* Logodan hemen sonra gelsin */
    padding: 5px;
}

/* Tablet ve Büyük Mobil Cihazlar (992px'e kadar) */
@media (max-width: 992px) {
    .intro-container {
        flex-direction: column;
        align-items: center;
    }

    .intro-icon-area {
        margin-bottom: 30px;
        min-width: unset;
    }

    .icon-text {
        margin-top: -50px;
    }

    .footer-column {
        flex-basis: calc(50% - 15px); /* Tablette ikişerli diz */
        margin-bottom: 30px;
    }
}

/* Mobil Cihazlar (768px'e kadar) */
@media (max-width: 768px) {
    /* Header/Navigasyon Gizleme - Mobil Menü Aktif */
    .menu-toggle {
        display: block; /* Hamburger ikonunu göster */
        margin-left: 10px;
    }
    
    .header-container {
        justify-content: space-between; /* Header içindeki öğeleri yan yana yay */
    }

    .main-nav {
        /* Menüyü dikey yap ve ekranın tamamını kaplaması için ayarla */
        position: absolute;
        top: 60px; /* Header yüksekliği kadar aşağıdan başla */
        left: 0;
        width: 100%;
        height: auto; /* İçeriğe göre yükseklik */
        background-color: #ffffff;
        flex-direction: column; /* Linkleri alt alta diz */
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none; /* Varsayılan olarak menüyü gizle */
        z-index: 999;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    .main-nav a:last-child {
        border-bottom: none;
    }

    /* JavaScript ile aktif olacak sınıf */
    .main-nav.open {
        display: flex;
    }

    /* Telefon butonu ve logo hizalamasını mobil için ayarla */
    .logo {
        margin-right: auto; /* Butonu sağa iter */
    }
    .phone-button {
        /* Mobil menü ikonunun yanında kalsın */
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .phone-button .fa-whatsapp {
        margin-right: 5px;
        font-size: 1em;
    }

    /* Hero Slider ve İçerik */
    .hero-slider {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    
    /* Intro Bölümü */
    .intro-icon-area {
        min-width: 100%;
    }

    /* Kategori Bölümü */
    .category-grid {
        flex-direction: column;
        gap: 20px;
    }
    .category-item {
        flex-basis: 100%;
        max-width: 100%;
        min-height: unset;
        padding: 10px;
    }

    /* Features Bölümü Mobil Düzeni */
    .features-container {
        flex-direction: column;
        align-items: center;
    }
    .feature-item {
        flex-basis: 100%;
        max-width: 90%;
        margin-bottom: 30px;
    }

    /* YENİ ÜRÜN KARTLARI (CESİTLERİMİZ.HTML) MOBİL DÜZENİ */
    .product-category-card,
    .product-category-card.reverse {
        flex-direction: column; /* Mobil cihazda alt alta diz */
        text-align: center;
    }
    .card-image-area,
    .card-content {
        flex-basis: 100%;
        max-width: 100%;
    }
    .product-list {
        text-align: left; /* Listeyi tekrar sola hizala */
        padding-left: 20px;
    }
    .main-section-title {
        font-size: 2em;
    }
    .product-list-section {
        padding: 20px 10px;
        border-radius: 0;
    }
    .card-content h3 {
        font-size: 1.5em;
    }
    
    /* Footer Mobil Düzeni */
    .footer-column {
        flex-basis: 100%;
        min-width: unset;
        text-align: center;
    }
    .footer-column h4 {
        text-align: center;
    }
    .contact-detail {
        text-align: center;
    }
    .quick-links ul, .service-areas ul {
        text-align: center;
    }
    .payment-icons, .social-icons {
        text-align: center;
    }

    /* ============================================== */
    /* MOBİL UYUMLULUK: Hero Butonları için Düzenleme */
    /* ============================================== */
    
    /* Hero İçerik Alanı */
    .hero-content {
        /* Butonlar alt alta sıralanacak şekilde hizalamayı değiştir */
        text-align: center;
        /* Metin okunurluğunu artırmak için genişliği artırabilirsin */
        max-width: 90%; 
        padding: 20px;
    }

    /* Hero Başlık ve Paragrafı (Metin Boyutu Ayarı) */
    .hero-content h1 {
        font-size: 1.8em; /* Başlığı küçült */
    }
    .hero-content p {
        font-size: 1em; /* Paragrafı küçült */
    }

    /* Butonların Genel Stili */
    .hero-content a.btn-primary {
        /* Butonları tam genişlikte yap ve üstten biraz boşluk bırakarak alt alta geçmesini sağla */
        display: block;
        width: 100%; /* Tam genişlik */
        max-width: 300px; /* Çok geniş ekranda bile kontrol altında tut */
        margin: 10px auto 0 auto; /* Üstten boşluk ve ortalama */
        font-size: 1em; /* Mobil için uygun boyutta tut */
    }
    
    /* İkinci ve sonraki butonlara ek boşluk verme (zaten margin-top var) */
    .hero-content a.btn-primary + a.btn-primary {
        margin-top: 15px;
    }
    
    /* Slayt Görsellerini Mobil Cihaza Daha İyi Odaklama (Opsiyonel) */
    .hero-slider img {
        /* Görselin yüksekliğini artırarak alanın daha iyi kaplanmasını sağla */
        height: 100vh;
        object-fit: cover;
        object-position: 50% 50%; /* Görseli ortala */
    }
}

/* Küçük Mobil Cihazlar (576px'e kadar) */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8em;
    }
}