/* ========================================
   Header Menu - Fixed & Stable
======================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
    display: block !important; /* 가시성 강제 */
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px; /* 헤더 높이만큼 여백 */
    box-sizing: border-box;
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* 로고 */
.header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.header .logo img {
    height: 32px;
    width: auto;
}

/* PC 네비게이션 */
.header .nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.header .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.header .nav-list__item {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
}

.header .nav-list__item > .link {
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 0 5px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header .nav-list__item:hover > .link {
    color: #D4AF5F;
}

/* PC 2차 메뉴 */
.nav-list--depth2 {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column; /* 세로 정렬 강제 */
    gap: 0; /* 간격 제거 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    list-style: none;
}

.nav-list__item .nav-list--depth2 {gap: 0;}
.nav-list__item:hover .nav-list--depth2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-list--depth2 li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-list--depth2 li a:hover {
    background: #f8f9fa;
    color: #D4AF5F;
}

/* 모바일 버튼 */
.nav-mobile__btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

/* 모바일 메뉴 */
.mobile_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile_menu.active {
    right: 0 !important;
}

.mobile_menu_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.mobile_menu_overlay.active {
    display: block;
}

/* 반응형 */
@media (max-width: 1023px) {
    .header .nav {
        display: none;
    }
    .nav-mobile__btn {
        display: flex;
    }
}

@media (max-width: 767px) {
    #header { height: 60px; }
    body { padding-top: 60px; }
    .header .logo img { height: 26px; }
}
