/* BASIC css start */
/* Box sizing 기본 레이아웃 고정 (가로 스크롤 방지 필수) */
#header, #header *, aside, aside * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.menu_on {height:100%; overflow:hidden;}
.menu_off {height:auto; overflow:initial;}

#header {
    width:100%;
    max-width:100%;
    overflow:hidden; /* 상단에서 가로 삐져나침 완벽 차단 */
}

#header .top-pt-01 {position:fixed; top:0; left:0; right:0; z-index:100;}
#header .top-pt-02 {position:fixed; top:0; left:0; right:0; z-index:100;}

/* 상단 파란색 네비게이션 바 레이아웃 교정 */
#header .headerTop {
    width: 100%;
    position: relative;
    background-color:#00448f;
    padding-right: 45px; /* 오른쪽 MENU 버튼 공간 확보 */
    overflow: hidden;
}

/* 상단 4개 메뉴 버튼 */
#header .headerTop a {
    width: 25%;
    float: left;
    height: 36px; 
    line-height: 36px; 
    background-color:#00448f; 
    color:#fff; 
    display:block; 
    text-align: center;
    border-left:1px solid #1a569d; 
    font-size: 0.85em; /* 글자 짤림 방지 */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#header .headerTop a:first-child {
    border-left: none;
}

#header .headerTop a .fa {
    vertical-align: middle; 
    position: relative; 
    top: -1px;
}

/* 오른쪽 고정 MENU 버튼 */
#header #menu {
    width:45px; 
    height: 36px;
    line-height: 36px;
    background-color:#ab3e41; 
    position:absolute; 
    top: 0;
    right:0;
    border-left: none;
}
#header #menu .fa {top: 0;}

/* 헤더 로고 및 우측 아이콘 영역 정리 */
#header .headerBottom {
    width: 100%;
    padding:0 15px; /* 좌우 여백을 30px -> 15px로 줄여 모바일 맞춤 */
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#header .headerBottom h1 {font-size:2.333em; margin: 0;}
#header .headerBottom .headerBottomLeft { margin-top: 9px; margin-bottom: 9px; text-align: left;}
#header .headerBottom .headerBottomLeft img { max-width: 100%; height: auto; } /* 로고 이미지 삐져나옴 방지 */
#header .headerBottom .headerBottomRight { margin-top: 0;}
#header .headerBottom .headerBottomRight a {margin-left:12px; color:#7d7d7d;}
#header .headerBottom .headerBottomRight a .fa-bookmark-o {color:#f1494d;}
#header .headerBottom .headerBottomRight .cart {position:relative;}
#header .headerBottom .headerBottomRight .cart sup {width:12px; height:12px; background-color:#f1191f; color:#fff; border-radius:6px; position:absolute; top:-12px; right:-5px; text-align: center; line-height: 12px;}

/* 검색 영역 */
#header .search {height:42px; position:relative; left:0; right:0; background-color:#ab3e41; padding-right:45px; text-align:center; display:none; z-index:10;}
#header .search .searchBox {width:100%;}
#header .search .searchBox input {width:90%; height:30px; border:0px none; margin-top: 6px; padding: 0 5px;}
#header .search .btn_search {width:45px; height:42px; line-height:50px; background-color:#822023; position:absolute; top:0; right:0; color:#fff; text-align:center;}

/* 카테고리 슬라이드 메뉴 */
aside {position:fixed; width:320px; max-width: 85%; height:100%; top:36px; right:0; bottom:0; background-color:#fff; overflow-y:auto; -webkit-overflow-scrolling: touch; z-index:1001; display:none;}
aside .asideTop {text-align:center;}
aside .asideTop a {width:33.33%; height:62px; display:inline-block; border-bottom:2px solid #c3c3c3; color:#8f8f8f; font-weight:bold;}
/* BASIC css end */

