/* =========================================================
   PC 헤더 한 줄 + 검색칸 펼침 (dial 2026-11-11)
   - PC(951px~): 로고 · 검색칸 · 로그인/회원가입/장바구니 한 줄(80px), 스크롤해도 같은 모양으로 고정
   - 지역 메뉴 줄(headBottom)과 공지/이벤트/FAQ 는 숨김 → 검색칸 펼침 창이 나라 고르기를 맡음
   - 로고는 가로형(모바일·스크롤 때 쓰던 두 번째 로고)
   - 모바일(~950px)은 건드리지 않음
   ========================================================= */
@media (min-width: 951px) {
    #header_warp { height: 81px; }
    #header_warp #header {
        position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000;
        background: #fff; border-bottom: 1px solid #eee;
    }
    #header_warp #header .headBottom { display: none !important; }
    #header_warp #header .head_top {
        position: relative; height: 80px !important;
        padding-top: 0 !important; padding-bottom: 0 !important;
        align-items: center !important;
    }

    /* 로고: 가로형 */
    #header_warp #header .head_top .h1_logo { width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; display: flex !important; align-items: center; }
    #header_warp #header .head_top .h1_logo > a:first-child { display: none !important; }
    #header_warp #header .head_top .h1_logo > a:nth-of-type(2) { display: flex !important; align-items: center; padding: 0 !important; margin: 0 !important; height: auto !important; }
    #header_warp #header .head_top .h1_logo > a:nth-of-type(2) img { height: 34px !important; width: auto !important; margin: 0 !important; }
    /* 파트너 로고(?id= 로 들어왔을 때 .top_logo): 모든 파트너가 158×115 흰 바탕 jpg, 로고는 가운데 가로 띠(세로 약 40~74)에만 있음
       → 원본 크기로 나와 헤더(80px) 밖으로 삐져나오던 것을, 가운데 띠만 잘라 말톡 로고와 같은 높이 34px 로 (2026-11-30) */
    #header_warp #header .head_top .top_logo { flex: none; display: flex; align-items: center; margin: 0; padding: 0; }
    #header_warp #header .head_top .top_logo a { display: block; line-height: 0; }
    #header_warp #header .head_top .top_logo img { width: 158px !important; height: 34px !important; object-fit: cover; object-position: center; }

    /* 검색칸: 가운데, 높이 48 */
    #header_warp #header .head_top .header_search_cont.pcSearch {
        position: absolute !important; left: 50% !important; top: 50% !important;
        transform: translate(-50%, -50%) !important; margin: 0 !important;
        width: clamp(320px, calc(100% - 520px), 600px) !important;
    }
    #header_warp #header .head_top .pcSearch .top_search { top: calc(50% - 24px) !important; left: 0 !important; transform: none !important; width: 100% !important; }
    #header_warp #header .head_top .pcSearch input.top_srarch_text { height: 48px !important; padding: 0 56px 0 24px !important; box-sizing: border-box !important; }
    /* 2026-11-12 디자인 QA 3번: 테두리 상자(.top_search)가 안쪽 줄 간격 때문에 59px 로 늘어나 4px 아래로 처지고 글자는 위로 붙어 보이던 것
       → 상자 48px 고정, 안쪽 감싸개 줄 간격 0, 입력칸·돋보기를 상자 세로 가운데로 (로고·오른쪽 아이콘과 같은 높이) */
    #header_warp #header .head_top .pcSearch .top_search { height: 48px !important; box-sizing: border-box !important; }
    #header_warp #header .head_top .pcSearch .top_search form, #header_warp #header .head_top .pcSearch .top_search fieldset,
    #header_warp #header .head_top .pcSearch .top_search_cont, #header_warp #header .head_top .pcSearch .top_text_cont { display: block !important; height: 100% !important; margin: 0 !important; padding: 0 !important; line-height: 0 !important; }
    #header_warp #header .head_top .pcSearch input.top_srarch_text { display: block !important; height: 100% !important; line-height: normal !important; }
    #header_warp #header .head_top .pcSearch .btn_top_srarch { top: 50% !important; margin-top: 0 !important; transform: translateY(-50%) !important; }
    /* 고도몰 기본 최근검색어 상자 대신 펼침 창 */
    #header_warp #header .pcSearch .search_cont,
    #header_warp #header .pcSearch div[class^="autocomplete-area"] { display: none !important; }

    #header_warp #header .head_top .login_btn { margin: 0 0 0 auto !important; }
}

/* ---------- 검색칸 펼침 창 (wib-search-panel.js) ---------- */
.mr_sp { display: none; position: fixed; z-index: 1001; width: 820px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); font-family: Pretendard, "Noto Sans KR", sans-serif; overflow: hidden; }
.mr_sp.on { display: block; }
.mr_sp_sec { padding: 18px 22px 6px; }
.mr_sp_tit { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #888; }
.mr_sp_pop { display: flex; flex-wrap: wrap; gap: 8px; }
.mr_sp_pop a { display: inline-flex; align-items: center; gap: 3px; padding: 5px 12px 5px 6px; /* 2026-11-12 디자인 QA 21번: 아이콘-국가명 간격 6→3px */ border: 1px solid #e8e8e8; border-radius: 20px; font-size: 14px; color: #333; text-decoration: none; }
.mr_sp_pop a:hover { border-color: #1798c0; color: #1798c0; }
.mr_sp_pop img { width: 26px; height: 26px; }
.mr_sp_body { display: flex; margin-top: 12px; border-top: 1px solid #f0f0f0; height: 300px; }
.mr_sp_reg { flex: none; width: 190px; padding: 10px 0; background: #fafafa; border-right: 1px solid #f0f0f0; }
.mr_sp_reg button { display: block; width: 100%; padding: 11px 22px; border: 0; background: none; text-align: left; font-size: 14px; color: #555; cursor: pointer; font-family: inherit; }
.mr_sp_reg button.on { background: #fff; color: #1798c0; font-weight: 700; }
.mr_sp_cty { flex: 1; min-width: 0; padding: 14px 18px; overflow-y: auto; }
.mr_sp_multi { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mr_sp_multi a { padding: 5px 12px; border-radius: 15px; background: #f2f8fb; font-size: 13px; color: #1798c0; text-decoration: none; }
.mr_sp_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 6px; }
.mr_sp_grid a { padding: 7px 8px; border-radius: 8px; font-size: 14px; color: #333; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr_sp_grid a:hover { background: #f5f5f5; color: #1798c0; }
.mr_sp_foot { display: flex; gap: 16px; padding: 12px 22px; border-top: 1px solid #f0f0f0; background: #fafafa; font-size: 13px; }
.mr_sp_foot a { color: #666; text-decoration: none; }
.mr_sp_foot a:hover { color: #1798c0; }
.mr_sp_foot span { margin-left: auto; color: #aaa; }

/* =========================================================
   모바일(~950px) 나라 찾기 전체 화면 · 아래 탭 · 상품 구매 바 (dial 2026-11-12)
   - wib-search-panel.js(mrCountrySheet) · wib-mobile-nav.js
   ========================================================= */
:root {
    --mr-ic-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3.5 9h17M3.5 15h17M12 3c-2.6 2.6-3.8 5.6-3.8 9s1.2 6.4 3.8 9M12 3c2.6 2.6 3.8 5.6 3.8 9s-1.2 6.4-3.8 9'/%3E%3C/svg%3E");
    --mr-ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='M16 16l4.8 4.8'/%3E%3C/svg%3E");
    --mr-ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.8 10.4 12 3.8l8.2 6.6V20.2h-5.4v-5.6H9.2v5.6H3.8z'/%3E%3C/svg%3E");
    --mr-ic-order: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h13v17.2l-2.2-1.4-2.1 1.4-2.2-1.4-2.2 1.4-2.1-1.4-2.2 1.4z'/%3E%3Cpath d='M8.8 8.5h6.4M8.8 12h6.4M8.8 15.5h4'/%3E%3C/svg%3E");
    --mr-ic-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.3' r='4'/%3E%3Cpath d='M4.3 20.3c.9-4 4-6.3 7.7-6.3s6.8 2.3 7.7 6.3'/%3E%3C/svg%3E");
    --mr-ic-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4.8 8h14.4l-1.1 12.5H5.9z'/%3E%3Cpath d='M8.8 8V6.8a3.2 3.2 0 0 1 6.4 0V8' stroke-linecap='round'/%3E%3C/svg%3E");
    --mr-ic-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4.5 7.5 12l7.5 7.5'/%3E%3C/svg%3E");
    --mr-ic-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4.5H5.5v15H10'/%3E%3Cpath d='M14.5 8l4 4-4 4M18.5 12H9.5'/%3E%3C/svg%3E");
}

/* 나라 찾기 전체 화면 */
.mr_ms { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 3000; background: #fff; flex-direction: column; font-family: Pretendard, "Noto Sans KR", sans-serif; }
.mr_ms.on { display: flex; }
html.mr_ms_lock, html.mr_ms_lock body { overflow: hidden !important; }
.mr_ms_top { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 6px; border-bottom: 1px solid #eee; }
.mr_ms_back { flex: none; width: 36px; height: 36px; border: 0; padding: 0; background: #222; -webkit-mask: var(--mr-ic-back) center / 24px no-repeat; mask: var(--mr-ic-back) center / 24px no-repeat; cursor: pointer; }
.mr_ms_form { flex: 1; min-width: 0; margin: 0; }
.mr_ms_form .top_text_cont { position: relative; width: 100% !important; }
.mr_ms_form input.top_srarch_text { width: 100% !important; height: 44px !important; margin: 0 !important; padding: 0 46px 0 18px !important; border: 1px solid #d9d9d9 !important; border-radius: 22px !important; font-size: 16px !important; box-sizing: border-box !important; background: #fff !important; }
.mr_ms_form input.top_srarch_text:focus { border-color: #1798c0 !important; outline: 0; }
.mr_ms_form .btn_top_srarch { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; padding: 0; background: #333; -webkit-mask: var(--mr-ic-search) center / 22px no-repeat; mask: var(--mr-ic-search) center / 22px no-repeat; }
.mr_ms_body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px 40px; }
.mr_ms.typing .mr_ms_body { visibility: hidden; }
.mr_ms .mr_sp_tit { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #222; }
.mr_ms_pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; margin-bottom: 28px; }
.mr_ms_pop a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #333; text-decoration: none; }
.mr_ms_pop img { width: 46px; height: 46px; }
.mr_ms .mr_sp_reg { display: flex; gap: 6px; width: auto; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; background: none; border: 0; scrollbar-width: none; }
.mr_ms .mr_sp_reg::-webkit-scrollbar { display: none; }
.mr_ms .mr_sp_reg button { flex: none; width: auto; padding: 8px 14px; border: 1px solid #e3e3e3; border-radius: 18px; background: #fff; font-size: 14px; color: #555; white-space: nowrap; }
.mr_ms .mr_sp_reg button.on { border-color: #1798c0; background: #f2f8fb; color: #1798c0; font-weight: 700; }
.mr_ms .mr_sp_cty { padding: 0; overflow: visible; }
.mr_ms .mr_sp_grid { grid-template-columns: repeat(3, 1fr); gap: 2px 6px; }
.mr_ms .mr_sp_grid a { padding: 10px 6px; font-size: 15px; }
.mr_ms_hint { margin: 22px 0 0; font-size: 12px; color: #999; }
.mr_ms_foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; font-size: 13px; }
.mr_ms_foot a { color: #666; text-decoration: none; }

.mr_buybar { display: none; }
/* 헤더 오른쪽 (PC·모바일 같은 항목·모양): 장바구니 · 주문조회 · 로그인↔회원가입 / 로그인 뒤엔 로그아웃 */
#header .head_top .login_btn > span { display: flex !important; gap: 0 !important; }
#header .head_top .login_btn a { position: relative; display: block !important; flex: none; width: 60px; height: auto; margin: 0 !important; padding: 34px 0 0 !important; background: none !important; font-size: 0 !important; line-height: 0; text-align: center; color: #333; text-decoration: none; }
#header .head_top .login_btn a::before { content: ''; position: absolute; left: 50%; top: 0; width: 28px; height: 28px; margin-left: -14px; background: #333; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
#header .head_top .login_btn a::after,
#header .head_top .login_btn .mr_flip { display: block; font-size: 13px; font-style: normal; line-height: 16px; letter-spacing: -0.3px; color: #333; white-space: nowrap; }
#header .head_top .login_btn a:hover::before { background: #1798c0; }
#header .head_top .login_btn a.cart { --ic: var(--mr-ic-bag); }
#header .head_top .login_btn a.cart::after { content: '장바구니'; }
#header .head_top .login_btn a.order { --ic: var(--mr-ic-order); }
#header .head_top .login_btn a.order::after { content: '주문조회'; }
#header .head_top .login_btn a.logout { --ic: var(--mr-ic-logout); }
#header .head_top .login_btn a.logout::after { content: '로그아웃'; }
#header .head_top .login_btn a.login { --ic: var(--mr-ic-user); }
#header .head_top .login_btn a.login::after { content: 'MY'; } /* (11-12) 로그인↔회원가입 전환 대신 'MY' 고정·기본 글자색. 아래 .mr_flip 규칙은 이제 안 쓰임 */
#header .head_top .login_btn .mr_flip { height: 16px; overflow: hidden; }
#header .head_top .login_btn .mr_flip i { display: block; font-style: normal; animation: mrFlip 3.6s infinite; }
#header .head_top .login_btn .mr_flip i:nth-child(2) { color: #1798c0; font-weight: 700; } /* 회원가입 차례엔 파란 글자 (2026-11-12) */
@keyframes mrFlip { 0%, 40% { transform: translateY(0); } 46%, 88% { transform: translateY(-100%); } 94%, 100% { transform: translateY(-200%); } }
@media (prefers-reduced-motion: reduce) { #header .head_top .login_btn .mr_flip i { animation: none; } }
@media (max-width: 950px) {
    /* 아래 탭은 없애고 헤더 한 줄: 로고 · 검색 · 장바구니 · 주문조회 · 로그인↔회원가입(로그아웃) */
    #header .head_top { justify-content: flex-start !important; }
    /* 로고: 심볼만 (가로형 로고에서 잘라 낸 wib/img/main_renew/logo_symbol.svg) */
    #header .head_top .h1_logo { width: auto !important; flex: none; }
    #header .head_top .h1_logo > a:nth-of-type(2) { display: block !important; width: 30px; height: 36px; background: url(../img/main_renew/logo_symbol.svg) center / contain no-repeat !important; }
    #header .head_top .h1_logo > a:nth-of-type(2) img { display: none !important; }
    /* 파트너 로고: PC 와 같은 가운데 띠를 줄여서(110×24) — 옛 모바일 규칙 height:95px 를 덮음 */
    #header .head_top .top_logo { flex: none; display: flex; align-items: center; margin: 0; padding: 0; }
    #header .head_top .top_logo a { display: block; line-height: 0; }
    #header .head_top .top_logo img { width: 110px !important; height: 24px !important; object-fit: cover; object-position: center; }
    #header .head_top .header_search_cont.moSearch { margin: 0 !important; }
    #header .head_top .login_btn { display: block !important; flex: none; margin: 0 !important; padding: 0 !important; }
    #header .head_top .search_icon,
    #header .head_top .login_btn a { position: relative; display: block !important; flex: none; width: 44px; height: auto; margin: 0 !important; padding: 26px 0 0 !important; background: none !important; font-size: 0 !important; line-height: 0; text-align: center; cursor: pointer; }
    #header .head_top .search_icon { margin-left: auto !important; }
    #header .head_top .search_icon img { display: none !important; }
    #header .head_top .search_icon::before,
    #header .head_top .login_btn a::before { content: ''; position: absolute; left: 50%; top: 0; width: 24px; height: 24px; margin-left: -12px; background: #333; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
    #header .head_top .search_icon::after,
    #header .head_top .login_btn a::after,
    #header .head_top .login_btn .mr_flip { display: block; margin-top: 2px; font-size: 10px; line-height: 12px; letter-spacing: -0.3px; color: #333; white-space: nowrap; }
    #header .head_top .login_btn .mr_flip { height: 12px; }
    #header .head_top .search_icon { --ic: var(--mr-ic-search); }
    #header .head_top .search_icon::after { content: '검색'; }
    .quickMenu { display: none !important; }

    /* 떠 있는 버튼: 맨 아래로 가기는 빼고, 아래 탭 자리만큼 올려 두던 것을 내림 */
    .fixedBtn { bottom: 20px !important; }
    .fixedBtn .bottomBtn { display: none !important; }

    /* 상품 상세: 구매하기 바 (원래 구매 버튼이 화면에 보이면 숨김) */
    .mr_buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
    .mr_buybar.on { display: block; }
    html.mr_buybar_on .fixedBtn { bottom: 84px !important; }
    html.mr_buybox_seen .fixedBtn { display: none !important; }
    .mr_buybar button { display: block; width: 100%; height: 50px; border: 0; border-radius: 10px; background: #1798c0; color: #fff; font-size: 16px; font-weight: 700; }
}
@media (max-width: 359px) {
    #header .head_top .search_icon,
    #header .head_top .login_btn a { width: 40px; }
}
/* 검색 펼침 창: 지역 전체 상품 버튼(맨 위)·다국가(○○통합)는 목록 맨 앞 파랑 글자 (2026-11-12) */
.mr_sp_multi a.mr_sp_all { padding: 7px 14px; border-radius: 16px; background: #1798c0; color: #fff; font-weight: 600; }
.mr_sp_multi a.mr_sp_all:hover { background: #12809f; }
.mr_sp_grid a.mr_sp_m { color: #1798c0; font-weight: 600; }

/* =========================================================
   상단 네비게이터(HOME > 국가 선택칸) — 모든 페이지 같은 모양 (2026-11-12)
   전엔 상품 목록(wib-goods-list.css)에만 있어 상품 상세는 작은 글자로 나옴 → 공통 CSS 로 옮김
   ========================================================= */
.location_wrap .location_cont { display: flex !important; align-items: center; gap: 8px; height: auto !important; font-size: 14px !important; color: #888; }
.location_wrap .location_cont > em, .location_wrap .location_cont .local_home { font-size: 14px !important; font-style: normal; line-height: 40px; color: #555 !important; }
.location_wrap .location_cont > span { font-size: 14px !important; color: #bbb !important; }
.location_wrap .location_select { position: relative; display: block !important; margin: 0 !important; border: 0 !important; background: none !important; }
.location_wrap .location_select .location_tit { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.location_wrap .location_select .location_tit a { display: flex !important; align-items: center; box-sizing: border-box; min-width: 160px; height: 40px !important; padding: 0 40px 0 14px !important; border: 1px solid #d9d9d9 !important; border-radius: 8px; color: #333 !important; font-size: 14px !important; line-height: 1 !important; text-decoration: none !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.67l3.06 3.06a1.33 1.33 0 001.88 0L12 6.67' stroke='%239d9d9d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) 50% / 16px auto !important; }
.location_wrap .location_select .location_tit a span { font-size: 14px !important; color: inherit !important; }
.location_wrap .location_select .location_tit a::before, .location_wrap .location_select .location_tit a::after, .location_wrap .location_select .location_tit::after { display: none !important; }
.location_wrap .location_select > ul { top: calc(100% - 1px) !important; left: 0 !important; min-width: 100%; box-sizing: border-box; padding: 6px 0 !important; border: 1px solid #d9d9d9 !important; border-radius: 8px; background: #fff !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.location_wrap .location_select > ul li a { display: block; padding: 8px 14px !important; font-size: 14px !important; color: #333 !important; white-space: nowrap; }
.location_wrap .location_select > ul li a:hover { background: #f5f7f8; color: #1798c0 !important; }
.location_wrap { font-family: Pretendard, "Noto Sans KR", sans-serif; }
/* (11-12 전수 정리) 일반 페이지(로그인·회원가입·장바구니·고객센터·약관 등, outline/_header.html 의 네비게이터)도
   상품 목록·상세와 같은 자리·모양으로: 가로 전체 회색 줄 없앰, 본문 폭 안에서 같은 높이(상품 목록 기준 위 20px · 아래 15px)
   현재 페이지는 선택칸이 없어 진한 글자로 */
.location_wrap .location_cont > em.location_now { color: #333 !important; font-weight: 600; }
#contents > .location_wrap { border-bottom: 0 !important; }
@media (min-width: 770px) {
    #contents > .location_wrap { margin: 20px 0 -30px !important; }
}
/* (11-12) 고도몰 레이어 창(상품후기 사진 크게 보기·장바구니 담기 등)이 열리면 어두운 배경(#layerDim)이 z-index 200, 창이 210 인데
   고정 헤더가 1000 이라 헤더만 밝게 남고 창 위쪽·닫기(X)를 덮음 → 어두운 배경이 켜져 있는 동안만 헤더를 배경 아래로.
   고도몰이 배경을 닫을 때 붙이는 .dn 을 그대로 기준으로 씀 (열고 닫는 동작은 그대로) */
body:has(#layerDim:not(.dn)) #header { z-index: 199 !important; }
body:has(#layerDim:not(.dn)) .mr_buybar { display: none !important; } /* 모바일 아래 '구매하기' 바도 레이어 창 위로 올라오지 않게 */
