/* ===========================================================
 * MAIN RENEWAL type2 — 카테고리 쇼케이스 (좌측 탭 + 우측 배너+그리드)
 * - 모든 스타일은 .rtype2 스코프 내에서만 적용
 * =========================================================== */

/* ===========================================================
 *  type2 전용 헤더 (29cm 톤 — 3행 에디토리얼 레이아웃)
 *  - 같은 페이지에서 default partials 헤더는 자동 미사용
 *  - promo 바도 type2에서는 숨김 (29cm처럼 깔끔하게 logo부터 시작)
 * =========================================================== */
.rl-promo { display: none; }
.rl-topbar { border-bottom: 0; }

/* 스크롤 시 헤더 collapse → 브라우저의 scroll-anchoring 이 페이지 높이 변동을 보정하면서
   스크롤 위치를 자동 조정해 condense/expand 무한 루프를 유발. 이를 막기 위해 비활성화 */
html { overflow-anchor: none; }

/* #section_top 자체를 sticky 컨테이너로 — 헤더 상단 고정
   (드로어/검색 패널은 header.js 가 body 직속으로 portal 이동시켜 stacking context 갇힘 회피) */
#section_top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}
/* 기존 navbar-fixed-top 자리 확보용 padding 제거 (type2 헤더는 흐름 안에서 자리 차지) */
#section_pad { padding-top: 0 !important; }

.rt2h {
    width: 100%;
    background: #fff;
}
/* 마우스 클릭 시 focus outline 제거, 키보드 Tab 이동 시에만 노출 */
.rt2h a:focus,
.rt2h button:focus,
.rt2h input:focus { outline: none; }
.rt2h a:focus-visible,
.rt2h button:focus-visible,
.rt2h input:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}
.rt2h__inner {
    padding: 0 40px 16px;             /* Figma: Row 3 하단으로부터 헤더 바닥까지 16px 여백 */
}

/* ── Row 1: 로고 + 유틸 (Figma: padding 20/40/10, util gap 21, label 12px) ── */
.rt2h__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 10px;
    overflow: hidden;
    max-height: 100px;
    transform-origin: top;
    /* 29cm 스타일: instant snap — 트랜지션 없음 */
}
/* 스크롤 내려가면 Row 1 (로고 + 유틸) 만 위로 슬라이드 + 레이아웃 collapse (즉시 전환) */
.rt2h.is-condensed .rt2h__top {
    transform: translateY(-100%);
    max-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
/* condensed 상태: Row 2 폰트 작아짐 (40 → 28) + 상단 패딩 확보 (Figma) */
.rt2h.is-condensed .rt2h__edit-row {
    padding-top: 20px;
}
.rt2h.is-condensed .rt2h__edit a {
    font-size: 28px;
    letter-spacing: -0.0282em;
}
.rt2h__logo {
    margin: 0;
    line-height: 0;
}
.rt2h__logo a {
    display: inline-block;
    color: #000;
}
.rt2h__logo img {
    height: 40px;
    width: auto;
    display: block;
}
.rt2h__util {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 21px;
}
/* 유틸 아이콘 영역 — 호버 시 색상 변경 없음 */
.rt2h__util a,
.rt2h__util a:hover,
.rt2h__util a:focus,
.rt2h__util a:active {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.028em;
    color: #000;
}
.rt2h__util-cart { color: #000; }

/* ── Row 2: 큰 에디토리얼 타이포 + 검색 (Figma: padding 10/40/16, font 40 bold, gap 40) ── */
.rt2h__edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0 16px;
}
.rt2h__edit {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.rt2h__edit a {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.0282em;
    line-height: 1;
    color: #000;
    transition: color 0.2s;
}
.rt2h__edit a:hover { color: #888; }
/* 검색 wrap (input + 아이콘 + 인기검색어 드롭다운) */
.rt2h__search-wrap {
    position: relative;
    flex-shrink: 0;
}
.rt2h__search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 4px;
}
.rt2h__search-input {
    flex: 1;
    width: 220px;
    height: 36px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    padding: 0 4px;
    font-family: inherit;
}
/* 검색 input — 클릭/포커스 시 아웃라인 제거 (.rt2h input:focus-visible 글로벌 규칙 오버라이드) */
.rt2h__search-input:focus,
.rt2h__search-input:focus-visible {
    outline: none;
    box-shadow: none;
}
/* 검색 영역 전체 — 글로벌 .search-input / .search-group / 브라우저 기본 outline 제거 */
.rt2h__search-wrap,
.rt2h__search-wrap *,
.rt2h__search-wrap *:focus,
.rt2h__search-wrap *:focus-visible,
.rt2h__search-wrap *:focus-within {
    outline: none !important;
    box-shadow: none !important;
}
.rt2h__search-input::placeholder {
    color: #adaeb3;
    font-size: 14px;
}
.rt2h__search {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #1A1A1A;
    cursor: pointer;
    padding: 0;
}
.rt2h__search:hover { opacity: 0.6; }

/* 인기검색어 드롭다운 */
.rt2h__keyword {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 260px;
    background: #fff;
    border: 1px solid #ececec;
    padding: 16px 18px;
    z-index: 50;
}
.rt2h__keyword-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.rt2h__keyword-head .s_keyword_close {
    background: transparent;
    border: 0;
    font-size: 18px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}
.rt2h__keyword-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    margin: 0 0 10px;
}
.rt2h__keyword ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rt2h__keyword ul li {
    margin: 0 0 6px;
}
.rt2h__keyword ul li a {
    font-size: 13px;
    color: #555;
}
.rt2h__keyword ul li a:hover { color: #1a1a1a; }

/* ── Row 3: 카테고리 + 부가 (Figma: height 30, cats gap 24, font 16, color #1c1c1f) ── */
.rt2h__cats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    height: 30px;
    flex-wrap: wrap;
}
.rt2h__cats-list,
.rt2h__cats-extra {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}
/* 헤더 전 영역 anchor — Bootstrap 3 의 a:hover { text-decoration: underline } 차단 */
.rt2h a,
.rt2h a:hover,
.rt2h a:focus,
.rt2h a:active { text-decoration: none; }

/* 카테고리 메뉴 — 호버 시 색상 / 밑줄 변경 없음 */
.rt2h__cats-list a,
.rt2h__cats-list a:hover,
.rt2h__cats-list a:focus,
.rt2h__cats-list a:active {
    font-size: 16px;
    font-weight: 400;
    color: #1c1c1f;
    letter-spacing: -0.0282em;
    line-height: 1.5;
}
.rt2h__cats-sep {
    color: #939499;
    font-size: 16px;
    margin: 0;
}
.rt2h__cats-extra a,
.rt2h__cats-extra a:hover,
.rt2h__cats-extra a:focus,
.rt2h__cats-extra a:active {
    font-size: 16px;
    font-weight: 400;
    color: #939499;
    letter-spacing: -0.0282em;
    line-height: 1.5;
    font-style: normal;
}

/* ── 카테고리 hover → 3px 검정 라인 + 드롭다운 서브메뉴 ── */
.rt2h { position: relative; }
.rt2h__cat { position: relative; }

/* 카테고리 텍스트 하단 3px 검정 인디케이터 */
.rt2h__cat > a {
    position: relative;
}
.rt2h__cat > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -21px;                       /* padding-bottom 4 제거 보정 (-17 - 4) → 라인 하단이 헤더 바닥에 정확히 정렬 */
    height: 3px;
    background: #000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
    z-index:100;
}
.rt2h__cat:hover > a::after { transform: scaleX(1); }

/* 드롭다운 영역 — 헤더 바로 아래 (top: 100% of .rt2h = 헤더 바닥) */
.rt2h__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 299px;
    pointer-events: none;
    z-index: 49;
    visibility: hidden;
}
.rt2h__dropdown-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e8e9ed;
}

/* 서브메뉴 — 드롭다운 영역 안에 absolute
   top: 0 + padding-top: 20px 로 hit 영역을 헤더 바닥까지 확장
   (cat ↔ 서브메뉴 사이 데드존 제거 → 마우스가 천천히 이동해도 dropdown 안 닫힘) */
.rt2h__submenu {
    position: absolute;
    top: 0;
    left: 0;                                /* JS 에서 계산해서 cat 중심 정렬 */
    margin: 0;
    padding: 20px 0 0;                      /* 시각적으로는 헤더 바닥 + 20px 위치에서 첫 아이템 시작 */
    list-style: none;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transform: translateX(-50%);            /* 자기 폭의 절반만큼 좌측 이동 → JS left = cat 중심 */
    pointer-events: auto;
}
.rt2h__submenu li {
    width: 100%;
    text-align: center;
}
/* 서브메뉴 항목 — 호버 시 색상 변경 없음 */
.rt2h__submenu a,
.rt2h__submenu a:hover,
.rt2h__submenu a:focus,
.rt2h__submenu a:active {
    display: inline-block;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.385;
    color: #000;
    letter-spacing: -0.0194em;
    padding: 2px 8px;
}

/* 활성 상태 — JS가 .is-open 토글 */
.rt2h__dropdown.is-open {
    visibility: visible;
}
.rt2h__submenu.is-active {
    display: flex;
}

/* ── Adobe Fonts: Sofia Pro — 헤더/드로어 영문 영역 ── */
.rt2h__lang-en,
.rt2h__util a,
.rt2h__drawer-group li a,
.rt2h__drawer-head-link {
    font-family: "sofia-pro", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
}
/* 한글 영역은 Pretendard 명시 (호버 시 영문→한글 스왑 시 보장) */
.rt2h__lang-ko,
.rt2h__drawer-sub li a {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 영문 ↔ 한글 호버 스왑 (grid stack + baseline 정렬 + 박스 height 명시) ── */
.rt2h__edit a,
.rt2h__cats-list a,
.rt2h__cats-extra a {
    position: relative;
    display: inline-grid;
    justify-items: center;
    align-items: baseline;              /* 두 span baseline 으로 강제 정렬 → 폰트 metrics 차이 무관 */
}
/* Row 2 (.rt2h__edit) — 시안 Frame24: 40px Bold, line-height 1 (leading-none) */
.rt2h__edit a {
    height: 1em;
    line-height: 1;
}
/* Row 3 (.rt2h__cats) — line-height 1.5 (16px font → 24px 박스) */
.rt2h__cats-list a,
.rt2h__cats-extra a {
    height: 1.5em;
    line-height: 1.5;
}
.rt2h__lang-en,
.rt2h__lang-ko {
    grid-row: 1;
    grid-column: 1;
    line-height: inherit;
    white-space: nowrap;
    transition: opacity 0.25s ease;
}
.rt2h__lang-ko {
    opacity: 0;
    pointer-events: none;
}
/* Row 2(.rt2h__edit) 는 영문 고정 — swap 없음 */
.rt2h__cats-list a:hover .rt2h__lang-en,
.rt2h__cats-extra a:hover .rt2h__lang-en { opacity: 0; }
.rt2h__cats-list a:hover .rt2h__lang-ko,
.rt2h__cats-extra a:hover .rt2h__lang-ko { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .rt2h__inner { padding: 0 20px; }
    .rt2h__edit a { font-size: 30px; }
    .rt2h__edit { gap: 28px; }
    .rt2h__cats { gap: 20px; }
    .rt2h__cats-list,
    .rt2h__cats-extra { gap: 18px; }
}
@media (max-width: 768px) {
    .rt2h__util li:not(:last-child) { display: none; }   /* 로그인만 노출 */
    .rt2h__inner { padding: 0 16px; }
    .rt2h__top { padding: 12px 0 12px; }                  /* 헤더 단일 행으로 컴팩트 */
    .rt2h__logo img { height: 28px; }
    .rt2h__edit-row { display: none; }                    /* 대형 에디토리얼 타이포 숨김 */
    .rt2h__cats { display: none; }                        /* 카테고리 행 숨김 (type2 자체 NAV가 대체) */
}

/* ===========================================================
 *  모바일 헤더 (시안 m_home) — 카테고리 배너 위에 떠있는 흰 아이콘
 *  - 페이지 진입(스크롤 0~) 시 transparent + 흰 아이콘
 *  - 스크롤 시작 (.rt2h.is-condensed) 흰 BG + 검은 아이콘
 * =========================================================== */
.rt2h__mobile { display: none; }

@media (max-width: 768px) {
    /* PC 행 3개 모두 숨기고 모바일 행만 노출 */
    .rt2h__inner { display: none; }
    .rt2h__mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
    }
    .rt2h__mleft {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .rt2h__mutils {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    /* 기본 (메인 외 페이지) — 흰 BG + 검정 아이콘 */
    .rt2h__mbtn {
        position: relative;
        width: 24px;
        height: 24px;
        padding: 0;
        background: transparent;
        border: 0;
        color: #1a1a1a;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: color 0.25s ease;
    }
    .rt2h__mbtn svg { display: block; }
    .rt2h__mbtn-count {
        position: absolute;
        top: -2px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 8px;
        background: #ff60dd;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        line-height: 16px;
        text-align: center;
    }
    .rt2h__mlogo {
        margin: 0;
        flex: 0 0 auto;
        line-height: 0;
    }
    .rt2h__mlogo img {
        height: 40px;
        width: auto;
        display: block;
        filter: none;
        transition: filter 0.25s ease;
    }

    /* 메인 페이지 한정 (.rt2h--home) — 진입 시 transparent + 흰 아이콘 */
    .rt2h--home {
        background: transparent;
        transition: background 0.25s ease;
    }
    #section_top:has(.rt2h--home) {
        background: transparent;
        transition: background 0.25s ease;
    }
    .rt2h--home .rt2h__mbtn { color: #fff; }
    .rt2h--home .rt2h__mlogo img { filter: brightness(0) invert(1); }

    /* 메인 페이지 스크롤 시작 — 흰 BG + 검정 아이콘으로 복귀 */
    .rt2h--home.is-condensed {
        background: #fff;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    }
    #section_top:has(.rt2h--home.is-condensed) {
        background: #fff;
    }
    .rt2h--home.is-condensed .rt2h__mbtn { color: #1a1a1a; }
    .rt2h--home.is-condensed .rt2h__mlogo img { filter: none; }
}

/* ===========================================================
 *  모바일 검색 패널 (헤더 위 슬라이드 다운 — 검색 input + 인기검색어)
 * =========================================================== */
.rt2h__msearch {
    display: none;
    position: fixed;
    inset: 0;                           /* 풀스크린 — 모바일 네이티브 검색 패턴 */
    z-index: 10000;                     /* 상품 페이지 하단 CTA 등 fixed 요소 위로 (헤더 100 / 드로어 9999 보다 위) */
    background: #fff;
    color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;               /* 닫힌 상태에선 풀스크린 영역이 다른 클릭 가로채지 않도록 명시 */
    transition: opacity 0.22s ease, visibility 0.22s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
    .rt2h__msearch { display: block; }
}
.rt2h__msearch.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rt2h__msearch-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}
.rt2h__msearch-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.rt2h__msearch-input {
    flex: 1;
    height: 40px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    padding: 0;
    letter-spacing: -0.02em;
}
.rt2h__msearch-input::placeholder {
    color: #adaeb3;
}
/* 검색 패널 전체 — 글로벌 .rt2h input:focus-visible outline 오버라이드 */
.rt2h__msearch,
.rt2h__msearch *,
.rt2h__msearch *:focus,
.rt2h__msearch *:focus-visible,
.rt2h__msearch *:focus-within {
    outline: none !important;
    box-shadow: none !important;
    margin-bottom:0px;
}
.rt2h__msearch-submit,
.rt2h__msearch-close {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #1a1a1a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.rt2h__msearch-submit:hover,
.rt2h__msearch-close:hover { opacity: 0.6; }
.rt2h__msearch-close { color: #888; }

/* 인기검색어 */
.rt2h__msearch-keywords {
    padding: 20px 16px 40px;
}
.rt2h__msearch-keywords-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.rt2h__msearch-keywords-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.rt2h__msearch-keywords-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
    margin: 0 0 14px;
}
.rt2h__msearch-keywords-desc strong {
    font-weight: 600;
}
.rt2h__msearch-keywords ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rt2h__msearch-keywords li a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ececec;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #555;
    background: #fff;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.rt2h__msearch-keywords li a:hover,
.rt2h__msearch-keywords li a:focus {
    color: #fff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* ===========================================================
 *  모바일 햄버거 드로어 (시안 m_hamberger/drop)
 *  - 풀스크린 검은 BG
 *  - 좌측에서 슬라이드 인 (transform translateX)
 * =========================================================== */
.rt2h__drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;                      /* 상품 페이지 하단 CTA 등 fixed 요소 위로 */
    background: #000;
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}
.rt2h__drawer.is-open {
    transform: translateX(0);
}
body.rt2h-drawer-open { overflow: hidden; }

@media (max-width: 900px) {
    .rt2h__drawer { display: block; }
}

.rt2h__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
    position: sticky;
    top: 0;
    background: #000;
    z-index: 1;
}
.rt2h__drawer-close {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rt2h__drawer-logo {
    flex: 1;
    text-align: center;
    line-height: 0;
}
.rt2h__drawer-logo img {
    height: 32px;
    width: auto;
    display: inline-block;
}
.rt2h__drawer-head::after {
    /* 우측 X 와 균형 위해 빈 자리 — close 와 동일 너비 */
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.rt2h__drawer-nav {
    padding: 48px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}
.rt2h__drawer-group {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* 직접 자식 a 만 28px Bold — nested .rt2h__drawer-sub 의 a 영향 차단
   호버/포커스/visited 시 시각 변화 없음 (모바일 일관성) */
.rt2h__drawer-group > li > a,
.rt2h__drawer-group > li > a:hover,
.rt2h__drawer-group > li > a:focus,
.rt2h__drawer-group > li > a:active,
.rt2h__drawer-group > li > a:visited {
    display: inline-block;
    padding: 10px;
    font-family: 'Sofia Pro', 'futura-pt', 'Pretendard', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.7896px;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

/* Invitation 그룹 — 메인 라벨 하단 흰 라인 + 핑크 도트 */
.rt2h__drawer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.rt2h__drawer-head-link,
.rt2h__drawer-head-link:hover,
.rt2h__drawer-head-link:focus,
.rt2h__drawer-head-link:active,
.rt2h__drawer-head-link:visited {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-family: 'Sofia Pro', 'futura-pt', 'Pretendard', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.7896px;
}
.rt2h__drawer-head-text {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
/* 하단 라인 — 닫혔을 때 width 0, 열릴 때 좌→우 0%→100% 애니메이션 */
.rt2h__drawer-head-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #fff;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.rt2h__drawer-section.is-open .rt2h__drawer-head-text::after { width: 100%; }
.rt2h__drawer-head-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff60dd;
    margin-left: 2px;
    flex-shrink: 0;
}
/* 하위메뉴 — max-height 트랜지션으로 드롭다운 펼침/접힘 (JS 가 .is-open 토글) */
.rt2h__drawer-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top  0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity     0.22s ease;
}
.rt2h__drawer-section.is-open > .rt2h__drawer-sub,
.rt2h__drawer-group > li.is-open > .rt2h__drawer-sub {
    max-height: 600px;     /* 항목 많아져도 잘리지 않을 만큼 충분히 */
    margin-top: 12px;
    opacity: 1;
}

/* 하위메뉴 있는 카테고리 (.has-sub) — 메인 라벨에 핑크 dot 배치 위해 inline-flex */
.rt2h__drawer-group > li.has-sub > a {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
}

/* 드로어 안 a/button focus outline + underline 제거 */
.rt2h__drawer a,
.rt2h__drawer button {
    -webkit-tap-highlight-color: transparent;
}
.rt2h__drawer a,
.rt2h__drawer a:hover,
.rt2h__drawer a:focus,
.rt2h__drawer a:focus-visible,
.rt2h__drawer a:active {
    text-decoration: none;
}
.rt2h__drawer a:focus,
.rt2h__drawer a:focus-visible,
.rt2h__drawer a:active,
.rt2h__drawer button:focus,
.rt2h__drawer button:focus-visible,
.rt2h__drawer button:active {
    outline: none;
    box-shadow: none;
}
.rt2h__drawer-sub li a,
.rt2h__drawer-sub li a:hover,
.rt2h__drawer-sub li a:focus,
.rt2h__drawer-sub li a:active,
.rt2h__drawer-sub li a:visited {
    display: inline-block;
    padding: 6px 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.0912px;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

/* 드로어 하단 로그인/로그아웃 영역 — 메인 메뉴와 구분 */
.rt2h__drawer-account {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}
.rt2h__drawer-account-link,
.rt2h__drawer-account-link:hover,
.rt2h__drawer-account-link:focus,
.rt2h__drawer-account-link:active,
.rt2h__drawer-account-link:visited {
    display: inline-block;
    padding: 8px 16px;
    font-family: "sofia-pro", "Pretendard", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}



.rtype2 {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
.rtype2 *,
.rtype2 *::before,
.rtype2 *::after { box-sizing: border-box; }
.rtype2 a { color: inherit; text-decoration: none; }
.rtype2 button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    padding: 0;
}

/* ===========================================================
 *  HERO — 풀스크린 키네틱 타이포 + 떠다니는 청첩장 카드
 *  - 다크 배경 + 거대 영문 타이포 (호버 시 letter-spacing 확장)
 *  - 4장 청첩장 카드가 4코너에 회전돼서 떠있고, 마우스 이동에 패럴랙스
 * =========================================================== */
.rtype2-hero {
    position: relative;
    width: 100%;
    height: 86vh;
    min-height: 600px;
    max-height: 880px;
    overflow: hidden;
    background: #161616;
    color: #fff;
    margin-bottom: 0;
}

/* 떠다니는 청첩장 카드 (4코너) */
.rtype2-hero__card {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    --offset-x: 0px;
    --offset-y: 0px;
    --rot: 0deg;
    transform: translate(var(--offset-x), var(--offset-y)) rotate(var(--rot));
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    z-index: 1;
}
.rtype2-hero__card--tl {
    top: 11%;
    left: 7%;
    width: 180px;
    height: 240px;
    --rot: -9deg;
}
.rtype2-hero__card--tr {
    top: 18%;
    right: 9%;
    width: 150px;
    height: 200px;
    --rot: 6deg;
    opacity: 0.85;
}
.rtype2-hero__card--bl {
    bottom: 14%;
    left: 11%;
    width: 160px;
    height: 215px;
    --rot: 4deg;
    opacity: 0.85;
}
.rtype2-hero__card--br {
    bottom: 9%;
    right: 6%;
    width: 200px;
    height: 270px;
    --rot: -6deg;
}

/* 중앙 콘텐츠 */
.rtype2-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 22vh;
}
.rtype2-hero__eyebrow {
    font-family: 'futura-pt', 'Pretendard', sans-serif;
    font-size: 12px;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 28px;
    text-transform: uppercase;
}
.rtype2-hero__title {
    font-family: 'futura-pt', 'Pretendard', sans-serif;
    font-size: clamp(60px, 14vw, 220px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin: 0 0 36px;
    color: #fff;
    transition: letter-spacing 0.9s cubic-bezier(0.2, 0, 0.3, 1);
    user-select: none;
}
.rtype2-hero:hover .rtype2-hero__title {
    letter-spacing: 0.1em;
}
.rtype2-hero__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}
.rtype2-hero__cta {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    padding: 4px 2px;
    transition: opacity 0.2s, border-color 0.2s;
}
.rtype2-hero__cta:hover {
    opacity: 0.75;
    border-color: #fff;
}

/* 모바일 ─ 카드 일부 숨김 + 폰트 축소 */
@media (max-width: 768px) {
    .rtype2-hero {
        height: 70vh;
        min-height: 480px;
    }
    .rtype2-hero__card--tr,
    .rtype2-hero__card--bl { display: none; }
    .rtype2-hero__card--tl,
    .rtype2-hero__card--br {
        width: 100px;
        height: 135px;
    }
    .rtype2-hero__card--tl { top: 8%; left: 6%; }
    .rtype2-hero__card--br { bottom: 8%; right: 6%; width: 110px; height: 150px; }
    .rtype2-hero__content { padding-top: 26vh; }
    .rtype2-hero__title { font-size: 18vw; }
    .rtype2-hero__sub { font-size: 13px; padding: 0 24px; }
}

/* ===========================================================
 *  쇼케이스 — 좌측 root sticky aside + 우측 카테고리별 pin
 *  - 좌측: aside 한 곳에 NAV 고정, 배너 BG / 카피만 cross-fade 로 자연스럽게 전환
 *  - 우측: 카테고리당 .rtype2-showcase-pin (높이 180vh) 자체 sticky 핀 → 9 카드 translateY 진행
 *  - JS 가 현재 진행 중인 pin 의 data-panel 을 좌측 슬라이드/NAV active 와 동기화
 * =========================================================== */
:root {
    --rtype2-header-h: 110px;       /* JS 가 실제 헤더 높이로 덮어씀 */
    --rtype2-max-width: 1920px;
    --rtype2-side-gutter: 52px;
    --rtype2-card-gap: 20px;
    --rtype2-pad-y: 52px;
}

.rtype2-section {
    padding: 0;
    max-width: none;
    margin: 0;
}
.rtype2-section__head { display: none; }

/* 마지막 카드 그리드 ~ 푸터 사이 여백 + 구분선 (PC 80, 모바일 56) */
.rtype2::after {
    content: '';
    display: block;
    height: 80px;
}
@media (max-width: 900px) {
    .rtype2::after {
        height: 56px;
    }
}

/* ───── 쇼케이스 grid: 좌측 aside + 우측 main ───── */
.rtype2-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 32px;
    max-width: var(--rtype2-max-width);
    margin: 0 auto;
    padding: var(--rtype2-pad-y) var(--rtype2-side-gutter);
    align-items: start;
}

/* ───── 좌측 aside: grid item + 내부 root sticky ───── */
.rtype2-showcase-aside {
    position: relative;
    align-self: stretch;
}
.rtype2-showcase-aside__inner {
    position: sticky;
    top: calc(var(--rtype2-header-h) + var(--rtype2-pad-y));
    height: calc(100vh - var(--rtype2-header-h) - var(--rtype2-pad-y) * 2);
    /* border-radius: 4px; */
    overflow: hidden;
    background-color: #d8d4cc;
    color: #fff;
}
.rtype2-showcase-aside__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0) 55%,
        rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* 배너 BG 슬라이드 — 모든 카테고리 배너가 absolute 로 겹쳐있고 .is-active 만 opacity 1 */
.rtype2-banner-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.rtype2-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    /* anchor 로 바뀐 후 기본 link 스타일 reset */
    display: block;
    color: inherit;
    text-decoration: none;
}
.rtype2-banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;     /* active 슬라이드만 클릭 가능 — 도날드덕 어드민의 카테고리 링크로 이동 */
}
/* NAV 클릭 직후엔 transition 없이 즉시 전환 */
.rtype2-showcase-aside.is-jumping .rtype2-banner-slide,
.rtype2-showcase-aside.is-jumping .rtype2-heading-slide {
    transition: none;
}

/* 카피 슬라이드 — aside 하단, cross-fade */
.rtype2-heading-slides {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 36px;
    z-index: 3;
    pointer-events: none;
    min-height: 90px;                       /* 카피 영역 자리 확보 (슬라이드 absolute 겹침) */
}
.rtype2-heading-slide {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 80%;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rtype2-heading-slide.is-active {
    opacity: 1;
}

/* ───── 좌측 상단: 카테고리 NAV (17px 링 박스 + 도트 + 도트 사이 세로 라인 + 글로우) ───── */
.rtype2-category-nav {
    position: absolute;
    top: 40px;
    left: 32px;
    z-index: 5;
}
.rtype2-category-nav ul {
    display: flex;
    flex-direction: column;
    gap: 32px;                          /* top-to-top 약 46~50px */
    list-style: none;
    margin: 0;
    padding: 0;
}
.rtype2-category-nav li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    cursor: pointer;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.203px;
    line-height: 1.571;
    color: #fff;                        /* Semantic-Static-White */
    text-shadow: 0 0 8.7px rgba(0, 0, 0, 0.38);
    transition: color 0.2s;
}
.rtype2-category-nav__label {
    opacity: 0.72;                      /* 비활성 라벨 */
    transition: opacity 0.2s;
}
.rtype2-category-nav li.is-active .rtype2-category-nav__label,
.rtype2-category-nav li:hover .rtype2-category-nav__label {
    opacity: 1;
}

/* 17px 링 박스 — 항상 17px, 내부 도트는 ::after 로 크기 변화 */
.rtype2-category-nav__bullet {
    position: relative;
    width: 17px;
    height: 17px;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    transition: all 0.2s;
}
/* 비활성 도트 — 11px, 약한 글로우 */
.rtype2-category-nav__bullet::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 0 4px 1px rgba(255, 255, 255, 0.25),
        0 0 4px rgba(0, 0, 0, 0.18);
    transition: all 0.25s;
}
/* 활성 도트 — 12px + 강한 글로우 */
.rtype2-category-nav li.is-active .rtype2-category-nav__bullet::after {
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow:
        0 0 12px 4px rgba(255, 255, 255, 0.55),
        0 0 20px 6px rgba(255, 255, 255, 0.3);
}
/* hover — 비활성도 살짝 글로우 강화 */
.rtype2-category-nav li:hover .rtype2-category-nav__bullet::after {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 6px 2px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(0, 0, 0, 0.18);
}
/* 도트 사이 짧은 세로 라인 — 각 도트 위쪽 8px, 16px 길이 (첫 li 제외) */
.rtype2-category-nav li:not(:first-child) .rtype2-category-nav__bullet::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 8px);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* ───── 카피 슬라이드 내부 (TITLE / DESC) ───── */
.rtype2-showcase-heading__title {
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    white-space: pre-line;
}
.rtype2-showcase-heading__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    white-space: pre-line;
}

/* ───── 우측 main: 카테고리당 pin (자체 sticky 진행) ───── */
.rtype2-showcase-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 28px;                      /* 카테고리(9 카드 묶음) 사이 여백 */
}
.rtype2-showcase-pin {
    position: relative;
    height: 180vh;                  /* 카드 9개 진행 길이 — 너무 길면 답답 */
}
.rtype2-showcase-pin__sticky {
    position: sticky;
    top: calc(var(--rtype2-header-h) + var(--rtype2-pad-y));
    /* height: calc(100vh - var(--rtype2-header-h) - var(--rtype2-pad-y) * 2); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rtype2-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--rtype2-card-gap);
    row-gap:28px;
    align-content: start;
    will-change: transform;
    /* transition 없음 — rAF 매 프레임 갱신으로 즉시 반응 (지연감 제거) */
}

/* ───── 모바일 전용: 카테고리 mini-banner (PC 는 숨김 → 좌측 sticky aside 가 cross-fade) ───── */
.rtype2-pin-banner {
    display: none;
    /* anchor 로 바뀐 후 기본 link 스타일 reset */
    color: inherit;
    text-decoration: none;
}

/* ───── 상품 카드 ───── */
.rtype2-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.rtype2-product__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 2px;
}
.rtype2-product__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 호버 swap — 연출컷 오버레이 (기본 opacity 0, 호버 시 1로 페이드) */
.rtype2-product__img--hover {
    opacity: 0;
    transition: opacity 0.35s ease;
}
@media (hover: hover) {
    .rtype2-product:hover .rtype2-product__img--hover { opacity: 1; }
}
.rtype2-product__body {
    padding: 12px 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.rtype2-product__name {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.429;
    color: #1c1c1f;
    margin: 0 0 2px;
}
.rtype2-product__tag {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.334;
    color: #999;
    margin: 0;
    letter-spacing: 0.3024px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.rtype2-product__hash {
    display: inline-block;
}
.rtype2-product__price {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    line-height: 1.429;
    margin: 7px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}
.rtype2-product__regular,
.rtype2-product__sale {
    font-weight: 600;
    color: #1c1c1f;
}
.rtype2-product__discount {
    font-weight: 600;
    color: #ff60dd;
}
.rtype2-product__qty {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.429;
    letter-spacing: 0.203px;
    color: #c4c4c4;                /* Semantic/Label/Disable */
}

/* ===========================================================
 *  WIDE SCREEN (≥ 1920px) — aside 비율 조정 + 카드 진행 빠르게
 * =========================================================== */
@media (min-width: 1920px) {
    .rtype2-showcase-grid {
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        gap: 40px;
    }
    .rtype2-showcase-pin {
        height: 160vh;                  /* 1920+ 에선 더 짧게 — 진행 빠르게 */
    }
}

/* ===========================================================
 *  RESPONSIVE — 중간 화면
 * =========================================================== */
@media (max-width: 1280px) {
    .rtype2-showcase-grid {
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        gap: 24px;
        padding: 24px 32px;
    }
    .rtype2-showcase-heading__title { font-size: 26px; }
}

/* ===========================================================
 *  RESPONSIVE — 모바일: 좌측 aside 숨김, 카테고리당 mini-banner + 2열 카드
 *  (Figma m_home: 343×412 mini-banner + 165.5×165.5 카드 2열, gap 12)
 * =========================================================== */
@media (max-width: 900px) {
    /* 메인배너 ~ 쇼케이스 영역 사이 여백 (Figma m_home 28px) */
    .rtype2 #main-brand { margin-bottom: 28px; }

    .rtype2-showcase-grid {
        display: block;
        padding: 0;
    }

    /* 좌측 PC 전용 aside (cross-fade) 는 모바일에서 숨김 */
    .rtype2-showcase-aside { display: none; }

    /* main: 카테고리 사이 여백 모바일용으로 축소 */
    .rtype2-showcase-main {
        gap: 32px;
    }

    /* pin — sticky 해제, 자연 흐름 */
    .rtype2-showcase-pin {
        height: auto;
    }
    .rtype2-showcase-pin__sticky {
        position: static;
        top: auto;
        height: auto;
        overflow: visible;
        padding: 0 16px;
    }

    /* 카테고리 mini-banner — Figma 343/412 ≈ 5/6 비율, 좌우 16 margin, 카피는 좌하단 */
    .rtype2-pin-banner {
        display: block;
        position: relative;
        margin: 0 16px 28px;
        aspect-ratio: 343 / 412;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        border-radius: 2px;
    }
    .rtype2-pin-banner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
            rgba(0,0,0,0) 57%,
            rgba(0,0,0,0.20) 100%);
        pointer-events: none;
    }
    .rtype2-pin-banner__copy {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 30px;
        z-index: 1;
        color: #fff;
    }
    .rtype2-pin-banner__title {
        font-family: 'Pretendard', sans-serif;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.364;
        letter-spacing: -0.4268px;
        color: #fff;
        margin: 0 0 10px;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
        white-space: pre-line;
    }
    .rtype2-pin-banner__desc {
        font-family: 'Pretendard', sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.571;
        letter-spacing: 0.203px;
        color: #fff;
        margin: 0;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
        white-space: pre-line;
    }

    /* 카드 그리드 — 2열, gap 12 (Figma 165.5×165.5) */
    .rtype2-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        transform: none !important;
        gap: 28px 12px;
    }
    /* 모바일 2열 그리드: 9개 홀수 → 마지막 카드(9번째) 1개 숨김 → 8개(4×2) 정렬 */
    .rtype2-card-grid .rtype2-product:nth-child(9) { display: none; }

    /* 카드 텍스트 (Figma 매칭) */
    .rtype2-product__body { padding: 12px 0 0; }
    .rtype2-product__name {
        font-size: 14px;
        line-height: 1.429;
        letter-spacing: 0.203px;
    }
    .rtype2-product__tag {
        font-size: 12px;
        line-height: 1.334;
        letter-spacing: 0.3024px;
    }
    .rtype2-product__price {
        font-size: 14px;
        line-height: 1.429;
        letter-spacing: 0.203px;
    }
}

