html{font-size: 10px;}

/* Pretendard Variable 폰트 설정 */
@font-face {
    font-family: 'Pretendard';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: local('Pretendard Variable'),
         url('../font/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}

/* 가변 폰트를 지원하지 않는 브라우저를 위한 개별 폰트 설정 */
@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Thin.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Thin.woff') format('woff');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-ExtraLight.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Light.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Regular.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Medium.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-SemiBold.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Bold.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-ExtraBold.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../font/web/static/woff2/Pretendard-Black.woff2') format('woff2'),
         url('../font/web/static/woff/Pretendard-Black.woff') format('woff');
    font-weight: 900;
    font-display: swap;
}

/* 사이트 전체 기본 폰트 설정 */
body, input, textarea, select, button, table, th, td, caption, legend, h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

#hd {
    position: relative;
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 9999;
}

#hd.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* full_search의 마진도 조정 */
.full_search::before {
    top: 120px; /* 고정 헤더의 높이에 맞춤 */
    height: calc(100% - 120px);
}

.search_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 고정 헤더일 때 본문 여백 */
body {
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

body.header-fixed {
    padding-top: 120px; /* 새로운 헤더의 높이만큼 */
}

.top_banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 8px 0;
}

#hd_wrapper {
    background: #fff;
    /* border-bottom: 1px solid #eee; */
}

#hd_wrapper .inner {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 0 20px;
}

.top_banner p{
    font-size: 1.6rem;
    font-weight: 600;
}

/* 로고와 우측 버튼들을 감싸는 새로운 클래스 */
/* PC용 헤더 상단 */
.header_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* 모바일용 헤더 상단 */
@media (max-width: 767px) {
    .header_top {
        padding: 0px 15px;
        flex-wrap: wrap;
    }
}

/* 하단 영역 - 토글과 메뉴를 감싸는 클래스 */
.header_bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 3px 20px;
}

/* 토글 스위치 스타일 */
.region_switch {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

#logo {
    display: flex;
    align-items: center;
}
#logo img{
    width: 140px;
}

.gnb {
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.gnb ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnb ul li a {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.gnb ul li a:hover {
    color: #000;
    font-weight: 600;
}

.hd_right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hd_right a {
    color: #333;
    font-size: 20px;
}

.cart_btn {
    position: relative;
}

.cart_btn .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000 !important;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full_search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

/* 블러 효과를 위한 오버레이 별도 추가 */
.full_search::before {
    content: '';
    position: fixed;
    top: 120px; /* 고정 헤더의 높이에 맞춤 */
    left: 0;
    width: 100%;
    height: calc(100% - 120px); /* 고정 헤더의 높이만큼 제외 */
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.search_wrapper {
    position: relative; /* relative로 변경 */
    width: 100%;
    background: #fff;
    padding: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999999;
}

.search_inner {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search_inner input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 50px 0 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background: #f5f5f5;
}

.search_inner input[type="text"]::placeholder {
    color: #999;
}

.search_inner button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.search_inner button[type="submit"] {
    right: 20px;
}
.search_wrapper .choo{
    width: 100%;
    max-width: 800px;
    margin: 30px auto 50px;
}
.search_wrapper .choo .flex_box{display: flex; gap: 10px; flex-wrap: wrap;}
.search_wrapper .choo h3{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.search_wrapper .choo a{
    padding: 6px 12px;
    background-color: #ededed;
    color: #707070;
    border-radius: 100px;
    font-size: 16px;
}

.search_wrapper .ingi{
    width: 100%;
    max-width: 800px;
    margin: auto;
}
.search_wrapper .ingi > .flex_box{
    display: flex;
    justify-content: start;
    gap: 300px;
}
.search_wrapper .ingi h3{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.search_wrapper .ingi h3 span{
    font-size: 12px;
    color: #777;
}
.search_wrapper .ingi > .flex_box .flex_box{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.search_wrapper .ingi > .flex_box .flex_box a{
    font-size: 14px;
}
.search_close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.community-menu {
    position: relative;
}

.community_wrapper {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 180px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
    padding: 20px;
}

.community_overlay {
    display: none;
    position: fixed;
    top: 160px; /* 헤더 높이만큼 아래로 */
    left: 0;
    width: 100%;
    height: calc(100% - 160px);
    z-index: 9;
}

.community_overlay::before {
    content: '';
    position: fixed; /* absolute에서 다시 fixed로 */
    top: 160px; /* 헤더 높이만큼 아래로 */
    left: 0;
    width: 100%;
    height: calc(100% - 160px); /* 전체 높이에서 헤더 높이만큼 뺌 */
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9;
}

.community_inner {
    max-width: 800px;
    margin: 0 auto;
}

.community_inner ul {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.community_inner ul li a {
    font-size: 16px;
    color: #333;
    padding: 10px 20px;
}

.community_inner ul li a:hover {
    color: #000;
    font-weight: bold;
}

/* 서브메뉴 호버 유지를 위한 추가 영역 */
.community_overlay::after {
    content: '';
    position: fixed;
    top: 120px;  /* 헤더 높이에 맞춰 조정 */
    left: 0;
    width: 100%;
    height: 40px;  /* 메인메뉴와 서브메뉴 사이 공간 */
    background: transparent;
}

/* 햄버거바 */
.hamburger_menu {
    position: relative;
}

.ham_btn {
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ham_btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    transition: all 0.3s;
}

.ham_btn span:nth-child(1) { top: 0; }
.ham_btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ham_btn span:nth-child(3) { bottom: 0; }

/* 햄버거 버튼 활성화 시 */
.ham_btn.active span:nth-child(1) { 
    transform: rotate(45deg); 
    top: 50%; 
}
.ham_btn.active span:nth-child(2) { 
    opacity: 0; 
}
.ham_btn.active span:nth-child(3) { 
    transform: rotate(-45deg); 
    bottom: 50%; 
}

.menu_panel {
    position: fixed;
    top: 1%;
    left: 1%;
    transform: none;
    width: 98%;
    max-width: 767px;
    height: 98%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    border-radius: 3rem;
    padding-bottom: 6rem;
    padding-top: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu_panel.active {
    opacity: 1;
    visibility: visible;
}

.menu_header {
    position: absolute;
    top: 20px;
    right: 20px;
}

.close_btn {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    color: #000;
}

.menu_list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu_list li {
    text-align: start;
}

.menu_list li a {
    display: inline-block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 600;
    transition: all 0.3s;
}

.menu_list li a:hover {
    color: #000;
    font-weight: bold;
}

/* ==================== 카테고리 레이어 팝업 스타일 ==================== */

/* 오버레이 */
#category_layer_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

#category_layer_overlay.active {
    display: block;
}

/* 메인 팝업 */
#category_layer_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

#category_layer_popup.active {
    display: block;
}

/* 카테고리 팝업 내부 스타일 */
#category_layer_popup .category_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

#category_layer_popup .category_title {
    display: flex;
    align-items: center;
    gap: 10px;
}

#category_layer_popup .category_logo {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

#category_layer_popup .category_subtitle {
    font-size: 14px;
    color: #666;
}

#category_layer_popup .category_close_btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s ease;
}

#category_layer_popup .category_close_btn:hover {
    color: #000;
}

#category_layer_popup .category_content {
    height: calc(100% - 120px);
    overflow-y: auto;
}

#category_layer_popup .category_tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

#category_layer_popup .category_tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#category_layer_popup .category_tab:hover {
    color: #000;
    background: #f8f8f8;
}

#category_layer_popup .category_tab.active {
    color: #000;
    font-weight: 600;
}

#category_layer_popup .category_tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

#category_layer_popup .category_sections {
    position: relative;
    height: 100%;
}

#category_layer_popup .category_section {
    display: none;
    padding: 30px;
    height: 100%;
}

#category_layer_popup .category_section.active {
    display: block;
}

#category_layer_popup .category_columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    height: 100%;
}

#category_layer_popup .category_column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#category_layer_popup .category_title_group h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

#category_layer_popup .category_items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#category_layer_popup .category_items a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 5px 0;
    transition: color 0.2s ease;
}

#category_layer_popup .category_items a:hover {
    color: #000;
}

/* 모바일용 카테고리 레이어 스타일 */
@media (max-width: 768px) {
    #category_layer_popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        transform: translateY(100%);
    }
    
    #category_layer_popup.active {
        transform: translateY(0);
    }
    
    #category_layer_popup .category_header {
        padding: 15px 20px;
    }
    
    #category_layer_popup .category_logo {
        font-size: 18px;
    }
    
    #category_layer_popup .category_tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    #category_layer_popup .category_tabs::-webkit-scrollbar {
        display: none;
    }
    
    #category_layer_popup .category_tab {
        white-space: nowrap;
        min-width: 80px;
        padding: 15px;
    }
    
    #category_layer_popup .category_content {
        height: calc(100% - 110px);
    }
    
    #category_layer_popup .category_section {
        padding: 20px;
    }
    
    #category_layer_popup .category_columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #category_layer_popup .category_title_group h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    #category_layer_popup .category_items {
        gap: 12px;
    }
    
    #category_layer_popup .category_items a {
        font-size: 16px;
        padding: 8px 0;
    }
}

/* PC 데스크탑에서만 보이는 스타일 */
@media (min-width: 1024px) {
    #category_layer_popup {
        max-width: 1400px;
        height: 70%;
        max-height: 700px;
    }
    
    #category_layer_popup .category_columns {
        grid-template-columns: repeat(5, 1fr);
        gap: 50px;
    }
}

/* 검색창 스타일 */
.menu_search {
    position: relative;
    width: 100%;
    margin: 20px auto 0;
    padding: 0 20px;
}

.menu_search input[type="text"] {
    width: 100%;
    height: 45px;
    padding: 0 50px 0 20px;
    border: none;
    background: #f4f4f4;
    font-size: 16px;
    outline: none;
}

.menu_search input[type="text"]::placeholder {
    color: #999;
}

/* 메뉴 하단 링크 스타일 */
.menu_bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
}

.bottom_links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.bottom_links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 1.6rem;
    text-decoration: none;
    padding: 10px;
}

.bottom_links a i {
    font-size: 1.8rem;
}

.bottom_links .cart_btn {
    position: relative;
}

.bottom_links .cart_btn .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000 !important;
    color: #fff;
    font-size: 1.2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메뉴 패널 여백 조정 */
.menu_panel {
    padding-bottom: 80px; /* 하단 메뉴 높이만큼 여백 추가 */
}

/* 블러 오버레이 추가 */
.menu_blur_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.menu_blur_overlay.active {
    opacity: 1;
    visibility: visible;
}
/* 메뉴 오버레이 제거 (전체화면 메뉴로 변경되어 불필요) */
.menu_overlay {
    display: none;
}

/* .hamburger_menu{
    display: none;
} */
.only_pc{display: block;}
.only_m{display: none;}
@media screen and (max-width: 1024px){
    .gnb{
        display: none;
    }
    .hamburger_menu{
        display: block; 
        margin-left: 15px;
        width: 30px;
        height: 24px;
    }
    .hamburger_menu span{
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        transition: all 0.3s;
    }
    .ham_btn.active span:nth-child(1) { 
        transform: rotate(45deg); 
        top: 50%; 
    }
    .ham_btn.active span:nth-child(2) { 
        opacity: 0; 
    }
    .ham_btn.active span:nth-child(3) { 
        transform: rotate(-45deg); 
        bottom: 50%; 
    }
    .only_pc{display: none;}
    .only_m{display: block;}
    /* 모바일 화면에서 헤더 우측 검색 아이콘 숨김 */
    #ft_copy{
        width: 100%;
    }
    #hd_wrapper {
        height: auto; 
        min-height: 50px;
        padding: 0;
    }
    #logo img{
        width: 100px;
    }
    #logo {padding: 15px 0 0;}
    #hd_wrapper .inner{padding: 0 20px 0 15px;}

    .menu_list li a{
        font-size: 1.8rem;
        padding: 3% 20px;
    }
    .menu_panel{
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .search_inner input[type="text"]{
        height: 40px;
    }
    .search_wrapper{
        padding:50px 10px;
    }
    .search_wrapper .choo{
        margin: 15px auto 25px;
    }
    .search_wrapper .ingi > .flex_box .flex_box{
        gap: 15px;
    }
    .search_close{
        top: 5px;
    }
    .search_wrapper .ingi > .flex_box{
        gap: 40%;
    }
    #sit_inf_explan{font-size: 1.2rem;}
    #logo{
        width: unset;
    }
}




@media screen and (max-width:768px){
    #popup{
        width: 100% !important;
        transform: translate(-50%, -50%) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    #popup iframe{
        width: 100% !important;
        height: 700px !important;
    }
    .ksnet{
        width: 93% !important;
    }
    .ksnet-inner{
        display: flex !important;
            flex-direction: column !important;
    }
    .steps{
        width: 100% !important;
    }
    .ksnet-inner .policy-content{
        height: 100px !important;
    }
    .steps > li.active{
        height: auto !important;
    }
    .summary{
        width: 100% !important;
    }
} 
