/* =================================== */
/* GENEL AYARLAR VE RENK PALETİ */
/* =================================== */
:root {
    --ana-renk: #0a4c8a; /* Koyu Mavi (Genel buton ve başlıklar) */
    --koyu-mavi-yazi: #003366; /* Menü yazıları için koyu mavi */
    --ikinci-renk: #f0f0f0; /* Açık Gri */
    --yazi-renk: #333; /* Koyu Gri */
    --acik-gri: #f9f9f9;
}

/* Temel Stil Ayarları */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--yazi-renk);
    background-color: #fff; /* ESKİ HALİNE DÖNDÜRÜLDÜ: Dalga/açık renk kaldırıldı */
    /* background-image ve background-attachment kaldırıldı */
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* =================================== */
/* HEADER VE NAVİGASYON */
/* =================================== */
.header {
    background-color: #fff; /* ESKİ HALİNE DÖNDÜRÜLDÜ */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 100px; /* Logo boyutu */
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: var(--koyu-mavi-yazi); /* Menü yazıları için koyu mavi */
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--ana-renk);
}

/* =================================== */
/* DİL DEĞİŞTİRİCİ STİLLERİ */
/* =================================== */

.header .container {
    flex-wrap: wrap; 
}

.navbar {
    order: 1; 
    margin-right: 20px;
}

.language-switcher {
    margin-left: auto; 
    margin-right: 0; 
    order: 2; 
    margin-top: 0;
    margin-bottom: 0;
    text-align: right; 
}

.language-switcher button {
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 5px;
    border: 1px solid var(--ana-renk);
    background-color: transparent;
    color: var(--ana-renk);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex; 
    align-items: center;
}

.language-switcher button:hover {
    background-color: var(--ana-renk);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* DİL DEĞİŞTİRİCİ RESİM STİLİ (Bayraklar için) */
.flag-icon {
    width: 20px; 
    height: 15px; 
    margin-right: 5px; 
    vertical-align: middle; 
    border: 1px solid #ccc; 
}


/* =================================== */
/* BANNER STİLLERİ */
/* =================================== */
.banner {
    width: 100%;
    overflow: hidden;
    height: 600px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.slideshow-container img {
    object-fit: contain; 
    width: 100%;
    height: 100%;
    display: block;
}

/* Kayan slaytlar için stil */
.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

/* Fade efekti */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 } 
    to { opacity: 1 }
}

/* =================================== */
/* BÖLÜM STİLLERİ */
/* =================================== */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--ana-renk);
    font-size: 2.5rem;
}

/* =================================== */
/* ÜRÜNLER BÖLÜMÜ */
/* =================================== */
.urunler-main {
    background-color: var(--ikinci-renk);
}

.urun-kategori {
    margin-bottom: 50px;
}

.urun-kategori h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--ana-renk);
}

.urunler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.urun-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.urun-item:hover {
    transform: translateY(-5px);
}

/* ÜRÜN GÖRSELİ STİLİ */
.urun-item img {
    width: 100%;
    height: 350px; 
    object-fit: contain; 
    background-color: #fff; 
    margin-bottom: 15px;
}

.urun-item h4 {
    color: var(--ana-renk);
    font-size: 1.2rem;
    margin-bottom: 10px;
}


/* =================================== */
/* ÜRÜN DETAY ALANLARI STİLİ */
/* =================================== */
.product-details-area {
    margin-top: 60px;
    padding: 30px;
    background-color: var(--acik-gri);
    border-radius: 8px;
}

.product-detail-box {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-detail-box h3 {
    color: var(--ana-renk);
    border-bottom: 2px solid var(--ikinci-renk);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.detail-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Görsel alanının maksimum genişliği kısıtlandı */
.detail-img { 
    flex: 1;
    min-width: 250px;
    max-width: 350px; 
    text-align: center;
}

/* Görselin kendisinin maksimum genişliği kısıtlandı */
.detail-img img {
    max-width: 300px; 
    width: 100%; 
    height: auto;
    border-radius: 5px;
    display: block; 
    margin: 0 auto;
}

.detail-text {
    flex: 2;
    min-width: 300px;
}

.detail-text table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-text th, .detail-text td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: left;
}

.detail-text h4 {
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--ana-renk);
}

.detail-text th {
    background-color: var(--ikinci-renk);
    font-weight: 600;
    width: 35%;
}

/* Renk Değiştirme Düğmeleri Stili */
.color-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    padding: 0;
}

.color-btn:hover {
    border-color: var(--ana-renk);
    transform: scale(1.1);
}

/* Renk Sınıfları */
.color-btn-kirmizi { background-color: #c0392b; }
.color-btn-mavi { background-color: #2980b9; }
.color-btn-sari { background-color: #f1c40f; }
.color-btn-siyah { background-color: #333333; }

/* Teklif Al butonu stili */
.button-contact {
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 20px; 
    background-color: var(--ana-renk); 
    color: white; 
    text-decoration: none; 
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button-contact:hover {
    background-color: #083d72;
}


/* Galeri Bölümü */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.galeri-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeri-grid img:hover {
    transform: scale(1.03);
}

/* =================================== */
/* FOOTER BÖLÜMÜ */
/* =================================== */
.footer {
    background-color: var(--ana-renk);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* =================================== */
/* İLETİŞİM SAYFASI STİLİ */
/* =================================== */
.contact-info p {
    margin-bottom: 10px;
}

.contact-form form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--acik-gri);
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--yazi-renk);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background-color: var(--ana-renk);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.contact-form button[type="submit"]:hover {
    background-color: #083d72;
}

.harita {
    margin-top: 40px;
    text-align: center;
}

.harita iframe {
    width: 100%;
    max-width: 1000px;
    height: 450px;
}

/* =================================== */
/* ANASAYFA TEK SÜTUNLU SAYAÇ DÜZENİ */
/* =================================== */

.main-text-area {
    /* Tam genişlik kullanır */
    width: 100%;
    padding-right: 0;
    
    /* Sayaçları merkezler */
    display: flex; 
    flex-direction: column;
    align-items: center; 
    text-align: center; 
}

/* YENİ ÜÇ ELEMANLI SAYAÇ GRİDİ DÜZENİ */
.counter-grid-center {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: 800px; /* Sayaç bloğunun maksimum genişliğini ayarlar */
    margin: 0 auto;
    padding: 40px 0;
}

/* Sayaç Ayırıcı Görsel Stili (Tüm Ürünler Görseli) */
.counter-separator-image {
    max-width: 450px; /* Görselin maksimum genişliği */
    padding: 0 20px;
    flex-shrink: 0; 
    cursor: pointer;
}

.counter-separator-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid var(--ikinci-renk); 
    border-radius: 8px;
}

/* SAYAÇ STİLLERİ */
.counter-item {
    flex: 1;
    max-width: 150px; 
    padding: 0 10px;
}

.counter-item .stars {
    color: var(--ana-renk);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

.counter-number-wrapper {
    margin: 10px 0;
}

.counter-number {
    font-size: 4rem; /* Büyük rakam */
    font-weight: 800;
    color: var(--ana-renk);
    display: inline-block;
}

.counter-line {
    border: 0;
    height: 3px;
    width: 60px;
    background-color: var(--ana-renk);
    margin: 10px auto 0;
}


/* =================================== */
/* LIGHTBOX/MODAL STİLLERİ */
/* =================================== */

.modal-lightbox {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

/* Kapatma Butonu */
.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Modal İçeriği (Görsel) */
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px; 
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Açıklama metni */
.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Görsel açılış animasyonu */
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}


/* =================================== */
/* RESPONSIVE DÜZENLEME (Küçük ekranlar için) */
/* =================================== */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Navigasyonu tam genişlik yapıp aşağı almak */
    .navbar {
        width: 100%;
        margin-right: 0;
        order: 3; 
        text-align: center;
    }

    .navbar ul {
        justify-content: space-around;
        width: 100%;
        padding: 10px 0;
        gap: 10px; 
    }

    .navbar ul li a {
        font-size: 0.9rem; 
        font-weight: 500;
    }
    
    /* Dil değiştiriciyi logonun yanına (sağ üste) taşıma */
    .language-switcher {
        width: auto;
        margin-left: auto;
        margin-right: 0;
        order: 1; 
        align-self: flex-start;
    }
    
    .logo {
        order: 1;
    }
    
    .slideshow-container, .banner {
        height: 400px; 
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    /* Ürün detay kutularını küçük ekranda alt alta hizala */
    .detail-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-img, .detail-text {
        min-width: 100%;
    }
    
    /* ÜRÜN GRİD'İNİ MOBİLDE DAHA KOMPAKT YAPMA */
    .urunler-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .urun-item img {
        height: 250px; 
    }
    
    /* İLETİŞİM SAYFASI FORMU VE HARİTA DÜZENLEMESİ */
    .contact-form form {
        margin: 20px 0;
        padding: 15px;
    }
    
    .harita iframe {
        width: 100%;
        height: 300px;
    }
    
    /* MOBİL DÜZENLEME: Sayaçları dikey hale getir */
    .main-text-area {
        width: 100%;
        min-width: 100%;
    }
    
    .counter-grid-center {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }
    
    .counter-separator-image {
        padding: 20px 0;
        max-width: 80%;
    }
    
    .counter-number {
        font-size: 3rem;
    }
}