/* ===== HEADER COMPACT OVERRIDE =====
 * This file loads AFTER style.css to enforce compact header dimensions.
 * All rules here intentionally override base styles for production header.
 * Required because WP admin bar and plugins can inject CSS that expands header.
 * @since 2.0.0
 */


/* Top Bar - daha kompakt */
.header-top {
    padding: 4px 0 !important;
    font-size: 12px !important;
}

/* Header Main - KOMPAKT */
.header-main {
    padding: 8px 0 !important;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo - ZORUNLU boyut siniri */
.site-logo {
    flex-shrink: 0;
    max-width: 200px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo img,
.site-logo .site-logo-img,
.site-logo .custom-logo,
.site-logo a img,
.custom-logo-link img {
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}

.site-logo-text {
    font-size: 18px !important;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.8rem !important;
    color: #fff;
}

/* Search - orantili */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    height: 40px;
}

.search-input {
    height: 40px !important;
    font-size: 13px !important;
    padding: 0 15px !important;
}

.search-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
}

/* Header actions - kompakt */
.header-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    position: relative;
}

.header-action i {
    font-size: 20px;
}

.header-action-text {
    font-size: 11px;
}

/* Navigation - kompakt */
.main-navigation {
    padding: 0 !important;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link i {
    font-size: 14px;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #FF5722;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-link {
        padding: 10px 8px;
        font-size: 12px;
    }
    .nav-link i {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-main-inner {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .site-logo img,
    .site-logo .site-logo-img,
    .site-logo .custom-logo,
    .custom-logo-link img {
        max-height: 36px !important;
        max-width: 140px !important;
    }
    
    .site-logo-text {
        font-size: 15px !important;
    }
    
    .logo-icon {
        font-size: 1.4rem !important;
    }
    
    /* Hide search on mobile (available in mobile menu) */
    .header-search {
        display: none !important;
    }
    
    .header-action-text {
        display: none;
    }
    
    .header-actions {
        gap: 12px;
        margin-left: auto;
    }
    
    .header-action i {
        font-size: 18px;
    }
    
    /* Hamburger button in header */
    .mobile-menu-toggle {
        display: flex !important;
        order: -1;
    }
    
    /* Logo takes available space */
    .site-logo {
        flex: 1;
        min-width: 0;
    }
}
