/* --- 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; 
    background-color: transparent !important;
    border: 0 !important;            
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 1.6rem !important; 
    color: #374151 !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.header-logo { text-decoration: none; display: flex; align-items: center; }
.header-logo img { max-height: 60px; max-width: 250px; object-fit: contain; }
.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(0,0,0,0.1); }

.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; 
}

.search-form button {
    border: none;
    height: 100%;
    width: 60px;
    min-width: 60px; 
    flex-shrink: 0; 
    cursor: pointer;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-form button:hover { opacity: 0.85; }

.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;
}
.action-box:hover { transform: translateY(-2px); }
.action-box i { font-size: 1.6rem; }

.action-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.action-title { font-size: 0.9rem; font-weight: 800; line-height: 1.2; }
.action-sub { font-size: 0.7rem; opacity: 0.7; font-weight: 600; }

.cart-icon-wrapper { position: relative; display: flex; align-items: center; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
}

@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; }
    .header-logo img { max-height: 40px; max-width: 140px; } 
    .logo-text { font-size: 1.6rem; }

    .header-right { 
        display: flex;
        order: 2; 
        flex: 0 0 auto;
        gap: 20px !important; 
    }
    .action-text { display: none !important; } 
    .action-box i { font-size: 1.5rem; }

    .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;
    }
}