/* ============================================================
   Loop#9 — Cafe24 자동 모듈 hide (BPS3 정본에 없음)
   ------------------------------------------------------------
   "WORLD SHIPPING / PLEASE SELECT THE DESTINATION COUNTRY..."
   박스가 푸터 위에 자동 출력되는 현상 차단.
   - multishopShipping 모듈의 worldshipLayer가 modal로 숨겨지지
     않고 inline block으로 노출될 때 강제 hide.
   - 언어/통화 선택 박스(shop-language) 안전망 포함.
   ============================================================ */

/* WORLD SHIPPING 모달 자체 hide */
div[module="Layout_multishopShipping"],
.worldshipLayer,
.xans-layout-multishopshipping,
.xans-layout-multishopshippingcountrylist,
.xans-layout-multishopshippinglanguagelist,
[class*="worldshipping"],
[class*="worldShipping"],
[class*="worldship"],
.world-shipping,
.shop-language,
section.shop-language,
div.shop-language {
  display: none !important;
}

/* "WORLD SHIPPING" h3가 보이는 컨테이너 안전망 */
.worldshipLayer .header,
.worldshipLayer .content,
.worldshipLayer .ec-base-button {
  display: none !important;
}

/* ============================================================
   Loop#13 — 푸터 Cafe24 자동 모듈 잡것들 hide
   BPS3 정본 푸터 구조: .ft-top(4-col) + .comp + .word 만 표시
   ------------------------------------------------------------
   hide 대상:
   - .bt_util         (회사 소개/이용약관/개인정보처리방침/사업자 정보/이용안내 띠)
   - .bt_wrap         (쇼핑몰 기본정보 + 고객센터 정보 + 결제 정보)
   - .bt_locale       (English 토글)
   - .bt_wrap2        (Copyright + SNS — BPS3는 .comp 내부에 Copyright)
   - .bottom-nav      (모바일 하단 5개 탭. PC에선 hide)
   - .footer_margin   (cafe24 기본 user-defined 영역)
   ============================================================ */

#footer .bt_util,
#footer .bt_wrap,
#footer .bt_locale,
#footer .bt_wrap2 {
  display: none !important;
}

@media (min-width: 1024px) {
  .bottom-nav.RMB.RTB {
    display: none !important;
  }
}

/* footer_margin이 푸터 위 흰 공백 만들면 제거 */
.footer_margin:empty { display: none !important; }

/* fusion-comp 사업자정보 한 줄 정렬 (BPS3 정본 톤) */
#footer .comp.fusion-comp {
  font-size: 11.5px;
  line-height: 2;
  color: rgba(255,255,255,.4);
  padding: 24px 0 34px;
  text-align: left;
}

/* SearchHeader 모달은 검색 클릭 전 hide */
div[module="Layout_SearchHeader"] {
  display: none;
}
div[module="Layout_SearchHeader"].on {
  display: block;
}

/* ============================================================
   Loop#16 — 상품카드 WISH + ADD 호버 액션
   ============================================================ */
.pcard { position: relative; }
.pcard .pcard-acts {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 12px;
  display: flex; gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s cubic-bezier(.16,.84,.3,1), transform .35s cubic-bezier(.16,.84,.3,1);
  pointer-events: none;
  z-index: 4;
}
.pcard:hover .pcard-acts,
.pcard:focus-within .pcard-acts {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pcard-acts .bps-wish,
.pcard-acts .bps-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,.96);
  color: #0A0A0A;
  font-family: 'Albert Sans', 'Pretendard', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  padding: 9px 10px;
  border: 1px solid rgba(10,10,10,.12);
  border-radius: 1px;
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.pcard-acts .bps-wish:hover {
  background: #fff;
  color: #2A7A94;
  border-color: #2A7A94;
}
.pcard-acts .bps-add {
  background: #0A0A0A;
  color: #fff;
  border-color: #0A0A0A;
}
.pcard-acts .bps-add:hover {
  background: #2A7A94;
  border-color: #2A7A94;
}
.pcard-acts svg { flex-shrink: 0; }

/* 모바일은 호버 없으니 항상 표시 (작게) */
@media (max-width: 1023px) {
  .pcard .pcard-acts {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 10px;
    padding: 0 4px;
  }
}

/* ============================================================
   Loop#17 — 정적 fallback 카드 (진열 0개 안내)
   ============================================================ */

/* fallback ul은 위 module 컨테이너와 동일 그리드 톤 */
.fusion-pgrid-fallback {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px 22px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 진열 모듈이 카드 4개 이상 출력하면 (즉 진열 등록됨) fallback 숨김 — 옆 형제 module ul에 li 있으면 hide */
.ec-base-product .prdList:not(.fusion-pgrid-fallback):has(li:not(:empty)) + .fusion-pgrid-fallback,
ul.prdList[module]:has(article) ~ .fusion-pgrid-fallback {
  display: none !important;
}

/* fallback 카드는 약간 dim 처리 + "샘플" 표시 */
.fusion-pgrid-fallback .pcard {
  position: relative;
}
.fusion-pgrid-fallback .pcard::before {
  content: 'SAMPLE';
  position: absolute;
  top: 8px; right: 8px;
  z-index: 5;
  background: rgba(10,10,10,.6);
  color: #fff;
  font-family: 'Albert Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 3px 6px;
  border-radius: 1px;
}

@media (max-width: 1023px) {
  .fusion-pgrid-fallback { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .fusion-pgrid-fallback { grid-template-columns: repeat(2, 1fr) !important; gap: 14px 10px !important; }
}

/* G7 myshop grid layout 정상화 */
.xans-myshop-main {
  max-width: 1280px;
  margin: 40px auto 80px;
  padding: 0 28px;
}
.xans-myshop-main > .ec-base-myshop,
.xans-myshop-main .myshop-info,
.xans-myshop-main .mileage-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1023px) {
  .xans-myshop-main > .ec-base-myshop,
  .xans-myshop-main .myshop-info,
  .xans-myshop-main .mileage-info {
    grid-template-columns: repeat(2, 1fr);
  }
}
.xans-myshop-main .order-status,
.xans-myshop-main .ec-base-table,
.xans-myshop-main .titleArea {
  max-width: 100%;
  margin-top: 24px;
}

/* myshop 페이지에서 푸터와 본문 겹침 방지 */
.xans-myshop-main + #footer,
.xans-myshop-main ~ footer {
  margin-top: 80px;
}

/* myshop 카드 톤 (적립금/쿠폰 등 위젯) */
.xans-myshop-main .ec-base-myshop > div,
.xans-myshop-main .myshop-info > div {
  background: #F5F5F5;
  padding: 28px 20px;
  border-radius: 2px;
  text-align: center;
}
.xans-myshop-main strong { color: #0A0A0A; font-weight: 700; }

/* ============================================================
   myshop/order — 단일 컬럼 센터 정렬 통일 + 주문상태 스텝(핑크 active) 재설계 (260624)
   요구: 모든 UI 중앙정렬·일관성·안정감. 2단(절대배치 사이드바)→단일컬럼+하단 메뉴.
   컨테이너 폭 1040px 중앙 통일(페이지헤드/혜택/본문/메뉴 동일).
   ============================================================ */
/* 본문 컨테이너: sub_style 220px 게터/main.css 210px 절대2단 제거 → 단일 컬럼 중앙 */
html body .myshopArea,
html body .myshopArea.myshopMain {
  position: static !important; float: none !important;
  width: auto !important; max-width: 1040px !important;
  margin: 0 auto 72px !important; padding: 0 24px !important;
  min-height: 0 !important; display: block; background: none; border: 0;
}
html body .fusion-myshop-head .wrap { max-width: 1040px !important; }
.myshopArea .wrap_order { display: block; }

/* 혜택 카드 (안녕하세요 + 적립금/쿠폰/주문) — 중앙 풀폭 카드 */
html body .section.benefit { max-width: 1040px !important; width: auto !important; margin: 0 auto 14px; padding: 0 24px; }
html body .section.benefit > div > ul {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #ececec; border-radius: 6px; overflow: hidden; background: #fff;
}
html body .section.benefit > div > ul > li { margin: 0; list-style: none; }
html body .section.benefit > div > ul > li:first-child {
  grid-column: 1 / -1; padding: 26px 28px; border-bottom: 1px solid #f1f1f1;
}
html body .section.benefit > div > ul > li:not(:first-child) {
  text-align: center; padding: 24px 12px; border-left: 1px solid #f1f1f1;
}
html body .section.benefit > div > ul > li:nth-child(2) { border-left: 0; }
html body .section.benefit .user { display: flex; align-items: center; gap: 14px; }
html body .section.benefit .user__thumb img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
html body .section.benefit .txtEm1 { display: block; font-weight: 800; font-size: 16px; color: #0A0A0A; }
html body .section.benefit .user__data { font-size: 13px; color: #777; margin-top: 5px; }
html body .section.benefit .user__data span { color: var(--bp,#2A7A94); font-weight: 700; }
html body .section.benefit .user__info p,
html body .section.benefit .gBlank5,
html body .section.benefit .group { display: none !important; }
html body .section.benefit li a { display: block; text-decoration: none; }
html body .section.benefit li .thumb { display: block; margin: 0 auto 9px; line-height: 0; }
html body .section.benefit li .thumb svg, html body .section.benefit li .thumb img { width: 26px; height: 26px; }
html body .section.benefit li .data { display: block; font-family: var(--lat,'Albert Sans'),sans-serif; font-size: 23px; font-weight: 800; color: #0A0A0A; line-height: 1.15; }
html body .section.benefit li .title { display: block; margin-top: 6px; font-size: 13px; color: #888; }

/* 타이틀 */
.myshopArea .titleArea { margin: 36px 0 14px; padding: 0; border: 0; }
.myshopArea .titleArea h3 {
  font-family: var(--body,'Pretendard'),sans-serif; font-weight: 800; font-size: 18px; color: #0A0A0A;
  display: flex; align-items: baseline; gap: 8px;
}
.myshopArea .titleArea h3 .desc { font-size: 12px; font-weight: 500; color: #999; }

/* 주문 처리 4단계 스텝 — 깔끔한 구획 + 진행중 핑크 */
html body .myshopArea .state { border: 0 !important; margin: 0; }
html body .myshopArea .state .state__order {
  display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 0;
  border: 1px solid #ececec; border-radius: 6px; overflow: hidden;
}
html body .myshopArea .state__order > li {
  position: relative; text-align: center; padding: 30px 8px 28px; margin: 0; width: auto !important;
  list-style: none; border-right: 1px solid #f1f1f1; padding-bottom: 28px;
}
html body .myshopArea .state__order > li:last-child { border-right: 0; }
html body .myshopArea .state__order > li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -8px; width: 13px; height: 13px;
  margin-top: -7px; border-top: 1.5px solid #d2d2d2; border-right: 1.5px solid #d2d2d2;
  -webkit-transform: rotate(45deg); transform: rotate(45deg); background: #fff; z-index: 3;
}
html body .myshopArea .state__order .count {
  display: block; font-family: var(--lat,'Albert Sans'),sans-serif; font-size: 30px; font-weight: 800;
  color: #1a1a1a; text-decoration: none; line-height: 1;
}
html body .myshopArea .state__order .label { display: block; margin: 9px 0 0; font-size: 13px; color: #777; }
html body .myshopArea .state__order > li.is-active { background: var(--bp,#2A7A94); }
html body .myshopArea .state__order > li.is-active .count,
html body .myshopArea .state__order > li.is-active .label { color: #fff; }
html body .myshopArea .state__order > li.is-active::after { border-color: var(--bp,#2A7A94); background: var(--bp,#2A7A94); }

/* 취소/교환/반품 — 깔끔한 3열 */
html body .myshopArea .state__cs {
  display: grid !important; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0;
  border: 1px solid #ececec; border-radius: 6px; overflow: hidden;
}
html body .myshopArea .state__cs > li {
  text-align: center; padding: 17px 8px; border-left: 1px solid #f1f1f1; list-style: none;
  font-size: 14px; color: #1a1a1a; white-space: nowrap; height: auto; line-height: 1.5; width: auto;
}
html body .myshopArea .state__cs > li:first-child { border-left: 0; }
html body .myshopArea .state__cs strong { font-weight: 600; color: #555; }
html body .myshopArea .state__cs .count { color: var(--bp,#2A7A94); font-weight: 700; margin-left: 5px; text-decoration: none; }
html body .myshopArea .RW { margin-top: 44px; }

/* 메뉴: 절대배치 사이드바 → 하단 풀폭 3열 섹션 */
html body .xans-myshop-main {
  position: static !important; left: auto !important; top: auto !important; width: auto !important;
  max-width: 1040px; margin: 60px auto 0; padding: 44px 24px 0; border-top: 1px solid #ececec;
}
html body .xans-myshop-main .ms-sidehead { text-align: center; margin: 0 0 26px; }
html body .xans-myshop-main .ms-sidehead__ey { display:block; font-family: var(--lat,'Albert Sans'),sans-serif; font-size: 11px; letter-spacing: .14em; color: #c4c4c4; text-transform: uppercase; }
html body .xans-myshop-main .ms-sidehead__ti { display:block; font-family: var(--body,'Pretendard'),sans-serif; font-weight: 800; font-size: 22px; color: #0A0A0A; margin-top: 5px; line-height: 1.2; }
html body .xans-myshop-main .ms-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
html body .xans-myshop-main .ms-group .subTitle { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid #f1f1f1; }
html body .xans-myshop-main .ms-group .subTitle h3 { font-size: 14px; font-weight: 800; color: #0A0A0A; }
html body .xans-myshop-main .menu { display: block !important; border: 0; margin: 0; padding: 0; }
html body .xans-myshop-main .menu > li { display: block; width: auto; margin: 10px 0 0; border: 0; }
html body .xans-myshop-main .menu > li > a { display: block; padding: 0; font-size: 14px; color: #6d6d6d; text-decoration: none; }
html body .xans-myshop-main .menu > li > a:hover { color: var(--bp,#2A7A94); }
html body .xans-myshop-main .menu > li > a strong, html body .xans-myshop-main .menu > li > a span { font: inherit; color: inherit; display: inline; margin: 0; }
html body .xans-myshop-main .consult { max-width: 1040px; margin: 30px auto 0; padding: 0 24px; text-align: center; }

/* 페이지네이션 ↔ footer 여백 */
html body .myshopArea .ec-base-paginate,
html body .ec-base-paginate.typeList,
html body .xans-product-normalpaging { margin: 44px 0 76px !important; }

/* 모바일 */
@media (max-width: 1024px) {
  html body .xans-myshop-main .ms-groups { grid-template-columns: 1fr; gap: 0; }
  html body .xans-myshop-main .ms-group { border-top: 1px solid #f1f1f1; padding-top: 18px; margin-top: 18px; }
  html body .xans-myshop-main .ms-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
}
@media (max-width: 560px) {
  html body .myshopArea .state__order .count { font-size: 22px; }
  html body .myshopArea .state__order > li { padding: 22px 4px; }
  html body .section.benefit > div > ul > li:not(:first-child) { padding: 18px 6px; }
  html body .section.benefit li .data { font-size: 18px; }
}

/* 일본어 페이지네이션 한국어 (xans-base-paginate 안 텍스트 노드는 JS로 별도 처리) */
.ec-base-paginate .next .text,
.ec-base-paginate .prev .text { display: none; }

/* ============================================================
   Goal #6 — basket step indicator + tab 비율
   ============================================================ */
.section.ec-base-step.fusion-step-wrap,
.ec-base-step {
  max-width: 1280px;
  margin: 40px auto 24px;
  padding: 0 28px;
}
.section.ec-base-step ol,
.ec-base-step ol {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.section.ec-base-step ol::before,
.ec-base-step ol::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%; top: 22px;
  height: 1.5px;
  background: rgba(10,10,10,.12);
  z-index: 0;
}
.section.ec-base-step ol li,
.ec-base-step ol li {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.section.ec-base-step ol li .num,
.section.ec-base-step ol li::before,
.ec-base-step ol li::before {
  content: counter(stepNum);
  counter-increment: stepNum;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(10,10,10,.18);
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #999;
  margin: 0 auto 12px;
}
.section.ec-base-step ol { counter-reset: stepNum; }
.section.ec-base-step ol li.step1::before,
.section.ec-base-step ol li.selected::before {
  background: #2A7A94; border-color: #2A7A94; color: #fff;
}
.section.ec-base-step ol li > strong,
.section.ec-base-step ol li > span:not(.num) {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0A0A0A;
}

/* fusion-tabs typeNav */
.xans-element-.xans-order.xans-order-tabinfo.ec-base-tab.fusion-tabs.typeNav,
.ec-base-tab.typeNav {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 28px;
}
.ec-base-tab.typeNav .menu,
.ec-base-tab.typeNav ul.menu {
  display: flex !important;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  border-bottom: 1px solid rgba(10,10,10,.12);
}
.ec-base-tab.typeNav .menu li {
  flex: 1;
  text-align: center;
}
.ec-base-tab.typeNav .menu li a {
  display: block;
  padding: 14px 12px;
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .25s;
}
.ec-base-tab.typeNav .menu li.selected a,
.ec-base-tab.typeNav .menu li a:hover {
  color: #0A0A0A;
  border-bottom-color: #2A7A94;
}

/* basket Order_TabInfo 탭 — en/ko 스팬이 스타일 없이 가로로 붙던 것(=비율 깨짐) 수정.
   en(소형 대문자 라벨) 위 / ko(본문) 아래로 쌓고, 2개 탭이라 좌측 자동폭 정렬. */
[module="Order_TabInfo"].fusion-tabs .menu { justify-content: flex-start; }
[module="Order_TabInfo"].fusion-tabs .menu li { flex: 0 0 auto; text-align: left; }
[module="Order_TabInfo"].fusion-tabs .menu li a { padding: 11px 26px; }
.fusion-tabs__en {
  display: block; font-family: 'Albert Sans', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1;
  text-transform: uppercase; color: #bbb; margin-bottom: 4px;
}
.fusion-tabs .menu li.selected .fusion-tabs__en { color: #2A7A94; }
.fusion-tabs__ko {
  display: block; font-family: 'Pretendard', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
/* basket 탭 우측 안내문 — 탭 바와 같은 줄 오른쪽 */
[module="Order_TabInfo"].fusion-tabs { position: relative; }
[module="Order_TabInfo"].fusion-tabs .right.RW {
  position: absolute; right: 28px; bottom: 12px; margin: 0;
  font-size: 12px; color: #999;
}
@media (max-width: 1023px) {
  [module="Order_TabInfo"].fusion-tabs .right.RW { position: static; padding: 8px 16px 0; text-align: left; }
}

/* L23-2: hero 3 슬라이드 blue cross seal hide (마크업 보존, CSS hide만) */
.hero .slide .seal { display: none !important; }


/* ===== BPS5 모바일 상품 그리드 2단 강제 (PC grid4가 모바일서 4단으로 좁아 글자 겹침) — 최종 로드 CSS라 우선 ===== */
@media (max-width: 600px){
  ul.prdList.grid4,
  .prdList.grid4,
  .ec-base-product .prdList,
  .fusion-pgrid,
  .main_product_list .prdList{
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:16px 12px !important;
  }
  ul.prdList.grid4 > li,
  .ec-base-product .prdList > li,
  .fusion-pgrid > li{ width:100% !important; float:none !important; }
  .prdList.grid4 .pcard .nm, .fusion-pgrid .pcard .nm{ font-size:13px !important; line-height:1.35 !important; }
}

/* ===== 260623 KakaoTalk 피드백 수정 (1 마퀴 · 2 GNB인증 · 3 푸터 · 4 상세) ===== */
/* 1. 마퀴 구분자 — ✳ 이모지 → ✦ 텍스트 + 브랜드 포인트 컬러 */
.marquee b{color:var(--bp,#2A7A94);font-style:normal;font-weight:700;padding:0 2px}
/* 2. GNB 인증 토글 기본값(로그인 전 노출). JS가 로그인 시 .bps-on 노출/.bps-off 숨김 */
.gnb .auth .bps-on{display:none}
/* 3. 푸터 브랜드 컬럼 — 로고 위·카피 아래 세로정렬(카피가 로고 우측에 붙던 문제) */
#footer .ft-brand,footer.fusion-ft .ft-brand{display:flex !important;flex-direction:column !important;align-items:flex-start !important}
#footer .ft-brand .ftlogo,footer.fusion-ft .ft-brand .ftlogo{display:block !important;width:100% !important;float:none !important;margin:0 0 16px !important}
#footer .ft-brand .desc,footer.fusion-ft .ft-brand .desc,.fusion-ft-desc{display:block !important;width:100% !important;max-width:340px !important;float:none !important;clear:both !important;margin-top:0 !important}
/* 4a. 상품상세 브레드크럼 — 우측플로팅/태블릿숨김 해제 후 좌측 정상 노출 */
.section.path.bps-pcategories{overflow:visible !important;height:auto !important;opacity:1 !important;width:auto !important;margin:16px 24px 0 !important;display:block !important;font-size:12.5px;line-height:1.6}
.section.path.bps-pcategories ol{float:none !important;display:flex !important;flex-wrap:wrap;justify-content:flex-start}
.section.path.bps-pcategories li a{color:#9aa0a8;text-indent:0;width:auto;height:auto;position:static}
.section.path.bps-pcategories li:last-child a,.section.path.bps-pcategories li strong a{color:var(--bp,#2A7A94)}
/* 4b. 상품상세 좋아요(위시) 하트 확대 */
.detailArea .thumbnail,.fusion-pdetail .thumbnail{position:relative}
.detailArea .thumbnail .wish,.fusion-pdetail .thumbnail .wish{position:absolute;top:16px;left:16px;z-index:4;transform:scale(1.55);transform-origin:top left}

/* ===== 260623 큐레이션 가로 슬라이드 레일 (실제 7장. 파일명 loop9 = 9번째 개발루프, 카드수 아님) ===== */
.catrail{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;border-block:1px solid var(--b10,#e7e3dd);background:var(--b10,#e7e3dd);touch-action:pan-x;cursor:grab}
.catrail:active{cursor:grabbing}
.catrail::-webkit-scrollbar{display:none;height:0}
.catrail .cattrack{display:flex;gap:2px;width:max-content;background:var(--b10,#e7e3dd)}
.catrail .cat{flex:0 0 clamp(180px,19vw,240px);aspect-ratio:3/4;scroll-snap-align:start;margin:0;float:none}
/* [item2 모바일] 큐레이션 레일 세로 과다 → 카드 폭 축소 + aspect 4/5로 높이 단축 */
@media(max-width:760px){.catrail .cat{flex:0 0 42vw;aspect-ratio:4/5}.catrail .cat .lab{padding:12px 12px 12px}.catrail .cat .lab .en{font-size:16px}.catrail .cat .lab .ko{font-size:11px}}
@media(max-width:480px){.catrail .cat{flex:0 0 47vw}}

/* ===== 260623 블루크로스 등급 — 별 1/2/3 배지 크게 + 아우라 글로우(크로스↑→glow·배경↑) ===== */
.bc-logo{height:14rem !important}
.bc-grades{max-width:900px}
.bc-grade{gap:32px !important;padding:26px 14px !important;align-items:center !important;border-radius:14px}
.bc-grade .bc-emblem{width:150px !important;flex:none;justify-content:center !important}
.bc-grade .bc-emblem img{height:auto !important;width:108px !important;max-width:108px !important;border-radius:50%;transition:transform .4s,filter .4s}
.bc-meta b{font-size:23px !important}
.bc-meta b span{font-size:12px !important}
.bc-meta .d{font-size:15.5px !important;line-height:1.6 !important}
.bc-grade.g0{background:transparent}
.bc-grade.g0 .bc-emblem img{opacity:.42;filter:grayscale(.35)}
.bc-grade.g1{background:rgba(91,200,228,.04)}
.bc-grade.g1 .bc-emblem img{filter:drop-shadow(0 0 14px rgba(91,200,228,.28))}
.bc-grade.g2{background:rgba(91,200,228,.08)}
.bc-grade.g2 .bc-emblem img{width:118px !important;max-width:118px !important;filter:drop-shadow(0 0 26px rgba(91,200,228,.45))}
.bc-grade.g3{background:rgba(91,200,228,.13) !important}
.bc-grade.g3 .bc-emblem img{width:132px !important;max-width:132px !important;animation:bcAura 2.6s ease-in-out infinite}
@keyframes bcAura{0%,100%{filter:drop-shadow(0 0 28px rgba(91,200,228,.5))}50%{filter:drop-shadow(0 0 50px rgba(91,200,228,.82))}}
.bc-grade:hover .bc-emblem img{transform:scale(1.05)}
@media(max-width:560px){.bc-grade{gap:18px !important;padding:20px 8px !important}.bc-grade .bc-emblem{width:104px !important}.bc-grade .bc-emblem img{width:84px !important;max-width:84px !important}.bc-grade.g2 .bc-emblem img{width:92px !important;max-width:92px !important}.bc-grade.g3 .bc-emblem img{width:100px !important;max-width:100px !important}.bc-meta b{font-size:19px !important}}

@media(max-width:560px){.bc-logo{height:8.5rem !important}}

/* ===== 260623 마퀴 sticky 고정 — static이라 스크롤 후 상단에서 잘려 "가끔 사라지던" 문제 해결. 헤더는 마퀴(38px) 아래에 sticky ===== */
#wrap{overflow:clip !important}  /* overflow:hidden이 sticky 깨뜨림 → clip(스크롤포트 아님)으로 마퀴/헤더 sticky 복구 */
.marquee{position:sticky !important;top:0;z-index:62}
#header.gnb,.gnb{top:38px !important}
@media(max-width:560px){#header.gnb,.gnb,.gnb.mo{top:30px !important}}

/* ============================================================
   BP+ 홈 팝업 (자체구현·웹퍼블릭 앱 의존 제거, 260624)
   skin5 [메인]팝업(ibai) 활성 배너 3종 캐러셀. PC 500x500 / 모바일 720x500.
   배너 교체: layout.html .bps-pop__slide <picture> 의 src 수정.
   ============================================================ */
.bps-pop[hidden]{display:none !important}
.bps-pop{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.bps-pop__dim{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(12,12,12,.55)}
.bps-pop__box{position:relative;width:100%;max-width:500px;max-height:92vh;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.32);-webkit-animation:bpsPopIn .35s cubic-bezier(.2,.8,.2,1);animation:bpsPopIn .35s cubic-bezier(.2,.8,.2,1)}
@-webkit-keyframes bpsPopIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes bpsPopIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.bps-pop__viewport{position:relative;width:100%;overflow:hidden;border-radius:16px 16px 0 0}
.bps-pop__track{display:flex;width:100%;transition:transform .45s cubic-bezier(.4,.0,.2,1)}
.bps-pop__slide{flex:0 0 100%;width:100%}
.bps-pop__slide img,.bps-pop__slide picture{display:block;width:100%;height:auto}
.bps-pop__nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:50%;background:rgba(0,0,0,.32);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.bps-pop__nav:hover{background:rgba(0,0,0,.55)}
.bps-pop__nav.prev{left:10px}.bps-pop__nav.next{right:10px}
.bps-pop__dots{position:absolute;left:0;right:0;bottom:12px;display:flex;gap:7px;justify-content:center}
.bps-pop__dot{width:8px;height:8px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.55);cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.bps-pop__dot.on{background:#fff;width:20px;border-radius:5px}
.bps-pop__bar{display:flex;border-top:1px solid #efefef}
.bps-pop__bar button{flex:1;padding:15px 8px;background:#fff;border:0;cursor:pointer;font-size:13px;color:#777;font-family:inherit}
.bps-pop__bar .bps-pop__close{border-left:1px solid #efefef;font-weight:700;color:#1a1a1a}
.bps-pop__bar button:hover{background:#fafafa}
body.bps-pop-open{overflow:hidden}
@media (max-width:600px){.bps-pop__box{max-width:380px}.bps-pop__nav{width:32px;height:32px;font-size:18px}}
