/* BASIC css start */

#upmenu,
.navCate,
.logo,
#upup {
    display: none !important;
}

#wrapper {
    padding-top: 0px !important;
}

/* 기본(서브페이지)에서는 흰 배경 + 로고/글씨 검정 반전 */
#header.transparentHeader {
    position: relative !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    z-index: 500 !important;
}

/* 메인 페이지에서는 배너 위 투명 겹침 */
body#main #header.transparentHeader,
#main #header.transparentHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
}

#header .headerInner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

#header .headerLeft {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

#header .headerLeft .fold {
    position: static !important;
    width: auto !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #111111 !important;
}

body#main #header .headerLeft .fold,
#main #header .headerLeft .fold {
    color: #ffffff !important;
}

#header #logo {
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: left !important;
}

#header #logo a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

#header #logo img {
    height: 16px !important; /* 로고 크기는 여기서 조절 (14px~20px) */
    width: auto !important;
    display: block !important;
    filter: invert(1) !important; /* 서브페이지(흰배경)에서는 검정 로고로 자동 반전 */
}

/* 메인 페이지에서는 원본 화이트 로고 그대로 출력 */
body#main #header #logo img,
#main #header #logo img {
    filter: none !important;
}

/* 우측 '검색  장바구니(0)' 텍스트 링크 */
#header .headerRight {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

#header .headerRight .txtLink {
    font-family: 'Pretendard', 'Noto Sans KR', "맑은 고딕", sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #111111 !important;
    letter-spacing: -0.3px !important;
    text-decoration: none !important;
}

body#main #header .headerRight .txtLink,
#main #header .headerRight .txtLink {
    color: #ffffff !important;
}

#header .headerRight .txtLink .count {
    font-weight: 400 !important;
}

/* 스크롤 시 내려오는 고정 헤더 (#bottomMenu) */
#bottomMenu.stickyHeader {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 16px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #eeeeee !important;
    box-sizing: border-box !important;
    z-index: 600 !important;
}

#bottomMenu.stickyHeader .headerLeft {
    float: left !important;
    height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
}

#bottomMenu.stickyHeader .headerRight {
    float: right !important;
    height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
}

#bottomMenu.stickyHeader #logo img {
    filter: invert(1) !important;
}

#bottomMenu.stickyHeader .headerRight .txtLink {
    color: #111111 !important;
}

/* ========================================================
   2. [사이드 메뉴 - 블랙업 스타일 화이트 미니멀 2단 구조]
======================================================== */
.navCategory li:nth-child(n+25) {
    display: none;
}

.menu_on {
    height: 100%;
    overflow: hidden;
}

.menu_off {
    height: auto;
    overflow: initial;
}

#aside2 {
    display: none;
    background-color: rgba(0, 0, 0, 0.35);
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    position: fixed;
    z-index: 999;
    right: 0;
}

#aside {
    bottom: 0;
    position: fixed;
    left: -100%;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
}

#aside #submu {
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 0 50px 0;
    background-color: #ffffff;
    font-family: 'Pretendard', 'Roboto', "맑은 고딕", sans-serif;
    box-sizing: border-box;
}

/* 최상단 X 버튼 & 로그인/회원가입 라인 */
#aside .asideTopHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 10px 20px;
}

#aside .btnAsideClose {
    background: none;
    border: 0;
    padding: 4px;
    margin-left: -4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#aside .asideTopLinks {
    display: flex;
    gap: 14px;
    align-items: center;
}

#aside .asideTopLinks a {
    font-size: 12px;
    color: #222222;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* 상단 텍스트 탭 */
#aside .tab {
    width: 100%;
    padding: 8px 20px 0 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 22px;
    box-sizing: border-box;
}

#aside .tab a {
    float: none;
    width: auto;
    border: 0;
    padding: 10px 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #bbbbbb;
    background: transparent;
    letter-spacing: -0.3px;
    position: relative;
}

#aside .tab a.act {
    color: #111111;
    font-weight: 600;
    background: transparent;
}

#aside .tab a.act::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1.5px;
    background: #111111;
}

/* 공통 2단 레이아웃 (좌측 대분류 28% / 우측 리스트 72%) */
#aside .navCategory,
#aside .navCommunity,
#aside .navMypage {
    width: 100%;
    padding: 26px 20px 10px 20px;
    background: #ffffff;
    border: 0;
    margin: 0;
    box-sizing: border-box;
}

aside .navCommunity,
aside .navMypage {
    display: none;
}

#aside .menuGroupRow {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#aside .groupTitle {
    width: 28%;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #111111;
    line-height: 24px;
    letter-spacing: -0.3px;
}

#aside .groupList {
    width: 72%;
    margin: 0;
    padding: 0;
}

/* 카테고리 및 메뉴 리스트 스타일 (테두리 제거, 여백 중심) */
#aside nav {
    background: transparent;
    border: 0;
    width: 100%;
    margin: 0;
}

#aside nav li,
#aside .groupList > li {
    border: 0;
    position: relative;
    margin-bottom: 14px;
}

#aside nav li:last-child,
#aside .groupList > li:last-child {
    margin-bottom: 0;
}

#aside .catRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#aside nav li a,
#aside .groupList > li > a {
    display: inline-block;
    height: auto;
    line-height: 24px;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    letter-spacing: -0.3px;
}

/* 우측 화살표(+) 토글 버튼 */
#aside nav li .fa {
    position: static;
    width: 28px;
    height: 24px;
    line-height: 24px;
    text-align: right;
    font-size: 14px;
    color: #999999;
    cursor: pointer;
}

/* 2차·3차 하위 카테고리 (펼쳤을 때 들여쓰기 및 톤 다운) */
#aside nav li > ul {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px 0 4px 10px;
}

#aside nav li > ul > li {
    border: 0;
    margin-bottom: 8px;
}

#aside nav li > ul > li a {
    font-size: 13px;
    line-height: 20px;
    color: #666666;
    padding: 0;
}

#aside nav li > ul > li > ul {
    border: 0;
    padding: 6px 0 2px 10px;
}

#aside nav li > ul > li > ul > li a {
    font-size: 12px;
    color: #888888;
    background: transparent;
    padding: 0;
}

/* 커뮤니티 뱃지 및 공지 리스트 */
#aside .badgeRed {
    color: #e52e2e;
    font-size: 10px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

#aside .noticeList li {
    margin-bottom: 8px;
}

#aside .noticeList li a {
    font-size: 12px;
    color: #555555;
    line-height: 18px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 최근 본 상품 그리드 */
#ly_lastView {
    width: 100%;
}

#ly_lastView h2 {
    padding: 0 0 12px 0;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    color: #111111;
    background: transparent;
}

#ly_lastView .emptyView {
    font-size: 12px;
    color: #999999;
    padding: 20px 0;
    text-align: left;
}

/* 하단 CS 안내 */
#aside .leftcall {
    width: 100%;
    margin: 32px 0 0 0;
    padding: 24px 20px 0 20px;
    border-top: 1px solid #f2f2f2;
    box-sizing: border-box;
}

#aside .csMiniInfo .csPhone {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 4px;
}

#aside .csMiniInfo p {
    font-size: 11px;
    color: #777777;
    line-height: 17px;
}

#wrapper.move {
    width: 100%;
    left: 100%;
    top: 0;
    overflow: hidden;
    position: fixed;
}

/* Uneedcomms Keepgrow 추가 시작 */
#detailBooster .btnClose, #floatKakaoBooster .btnClose {
    display: unset;
}
/* //Uneedcomms Keepgrow 추가 끝 */



/* BASIC css end */

