/* Header Wrapper - ensures full width context */
.kf-header-wrapper {
    width: 100%;
    background: #ffffff;
    font-family: 'Geist', sans-serif;
    border-bottom: 1px solid #eaeaea;
    position: relative; /* Important for Mega Menu positioning */
}

/* Header Container */
.kf-header {
    max-width: 1920px;
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Flex Columns */
.kf-header-left, .kf-header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.kf-header-right {
    justify-content: flex-end;
    gap: 20px;
}

.kf-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Logo */
.kf-logo {
    text-decoration: none;
    color: #362F27;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Main Menu */
.kf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.kf-menu-item {
    position: static; /* Needs to be static so mega menu can be relative to the wrapper */
}

.kf-menu-item > a {
    text-decoration: none;
    color: #362F27;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 68px;
    display: block;
    transition: color 0.3s;
}

.kf-menu-item:hover > a {
    color: #8C7D75;
}

/* Icons */
.kf-icon {
    color: #362F27;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 68px;
    transition: color 0.3s;
}

.kf-icon:hover {
    color: #8C7D75;
}

/* Mega Menu */
.kf-mega-menu {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 1840px;
    max-width: 96vw;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid #eaeaea;
}

.has-mega-menu:hover .kf-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.kf-mega-menu-inner {
    padding: 40px;
    display: flex;
    gap: 80px;
    margin: 0 auto;
}

.kf-mega-column h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: #8C7D75;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.kf-mega-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kf-mega-column ul li a {
    text-decoration: none;
    color: #362F27;
    font-size: 13px;
    transition: color 0.2s;
}

.kf-mega-column ul li a:hover {
    color: #8C7D75;
}

/* Mega menu image column */
.kf-mega-image {
    margin-left: auto; /* Push image to the right */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .kf-menu, .kf-icon[aria-label="Account"] {
        display: none; /* Hide menu on mobile to replace with hamburger later */
    }
    .kf-header-left {
        /* Placeholder for hamburger */
    }
}