.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fk-header {
    width: 100%;
    background: rgba(40, 116, 240, 0.9);
    background: linear-gradient(135deg, rgba(40, 116, 240, 0.85) 0%, rgba(15, 92, 212, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-scrolled .fk-header {
    background: rgba(40, 116, 240, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fk-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* TOP ROW */
.fk-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fk-top-left {
    display: flex;
    gap: 8px;
}

.fk-brand-btn {
    background-color: #ffe11b; /* Flipkart yellow */
    color: #000;
    font-weight: 700;
    font-style: italic;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.fk-brand-icon {
    color: #2874f0;
    font-size: 1.1rem;
    font-style: normal;
}

.fk-travel-btn {
    background-color: #f1f2f4;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fk-travel-icon {
    color: #ff5722;
}

.fk-top-right {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.fk-top-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

/* MIDDLE ROW */
.fk-middle-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 12px;
}

.fk-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #f0f5ff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.fk-search-bar:focus-within {
    background-color: #fff;
    border-color: #2874f0;
    box-shadow: 0 0 0 1px #2874f0;
}

.fk-search-icon {
    color: #717478;
    margin-right: 12px;
}

.fk-search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #000;
}

.fk-main-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fk-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.fk-action-btn:hover {
    background-color: rgba(255,255,255,0.15);
}

.fk-action-btn span:first-child {
    font-size: 1.1rem;
}

.fk-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.85);
}

.fk-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1rem;
}

.fk-caret {
    font-size: 0.9rem;
    line-height: 1;
}

.fk-dropdown-wrapper {
    position: relative;
}

.fk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 10;
}

.fk-dropdown-wrapper:hover .fk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fk-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #212121;
    text-decoration: none;
    font-size: 0.9rem;
}

.fk-dropdown-menu a:hover {
    background-color: #f1f2f4;
}

.fk-badge {
    background-color: #ff6161;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: -4px;
    margin-top: -12px;
}

/* BOTTOM ROW: CATEGORIES */
.fk-category-bar {
    background: #f8fbff;
    border-bottom: 1px solid #dbe4f8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    height: 90px;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-scrolled .fk-category-bar {
    background: rgba(248, 251, 255, 0.96);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
    height: 72px;
}

.fk-category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 0 10px 0;
    min-height: 90px;
    transition: padding 0.3s ease, min-height 0.3s ease;
}

.nav-scrolled .fk-category-scroll {
    padding: 8px 0 8px 0;
    min-height: 72px;
}

.fk-category-scroll::-webkit-scrollbar {
    display: none;
}

.fk-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #212121;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 72px;
    width: 72px;
    height: 72px;
    padding: 4px 0 4px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, opacity 0.2s ease, height 0.3s ease;
}

.fk-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.nav-scrolled .fk-cat-icon {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.nav-scrolled .fk-cat-item {
    height: 64px;
    padding: 2px 0 2px;
}

.fk-cat-item:hover, .fk-cat-item.active {
    color: #2874f0;
}

.fk-cat-item.active {
    border-bottom-color: #2874f0;
}

@media (max-width: 768px) {
    .fk-middle-row {
        flex-wrap: wrap;
    }
    .fk-search-bar {
        order: 3;
        min-width: 100%;
    }
    .fk-main-actions {
        flex: 1;
        justify-content: flex-end;
    }
}
