/**
 * Header Styles
 *
 * @package Vebi
 */

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

/* Top Bar */
.header-top {
    background: var(--vebi-blue-dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity var(--transition-fast);
}

.header-top-link:hover {
    opacity: 0.8;
    color: white;
}

/* Main Header */
.header-main {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    display: block;
}

.site-branding img {
    height: 48px;
    width: auto;
}

.logo-text,
.site-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--vebi-blue);
    text-decoration: none;
}

.logo-text span,
.site-title span {
    color: var(--vebi-blue-dark);
}

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

.search-form {
    position: relative;
}

.search-form .vebi-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-field {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-family: var(--font-body);
    transition: all var(--transition);
}

.search-field:focus {
    outline: none;
    border-color: var(--vebi-blue);
    box-shadow: 0 0 0 4px var(--vebi-blue-pale);
}

.search-field::placeholder {
    color: var(--gray-400);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--vebi-blue);
}

.header-btn-label {
    font-weight: 500;
}

.header-badge {
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

.header-cart {
    background: var(--vebi-blue);
    color: white;
    font-weight: 600;
}

.header-cart:hover {
    background: var(--vebi-blue-dark);
    color: white;
}

.header-cart .header-badge {
    background: white;
    color: var(--vebi-blue);
}

/* Main Navigation */
.main-navigation {
    background: white;
}

.nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--vebi-blue);
    background: var(--vebi-blue-pale);
}

.nav-link.active {
    color: var(--vebi-blue);
    border-bottom-color: var(--vebi-blue);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .header-main-inner {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .header-btn-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-btn {
        padding: 10px 12px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .search-field {
        padding: 12px 16px 12px 44px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-top-inner {
        flex-direction: column;
        gap: 4px;
    }
}
