/* --- ANA HEADER (ORTA BÖLÜM) STİLLERİ --- */
.middle-header-wrapper {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
    font-family: 'Gilroy', 'Inter', sans-serif;
    width: 100%;
}

.middle-header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px; 
}

.mobile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1; 
    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px; 
    flex-shrink: 0;
}

button#mobileMenuBtn {
    display: none; 
    background: transparent !important; 
    border: 0 !important;            
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 1.6rem !important; 
    color: #aebe81 !important; /* 🎯 Hamburger İkonunu da konsepte uydurduk */
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
}

.header-logo { text-decoration: none; display: flex; align-items: center; }
.header-logo img { max-height: 60px; max-width: 250px; object-fit: contain; transition: all 0.3s ease; }
.logo-text { font-size: 2.2rem; font-weight: 900; color: #111827; letter-spacing: -1px; margin: 0; }

.header-center {
    flex: 1;
    max-width: 650px;
}

.search-form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.search-form:focus-within { border-color: rgba(174, 190, 129, 0.4); } /* 🎯 Odaklanınca hafif konsept yeşili çerçeve */

.search-category-select {
    border: none;
    background: transparent;
    padding: 0 10px 0 15px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    border-right: 1px solid rgba(0,0,0,0.1); 
    max-width: 150px; 
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0; 
}
.search-category-select option {
    color: #111827; 
    background: #ffffff;
}

.search-form input {
    flex: 1;
    border: none;
    background-color: transparent;
    height: 100%;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    min-width: 0; 
}

/* 🎯 YENİ: Konsepte Uygun Premium Arama Butonu */
.premium-search-btn {
    background-color: #aebe81 !important;
    color: #ffffff !important;
    border: none;
    height: 100%;
    width: 60px;
    min-width: 60px; 
    flex-shrink: 0; 
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.premium-search-btn:hover { 
    background-color: #9ab066 !important; /* Üzerine gelince bir tık koyu yeşil */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.action-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

/* 🎯 YENİ: İkonlara Yumuşak Yeşillik ve Yuvarlak Arka Plan */
.action-box i { 
    font-size: 1.3rem; 
    background: rgba(174, 190, 129, 0.15); /* Çok hafif şeffaf yeşil arka plan */
    color: #aebe81 !important; /* Konsept Yeşili */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-box:hover i {
    background: #aebe81;
    color: #fff !important;
    transform: scale(1.05) rotate(5deg); /* Üzerine gelince şık bir dönme efekti */
    box-shadow: 0 5px 15px rgba(174, 190, 129, 0.3);
}

.action-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.action-title { font-size: 0.9rem; font-weight: 800; line-height: 1.2; color: #1f2937; }
.action-sub { font-size: 0.7rem; color: #6b7280; font-weight: 600; }

.cart-icon-wrapper { position: relative; display: flex; align-items: center; }

/* 🎯 YENİ: Sepet İkonu Sayısı Kırmızı Değil Artık Konsept Rengi */
.cart-badge {
    position: absolute;
    top: -3px; /* Yuvarlak arkaplana tam oturması için yukarı alındı */
    right: -3px; /* Sağa tam yapıştırıldı */
    background-color: #aebe81; /* Kırmızıdan kurtulduk */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 📱 MOBİL UYUMLULUK */
@media (max-width: 1024px) {
    .middle-header-wrapper { padding: 15px 0; }
    
    .middle-header-container {
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center;
        gap: 15px; 
        width: 96% !important; 
        margin: 0 auto !important;
        padding: 0 !important; 
    }

    .header-left { 
        display: flex;
        align-items: center;
        gap: 15px !important; 
        order: 1; 
        flex: 0 0 auto;
    }
    button#mobileMenuBtn { display: flex !important; }
    
    /* 🎯 YENİ: Mobil Logo Artık Çok Daha Büyük (Yükseklik 40'tan 60'a çıktı!) */
    .header-logo img { max-height: 60px; max-width: 190px; } 
    .logo-text { font-size: 1.6rem; }

    .header-right { 
        display: flex;
        order: 2; 
        flex: 0 0 auto;
        gap: 10px !important; /* İkonlar büyük olduğu için aralığı kıstık */
    }
    .action-text { display: none !important; } 
    
    /* Mobilde ikon çerçevelerinin boyutunu orantıladık */
    .action-box i { 
        width: 40px; 
        height: 40px; 
        font-size: 1.15rem; 
    }

    .header-center {
        order: 3;
        flex: 1 1 100%; 
        max-width: 100%;
        margin-top: 5px;
    }
    
    .search-category-select {
        max-width: 110px; 
        padding: 0 5px 0 10px;
        font-size: 0.8rem;
    }
    
    .search-form input {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}