/* 레이아웃 CSS */
@media all and (max-width:1024px) { 
    /* .gnb_wrap .inner {padding-left: 0px !important; padding-right: 0px !important;} */
}
html.hidden,
body.hidden {
  overflow: hidden;
  height: 100%;
}
#header {border-bottom: 0px solid #DCDCE5; margin-top:-1px; padding: 0;}
#header .gnb_wrap {
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  padding-left: 28px;
  z-index: 200;
  height: 86px;
  display: flex;
  align-items: center;
}
#header .inner {display: flex; align-items: center; justify-content: space-between; position: relative; padding: 0; width: 100%; height: 100%;}

#header .inner .menu {
  height: 100%;
  width: 648px;
}

#cbp-hrmenu {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.cbp-hrmenu > ul {padding: 0; display: flex; align-items: center; width: fit-content; gap: 52px; height: 100%;}
.cbp-hrmenu > ul > li {padding: 0; height: 100%; }
.cbp-hrmenu .search_icon {cursor: pointer;}
.cbp-hrmenu > ul li a {color: #FFF; font-size: 18px; font-weight: 400 !important; line-height: 26px; display: flex; justify-content: center; align-items: center;  height: 100%; cusor: pointer; text-align: center;}
.cbp-hrmenu > ul li.active a {
  color: var(--primary-active-color);
  font-weight: 600 !important;
}
.logo_wrap {
  min-width: 244px;
}
.logo_wrap a {
  
  display: flex;
  gap: 6px;
  padding: 12px 0;
  align-items: center;
}

.rotate_logo{
  will-change: transform, filter;
  filter: hue-rotate(0deg) saturate(1) brightness(1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gnb_wrap .snb_wrap {float: none;display: flex;justify-content: flex-end; align-items: center;}
.gnb_wrap .snb_wrap .my_btn_wrap {float: none;}
.login_btn {
  color: #A8A8A8;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  padding: 0 8px;
}
.lang_wrap {display: flex; align-items: center; margin-left: 16px;}
.lang_wrap .global_btn {
    display: flex;
    width: 112px;
    /* height: 32px; */
    /* padding: 0 12px; */
    align-items: center;
    border-radius: 2px;
    border: 1px solid #D4D4D5;
    position: relative;
    cursor: pointer;
}
.lang_wrap .global_btn::before {
    position: absolute;
    content: "";
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url("/theme/rb.basic/rb.img/icon/dropdown.svg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 10px;
    height: 5px;
}
.lang_wrap .global_btn span {
  color: #A8A8A8;
   /* font-size: 16px;
   font-weight: 300;
   line-height: 24px; */
   font-family:'vonca';
   font-weight:900;
   letter-spacing:1px;
}
.lang_wrap .global_list {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    background: #FFF;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.10);
    z-index: 10;
}
.lang_wrap .global_list.active { display: block; z-index: 201; }
.lang_wrap .global_list ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 4px 0;
}
.lang_wrap .global_list li {
    width: 100%;
    padding: 10px 16px;
    display: flex;
    gap: 0 4px;
}
.qm_wrap,
.member_info_wrap {
    display: none;
}
#tog_gnb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

#tog_gnb span {
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.2s ease-in-out;
  transform-origin: center;
}

/* =========================
 * ACTIVE → X (차분)
 * ========================= */
#tog_gnb.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#tog_gnb.active span:nth-child(2) {
  opacity: 0;
  visibility: hidden;
}

#tog_gnb.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
#tog_gnb.active span:nth-child(1),
#tog_gnb.active span:nth-child(3) {
  transition-delay: 0.05s;
}
/* logo_wrap 숨길 때 */
.logo_wrap.hide {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all .4s ease;
}

.menu_bg {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #0000004D;
  transition: all 0.3s ease;
}
.menu_bg.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
}
.toggle_menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out; /* 내려오는 애니메이션 */
  display: flex;
  align-items: stretch;
  position: absolute;
  width: 100%;
  left: 0;
  top: 86px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: #FFF;
  z-index: 200;
}

.toggle_menu.active {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.3s ease-in-out; /* 내려오는 애니메이션 */
}
.toggle_menu .menu_list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #EAEAEA;
  background: #F7F7F9;
}
.toggle_menu .menu_list > li {
  display: flex;
  justify-content: flex-start;
  width: 200px;
  background-color: #fff;
   
}
.toggle_menu .menu_list > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 25px 16px 24px;
  gap: 4px;
  color: #28282B;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px; 
}

.toggle_menu .product_list {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #EAEAEA;
  width: 228px;
  height: 718px;
  overflow-y: auto;
  
  /* 스크롤 자연스럽게 */
  scroll-behavior: smooth;
  
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

/* =========================
   Webkit Scrollbar
========================= */
.toggle_menu .product_list::-webkit-scrollbar {
  width: 4px;
}

.toggle_menu .product_list::-webkit-scrollbar-track {
  background: transparent;
}

.toggle_menu .product_list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.toggle_menu .product_list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45);
}
.toggle_menu .product_list li {
  width: 100%;
}
.toggle_menu .product_list li.active {
  background: #F1EFEC;
}
.toggle_menu .product_list li.active a {
  font-weight: 600;
}
.toggle_menu .product_list li a {
  color: #28282B;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.45px;
  display: flex;
  padding: 16px 20px;
  width: 100%;
}
.toggle_menu .event_list {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #EAEAEA;
  width: 232px;
}
.toggle_menu .event_list li {
  width: 100%;
}
.toggle_menu .event_list li a {
  color: #28282B;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.45px;
  display: flex;
  padding: 16px 28px;
  width: 100%;
}


.toggle_menu .sisul_list {
  display: flex;
  flex-direction: column;
  width: 240px;
  gap: 10px;
  margin-top: 10px;
  flex: 1;
} 
.toggle_menu .sisul_list h4 {
  padding: 20px 0 8px 24px;
  color:#28282B;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px; /* 144.444% */
}
.toggle_menu .sisul_list #category_list {
  gap: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  height: 420px;
  overflow-y: auto;

  /* 스크롤 자연스럽게 */
  scroll-behavior: smooth;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

/* =========================
   Webkit Scrollbar
========================= */
.toggle_menu .sisul_list #category_list::-webkit-scrollbar {
  width: 4px;
}

.toggle_menu .sisul_list #category_list::-webkit-scrollbar-track {
  background: transparent;
}

.toggle_menu .sisul_list #category_list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.toggle_menu .sisul_list #category_list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45);
}
.toggle_menu .sisul_list #category_list > li {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 25px 14px 24px;
  width: 100%;
  color: #28282B;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px; /* 160% */
  word-break: keep-all;
}
.toggle_menu .sisul_list #category_list > li.active {
  background: #F1EFEC;
  position: relative;
  font-weight: 600;
}

.toggle_menu .sisul_list #category_list > li::before {
  content: '';
  position: absolute;
  right: 20px; /* 아이콘 위치 조정 */
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url('/theme/rb.basic/rb.img/icon/toggle_menu_active.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0; /* 기본 투명 */
  transition: opacity 0.3s ease; /* 부드럽게 나타나도록 */
}
.toggle_menu .sisul_list #category_list > li.active::before {
  opacity: 1; /* active일 때 보이게 */
}
.toggle_menu .adsense {
  padding: 16px 20px;
}
.toggle_menu .adsense img {
  border-radius: 8px;
  overflow: hidden;
}
.toggle_menu .m_login {
  display: none;
}
/* ===========================
   HEADER SCROLL MODE
=========================== */

#header {
 transition: padding 0.3s ease, height 0.3s ease;
}

/* 기본 상태 (로고 보임) */
#header .logo_wrap {
 transition: all 0.35s ease;
}


/* 로고 숨김 */
#header.is-scroll .logo_wrap {
 /* opacity: 0;
 height: 0;
 padding: 0;
 margin: 0;
 overflow: hidden;
 pointer-events: none; */
 overflow: visible;
}

/* inner 정렬 보정 */
#header.is-scroll .inner {
 align-items: center;
}
#header.is-scroll .gnb_wrap {
  /* display: flex;
  flex-direction: row-reverse;
  margin: 0 auto; */
}
/* 메뉴 위치 자연스럽게 */
#header.is-scroll #cbp-hrmenu {
 margin-top: 0;
}


/* ===== 기존 코드 베이스 유지(필수 최소만 변경) ===== */
.event-bar{
  display:flex; 
  align-items:center; 
  justify-content:flex-start;
  color:white; 
  background:color(display-p3 0.64 0.604 0.503);
  padding: 10px;
  font-family:'Pretendard',sans-serif; 
  font-size:14px;
  position:relative;
  overflow:hidden;
}
.event-marquee span {
  margin-right: 50px;
}

#header_search_panel {
  position: absolute;
  bottom:-27px;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 98;

  transform: translateY(-100%);
  transition: transform .35s ease;
}

#header_search_panel.active {
  display: block;
  transform: translateY(60px); /* header 높이에 맞게 조절 */
}

#header_search_panel form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  gap: 10px;
}
input:-internal-autofill-selected {
  background: none;
}
#header_search_panel .search_input_wrap {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #111;
}
#header_search_panel input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  border: 0;
  border-radius: 0;
}

#header_search_panel button {
  height: 44px;
  padding: 0 20px;
  cursor: pointer;
}