/* 레이아웃 CSS */
.rows_gnb_wrap {border-top:1px solid rgba(255,255,255,0.2); padding-top: 10px; margin-top: 20px;}
.row_gnbs {position: relative;}
.row_gnbs .cbp-hrmenu > ul, .cbp-hrmenu .cbp-hrsub-inner {padding-left: 0px; padding-right: 0px;}
.row_gnbs .cbp-hrmenu > ul > li {padding-left: 0px; padding-right: 30px;}
.row_gnbs .cbp-hrmenu > ul {float:none !important; line-height: 100%;}
.gnb_wrap .row_gnbs nav {float:none;}
.row_gnbs .cbp-hrmenu .cbp-hrsub {top:40px;}

.search_top_wrap {float:left; position: relative; width: 200px;}
.search_top_wrap input {border:0px;border-radius: 40px; height:40px; width: 100%; color:#000;}
.search_top_wrap input::placeholder{font-family:'font-R',sans-serif; color:#999;}
.search_top_wrap button {position: absolute; top:10px; right:15px;}
.search_top_wrap input:focus {border:1px solid #ddd;}
.search_top_wrap_inner {position: relative;}

/* 게시판 fixed 버튼 위치조정 */
.rb_bbs_wrap .btns_gr_wrap {top:185px !important;}

.co_header0 .rows_gnb_wrap {border-top:1px solid rgba(0,0,0,0.05);}
.co_header0 .search_top_wrap input {background-color: rgba(0,0,0,0.05);}
.ser_display_none .search_top_wrap_inner {display: none;}

.cbp-hrmenu .cbp-hrsub-inner > div {min-width: 140px;}
.cbp-hrmenu .cbp-hrsub {margin-left: -30px;}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li{position: relative; min-height:32.2px;}
#cbp-hrmenu .cbp-hropen .cbp-hrsub {padding-left: 30px; padding-right: 30px; padding-top: 20px; padding-bottom: 20px;}
.cbp-hrmenu .cbp-hrsub-inner > div i {position: absolute; top:7px; right:-5px; opacity: 0.5; transition: transform 220ms ease, opacity 220ms ease;}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li:hover i {opacity: 0;}
.cbp-hrmenu .cbp-hrsub-inner > div a {padding-right: 20px;}

.gnb_all_menu .cbp-hrsub .cbp-hrsub-inner > div > ul > li{position: relative; min-height:auto !important}

#cbp-hrmenu .cbp-hrsub-3{
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    position: absolute;
    left: 100%;
    top: -10px;

    background-color: #fff;
    min-width: 120px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);

    transform: translate3d(0, 6px, 0);
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 9
}

#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover > .cbp-hrsub-3{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover > .cbp-hrsub-3 a {padding-top: 4px; padding-bottom: 4px; font-family: 'font-R'; font-size: 13px; padding-right: 0px;}
#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover {position: relative;}

#header {box-shadow: none; border-bottom: 1px solid #eee !important; padding-bottom: 0px; z-index: 99 !important;}
#header.gnb_up {top:-96px !important;}
.gnb_wrap .inner {display: flex; align-items: center; gap:30px}
.gnb_wrap .snb_wrap {float:none; margin-left: auto; display: flex; align-items: center; gap:30px;}
.gnb_wrap .logo_wrap {margin-right: 0px;}
.gnb_wrap ul {line-height: 100%;}
.gnb_wrap .snb_wrap .qm_wrap a {padding-left: 0px; padding-right: 0px; line-height: 100%; margin: 0px; float:none; width: auto;}
.gnb_wrap #ol_after_scrap {margin-top: 0px;}
.gnb_wrap .snb_wrap .qm_wrap {display: flex; align-items: center;  gap:20px;}
.gnb_wrap .snb_wrap .member_info_wrap {margin-left: 0px;}
.gnb_wrap .snb_wrap .my_btn_wrap {float:none; margin-left: 0px; position: relative !important; z-index: 99 !important;}
.gnb_wrap .snb_wrap .my_btn_wrap button {background-color: #fff; border:1px solid #ddd; height:35px; color:#000;}
.gnb_wrap .snb_wrap .qm_wrap a span {left: 10px; border-radius: 20px; min-width: 18px; text-align: center; top:-4px}
.gnb_wrap .rows_gnb_wrap {margin-top: 0px; border-top:0px; padding-bottom: 10px;}
.gnb_wrap .rows_gnb_wrap .cbp-hrmenu > ul > li {padding-right: 0px;}
.gnb_wrap .rows_gnb_wrap nav {width: 100%;}
.gnb_wrap .rows_gnb_wrap nav .swiper-slide-gnb {width: auto !important;}
.swiper-container-gnb {overflow: inherit !important;}
.gnb_wrap .snb_q_wrap {display: flex; align-items: center; gap:25px; flex: 0 0 auto;}
.gnb_wrap .snb_q_wrap a {opacity: 0.6}
.gnb_wrap .rows_gnb_wrap {display: flex; align-items: center; margin: 0 auto;}
.gnb_wrap .rows_gnb_wrap .row_gnbs {width: 100%; margin:inherit; display: block; align-items: center; gap: 0px;}
.gnb_wrap nav {background-color: transparent;}
.gnb_wrap .snb_wrap .member_info_wrap a .notranslate font {opacity: 0.6;}
.gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {background-image: url(../../../rb.img/icon/arr_down.svg);}
.gnb_wrap .snb_wrap .qm_wrap a svg {opacity: .3; margin-top: 3px;}
.gnb_wrap .snb_wrap .qm_wrap a:hover svg {opacity: 1;}

#rb_my_ovray.arr_bg.is_open{background-image: url(../../../rb.img/icon/arr_up.svg);}
.rb_my_panel{
    display: none;
    position: absolute;
    min-height: 200px;
    z-index: 10006 !important;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

#rb_my_panel{position:fixed;}
#rb_my_panel[aria-hidden="true"]{display:none;}
#rb_my_panel.is_open{display:block;}

.rb_my_panel_row {display: flex; align-items: center; gap:15px;}
.rb_my_panel_row .rb_my_p_ul1 {}
.rb_my_panel_row .rb_my_p_ul1 img {height:40px; border-radius: 10px;}
.rb_my_panel_row .rb_my_p_ul2 {}
.rb_my_panel_row .rb_my_p_ul2 li {float:none;}
.my_p_flex {display: flex; align-items: center; gap:5px;}
.rb_my_p_btn {flex: 1 1 0; min-width: 0; background-color: #f0f5f9 !important; border:0px !important; border-radius: 6px; text-align: center; color:#000;}
.rb_my_p_btn_w {background-color: #fff !important; border:1px solid #ddd !important;}
.rb_my_p_ul2.flex_r {margin-left: auto;}
.rb_my_panel_line {border-top:1px solid #eee; margin-top: 10px;}
.gnb_all_menu {margin-left: auto; padding-right: 20px !important;}

.shop_type_list {background-color: #ffcd4a; margin-bottom: 20px;}
.shop_type_list a {border-right: 1px solid #fff; padding-right: 10px; margin-right: 10px;}
.shop_type_list a:last-child {padding-right: 0px; margin-right: 0px; border-right: 0px;}
.shop_type_list .inner {text-align: right; display: block; padding-bottom: 10px; padding-top: 10px;}
#header {padding-top: 0px;}

#google_notranslate_top {margin-left: 0px !important; position: relative;}
.translation-links {top:25px !important; right:-17px !important; box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05) !important;}
.translation-links a {margin-top: 2px; margin-bottom: 2px; display: block}

.translation-links::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;

}

@media all and (max-width:1024px) {

    .search_top_wrap {display: none !important;}
    .gnb_wrap .snb_wrap .qm_wrap a {width: auto; padding-left: 0px;}

    /* 1.0.1 { */
    .mobile_cb {clear: both;}
    .search_top_wrap {display: block; float:none !important; width: 100%; margin-top: 10px;}
    .gnb_wrap .snb_wrap .my_btn_wrap {display: block;}
    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {padding-left: 15px; padding-right: 35px; min-width: 92px; flex-shrink: 0;}
    .gnb_wrap .snb_wrap .qm_wrap a span {right: 10px; left: auto;}
    /* } */

    /* 1.1.1 { */
    .gnb_wrap .inner {gap:10px;}
    /* } */

    .gnb_wrap .tog_wrap {margin-right: 0px;}
    .gnb_wrap .snb_wrap {gap:10px;}
    .rows_gnb_wrap .cbp-hrmenu {position:relative; width: 100%; height: auto;}
    .gnb_wrap .rows_gnb_wrap {width: 100% !important; padding-top: 0px; display: none;}
    .rows_gnb_wrap .cbp-hrmenu .cbp-hrsub {display: none !important;}
    .gnb_wrap .snb_q_wrap {display: none;}
    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {background-position: center right 15px;}
    .gnb_all_menu {display: none !important;}
    .shop_type_list {background-color: #fff; margin-bottom: 5px;}
    .shop_type_list .inner {display: flex; align-items: center; gap:15px; padding-top: 15px;}
    .shop_type_list .inner a {padding-right:0px; border:0px; margin-right: 0px;}
    .shop_type_list .inner a.rb_cp_gap {margin-left: auto;}
    #header {padding-bottom: 10px;}
    #header.gnb_up {top:-35px !important;}
    #header.gnb_up .gnb_wrap .rows_gnb_wrap {padding-top: 10px; transition: all 600ms cubic-bezier(0.86, 0, 0.07, 1);}
    .gnb_wrap .snb_wrap .qm_wrap {gap:5px}
    .gnb_wrap .snb_wrap {gap:10px;}
    .gnb_wrap .snb_wrap .my_btn_wrap {display: block !important;}

}

/* ======================================================================
   ★ 스크롤 시 헤더 극적 축소 및 로고 60% 압축 모션 (PC 전용 최적화)
   ====================================================================== */

/* 1. 기본 상태: 부드러운 시간차 애니메이션 전체 세팅 */
#header { 
    transition: top 0.4s ease !important; 
}
.shop_type_list { 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; 
}
.gnb_wrap .logo_wrap,
.gnb_wrap .search_top_wrap,
.gnb_wrap .snb_wrap {
    margin-top: 10px !important; /* 평상시 여백을 더 시원하게 확보 */
    transition: margin-top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
#header .logo_wrap img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: left center !important; 
}

/* 2. 스크롤을 내렸을 때 (.gnb_up 활성화 시) 과감한 압축 감행 */
#header.gnb_up { 
    top: 0 !important; /* 화면 상단 고정 */
} 

/* [핵심] 최상단 텍스트 바를 완전히 접어서 헤더 전체 높이를 확 줄입니다 */

#header.gnb_up .shop_type_list {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    overflow: hidden !important; /* ★ 평상시엔 풀려있다가, 스크롤을 내릴 때만 가리도록 위치를 이동시켰습니다 */
    opacity: 0 !important; /* 닫힐 때 잔상이 남지 않게 깔끔하게 지웁니다 */
}

/* 여백을 상단으로 바짝 밀어 올려 슬림 바 형태로 개조 */
#header.gnb_up .gnb_wrap .logo_wrap,
#header.gnb_up .gnb_wrap .search_top_wrap,
#header.gnb_up .gnb_wrap .snb_wrap {
    margin-top: -30px !important; 
}

/* 로고 크기를 60% (0.6)로 과감하게 축소하여 눈맛을 살립니다 */
#header.gnb_up .logo_wrap img {
    transform: scale(0.8) !important; 
}

/* ======================================================================
   ★ 모바일 (1024px 이하) 전용 여백 조정 및 로고 중앙 정렬
   ====================================================================== */
@media all and (max-width:1024px) {
    /* 1. 상하 여백 조정 (위는 시원하게 띄우고, 아래는 바짝 붙임) */
    .gnb_wrap > div.inner:nth-of-type(2) {
        padding-top: 15px !important; /* 상단 여백 15px 확보 */
        padding-bottom: 10px !important; /* 하단 여백 축소 */
        position: relative !important;
    }

    /* 2. 로고 정중앙 강제 배치 (PHP 수정 불필요) */
    .gnb_wrap .logo_wrap {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important; /* PC에서 내려온 여백 초기화 */
        z-index: 5 !important;
    }

    /* 3. 모바일 환경에서 PC용 마진 값 무력화 (찌그러짐 방지) */
    .gnb_wrap .search_top_wrap,
    .gnb_wrap .snb_wrap {
        margin-top: 0 !important; 
        z-index: 10 !important;
    }

    /* 4. 모바일 스크롤 시 위로 파고드는(-30px) 현상 완벽 방어 */
    #header.gnb_up .gnb_wrap .logo_wrap {
        margin-top: 0 !important;
        transform: translateX(-50%) scale(0.8) !important; /* 중앙 정렬 유지하며 축소 */
    }
    #header.gnb_up .gnb_wrap .search_top_wrap,
    #header.gnb_up .gnb_wrap .snb_wrap {
        margin-top: 0 !important; 
    }
}

/* ======================================================================
   ★ 내 정보 드롭다운 패널 무조건 최상위 노출 (자바스크립트 충돌 방지)
   ====================================================================== */
div.rb_my_panel {
    z-index: 999999 !important; /* 그 어떤 요소보다 높은 절대 계급 부여 */
}
/* =========================================================
   🔥 스카이베이프 전용 모바일 검색 패널 CSS (테마 독립형)
   ========================================================= */

/* 모바일 전용 검색 패널 (기본은 화면 위로 숨어있음) */
.sky-sch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 999999; /* 무조건 최상단에 뜨도록 */
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    visibility: hidden;
}

/* active 클래스가 붙으면 부드럽게 나타남 */
.sky-sch-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.sky-sch-container {
    width: 100%;
    max-width: 768px; /* 태블릿/모바일 사이즈 최적화 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 상단 헤더 영역 (닫기 + 검색폼) */
.sky-sch-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.sky-sch-close-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 검색 폼 영역 */
.sky-sch-form {
    flex-grow: 1;
    position: relative;
    border: 2px solid #09244B; /* 스카이베이프 메인 컬러 */
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 45px;
}

.sky-sch-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 45px 0 20px;
    font-size: 15px;
    outline: none;
    color: #111;
    background: transparent;
}

.sky-sch-input::placeholder {
    color: #bbb;
    font-weight: normal;
}

.sky-sch-submit-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* 본문 영역 (최근검색어, 인기검색어) */
.sky-sch-body {
    padding: 30px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.sky-sch-sect {
    margin-bottom: 35px;
}

.sky-sch-sect h3 {
    font-size: 16px;
    color: #111;
    margin-bottom: 15px;
}

.sky-sch-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 태그 버튼 디자인 */
.sky-sch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sky-sch-tags a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.sky-sch-tags a:hover,
.sky-sch-tags a:active {
    border-color: #09244B;
    color: #09244B;
    font-weight: bold;
}

/* 헤더에 있던 기존 PC 검색창은 모바일에서 숨김 처리 */
@media all and (max-width:1024px) {
    .pc_only_search { display: none !important; }
}
/* =========================================================
   🔥 스카이베이프 검색 패널 '인기상품' 전용 CSS
   ========================================================= */

.sky-sch-items {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 상품과 상품 사이 간격 */
    padding: 0;
    margin: 0;
    list-style: none;
}

.sky-sch-items a {
    display: flex;
    align-items: center;
    gap: 15px; /* 사진과 글씨 간격 */
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.sky-sch-items a:hover,
.sky-sch-items a:active {
    background: #f4f6f8; /* 터치/마우스오버 시 살짝 배경색 바뀜 */
}

/* 썸네일 이미지 영역 */
.sky-sch-items .item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
    position: relative;
}

.sky-sch-items .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 상품 정보(이름, 가격) 영역 */
.sky-sch-items .item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.sky-sch-items .item-name {
    font-size: 14px;
    color: #333;
    /* 글자가 길면 ... 으로 자름 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.sky-sch-items .item-price {
    font-size: 15px;
    font-weight: bold;
    color: #111;
}