/* BASIC css start */
/* BASIC css start */
/* BASIC css start */
/* 기본 레이아웃 */
#header { width: 100%; background: var(--color-white); }
#header .inner { width: 1200px; margin: 0 auto; display: flex; align-items: center; position: relative; }

/* 상단 섹션 */
.head_top { padding: var(--spacing-xl) 0; background: var(--color-white); }
.logo { margin-right: var(--spacing-layout-1); }
.logo img { height: 28px; display: block; }

/* 검색창 */
.search_box { flex: 1; margin: 0 var(--spacing-layout-1) 0 0; }
.search_box fieldset { border: none; padding: 0; margin: 0; position: relative; display: flex; }
.search_box .search_input { 
border:none;
height:40px;
border-radius: var(--radius-regular);
background: var(--color-neutral-100);
display: flex;
padding: var(--spacing-3xs) var(--spacing-layout-1) var(--spacing-3xs) var(--spacing-md);
justify-content: space-between;
align-items: center;
flex: 1 0 0;

color: var(--neutral-500);
font-size: var(--font-size-base);
line-height: 140%;
}
.search_box .btn_search { 
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); 
    background: none; border: none; cursor: pointer; width: 40px; 
}
.search_box .btn_search img { width: 100%; }

/* 유저 메뉴 */
.user_menu { display: flex; gap: var(--spacing-xs); margin-left: auto; }
.user_menu a{
    display: flex;
    position:relative;
    flex-direction: column;
    align-content: center;
    align-items: center;
    gap: 0px;
    span{ 
        font-size: var(--font-size-2xs);
        line-height:.5;
    }
}
.user_menu img { width: 48px; }
.user_menu .user_basket_quantity{
    background:var(--color-red-500);
    color:var(--color-white);
    border-radius:50%;
    width: var(--spacing-md);
    height: var(--spacing-md);
    line-height:var(--spacing-md);
    text-align:center;
    vertical-align:middle;
    display:flex;
    justify-content:center;
    font-size: var(--font-size-2xs);
    align-content:center;
    position:absolute;
    right:2px; top:0px;
}


/* GNB 영역 (Sticky/Fixed) */
.head_gnb { 
    width: 100%; 
    background: var(--color-white);  
    z-index: 1000;
    border-bottom: 1px solid var(--color-neutral-100);
}
 
.head_gnb.is-fixed { 
    position: fixed !important; 
    top: -1px !important; 
    left: 0 !important; 
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important; 
    border-bottom: none;
    z-index: 10000; 
    animation: stickyAni 0.2s ease-out forwards;
    border-bottom: 1px solid var(--color-neutral-100);
}

@keyframes stickyAni {
    from { transform: translateY(-2px); }
    to { transform: translateY(0); }
}

/* 카테고리 & 브랜드 레이어 */
.all_category { position: relative; }
.btn_ham { 
    background: var(--color-secondary-500); color: var(--color-white); 
    padding: 0 var(--spacing-xl); height: 58px; display: flex; align-items: center; 
    font-weight: 700; border-radius: var(--radius-small) var(--radius-small) 0 0; text-decoration: none; font-size:var(--font-size-lg)
}
.ham_icon { width: 18px; margin-right: var(--spacing-sm); }
.ham_icon span { display: block; height: 2px; background: var(--color-white); margin-bottom: 4px; border-radius: 2px; }
.ham_icon span:last-child { margin-bottom: 0; }

.brand_layer {
    display: none; position: absolute; top: 100%; left: 0; width: 220px;
    background: var(--color-white); border: 1px solid var(--color-neutral-100); border-radius: 0 0 var(--radius-small) var(--radius-small); z-index: 10001;
}

/* 메뉴 리스트 */
.gnb ul { display: flex; margin-left: var(--spacing-xl); padding:var(--spacing-md) 0;}
.gnb ul li a { 
    padding: 0 var(--spacing-xl); display: block; 
    font-size: var(--font-size-lg); color: var(--color-neutral-500); text-decoration: none; font-weight: 400;
}
.gnb ul li.on a { 
    color: var(--color-primary-500); 
    font-weight: 700; 
}



/* 햄버거메뉴 */

body.no-scroll { overflow: hidden; touch-action: none; }


#header .headerGnb .hammenu{  display: none;  float: unset; padding: 0; position: absolute; top: 55px; left: 0; height: 435px; background: #fff; border: 1px solid #e5e5e5; box-sizing: border-box;}
/* 1차 메뉴 (Depth 1) */
.hammenu .depth1 { 
    width: 194px; 
    height: 394px; 
    padding: var(--spacing-sm) 0 0; 
    overflow-y: auto; 
    direction: rtl; /* 스크롤바 위치 제어용 */
    background-color: var(--color-white);
    -ms-overflow-style: none; 
    scrollbar-width: none; /* Firefox 스크롤바 숨김 */
}

/* Chrome, Safari 스크롤바 숨김 */
.hammenu .depth1::-webkit-scrollbar { display: none; }

.hammenu .depth1 li {  
    text-align: left; 
    direction: ltr; /* 텍스트 방향 원복 */
}

.hammenu .depth1 li a { 
    display: block; 
    padding: 10px var(--spacing-xl); 
    color: var(--color-neutral-500); 
    font-size: var(--font-size-base);
    transition: color 0.2s;
}

/* 1차 메뉴 호버 및 활성화 (Secondary Color) */
.hammenu li a:hover,
.hammenu .depth1 > li.depopen > a { 
    color: var(--color-secondary-500);
    font-weight:700;
}

/* 2차 메뉴 (Depth 2) */
.hammenu .depth2 { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 194px; /* depth1 너비에 맞춤 */
    background: var(--color-white); 
    width: 100%; 
    height: 394px; 
    padding: var(--spacing-sm) 0 0; 
    border: 1px solid var(--color-neutral-100); 
    border-top: 0; 
    border-left: 0; 
    z-index: 10;
    border-radius:0 0 var(--radius-small) 0;
}

.hammenu .depth2 > div { 
    height: 394px; 
    line-height: 1.4; 
    overflow-y: auto; 
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hammenu .depth2 > div::-webkit-scrollbar { display: none; }

.hammenu .depth2 li { padding: 0 var(--spacing-xl); margin: 0; }
.hammenu .depth2 li a { 
    display: inline-block; 
    width:100%;
    padding: var(--spacing-sm) 0; 
    color: var(--color-neutral-500); 
    font-size: var(--font-size-base);
}

/* 2차 메뉴 호버 및 활성화 */
.hammenu .depth2 li a:hover,
.hammenu .depth2 li.depopen > a {  
    color: var(--color-secondary-500); 
}

/* 3차 메뉴 (Depth 3) */
.hammenu .depth3 { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 194px; /* depth2와 동일한 기준으로 옆으로 펼쳐짐 */
    background: var(--color-white); 
    width: 100%; 
    height: 394px; 
    padding: var(--spacing-sm) 0 0; 
    border: 1px solid var(--color-neutral-100); 
    border-top: 0; 
    border-left: 0; 
    overflow-y: auto; 
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 11;
    border-radius:0 0 var(--radius-small) 0;
}
.hammenu .depth3::-webkit-scrollbar { display: none; }

/* 3차 메뉴 호버 */
.hammenu .depth3 li a:hover { 
    color: var(--color-secondary-500); 
}
/* BASIC css end */


/* BASIC css end */


/* BASIC css end */

