/* =================================================================
   1. Global Ayarlar, Sıfırlama ve Tam Sayfa Yapısı
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Tam yükseklik için */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;

    /* Footer'ı en alta sabitlemek için Flexbox yapısı */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ana içerik alanını (header/footer hariç) esnet */
main.content-wrapper {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
    color: #005a9c;
    transition: color 0.3s ease;
}

a:hover { color: #003d6a; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img { max-width: 100%; height: auto; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h1, h2, h3, h4 { font-weight: 700; margin-bottom: 15px; color: #222; }

/* =================================================================
   2. Header (Üst Bar ve Ana Menü)
   ================================================================= */

.header-top {
    background-color: #333;
    color: #eee;
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span { margin-right: 20px; }
.top-left i { margin-right: 5px; color: #007bff; }
.top-right a { color: #fff; margin-left: 20px; font-weight: 500; }
.top-right a:hover { color: #007bff; }

.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Mobil menü butonu için */
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex; /* Masaüstünde varsayılan */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li { position: relative; margin-left: 25px; }
.main-nav a { color: #333; font-weight: 500; padding: 10px 0; display: block; }
.main-nav a:hover { color: #005a9c; }

/* 2. Seviye Alt Menü */
.main-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 220px;
    z-index: 1000;
    flex-direction: column; /* Dikey sıralama */
}

.main-nav li:hover > ul { display: block; }

.main-nav li ul li { margin: 0; position: relative; }

.main-nav li ul a {
    padding: 12px 20px;
    white-space: nowrap;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav li ul a:hover { background-color: #f9f9f9; }

/* 3. Seviye Alt Menü */
.main-nav li ul ul {
    top: 0;
    left: 100%; /* Sağda açıl */
}

.main-nav li ul a .fa-chevron-right { font-size: 0.7em; color: #aaa; }

/* CTA Butonu */
.cta-button {
    background-color: #005a9c;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.cta-button:hover { background-color: #004475; color: #fff; }

/* Kayan (Sticky) Menü */
/* Kayan (Sticky) Menü (GÜÇLENDİRİLDİ) */
.main-header.scrolled,
.home-page .main-header.scrolled { /* Seçiciyi daha güçlü hale getirdik */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;

    /* Artık !important'a gerek kalmadı, çünkü daha belirgin bir kural yazdık */
    top: 0;

    /* Transparanlığı kaldır (anasayfada bile) */
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Mobil Menü Hamburger Butonu (header.php'ye eklendi) */
.mobile-menu-toggle {
    display: none; /* Varsayılan olarak gizli */
    font-size: 1.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* =================================================================
   3. Anasayfa Slider (Duman/Ken Burns Efekti)
   ================================================================= */

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1) translate(-2%, 0); /* Hafif zoom ve kayma */
        opacity: 1;
    }
}

.slider-container {
    width: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #222; /* Resim yüklenmezse */



}
/* YENİ EKLENDİ: Sadece anasayfada slider'ı tam ekran yap */
.home-page .slider-container {
    height: 100vh; /* Ekran yüksekliği kadar */
    min-height: 600px; /* Çok kısa ekranlar için min. yükseklik */
}
.slide {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out; /* Geçişi yavaşlattık */
}

/* Aktif slayta animasyon uygula */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    /* Duman/Ken Burns animasyonu */
    animation: kenburns 7s ease-out forwards; /* 7 saniye (JS'deki 5s'den uzun) */
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.slide-content h1 { color: #fff; font-size: 3rem; }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }
.slide-content .cta-button { background-color: #fff; color: #005a9c; }
.slide-content .cta-button:hover { background-color: #eee; }

/* =================================================================
   4. Sayfa Başlığı (Page Header)
   ================================================================= */

.page-header {
    background-color: #004475;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { font-size: 1rem; color: #ddd; }
.page-header a { color: #fff; text-decoration: underline; }

/* =================================================================
   5. Ürün Detay Sayfası (product.php)
   ================================================================= */

.product-detail {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.detail-image img {
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-content > div { margin-bottom: 30px; }

.stock-status { display: flex; gap: 10px; flex-wrap: wrap; }
.stock-badge { font-size: 0.9rem; font-weight: 700; padding: 8px 15px; border-radius: 50px; }
.stock-badge.stock-new { background-color: #e6f7ff; color: #005a9c; }
.stock-badge.stock-used { background-color: #fffbe6; color: #d48806; }

.usage-info h3 { border-bottom: 2px solid #005a9c; padding-bottom: 10px; display: inline-block; }

.specs-table table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.specs-table tr:nth-child(odd) td { background-color: #f9f9f9; }
.specs-table td:first-child { font-weight: 500; color: #555; width: 40%; }

/* Teklif Formu */
.quote-form {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}
.form-group textarea { min-height: 100px; resize: vertical; }

.submit-button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-button:hover { background-color: #218838; }

/* =================================================================
   6. Footer (footer.php)
   ================================================================= */

footer#iletisim {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 60px 0 0;
    width: 100%;
    flex-shrink: 0; /* body flex yapısında küçülmesin */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 20px; }
.footer-col p { margin-bottom: 10px; line-height: 1.7; }
.footer-col a { color: #ecf0f1; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #34495e; padding: 20px 0; text-align: center; font-size: 0.9rem; }


/* =================================================================
   7. MOBİL UYUMLULUK (Responsive)
   ================================================================= */

@media (max-width: 992px) {
    .main-header .container {
        justify-content: space-between;
    }

    /* Hamburger Menüyü Göster */
    .mobile-menu-toggle {
        display: block;
    }

    /* Ana Menüyü Gizle ve Dikey Hale Getir */
    .main-nav {
        display: none; /* Varsayılan olarak gizle */
        position: absolute;
        top: 100%; /* Header'ın hemen altı */
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Javascript ile eklenecek .active sınıfı */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column; /* Dikey sırala */
    }

    .main-nav li {
        margin-left: 0;
    }

    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Alt menüleri statik hale getir */
    .main-nav li ul,
    .main-nav li ul ul {
        position: static;
        box-shadow: none;
        border: none;
        min-width: 100%;
        background-color: #f9f9f9; /* İçeride olduğunu belirt */
    }

    .main-nav li ul a {
        padding-left: 40px; /* 2. seviye girinti */
    }
    .main-nav li ul ul a {
        padding-left: 60px; /* 3. seviye girinti */
    }
    .main-nav li ul a .fa-chevron-right {
        transform: rotate(90deg); /* Aşağı bakan ok */
    }

    .main-nav li:hover > ul {
        display: none; /* Hover'ı iptal et (dokunmatikte çalışmaz) */
    }
    /* JS ile tıklayınca açmak daha iyi olur, şimdilik bu şekilde */
    .main-nav li:hover > ul {
        display: block;
    }


    .header-cta {
        display: none; /* Mobilde ana menü butonunu gizle */
    }

    .top-left span:last-child {
        display: none; /* Mobilde e-postayı gizle */
    }

    /* Gridleri alt alta getir */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Footer gridi alt alta */
    }

    h1 { font-size: 2rem; }
    .slide-content h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .top-left {
        display: none; /* En küçük mobilde üst bar solu komple gizle */
    }
    .header-top .container {
        justify-content: flex-end; /* Sadece dil ve teklif kalsın */
    }
}

/* =================================================================
   8. ANASAYFA HERO HEADER STİLLERİ (YENİ EKLENDİ)
   ================================================================= */

/* Sadece anasayfada header'ları slider'ın üzerine al */
.home-page .header-top,
.home-page .main-header {
    position: absolute; /* Normal akıştan çıkar, üst üste bindir */
    left: 0;
    width: 100%;
    z-index: 10;
}

.home-page .header-top {
    top: 0;
    background-color: rgba(51, 51, 51, 0.7); /* Hafif transparan üst bar */
    border-bottom: none;
}

.home-page .main-header {
    top: 40px; /* Üst barın bittiği yer (yaklaşık) */
    background-color: rgba(255, 255, 255, 0.9); /* Hafif beyaz transparan */
    border-bottom: none;
    box-shadow: none;
}

/* Anasayfada, içerik slider'ın altında başlamalı (header'lar absolute olduğu için) */
.home-page main.content-wrapper {
    /* Bu kural artık gerekli değil, çünkü <main> slider'dan sonra geliyor */
    /* ve slider 100vh yer kaplıyor. */
}

/* =================================================================
   9. KATEGORİ LİSTELEME SAYFASI (YENİ EKLENDİ)
   ================================================================= */

.category-list {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    /* Masaüstünde 3 sütunlu bir grid */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    overflow: hidden; /* Resmin taşmasını önle */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card-image img {
    width: 100%;
    height: 250px; /* Tüm kart resim yüksekliklerini eşitler */
    object-fit: cover; /* Resmin orantısını bozmadan doldurur */
    display: block;
}

.product-card-content {
    padding: 20px;
    text-align: center;
}

.product-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #005a9c;
}

/* Kategori listesini de mobil uyumlu yap */
@media (max-width: 992px) {
    .product-grid {
        /* Tablette 2 sütun */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        /* Mobilde 1 sütun */
        grid-template-columns: 1fr;
    }

    .product-card-image img {
        height: 200px; /* Mobilde resim yüksekliğini azalt */
    }
}
/* =================================================================
   10. STATİK SAYFA İÇERİĞİ (page.php) (YENİ EKLENDİ)
   ================================================================= */

.page-content {
    padding: 60px 0;
    background-color: #fff; /* İçerik alanını beyaz yap */
    line-height: 1.8; /* Okunurluğu artır */
}

/* Sayfa içeriğinin (veritabanından gelen) maksimum genişliğini ayarla */
/* Bu, uzun yazıların okunmasını kolaylaştırır */
.page-content .container {
    max-width: 900px;
}

/* Veritabanından gelebilecek genel etiketler için stiller */
.page-content p {
    margin-bottom: 20px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #005a9c;
}

.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content a {
    text-decoration: underline;
}

.page-content strong {
    font-weight: 700;
}

.page-content blockquote {
    border-left: 4px solid #005a9c;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}
/* =================================================================
   11. GALERİ SAYFASI (belgelerimiz.php) (YENİ EKLENDİ)
   ================================================================= */
.gallery-page .container {
    max-width: 1200px; /* Geniş container kullansın */
}

.gallery-grid {
    display: grid;
    /* 4 sütunlu bir grid */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    display: block;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Eşit yükseklik */
    object-fit: cover;
    display: block;
}

.gallery-item-title {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #005a9c;
    background: #fff;
    font-size: 0.9rem;
}

/* Galeri stillerini de mobil uyumlu yap */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablette 3 sütun */
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde 2 sütun */
    }
    .gallery-item img {
        height: 150px;
    }
}

/* =================================================================
   12. SSS SAYFASI (faq.php) (YENİ EKLENDİ)
   ================================================================= */
.faq-page .container {
    max-width: 900px; /* Okunurluk için içeriği daralt */
}

.faq-container {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question i {
    color: #005a9c;
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: #fdfdfd;
    padding: 0 20px; /* Kapalıyken 0 padding */
    max-height: 0; /* Kapalıyken 0 yükseklik */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 20px 0;
    line-height: 1.8;
}

/* JavaScript ile eklenecek 'active' sınıfı */
.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Artı (+) ikonu (X) ikonuna dönüşür */
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Cevabın sığacağı bir yükseklik (veya daha fazla) */
    padding: 0 20px;
}


/* =================================================================
   13. HABERLER (BLOG) SAYFALARI (YENİ EKLENDİ)
   ================================================================= */

.blog-list-page .container,
.blog-detail-page .container {
    max-width: 900px; /* Blog içeriğini okunurluk için daralt */
    background: #fff;
    padding: 30px;
}
.blog-list-page, .blog-detail-page {
    background: #f9f9f9;
    padding: 40px 0;
}

/* --- Blog Liste Sayfası (haberler.php) --- */

.blog-post-item {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sol resim, sağ içerik */
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}
.blog-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}
.blog-post-meta i {
    margin-right: 5px;
}

.blog-post-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}
.blog-post-title a:hover {
    color: #005a9c;
}

.blog-post-summary {
    margin: 15px 0;
    color: #555;
}

/* "Devamını Oku" butonu için ikincil stil */
.cta-button.secondary {
    background-color: #eee;
    color: #333;
    padding: 8px 15px;
    font-size: 0.9rem;
}
.cta-button.secondary:hover {
    background-color: #ddd;
    color: #000;
}

/* --- Blog Detay Sayfası (haber_detay.php) --- */

.blog-post-detail-image {
    width: 100%;
    margin-bottom: 20px;
}
.blog-post-detail-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post-detail-meta {
    font-size: 1rem;
    color: #777;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* İçerik stilleri (page.php ile benzer) */
.blog-post-detail-content {
    line-height: 1.8;
}
.blog-post-detail-content p {
    margin-bottom: 20px;
}
.blog-post-detail-content h2,
.blog-post-detail-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #005a9c;
}
/* ... (diğer page.php stilleri buraya da uygulanabilir) ... */


/* --- Blog Mobil Uyum --- */
@media (max-width: 768px) {
    .blog-list-page .container,
    .blog-detail-page .container {
        padding: 20px;
    }

    /* Blog liste gridini alt alta getir */
    .blog-post-item {
        grid-template-columns: 1fr; /* Resim ve içerik alt alta */
        gap: 20px;
    }
    .blog-post-image img {
        height: 250px; /* Mobilde resim daha büyük */
    }
}

/* =================================================================
   14. ÖZEL TEKLİF SAYFASI (teklif.php) (YENİ EKLENDİ)
   ================================================================= */

.quote-form-page .container {
    max-width: 1000px; /* Sayfayı biraz genişlet */
}

/* Fatura benzeri başlık */
.invoice-header {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 5px;
}
.invoice-header h3 {
    border-bottom: 2px solid #005a9c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütunlu grid */
    gap: 20px 30px;
}

/* Ürün Ekleme Arayüzü */
.product-adder {
    background: #f9f9f9;
    padding: 20px 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px dashed #ccc;
}
.adder-grid {
    display: flex;
    gap: 20px;
    align-items: flex-end; /* Butonu ve inputları hizala */
}
.adder-grid .form-group {
    margin-bottom: 0;
}
.product-adder select,
.product-adder input {
    background: #fff;
}
.product-adder button {
    height: 47px; /* Input ile aynı yükseklik */
    flex-shrink: 0; /* Küçülmesin */
}

/* Teklif Sepeti Listesi */
.cart-table-wrapper {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.cart-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table-wrapper th {
    background: #f0f0f0;
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
}
.cart-table-wrapper td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.cart-table-wrapper .cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.cart-item-name {
    font-weight: 600;
}
.cart-remove-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
}
.cart-remove-btn:hover {
    background: #c0392b;
}

/* Teklif formu mobilde 1 sütun olsun */
@media (max-width: 768px) {
    .invoice-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .adder-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .adder-grid .form-group {
        margin-bottom: 15px;
    }
}

/* =================================================================
   15. İLETİŞİM SAYFASI (iletisim.php) (YENİ EKLENDİ)
   ================================================================= */

.contact-page {
    padding: 60px 0;
    background: #fff;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Sol: Form, Sağ: Bilgi */
    gap: 50px;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    font-size: 1.8rem;
    color: #005a9c;
    margin-bottom: 10px;
}
.contact-form-wrapper p {
    margin-bottom: 25px;
    color: #555;
}

/* İletişim Bilgileri (Sağ Sütun) */
.contact-info-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.map-info-wrapper {
    background: #f9f9f9;
    padding: 30px;
    width: 100%;
    height: 400px;
    border-radius: 5px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: #005a9c;
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}
.contact-info-item strong {
    display: block;
    color: #333;
}
.contact-info-item p {
    margin: 0;
    line-height: 1.7;
}
.contact-info-item a {
    color: #333;
    text-decoration: none;
}
.contact-info-item a:hover {
    color: #005a9c;
}

.map-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

/* İletişim sayfası mobil uyum */
@media (max-width: 992px) {
    .contact-page-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta */
        gap: 40px;
    }
    .contact-info-wrapper {
        /* Formun altına gelsin diye */
        grid-row: 1;
    }
}

/* =================================================================
   16. ANASAYFA İÇERİK BÖLÜMLERİ (index.php) (YENİ EKLENDİ)
   ================================================================= */

/* Genel Bölüm Başlığı */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.2rem;
    color: #005a9c;
    display: inline-block;
    border-bottom: 3px solid #eee;
    padding-bottom: 10px;
}

/* --- Bölüm 1: Neden Biz? --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütunlu */
    gap: 30px;
}
.why-us-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.why-us-icon {
    font-size: 2.5rem;
    color: #005a9c;
    width: 60px;
}
.why-us-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.why-us-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* --- Bölüm 2: Hizmetlerimiz (Resimli) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Sütunlu */
    gap: 30px;
}
.service-box {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}
.service-box:hover {
    transform: translateY(-5px);
}
.service-box-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.service-box-content {
    padding: 25px;
}
.service-box-content h3 {
    font-size: 1.3rem;
    color: #005a9c;
}

/* --- Bölüm 3: Bölgelerimiz (SEO) --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütunlu */
    gap: 20px;
}
.location-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.location-box h3 {
    font-size: 1.1rem;
    color: #333;
}
.location-box p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Anasayfa İçerik Mobil Uyum --- */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 sütun */
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 sütun */
    }
    .locations-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 sütun */
    }
}

@media (max-width: 768px) {
    .why-us-grid,
    .services-grid,
    .locations-grid {
        grid-template-columns: 1fr; /* Mobilde 1 sütun */
    }
}