@charset "UTF-8";
/* CSS Document */

/* ---------------------------------------------------- */
/* 1. RENKLER VE TEMEL STİLLER */
/* ---------------------------------------------------- */
:root {
    --jcb-siyah: #222222; /* Koyu Siyah */
    --jcb-sari: #faae3d;  /* JCB Sarısı */
    --jcb-gri: #f8f9fa;   /* Açık Gri */
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    /* İletişim çubuğu ve ana navigasyonun toplam yüksekliğine göre ayarlandı (Fixed/Sticky Header için zorunlu) */
    padding-top: 125px; 
}

/* ---------------------------------------------------- */
/* 2. HEADER VE NAVİGASYON (STICKY, LOGO VE ORTALAMA) */
/* ---------------------------------------------------- */

/* A. Sabit Header Kapsayıcısı (Top Bar + Nav Kapsayıcısı) */
/* header etiketinde sticky-top kullanılırsa tüm başlık sabitlenir */
header.sticky-top {
    z-index: 1020 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background-color: var(--jcb-sari);
    
    /* STICKY ZORLAMASI */
    position: -webkit-sticky !important; 
    position: sticky !important;         
    top: 0 !important;                   
}

/* B. Logo Stili (İstek: Logoyu Büyütme) */
#main-logo {
    height: auto; 
    max-height: 55px; /* Logo yüksekliği artırıldı */
    width: auto;
    transition: max-height 0.3s;
}

/* C. Navbar Link Stilleri */
.navbar {
    padding: 0.8rem 0; 
}

.navbar-toggler-icon {
    filter: invert(0); 
}

.navbar-nav .nav-link {
    color: var(--jcb-siyah); 
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: color 0.3s, background-color 0.3s, border-bottom 0.3s;
    font-weight: 600; 
}

/* D. Nav Link - Hover/Active Efekti (Alt Çizgi Etkisi) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px; 
    background-color: var(--jcb-siyah); 
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--jcb-siyah); 
    background-color: transparent; 
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%; 
    left: 10%; 
}

/* ---------------------------------------------------- */
/* 3. DROPDOWN & MEGA MENÜ */
/* ---------------------------------------------------- */

/* A. Ortak Dropdown/Mega Menü Stilleri (Hover Animasyonu) */
.dropdown-menu {
    background-color: var(--jcb-siyah);
    display: block; 
    visibility: hidden; 
    opacity: 0; 
    transition: visibility 0.3s, opacity 0.3s, margin-top 0.3s; 
    pointer-events: none; 
    border-top: 3px solid var(--jcb-siyah);
    margin-top: 10px; 
    border-radius: 0 0 4px 4px;
}

.dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
    margin-top: 0; 
}

/* B. Basit Dropdown Menü Stili */
.dropdown-menu:not(.mega-menu) {
    min-width: 200px;
    left: 0 !important;
    transform: none !important;
}

.dropdown-menu:not(.mega-menu) .dropdown-item {
    color: #ffffff;
    padding: 8px 15px;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu:not(.mega-menu) .dropdown-item:hover {
    background-color: #333333; 
    color: var(--jcb-sari);
}

/* C. Mega Menü Stilleri (İstek: Genişletme ve Ortalama) */
.mega-menu {
    width: 1200px; /* Genişlik artırıldı */
    max-width: 95vw;
    background-color: var(--jcb-siyah);
    border: none;
    border-radius: 0;
    padding: 0;
    
    /* ORTALAMA İÇİN KESİN ÇÖZÜM */
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    margin-top: 0; 
    top: 100% !important; 
}

.mega-menu-left {
    background-color: #333333; 
    padding: 10px 0;
}

.mega-menu-left .nav-link {
    color: #ffffff;
    padding: 12px 20px; 
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.mega-menu-left .nav-link:hover,
.mega-menu-left .nav-link.active {
    background-color: var(--jcb-siyah); 
    border-left-color: var(--jcb-sari); 
    color: var(--jcb-sari); 
    font-weight: bold;
}

.mega-menu-right {
    padding: 20px;
    background-color: var(--jcb-siyah);
}

.mega-menu-right .alt-urun {
    color: #ffffff;
    padding: 8px 10px;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s;
    border-radius: 3px;
}

.mega-menu-right .alt-urun:hover {
    background-color: #444444; 
    color: var(--jcb-sari); 
}

/* ---------------------------------------------------- */
/* 4. SAYFA İÇERİĞİ VE DİĞER KOMPONENTLER */
/* ---------------------------------------------------- */

/* Sektör Seçimi, Ürünler Carousel, Haberler ve Footer stilleri önceki gibi korunmuştur. */

#sektorler, #urunler-carousel, #haberler {
    padding: 60px 0;
}

/* ... Diğer tüm sayfa içi stilleri buraya eklenecektir (mevcut dosyanızdaki tüm stiller dahil) ... */

.footer-dark {
    background-color: var(--jcb-siyah);
    border-top: 5px solid var(--jcb-sari);
}

/* Kategori sayfasındaki ürün kartları için */
#urun-liste .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ürün Detay Sekme Stilleri */
#technical-specs .nav-link.active {
    color: var(--jcb-sari);
    border-bottom-color: var(--jcb-sari);
}

/* Sayfa Başına Dön Butonu Stili */
#pageTopBtn {
    display: none; 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 99; 
    background-color: var(--jcb-sari); 
    color: var(--jcb-siyah); 
    padding: 15px;
    border-radius: 50%; 
    font-size: 18px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 0.8;
}

#pageTopBtn:hover {
    background-color: #e69c33; 
    opacity: 1;
}


/* ---------------------------------------------------- */
/* 5. MOBİL VE RESPONSİF DÜZENLEMELER (@media) */
/* ---------------------------------------------------- */

@media (min-width: 992px) {
    /* Menü Linklerini Ortalamak İçin (mx-auto sınıfını destekler) */
    .navbar-nav {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1200px) {
    /* Mega menü genişliği 1200px altındaki ekranlarda */
    .mega-menu {
        width: 95%; 
    }
}

@media (max-width: 991.98px) {
    /* Mobil'de Logo küçülsün */
    #main-logo {
        max-height: 40px; 
    }
    
    /* Mobil'de Dropdown/Mega Menü Düzeltmeleri */
    .dropdown-menu {
        visibility: visible; 
        opacity: 1;
        pointer-events: auto;
        display: none; 
        padding-left: 15px; 
        border-top: none;
        margin-top: 0; 
    }
    .navbar-nav .dropdown.show > .dropdown-menu {
        display: block; 
    }
    
    /* Mobil'de Mega Menüyü tam ekran yap */
    .mega-menu {
        width: 100%;
        max-width: 100%;
        left: 0 !important;
        transform: none !important;
    }
}