/* Own LG / KL header; all product groups, original responsive hooks retained. */
@media (min-width:1025px) {
 #header .header_top{height:auto;min-height:80px;position:relative;padding-right:180px;box-sizing:border-box}
 #header .header_top>.inner{display:flex;align-items:center;gap:20px;width:calc(100% - 48px);min-width:0;max-width:1600px;text-align:left;margin:0 auto}
 #header .h1_logo{float:none;flex:0 0 191px;padding:0;align-self:center}
 #header .h1_logo a{display:block;width:191px;height:34px}
 #header .header_gnb{display:block;flex:1;min-width:0}
 #header .gnb,#header .gnb>ul,#header .gnb>ul>li{position:static}
 #header .gnb>ul.kl-all-products-menu{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;width:100%;padding:12px 0}
 #header .gnb>ul.kl-all-products-menu>li{float:none;flex:0 1 auto}
 #header .gnb>ul.kl-all-products-menu>li>a{padding:9px 8px;line-height:1.65;font-size:14px;white-space:nowrap}
 #header .btn_store{display:block;float:none;flex:0 0 56px}
 #header .btn_store a{width:56px;height:80px;background-position:center center}
 #header .gnb .g_dep2{top:100%;left:0;right:180px;padding:30px 0;background:#f5f5f5;box-shadow:0 8px 15px rgba(0,0,0,.08)}
 #header .gnb .g_dep2>.inner{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 36px;width:calc(100% - 64px);min-width:0;max-width:1440px;margin:0 auto;padding-left:0!important}
 #header .gnb .g_dep2 dl{float:none;min-width:180px;max-width:320px;padding:0 12px;text-align:left}
 #header .gnb .g_dep2 dl dt{line-height:1.7;margin-bottom:8px}
 #header .gnb .g_dep2 dl dt a{font-size:16px}
 #header .gnb .g_dep2 dl dd a{font-size:14px;line-height:1.7}
 #header .gnb>ul>li:focus-within>.g_dep2{display:block}
 #header .header_util{padding-right:180px;box-sizing:border-box}
 #header .header_util>.inner{width:calc(100% - 48px);min-width:0;max-width:1600px}
 #header .page_location{max-width:calc(100% - 475px)}
 #header .page_location>ol{display:flex;align-items:center;min-width:0;white-space:nowrap}
 #header .page_location>ol>li{display:flex;align-items:center;float:none;flex:0 0 auto}
 #header .page_location>ol>li::before{flex:0 0 6px}
 #header .page_location>ol>li:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
 #header .page_location>ol>li:last-child>span{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
}
@media (min-width:1025px) and (max-width:1300px) {
 #header .header_top>.inner{gap:14px}
 #header .gnb>ul.kl-all-products-menu{justify-content:flex-start}
 #header .gnb>ul.kl-all-products-menu>li>a{padding:7px 8px}
}
@media (max-width:1024px) {
 .quick_r_wrap{display:none!important}
 #menuPanel .gnb .kl-all-products-menu .g_dep2 dt a{display:block}
 #menuPanel .gnb .kl-all-products-menu .g_dep2 dl{padding-bottom:10px}
 #menuPanel .gnb .kl-all-products-menu .g_dep2 dd a{line-height:1.7}
}

/* Mobile panel: keep its contact header/footer and scroll only the menu list.
   This overrides the legacy JS's stale inline menu height, without pixel guesses. */
@media (max-width:1024px) {
 #menuPanel{display:flex!important;flex-direction:column;height:100vh!important;height:100dvh!important;max-height:100vh;max-height:100dvh;overflow:hidden}
 #menuPanel>.menuPanel_head,#menuPanel>.menuPanel_bottom{flex:0 0 auto}
 #menuPanel>.gnb{flex:1 1 auto;min-height:0;height:auto!important;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 #menuPanel>.menuPanel_bottom{position:static}
}
@media(min-width:1025px){#wrap{min-width:0}#footer>.inner{min-width:0}#header .gnb>ul.kl-all-products-menu{justify-content:flex-start}#header .gnb>ul.kl-all-products-menu>li>a{font-size:16px;padding:8px 8px;transition:color .15s linear,background-color .15s linear}#header .gnb .g_dep2,#header .gnb .g_dep2>.inner{animation:none!important;transform:none}#header .gnb .g_dep2>.inner{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;justify-content:start;gap:24px 0;width:calc(100% - 48px);max-width:1600px}#header .gnb .g_dep2 dl{min-width:0;max-width:none;width:auto;padding:0 16px;box-sizing:border-box;text-align:left}#header .gnb .g_dep2 dl dt a,#header .gnb .g_dep2 dl dd a{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}}@media(min-width:1025px) and (max-width:1199px){#container .inner,#container .inner1600{min-width:0}}@media(min-width:1025px){#header .gnb .g_dep2>.inner{box-sizing:border-box;padding-left:calc(191px + 20px + 8px - 16px)!important}#header .gnb .g_dep2>.inner::after{display:none}}@media(min-width:1025px) and (max-width:1300px){#header .gnb .g_dep2>.inner{padding-left:calc(191px + 14px + 8px - 16px)!important}}
/* PC header: the first primary label, submenu and breadcrumb share one inset. */
@media(min-width:1025px){
 #header .header_top>.inner{gap:40px}
 #header .gnb .g_dep2>.inner{padding-left:calc(191px + 40px + 8px - 16px)!important}
 #header .header_util .page_location{padding-left:calc(191px + 40px + 8px);box-sizing:border-box}
}
/* At narrow desktop widths, wrap the actions only when the path needs room. */
@media(min-width:1025px) and (max-width:1300px){
 #header .header_top>.inner{gap:32px}
 #header .gnb .g_dep2>.inner{padding-left:calc(191px + 32px + 8px - 16px)!important}
 #header .header_util{height:auto;min-height:50px}
 #header .header_util>.inner{display:flex;flex-wrap:wrap;align-items:center}
 #header .header_util .page_location{padding-left:calc(191px + 32px + 8px);padding-bottom:14px;box-sizing:border-box;flex:1 0 calc(191px + 32px + 8px + 350px);min-width:0;min-height:50px;max-width:100%}
 #header .header_util .util{position:static;flex:0 0 auto;max-width:100%;margin-left:auto}
}
/* Balance the primary menu between the logo and store without changing its width. */
@media(min-width:1025px){
 #header{--kl-primary-base-gap:40px;--kl-primary-balance-shift:clamp(0px,calc((100vw - 1750px)/2),40px)}
 #header .header_gnb{margin-left:var(--kl-primary-balance-shift)}
 #header .btn_store{margin-left:calc(12px - var(--kl-primary-balance-shift))}
 #header .header_util .page_location{padding-left:calc(191px + var(--kl-primary-base-gap) + var(--kl-primary-balance-shift) + 8px)}
 #header .gnb .g_dep2>.inner{padding-left:calc(191px + var(--kl-primary-base-gap) + var(--kl-primary-balance-shift) + 8px - 16px)!important}
}
@media(min-width:1025px) and (max-width:1300px){#header{--kl-primary-base-gap:32px}}
