/* --- GENEL STİLLER --- */
.top-bar {
    background: #f8f9fa;
    font-size: 0.9rem;
    padding: 5px 0;
}
.top-bar a { color: #555; text-decoration: none; }
.top-bar i { margin-right: 5px; }

/* Navbar styling */
.navbar-brand img { height: 30px; }
.request-quote-btn {
    background-color: #ff6600;
    color: #fff;
    border-radius: 0;
}
.request-quote-btn:hover { background-color: #e65c00; }

/* --- DROPDOWN AYARLARI --- */
.dropdown-menu {
    background-color: #fff !important;
    border-radius: 16px;
    margin-top: 0 !important;
    padding-top: 0;
    border: 1px solid rgba(0,0,0,0.05); /* Hafif çerçeve */
}

/* Glass effect Category Card */
.category-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.45);
}
.category-card a { text-decoration: none; color: #212529; transition: color 0.2s; }
.category-card a:hover { color: #ff6600; }

/* --- MEGA MENU (DESKTOP) --- */
.mega-menu-container {
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    min-height: 400px;
}
.mega-menu-sidebar {
    width: 25%;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 10px 0;
}
.mega-menu-link {
    display: flex; align-items: center; padding: 12px 20px;
    color: #333; text-decoration: none; transition: all 0.2s;
    font-weight: 500; justify-content: space-between;
}
.mega-menu-link:hover, .mega-menu-link.active {
    background-color: #fff;
    color: #ff6600;
    border-left: 4px solid #ff6600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.mega-menu-content { width: 75%; padding: 30px; display: none; }
.mega-menu-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }

/* Grid */
.subcategory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.subcategory-item {
    text-align: center; text-decoration: none; color: #555;
    transition: transform 0.2s; display: flex; flex-direction: column; align-items: center;
}
.subcategory-item:hover { transform: translateY(-5px); color: #ff6600; }

/* 🔥 GÜNCELLENEN KISIM: RESİMLER ARTIK KARE VE SIĞIYOR 🔥 */
.subcategory-img-wrapper {
    width: 80px; 
    height: 80px; 
    border-radius: 8px; /* Tam yuvarlak (50%) yerine hafif köşeli kare */
    background-color: #fff; /* Gri yerine beyaz zemin */
    border: 1px solid #e0e0e0; /* İnce çerçeve */
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 10px; 
    overflow: hidden;
    transition: border-color 0.3s ease;
}

/* Mouse ile üzerine gelince çerçevenin rengi değişsin */
.subcategory-item:hover .subcategory-img-wrapper {
    border-color: #ff6600;
}

.subcategory-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Resmi kesmeden kutuya sığdırır */
    padding: 5px; /* Kenarlardan biraz boşluk */
}
/* 🔥 GÜNCELLEME SONU 🔥 */


@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- MOBİL STİLLER VE DÜZELTMELER --- */

/* Mobilde Sepet Rozeti */
.mobile-cart-badge {
    position: absolute; top: -5px; right: -10px;
    background-color: #dc3545; color: white;
    border-radius: 50%; padding: 2px 6px;
    font-size: 0.7rem; font-weight: bold;
}

/* Alt Sabit Menü (Sticky Bottom Bar) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999; /* En üstte olduğundan emin olalım */
    display: flex; justify-content: space-around;
    padding: 10px 0; border-top: 1px solid #eee;
}

.mobile-bottom-nav-item {
    text-align: center; color: #666; text-decoration: none;
    font-size: 0.8rem; display: flex; flex-direction: column; align-items: center;
}
.mobile-bottom-nav-item i { font-size: 1.4rem; margin-bottom: 2px; }
.mobile-bottom-nav-item.active { color: #ff6600; font-weight: bold; }

/* Ortadaki Sepet Butonu */
.mobile-cart-btn-wrapper { position: relative; top: -25px; }
.mobile-cart-btn {
    background-color: #ff6600; color: white !important;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4); border: 4px solid #fff;
}
.mobile-cart-btn i { font-size: 1.6rem; margin: 0; }

/* Mobilde Dropdown ve Ürün Listesi */
@media (max-width: 991px) {
    .dropdown-menu { border: none; box-shadow: none; padding-left: 0; background-color: transparent; margin-top: 0; }
    .mobile-product-grid {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 10px; padding: 10px; background: #f8f9fa;
    }
    .mobile-product-item {
        background: #fff; border: 1px solid #eee; border-radius: 8px;
        overflow: hidden; text-align: center; padding-bottom: 5px;
    }
    .mobile-product-img { width: 100%; height: 120px; object-fit: cover; }
    .mobile-cat-header {
        background: #fff; padding: 12px 15px;
        border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;
        font-weight: 600; color: #333; cursor: pointer;
    }
    .mega-menu-container { flex-direction: column; }
    .mega-menu-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #ddd; }
}

/* --- ÖZEL ÇÖZÜMLER MENÜSÜ TASARIMI --- */

/* Menü Kutusu */
.custom-dropdown-menu {
    border: none;
    border-radius: 16px; /* Yuvarlak köşeler */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Yumuşak, derin gölge */
    padding: 10px;
    min-width: 280px; /* Biraz daha geniş olsun */
    margin-top: 10px !important;
    background: #fff;
    animation: fadeInUp 0.3s ease;
}

/* Menü Linki (Satır) */
.custom-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent; /* Titremeyi önler */
}

/* Hover Durumu (Üzerine gelince) */
.custom-dropdown-item:hover {
    background-color: #fff8f3; /* Çok açık turuncu zemin */
    transform: translateX(5px); /* Sağa doğru hafif kayma efekti */
}

/* İkon Kutusu */
.custom-dropdown-item .icon-box {
    width: 42px;
    height: 42px;
    background-color: #f1f3f5; /* Gri zemin */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* İkonun Kendisi */
.custom-dropdown-item .icon-box i {
    font-size: 1.3rem;
    color: #f77f00; /* Marka turuncusu */
    transition: all 0.3s ease;
}

/* Hover olunca İkon Kutusu Değişimi */
.custom-dropdown-item:hover .icon-box {
    background-color: #f77f00; /* Zemin turuncu olsun */
    box-shadow: 0 4px 10px rgba(247, 127, 0, 0.3); /* Parlama efekti */
}

.custom-dropdown-item:hover .icon-box i {
    color: #ffffff; /* İkon beyaz olsun */
}

/* Yazı Alanı */
.text-box {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.2;
}

.custom-dropdown-item:hover .item-title {
    color: #f77f00;
}

/* Küçük Açıklama Yazısı */
.item-desc {
    font-size: 0.75rem;
    color: #888;
    margin-top: 3px;
    font-weight: 400;
}

/* Açılma Animasyonu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- DİL SEÇİCİ STİLLERİ --- */
.lang-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    outline: none; /* Tıklanınca çıkan mavi çizgiyi kaldır */
    appearance: none; /* Tarayıcının varsayılan ok işaretini kaldır (isteğe bağlı) */
    padding-right: 5px;
}

.lang-select:hover {
    color: #ff6600; /* Üzerine gelince turuncu olsun */
}

.lang-select option {
    color: #333;
    background: #fff;
}

/* --- AKTİF LİNK STİLİ (Zaten text-orange var ama garanti olsun) --- */
.text-orange {
    color: #ff6600 !important;
}

/* Aktif linkin altını çizmek istersen bunu da ekleyebilirsin (Opsiyonel) */
/*
.nav-link.text-orange {
    border-bottom: 2px solid #ff6600;
}
*/


/* --- TOP BAR TASARIMI (GELİŞMİŞ) --- */
.top-bar {
    background-color: #f8f9fa; /* Çok açık gri zemin */
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    font-weight: 500;
    height: 40px; /* Sabit yükseklik vererek hizalamayı kolaylaştırdık */
    color: #555;
}

/* Linkler (Telefon & Mail) */
.top-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.top-link:hover {
    color: #ff6600; /* Hover olunca turuncu olsun */
}

.top-link i {
    font-size: 0.9rem; /* İkonlar yazıdan bir tık büyük olsun */
}

/* Dil Seçimi Alanı */
.language-wrapper {
    cursor: pointer;
    position: relative;
}

.clean-lang-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    outline: none;
    appearance: none; /* Varsayılan tarayıcı okunu gizle */
    padding: 0 2px;
}

.clean-lang-select:hover {
    color: #ff6600;
}

/* Dikey Çizgi (Ayraç) */
.top-divider {
    width: 1px;
    height: 18px;
    background-color: #ddd; /* Hafif gri çizgi */
}

/* Sosyal Medya İkonları */
.social-icons_menu a {
    color: #666;
    margin-left: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icons_menu a i {
    font-size: 0.95rem;
}

/* Her sosyal medyanın kendi rengi (Hover olunca) */
.social-icons_menu a:hover i.bi-facebook { color: #1877F2; }
.social-icons_menu a:hover i.bi-instagram { color: #E4405F; }
.social-icons_menu a:hover i.bi-linkedin { color: #0A66C2; }
.social-icons_menu a:hover i.bi-youtube { color: #FF0000; }

/* Marka Rengi Yardımcı Sınıf */
.text-orange {
    color: #ff6600 !important;
}