/* PC reference: 1380px content, 237px logo, 17px menu, 40px notice.
   Source serves a separate mobile site; 1400px is our integration breakpoint. */

body.kl_header_v2_page {
    padding-top: 0!important;
    margin-top: 0!important;
}

body.klh_locked {
    overflow: hidden;
}

#klh,
#klh * {
    box-sizing: border-box;
}

#klh {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    color: #303030;
    font-family: 'Noto Sans KR',sans-serif;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: normal;
}

#klh a {
    color: inherit;
    text-decoration: none;
}

#klh button,
#klh input {
    font: inherit;
    letter-spacing: normal;
}

#klh button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

#klh ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#klh .klh_inner {
    width: calc(100% - 40px);
    max-width: 1380px;
    margin: auto;
}

#klh .klh_notice {
    height: 40px;
    background: #000;
    color: #fff;
}

#klh .klh_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
}

#klh .klh_logo {
    display: block;
    width: 237px;
    flex: none;
}

#klh .klh_logo img {
    display: block;
    width: auto;
    height: 30px;
}

#klh .klh_account {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #757575;
}

#klh .klh_account a {
    padding: 0 10px;
    border-left: 1px solid #ddd;
    line-height: 13px;
}

#klh .klh_account a:first-child {
    border: 0;
}

#klh .klh_account a:last-child {
    padding-right: 0;
}

#klh .klh_bottom {
    padding-top: 30px;
    background: #fff;
    padding-bottom: 10px;
}

#klh .klh_row {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 0;
}

#klh .klh_toggle {
    width: 35px;
    height: 24px;
    position: relative;
    flex: none;
    margin: 0 2px 0 0;
    padding: 0;
}

#klh .klh_toggle span {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 2px;
    background: #303030;
}

#klh .klh_toggle span:nth-child(2) {
    top: 11px;
}

#klh .klh_toggle span:nth-child(3) {
    top: 20px;
    width: 12px;
}

#klh_nav {
    flex: 1;
    min-width: 0;
}

#klh .klh_menu {
    display: flex;
    align-items: center;
}

#klh .klh_menu>li {
    position: relative;
    margin: 0 15px;
    white-space: nowrap;
}

#klh .klh_menu>li>a {
    display: block;
    font-size: 17px;
    font-weight: 500;
    line-height: 50px;
}

#klh .klh_submenu {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    z-index: 10;
    min-width: 160px;
    padding: 8px 0;
    border: 1px solid #ededed;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: left;
    transform: translateX(-50%);
}

#klh .klh_submenu a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    transition: color 0.2s ease, background 0.2s ease;
}

#klh .klh_submenu a:hover {
    background: #f7f7f7;
    color: #111;
}

#klh .has_sub:hover>.klh_submenu,
#klh .has_sub:focus-within>.klh_submenu {
    display: block;
}

#klh .klh_subtoggle,
#klh .klh_close,
#klh .klh_mobile_search {
    display: none;
}

#klh .klh_tools {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-left: auto;
}

#klh .klh_search_inline {
    width: 300px;
    height: 40px;
    position: relative;
    margin: 0;
}

#klh .klh_search_inline input {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 28px;
    background: #f7f7f7;
    padding: 0 47px 0 19px;
    font-size: 13px;
    color: #757575;
    box-shadow: none;
}

#klh .klh_search_inline button {
    position: absolute;
    right: 10px;
    top: 0;
    height: 40px;
    width: 30px;
    font-size: 30px;
    line-height: 40px;
    display: flex;
    align-items: center;
}

#klh .klh_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 50px;
    position: relative;
    flex: none;
}

#klh .klh_search_inline svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #303030;
    stroke-width: 1.2;
    vertical-align: middle;
}

#klh .klh_icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #303030;
    stroke-width: 1.2;
}

#klh .klh_cart span {
    position: absolute;
    right: -4px;
    top: 3px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    min-width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
}

.klh_dim {
    position: fixed;
    inset: 0;
    background: #0006;
    z-index: 999;
}

.klh_dim[hidden],
#klh [hidden] {
    display: none!important;
}

#klh .klh_search_popup {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    padding: 30px 20px;
    box-shadow: 0 8px 16px #0002;
}

#klh .klh_search_popup form {
    max-width: 700px;
    margin: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

#klh .klh_search_popup input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 1px solid #ddd;
    padding: 0 12px;
}

#klh a:focus-visible,
#klh button:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}

/* Notice latest: 2s interval / 800ms vertical transition. */

#klh .kln {
    height: 40px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

#klh .kln_track {
    transition: transform 800ms ease;
}

#klh .kln_item {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 400;
    overflow: hidden;
}

#klh .kln_item a {
    display: block;
    padding: 0 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

@media(max-width:1399px) {

    #klh .klh_logo img{height: 22px; width: auto;}

    #klh .klh_icon svg{
        width: 28px;
        height: 28px;
    }

    body.kl_header_v2_page {
        padding-top: 90px!important;
    }

    #klh {
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 0 -3px 7px #0006;
    }

    #klh .klh_notice,
    #klh .kln,
    #klh .kln_item {
        height: 37px;
    }

    #klh .kln_item {
        line-height: 37px;
        font-size: 14px;
        font-weight: 500;
    }

    #klh .klh_top {
        height: 53px;
        padding-top: 0;
        justify-content: center;
    }

    #klh .klh_logo {
        width: 139px;
    }

    #klh .klh_account {
        display: none;
    }

    #klh .klh_mobile_search {
        display: flex;
        position: absolute;
        right: 58px;
        top: 39px;
        font-size: 32px;
    }

    #klh .klh_bottom {
        padding-top: 0;
        padding-bottom: 0;
    }

    #klh .klh_row {
        height: 0;
    }

    #klh .klh_tools {
        position: absolute;
        right: 20px;
        top: 39px;
        gap: 0;
    }

    #klh .klh_tools>.klh_icon:first-of-type,
    #klh .klh_search_inline {
        display: none;
    }

    #klh .klh_icon {
        width: 35px;
        height: 50px;
    }

    #klh .klh_toggle {
        position: absolute;
        left: 20px;
        top: 52px;
        width: 24px;
        height: 20px;
    }

    #klh_nav {
        display: none;
        flex: none;
        position: static;
        overflow: hidden;
        width: 100%;
    }

    #klh .klh_menu {
        overflow-x: auto;
        scrollbar-width: none;
        gap: 25px;
    }

    #klh .klh_menu::-webkit-scrollbar {
        display: none;
    }

    #klh .klh_menu>li {
        margin: 0;
        position: static;
    }

    #klh .klh_menu>li>a {
        font-size: 14px;
        line-height: 40px;
    }

    #klh .klh_submenu,
    #klh .has_sub:hover>.klh_submenu,
    #klh .has_sub:focus-within>.klh_submenu {
        display: none;
    }

    #klh_nav.is_open {
        display: block;
        position: fixed;
        top: 37px;
        left: 0;
        width: min(360px,88vw);
        height: calc(100dvh - 37px);
        height: calc(100vh - 37px);
        background: #fff;
        padding: 65px 25px 30px;
        overflow: auto;
        z-index: 1002;
        box-shadow: 4px 0 20px #0002;
    }

    #klh_nav.is_open .klh_close {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 32px;
    }

    #klh_nav.is_open .klh_menu {
        display: block;
        overflow: visible;
    }

    #klh_nav.is_open .klh_menu>li {
        position: relative;
        border-bottom: 1px solid #eee;
    }

    #klh_nav.is_open .klh_menu>li>a {
        font-size: 17px;
        line-height: 56px;
        padding-right: 35px;
    }

    #klh_nav.is_open .klh_subtoggle {
        display: block;
        position: absolute;
        top: 8px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    #klh_nav.is_open .is_open>.klh_submenu {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        text-align: left;
        padding-bottom: 15px;
    }

    #klh_nav.is_open .klh_submenu a {
        font-size: 15px;
        line-height: 40px;
        padding: 0 12px;
    }

    #klh .klh_search_popup label {
        display: none;
    }

    .klh_dim {
        z-index: 999;
    }
}

@media(prefers-reduced-motion:reduce) {

    #klh .kln_track {
        transition: none;
    }
}

@media (min-width: 1400px) {

    #klh .klh_bottom {
        position: relative;
    }

    #klh .klh_bottom::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 0;
        display: none;
        height: var(--klh-panel-height, 240px);
        border-top: 1px solid #eee;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    }

    #klh.is_menu_open .klh_bottom::after {
        display: block;
    }

    #klh_nav.is_open {
        position: static;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    #klh_nav.is_open .klh_menu {
        align-items: center;
    }

    #klh_nav.is_open .klh_submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 2;
        display: block;
        min-width: 160px;
        margin: 0;
        padding: 20px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
        transform: none;
    }

    #klh_nav.is_open .klh_submenu a {
        padding: 8px 0;
        color: #666;
        font-size: 14px;
        font-weight: 400;
        line-height: 22px;
    }

    #klh_nav.is_open .klh_submenu a:hover {
        background: transparent;
        color: #111;
    }

    #klh_nav.is_open .klh_close {
        display: none;
    }

    #klh .klh_toggle span {
        transition: top 0.2s ease, width 0.2s ease,
                    transform 0.2s ease, opacity 0.2s ease;
    }

    #klh .klh_toggle[aria-expanded="true"] span:nth-child(1) {
        top: 11px;
        width: 24px;
        transform: rotate(45deg);
    }

    #klh .klh_toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    #klh .klh_toggle[aria-expanded="true"] span:nth-child(3) {
        top: 11px;
        width: 24px;
        transform: rotate(-45deg);
    }
}

/* PC에서는 모바일용 검색 버튼 숨김 */

@media (min-width: 1400px) {

    #klh .klh_mobile_search {
        display: none;
    }
}
