@charset "UTF-8";

/* =========================================================
 * gcbms-us-web renewal.css
 * 1단계: 공통 레이아웃 + 메인 + 제품(목록/검색/상세)
 * 모든 클래스는 rn- 접두어로 기존 스타일과 충돌 방지
 * ========================================================= */

/* ---------- DESIGN TOKENS ----------
   Primary navy 는 design-images 의 어두운 네이비 기반 (#003A70).
   primary-soft 는 활성 탭/뱃지 배경용 매우 옅은 톤. */
:root {
    --rn-color-primary: #003A70;
    --rn-color-primary-hover: #002A55;
    --rn-color-primary-soft: #E5EBF2;
    --rn-color-text: #111827;
    --rn-color-sub: #374151;
    --rn-color-muted: #6B7280;
    --rn-color-border: #E5E7EB;
    --rn-color-border-soft: #F1F2F4;
    --rn-color-bg: #FFFFFF;
    --rn-color-bg-muted: #F5F6F8;
    --rn-color-bg-dark: #111111;
    --rn-color-danger: #D32F2F;
    --rn-color-warn: #F5B800;
    --rn-color-success: #10B981;

    --rn-radius-sm: 8px;
    --rn-radius-md: 12px;
    --rn-radius-lg: 16px;
    --rn-radius-pill: 999px;
    --rn-radius-btn: 12px;

    --rn-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04);
    --rn-shadow-hover: 0 4px 16px rgba(16, 24, 40, 0.08);
    --rn-shadow-modal: 0 20px 48px rgba(16, 24, 40, 0.18);
    --rn-shadow-drawer: -8px 0 24px rgba(16, 24, 40, 0.12);

    --rn-container-width: 1200px;
    --rn-header-height: 160px;

    --rn-z-header: 100;
    --rn-z-dropdown: 120;
    --rn-z-drawer-backdrop: 800;
    --rn-z-drawer: 810;
    --rn-z-backdrop: 900;
    --rn-z-modal: 1000;
    --rn-z-toast: 1100;

    --rn-ease: cubic-bezier(.2,.8,.2,1);
    --rn-dur-fast: 120ms;
    --rn-dur-base: 200ms;

    --rn-font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', 'Segoe UI', sans-serif;
}

/* ---------- RESET / BASE (스코프 제한) ---------- */
html.rn,
html.rn body {
    font-family: var(--rn-font-sans);
    color: var(--rn-color-text);
    background: var(--rn-color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.rn * {
    box-sizing: border-box;
}

html.rn a {
    color: inherit;
    text-decoration: none;
}

html.rn button {
    font-family: inherit;
    cursor: pointer;
}

/* 기존 레거시 래퍼 오버라이드 */
html.rn #wrap { min-width: 0; }
html.rn #container {
    /*min-height: calc(100vh - var(--rn-header-height) - 60px);*/
    padding-top: 0;
    background: var(--rn-color-bg);
}
html.rn #header { display: none; } /* 기존 header 숨기고 .rn-header 로 대체 */

/* ---------- 공통 유틸 ---------- */
.rn-container {
    width: 100%;
    max-width: var(--rn-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.rn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--rn-radius-pill);
    border: 1px solid var(--rn-color-border);
    background: #fff;
    color: var(--rn-color-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s ease;
}
.rn-btn:hover { border-color: var(--rn-color-primary); color: var(--rn-color-primary); }

html.rn a.rn-btn-primary,
html.rn a.rn-btn-primary:link,
html.rn a.rn-btn-primary:visited,
html.rn button.rn-btn-primary,
html.rn .rn-btn-primary {
    background: var(--rn-color-primary);
    border-color: var(--rn-color-primary);
    color: #fff;
}
html.rn a.rn-btn-primary:hover,
html.rn button.rn-btn-primary:hover,
html.rn .rn-btn-primary:hover {
    background: var(--rn-color-primary-hover);
    border-color: var(--rn-color-primary-hover);
    color: #fff;
}

html.rn a.rn-btn-danger,
html.rn a.rn-btn-danger:link,
html.rn a.rn-btn-danger:visited,
html.rn button.rn-btn-danger,
html.rn .rn-btn-danger {
    background: var(--rn-color-danger);
    border-color: var(--rn-color-danger);
    color: #fff;
}
html.rn a.rn-btn-danger:hover,
html.rn button.rn-btn-danger:hover,
html.rn .rn-btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.rn-btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.rn-btn-block { display: flex; width: 100%; }

/* ---------- HEADER ---------- */
.rn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--rn-color-border);
}

.rn-header-top {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 40px;
    height: 92px;
    padding: 0 24px;
    max-width: var(--rn-container-width);
    margin: 0 auto;
}

.rn-logo {
    display: inline-flex;
    align-items: center;
    font-size: 0;
}
.rn-logo img { display: block; height: 40px; width: auto; }

.rn-search {
    position: relative;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}
.rn-search input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 20px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-pill);
    background: var(--rn-color-bg-muted);
    font-size: 14px;
    color: var(--rn-color-text);
    outline: none;
    transition: all .15s ease;
}
.rn-search input::placeholder { color: var(--rn-color-muted); }
.rn-search input:focus { background: #fff; border-color: var(--rn-color-primary); }
.rn-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rn-color-muted);
}
.rn-search button:hover { color: var(--rn-color-primary); }
.rn-search button svg { width: 20px; height: 20px; }

/* 인증/계정 페이지(로그인·회원가입·아이디/비밀번호 찾기)에서는 헤더 검색창 숨김.
   검색창은 헤더 그리드의 가운데(1fr) 칸이므로, 숨긴 뒤 로고|유틸 2칸으로 재배치한다.
   .rn-auth-page .rn-header-top(0,2,0)가 데스크톱/모바일 .rn-header-top(0,1,0)을 모두 이기므로
   미디어쿼리 밖 단일 규칙으로 양쪽에서 로고(좌)·유틸(우) 정렬이 유지된다. */
.rn-auth-page .rn-search { display: none; }
.rn-auth-page .rn-header-top { grid-template-columns: 1fr auto; }

/* Figma 153:16 — 우측 상단 유틸 아이콘 (마이페이지/로그아웃 통일) */
.rn-util {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}
html.rn a.rn-util-item,
.rn-util-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #4c4c4c;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: 0;
    text-decoration: none;
}
.rn-util-item svg { width: 28px; height: 28px; stroke-width: 1.5; }
.rn-util-item:hover { color: var(--rn-color-primary); }

.rn-mypage-dropdown {
    position: absolute;
    top: 100%;
    right: 50px;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    box-shadow: var(--rn-shadow-modal);
    padding: 8px 0;
    display: none;
    z-index: 120;
}
.rn-mypage-dropdown.is-open { display: block; }
.rn-mypage-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-mypage-dropdown a:hover { background: var(--rn-color-bg-muted); color: var(--rn-color-primary); }
.rn-mypage-dropdown a.is-active { background: var(--rn-color-bg-muted); color: var(--rn-color-primary); font-weight: 600; }

/* GNB */
.rn-gnb {
    border-top: 1px solid var(--rn-color-border-soft);
}
.rn-gnb-inner {
    max-width: var(--rn-container-width);
    margin: 0 auto;
    padding: 0 24px;
}
.rn-gnb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.rn-gnb-list > li > a {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 600;
    color: var(--rn-color-text);
    border-bottom: 3px solid transparent;
    transition: all .15s ease;
}
.rn-gnb-list > li > a:hover { color: var(--rn-color-primary); }
.rn-gnb-list > li.is-active > a {
    color: var(--rn-color-primary);
    font-weight: 700;
    border-bottom-color: var(--rn-color-primary);
}

/* ---------- FOOTER ---------- */
.rn-footer {
    background: var(--rn-color-bg-dark);
    color: #9ca3af;
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
}

/* ---------- BREADCRUMB ---------- */
.rn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    margin-bottom: 30px; /* page-title 와 30px 간격 */
    font-size: 14px;
    line-height: 1;       /* 자식들 baseline 통일 */
    color: var(--rn-color-muted);
}
/* breadcrumb 자식(a/svg/span) 세로축 정확 정렬 — 각자 display:inline-flex 로 자신의 자식까지 중앙 정렬 */
.rn-breadcrumb > a,
.rn-breadcrumb > span,
.rn-breadcrumb > svg {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.rn-breadcrumb svg { width: 16px; height: 16px; display: block; }
.rn-breadcrumb .rn-crumb-current { color: var(--rn-color-text); font-weight: 600; }

/* ---------- PAGE TITLE ---------- */
.rn-page-title {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1; /* cart 의 rn-cart-title 와 시각 baseline 통일 */
    color: var(--rn-color-text);
    margin: 0 0 32px;
    letter-spacing: -0.5px;
}

/* ---------- PAGINATION ---------- */
.rn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0;
}
.rn-pagination button {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--rn-color-sub);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}
.rn-pagination button:hover:not(:disabled) { border-color: var(--rn-color-primary); color: var(--rn-color-primary); }
.rn-pagination button.is-active {
    background: var(--rn-color-primary);
    border-color: var(--rn-color-primary);
    color: #fff;
}
/* 비활성 화살표도 테두리는 솔리드 #ddd 로 균일 유지(시안 일치).
   전역 button:disabled 의 opacity 페이드를 opacity:1 로 덮어 테두리가 흐려지지 않게 하고, 아이콘만 옅게. */
.rn-pagination button:disabled { color: #cfcfcf; cursor: default; opacity: 1; }

/* ====================================================================
 * MAIN PAGE
 * ==================================================================== */
.rn-hero {
    position: relative;
    /* 배경 이미지: 슬라이드 전환 시 고정 (swiper 안쪽 콘텐츠만 움직임) */
    background-image:
        linear-gradient(115deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.10) 90%),
        url('/shop/assets/images/sub/main_banner_bg.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, cover;
    overflow: hidden;
}
/* swiper 가 viewport width 100% 를 차지하도록 inner 의 max-width 제거.
   슬라이드 내부 콘텐츠는 .rn-hero-slide 가 자체 max-width 로 가운데 정렬한다. */
.rn-hero-inner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    /*min-height: 360px;*/
    display: flex;
    align-items: center;
}

.rn-hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: var(--rn-container-width);
    margin: 0 auto;
    padding: 15px 24px 40px;
    box-sizing: border-box;
}
.rn-hero-text {
    flex: 1;
    max-width: 520px;
}
/* 메인 비주얼 텍스트 등장 인터랙션 (아래→위 페이드인, stagger) */
.rn-hero-text > h2,
.rn-hero-text > p,
.rn-hero-text > .rn-hero-pagination {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.rn-hero .swiper-slide-active .rn-hero-text > h2,
.rn-hero .swiper-slide-active .rn-hero-text > p,
.rn-hero .swiper-slide-active .rn-hero-text > .rn-hero-pagination {
    opacity: 1;
    transform: translateY(0);
}
.rn-hero .swiper-slide-active .rn-hero-text > h2 { transition-delay: 0.1s; }
.rn-hero .swiper-slide-active .rn-hero-text > p { transition-delay: 0.35s; }
.rn-hero .swiper-slide-active .rn-hero-text > .rn-hero-pagination { transition-delay: 0.6s; }
.rn-hero-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--rn-color-text);
    line-height: 1.25;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.rn-hero-text p {
    font-size: 15px;
    color: var(--rn-color-sub);
    line-height: 1.6;
    margin: 0 0 32px;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 시안 (69:697) — height 36, padding 8/17, border #333, radius 18, font 16, black */
.rn-hero-pagination {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    height: 36px;
    padding: 0 17px;
    border: 1px solid #333;
    border-radius: 18px;
    background: transparent;
    font-size: 16px;
    color: #000;
}
/* 현재 페이지 SemiBold, 전체 페이지 Regular */
.rn-hero-pagination .rn-hero-current { color: #000; font-weight: 600; }
.rn-hero-pagination .rn-hero-total   { color: #000; font-weight: 400; }
/* 시안: 8px height 세로 line separator (회전 0deg) */
.rn-hero-pagination .rn-hero-divider { width: 1px; height: 8px; background: #000; }

.rn-hero-image {
    flex: 0 0 auto;
    width: 440px;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rn-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rn-hero-nav {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, 0.55);
    cursor: pointer;
    transition: color .2s ease;
}
.rn-hero-nav:hover,
.rn-hero-nav:focus-visible { color: var(--rn-color-primary); outline: none; }
.rn-hero-nav svg { width: 32px; height: 32px; }

/* 히어로 하단 컨트롤 — 이전/dot 인디케이터/다음 을 한 줄로 묶어 가운데 정렬 */
.rn-hero-controls {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
    pointer-events: auto;
}
/* 히어로 갯수 인디케이터 — 슬라이드 수만큼 dot 표시, 현재 슬라이드만 pill 형태로 강조. */
.rn-hero-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.rn-hero-indicator-bar {
    width: 8px;
    height: 8px;
    background: rgba(17, 24, 39, 0.22);
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    transition: background-color .25s ease, width .25s ease;
}
.rn-hero-indicator-bar:hover { background: rgba(17, 24, 39, 0.4); }
.rn-hero-indicator-bar.is-active {
    width: 24px;
    background: var(--rn-color-primary);
}
@media (max-width: 768px) {
    .rn-hero-controls { bottom: 32px; gap: 12px; }
    .rn-hero-indicator { gap: 8px; }
}

/* 카테고리 탭 (메인 하단) */
.rn-main-tabs {
    position: relative;
    z-index: 2;
    max-width: var(--rn-container-width);
    margin: -28px auto 0;
    padding: 0 24px;
}
.rn-main-tabs-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--rn-color-primary);
    border-radius: var(--rn-radius-pill);
    /* 시안: 컨테이너 padding 4px → 활성 알약이 안쪽으로 inset */
    padding: 4px;
    box-shadow: var(--rn-shadow-hover);
    color: #fff;
}
/* 활성 탭 인디케이터 — 시안: 흰색 알약. JS 가 --rn-indicator-x / --rn-indicator-w 를 갱신 */
.rn-main-tabs-indicator {
    position: absolute;
    top: 4px;
    /* JS 가 setProperty 하는 --rn-indicator-x 는 탭의 offsetLeft (inner 의 padding 4px 포함) 이므로
       left 는 0 으로 두고 transform 만으로 위치 정렬한다. 그래야 첫 탭에서 left=4px 가 됨. */
    left: 0;
    height: calc(100% - 8px);
    width: var(--rn-indicator-w, 0px);
    transform: translateX(var(--rn-indicator-x, 0px));
    background: #fff;
    border-radius: var(--rn-radius-pill);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease;
}
.rn-main-tabs-inner.is-ready .rn-main-tabs-indicator { opacity: 1; }
html.rn .rn-main-tabs-inner a {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 60px;
    padding: 0 10px;
    font-size: 19px;
    font-weight: 600;
    /* 시안: 비활성 흰색 SemiBold */
    color: #fff;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease, font-weight .2s ease;
    letter-spacing: -0.3px;
}
/* 시안: 활성 알약 위 텍스트는 브랜드 컬러 + Bold */
html.rn .rn-main-tabs-inner a.is-active {
    color: var(--rn-color-primary);
    font-weight: 700;
}
html.rn .rn-main-tabs-inner a:hover {
    color: rgba(255, 255, 255, 0.85);
}
html.rn .rn-main-tabs-inner a.is-active:hover {
    color: var(--rn-color-primary);
}
@media (prefers-reduced-motion: reduce) {
    .rn-main-tabs-indicator { transition: none; }
}

/* 4개 바로가기 카드 */
.rn-quick-cards {
    max-width: var(--rn-container-width);
    margin: 40px auto 40px;
    padding: 0 24px;
    /* 자식 .rn-reveal 의 초기 transform: translateX(140px) 가 페이지 가로 폭을 늘려
       모바일에서 가로 스크롤이 생기는 회귀를 차단. clip 은 sticky/scroll context 부수효과가
       없고, 구형 브라우저는 hidden 으로 폴백. */
    overflow-x: hidden;
    overflow-x: clip;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rn-quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    background: #fff;
    transition: all .15s ease;
    overflow: hidden;
}
.rn-quick-card:hover {
    border-color: var(--rn-color-primary);
    box-shadow: var(--rn-shadow-hover);
    background: var(--rn-color-primary-soft);
}
.rn-quick-card strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}
.rn-quick-card .rn-quick-more {
    font-size: 14px;
    color: var(--rn-color-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.rn-quick-card .rn-quick-icon {
    align-self: flex-end;
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rn-quick-card .rn-quick-icon img,
.rn-quick-card .rn-quick-icon svg { width: 100%; height: 100%; object-fit: contain; }

/* ====================================================================
 * PRODUCT LIST / SEARCH
 * ==================================================================== */
.rn-product-page { max-width: var(--rn-container-width); margin: 0 auto; padding: 0 24px 80px; }

/* 필터 칩 박스 */
.rn-filter-chips-wrap {
    background: var(--rn-color-bg-muted);
    padding: 32px 0;
    /* 회색 배경을 뷰포트 전체 너비(100vw)로 확장 — 컨테이너 max-width 밖까지 full-bleed */
    margin: 16px 0 32px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.rn-filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
}
.rn-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: var(--rn-radius-pill);
    border: 1px solid var(--rn-color-border);
    background: #fff;
    color: var(--rn-color-sub);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
/* hover 시 솔리드 채움 (#10398E) + 텍스트가 슬롯머신 롤처럼 위로 한 칸 굴러감 */
.rn-filter-chip:hover {
    background: #10398E;
    border-color: #10398E;
    color: #fff;
}
/* 슬롯머신 롤 효과 — 같은 텍스트 2벌을 세로로 쌓고, 컨테이너를 한 칸 위로 이동 */
.rn-filter-chip-text {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
}
.rn-filter-chip-text-inner {
    display: block;
    transition: transform 0.67s cubic-bezier(0.4, 0, 0.2, 1);
}
.rn-filter-chip-text-inner > span {
    display: block;
    height: 1em;
    line-height: 1;
    white-space: nowrap;
}
.rn-filter-chip:hover .rn-filter-chip-text-inner { transform: translateY(-1em); }
.rn-filter-chip.is-active {
    background: var(--rn-color-primary);
    border-color: var(--rn-color-primary);
    color: #fff;
}
@media (prefers-reduced-motion: reduce) {
    .rn-filter-chip-text-inner { transition: none; }
    .rn-filter-chip:hover .rn-filter-chip-text-inner { transform: none; }
}

/* 검색 결과 헤더 */
.rn-search-summary {
    background: var(--rn-color-bg-muted);
    padding: 40px 0;
    /* 배경을 뷰포트 전체 너비(100vw)로 확장 — 컨테이너 max-width 밖까지 full-bleed */
    margin: 16px 0 32px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    text-align: center;
    /* 모바일 시안(254:1903) — Pretendard 14px */
    font-size: 14px;
    color: var(--rn-color-text);
}
.rn-search-summary em { font-style: normal; color: var(--rn-color-primary); font-weight: 700; }
.rn-search-summary .rn-search-keyword { color: var(--rn-color-primary); font-weight: 700; }

/* 제품 카드 그리드 */
.rn-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}
.rn-product-card {
    display: flex;
    flex-direction: column;
}
.rn-product-card .rn-product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 2px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 기존 테두리가 hover 시 색상으로 부드럽게 전환되며 '라인이 생성/확장되는' 느낌 부여
       (별도 ::before 라인을 두면 기존 테두리와 이중 라인이 되므로 사용하지 않음) */
    transition: border-color .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rn-product-card .rn-product-thumb img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.rn-product-card .rn-product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 58, 112, 0.12);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.rn-product-card:hover .rn-product-thumb { border-color: var(--rn-color-primary); }
.rn-product-card:hover .rn-product-thumb::after { opacity: 1; }
.rn-product-card .rn-product-hover-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    /* 버튼은 아래에서 위로 슬라이드업 + fade-in. translateX(-50%) 는 layout, translateY 는 모션 분리 */
    transform: translate(-50%, 16px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 22px;
    background: #fff;
    border: 1px solid var(--rn-color-primary);
    border-radius: var(--rn-radius-pill);
    color: var(--rn-color-primary);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 58, 112, 0.15);
    opacity: 0;
    transition: opacity .35s ease,
                transform .4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    white-space: nowrap;
}
.rn-product-card:hover .rn-product-hover-btn {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
    .rn-product-card .rn-product-thumb,
    .rn-product-card .rn-product-thumb::after,
    .rn-product-card .rn-product-hover-btn { transition: none; }
}
.rn-product-category {
    font-size: 13px;
    color: var(--rn-color-muted);
    margin: 0 0 4px;
}
.rn-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--rn-color-text);
    margin: 0 0 8px;
    line-height: 1.3;
}
.rn-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-product-price.rn-est { color: var(--rn-color-primary); font-size: 14px; }

/* No data */
.rn-no-data {
    padding: 80px 24px;
    text-align: center;
    color: var(--rn-color-muted);
    font-size: 15px;
}

/* ====================================================================
 * PRODUCT DETAIL
 * ==================================================================== */
.rn-product-view {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

/* 좌측 갤러리 */
.rn-product-gallery .rn-gallery-main {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.rn-product-gallery .rn-gallery-main img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.rn-gallery-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.rn-gallery-thumb {
    width: 92px;
    height: 92px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    padding: 4px;
}
.rn-gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rn-gallery-thumb.is-active { border-color: var(--rn-color-primary); border-width: 2px; }

/* 우측 정보 */
.rn-product-info { }
.rn-product-info .rn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 14px;
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
    border-radius: var(--rn-radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.rn-product-info h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--rn-color-text);
}

.rn-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.rn-spec-table th,
.rn-spec-table td {
    padding: 12px 0;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
.rn-spec-table th {
    width: 120px;
    font-weight: 500;
    color: var(--rn-color-muted);
}
.rn-spec-table td { color: var(--rn-color-text); }

.rn-option-block {
    border-top: 1px solid var(--rn-color-border);
    padding-top: 24px;
    margin-bottom: 24px;
}
.rn-option-block h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin: 0 0 16px;
}
.rn-option-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.rn-option-row label {
    font-size: 14px;
    color: var(--rn-color-muted);
}
.rn-select {
    position: relative;
    width: 100%;
}
.rn-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--rn-color-text);
    cursor: pointer;
    outline: none;
}
.rn-select select:focus { border-color: var(--rn-color-primary); }
.rn-select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--rn-color-muted);
    border-bottom: 1.5px solid var(--rn-color-muted);
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}

/* 선택된 옵션 카드 */
.rn-selected-box {
    background: var(--rn-color-bg-muted);
    border-radius: var(--rn-radius-md);
    padding: 20px;
    margin-bottom: 24px;
}
.rn-selected-box .rn-selected-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rn-color-text);
    margin: 0 0 14px;
}
.rn-selected-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--rn-color-border);
}
.rn-selected-item:first-of-type { border-top: 0; }
.rn-selected-item .rn-selected-label {
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-selected-item .rn-selected-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--rn-color-text);
}
.rn-selected-item .rn-selected-remove {
    background: transparent;
    border: 0;
    color: var(--rn-color-muted);
    cursor: pointer;
    padding: 4px;
}
.rn-selected-item .rn-qty {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-pill);
    background: #fff;
    overflow: hidden;
    width: max-content;
    padding: 4px 8px;
}
.rn-qty button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--rn-color-sub);
    font-size: 16px;
    cursor: pointer;
}
.rn-qty input {
    width: 40px;
    height: 28px;
    border: 0;
    text-align: center;
    font-size: 14px;
    color: var(--rn-color-text);
    outline: none;
    background: transparent;
}

/* 총 금액 */
.rn-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--rn-color-border);
}
.rn-total-row .rn-total-label { font-size: 15px; color: var(--rn-color-sub); }
.rn-total-row .rn-total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--rn-color-primary);
}

/* 탭 */
.rn-tabs {
    border-top: 1px solid var(--rn-color-border);
    padding-top: 40px;
    margin-top: 40px;
}
.rn-tabs-head {
    display: flex;
    border-bottom: 1px solid var(--rn-color-border);
    margin-bottom: 32px;
}
.rn-tabs-head button {
    flex: 0 0 auto;
    min-width: 180px;
    height: 52px;
    padding: 0 16px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--rn-color-muted);
    cursor: pointer;
}
.rn-tabs-head button.is-active {
    color: var(--rn-color-primary);
    font-weight: 700;
    border-bottom-color: var(--rn-color-primary);
}
.rn-tabs-body .rn-tab-panel {
    display: none;
    font-size: 15px;
    color: var(--rn-color-sub);
    line-height: 1.8;
    white-space: pre-line;
}
.rn-tabs-body .rn-tab-panel.is-active { display: block; }

/* ====================================================================
 * PHASE 2 : 장바구니 / 주문 / 결제 공통 컴포넌트
 * ==================================================================== */

/* ---------- 체크박스 ---------- */
.rn-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-checkbox input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.rn-checkbox .rn-chk-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--rn-color-border);
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .12s ease;
    flex-shrink: 0;
}
.rn-checkbox .rn-chk-box svg {
    width: 14px; height: 14px; color: #fff;
    opacity: 0;
    transition: opacity .12s ease;
}
.rn-checkbox input:checked + .rn-chk-box {
    background: var(--rn-color-primary);
    border-color: var(--rn-color-primary);
}
.rn-checkbox input:checked + .rn-chk-box svg { opacity: 1; }

/* ---------- 라디오 ---------- */
.rn-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-radio input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rn-radio .rn-radio-dot {
    width: 20px; height: 20px;
    border: 1.5px solid var(--rn-color-border);
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .12s ease;
}
.rn-radio .rn-radio-dot::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .12s ease;
}
.rn-radio input:checked + .rn-radio-dot {
    background: var(--rn-color-primary);
    border-color: var(--rn-color-primary);
}
.rn-radio input:checked + .rn-radio-dot::after { transform: scale(1); }

/* ---------- 입력/폼 ---------- */
.rn-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--rn-color-text);
    outline: none;
    transition: all .15s ease;
    font-family: inherit;
}
.rn-input:focus { background: #fff; border-color: var(--rn-color-primary); }
.rn-input[readonly],
.rn-input:disabled,
.rn-input.is-readonly {
    background: var(--rn-color-bg-muted);
    color: var(--rn-color-muted);
}

.rn-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--rn-color-text);
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all .15s ease;
}
.rn-textarea:focus { background: #fff; border-color: var(--rn-color-primary); }
.rn-textarea[readonly],
.rn-textarea:disabled {
    background: var(--rn-color-bg-muted);
    color: var(--rn-color-muted);
}

.rn-form-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--rn-color-border-soft);
}
.rn-form-row > label {
    font-size: 14px;
    color: var(--rn-color-sub);
    padding-top: 12px;
}
.rn-form-row > label .rn-required { color: var(--rn-color-danger); margin-left: 2px; }

/* ---------- 테이블 ---------- */
.rn-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--rn-color-text);
}
.rn-table thead th {
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-color-sub);
    text-align: left;
    border-bottom: 1px solid var(--rn-color-border);
    background: transparent;
}
.rn-table tbody td {
    padding: 20px 12px;
    font-size: 14px;
    color: var(--rn-color-text);
    border-bottom: 1px solid var(--rn-color-border-soft);
}
.rn-table tbody tr:hover td { background: var(--rn-color-bg-muted); }
.rn-table .rn-table-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--rn-color-muted);
}

/* 상태 뱃지 */
.rn-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    border-radius: var(--rn-radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--rn-color-bg-muted);
    color: var(--rn-color-sub);
}
.rn-status-badge.is-review       { background: #FEF3C7; color: #B45309; }
.rn-status-badge.is-review-done  { background: var(--rn-color-primary-soft); color: var(--rn-color-primary); }
.rn-status-badge.is-pending      { background: #E0F2FE; color: #075985; }
.rn-status-badge.is-paid         { background: #D1FAE5; color: #065F46; }
.rn-status-badge.is-cancel       { background: #FEE2E2; color: #991B1B; }

/* 카테고리 뱃지 (장바구니/주문 상세용) */
.rn-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
    border-radius: var(--rn-radius-pill);
    font-size: 12px;
    font-weight: 600;
}

/* 주문 상태 뱃지 — 결제대기/결제완료/배송 등 상태 표시. 취소 관련은 빨간색 */
.rn-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
    border-radius: var(--rn-radius-pill);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.rn-status-badge.is-cancel,
.rn-status-badge.is-cancel-req {
    background: #FDECEC;
    color: #EA1917;
}

/* ---------- 모달 ---------- */
.rn-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 900;
    display: none;
}
.rn-modal-backdrop.is-open { display: flex; align-items: center; justify-content: center; }
.rn-modal {
    background: #fff;
    border-radius: var(--rn-radius-md);
    box-shadow: var(--rn-shadow-modal);
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 28px;
}
.rn-modal.is-lg { width: min(640px, calc(100% - 32px)); }
.rn-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--rn-color-text);
}
.rn-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-modal-close {
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rn-color-muted);
    cursor: pointer;
}
.rn-modal-close:hover { color: var(--rn-color-text); }
.rn-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--rn-color-border);
}
.rn-modal-footer .rn-btn { min-width: 120px; }

/* ---------- 레이아웃 : 장바구니 / 주문 ---------- */
.rn-page-wrap { max-width: var(--rn-container-width); margin: 0 auto; padding: 0 24px 80px; }

.rn-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.rn-cart-layout-full { display: block; }

/* 우측 요약 사이드바 */
.rn-summary {
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    padding: 28px 24px;
    position: sticky;
    top: 180px;
}
.rn-summary h3 {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rn-color-text);
    font-size: 16px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-summary-row.is-total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--rn-color-border);
    font-size: 15px;
    color: var(--rn-color-text);
    font-weight: 600;
}
.rn-summary-row.is-total strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--rn-color-primary);
}
.rn-summary-actions { margin-top: 20px; display: grid; gap: 8px; }
.rn-summary-remark label {
    display: block;
    margin: 20px 0 8px;
    font-size: 14px;
    color: var(--rn-color-sub);
}

/* 장바구니 아이템 카드 */
.rn-cart-item {
    display: grid;
    grid-template-columns: 24px 96px 1fr auto 24px;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    margin-bottom: 16px;
}
.rn-cart-item.is-disabled { opacity: 0.55; }
.rn-cart-item-thumb {
    width: 96px; height: 96px;
    border: 1px solid var(--rn-color-border-soft);
    border-radius: var(--rn-radius-sm);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--rn-color-bg-muted);
}
.rn-cart-item-thumb img { max-width: 85%; max-height: 85%; object-fit: contain; }
.rn-cart-item-info .rn-cat-badge { margin-bottom: 6px; }
.rn-cart-item-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rn-color-text);
}
.rn-cart-item-info .rn-opt-text {
    font-size: 13px;
    color: var(--rn-color-muted);
    margin: 0 0 12px;
}
.rn-cart-item-info .rn-cart-option-btn {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 13px;
    color: var(--rn-color-sub);
    cursor: pointer;
}
.rn-cart-item-info .rn-cart-option-btn:hover {
    border-color: var(--rn-color-primary);
    color: var(--rn-color-primary);
}
.rn-cart-item-price {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-cart-item-del {
    background: transparent;
    border: 0;
    color: var(--rn-color-muted);
    cursor: pointer;
}
.rn-cart-item-del:hover { color: var(--rn-color-danger); }
.rn-cart-item .rn-qty {
    grid-column: 3 / 4;
    justify-self: start;
}

/* 전체 선택 / 전체 삭제 바 */
.rn-cart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    margin-bottom: 8px;
}
.rn-cart-toolbar .rn-link-del {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-pill);
    background: #fff;
    color: var(--rn-color-sub);
    font-size: 13px;
    cursor: pointer;
}

/* ---------- 주문 검토 요청 / 주문조회 ---------- */
.rn-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 0;
    background: var(--rn-color-bg-muted);
    margin: 16px -24px 32px;
    padding-left: 24px;
    padding-right: 24px;
    justify-content: center;
}
.rn-filter-bar .rn-input {
    background: #fff;
    max-width: 180px;
}
.rn-filter-bar .rn-btn-primary {
    height: 44px;
    padding: 0 28px;
    gap: 6px;
}
.rn-filter-date-range {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.rn-filter-date-range span { color: var(--rn-color-muted); }
.rn-filter-bar .rn-select select { height: 44px; background: #fff; min-width: 160px; }

/* 주문 일자별 그룹 */
.rn-order-group { margin-bottom: 40px; }
.rn-order-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px;
    margin-bottom: 0;
    border-top: 1px solid var(--rn-color-text);
    border-bottom: 1px solid var(--rn-color-text);
}
.rn-order-group-head .rn-order-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--rn-color-text);
}
.rn-order-group-head .rn-order-date em { color: var(--rn-color-primary); font-style: normal; margin-left: 6px; }
.rn-order-group-head a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--rn-color-sub);
}

.rn-order-detail-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--rn-color-border-soft);
}
.rn-order-detail-row .rn-thumb-sm {
    width: 80px; height: 80px;
    border: 1px solid var(--rn-color-border-soft);
    border-radius: var(--rn-radius-sm);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--rn-color-bg-muted);
}
.rn-order-detail-row .rn-thumb-sm img { max-width: 85%; max-height: 85%; object-fit: contain; }
.rn-order-detail-row .rn-qty-text { font-size: 14px; color: var(--rn-color-muted); }

/* ---------- 결제 페이지 ---------- */
.rn-pay-section {
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.rn-pay-section h3 {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rn-color-text);
    font-size: 17px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-section-title {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rn-color-text);
    font-size: 17px;
    font-weight: 700;
    color: var(--rn-color-text);
}
.rn-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.rn-radio-group {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
}
.rn-pay-method-info {
    background: var(--rn-color-bg-muted);
    border-radius: var(--rn-radius-sm);
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--rn-color-sub);
    margin-top: 12px;
    white-space: pre-line;
}

/* ---------- 결과 (주문상세 결제정보 박스) ---------- */
.rn-order-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    overflow: hidden;
    background: var(--rn-color-bg-muted);
    margin: 16px 0 40px;
}
.rn-order-stat {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--rn-color-border);
    background: var(--rn-color-bg-muted);
}
.rn-order-stat:last-child { border-right: 0; }
.rn-order-stat .rn-stat-label { font-size: 13px; color: var(--rn-color-muted); margin-bottom: 8px; }
.rn-order-stat .rn-stat-value { font-size: 22px; font-weight: 700; color: var(--rn-color-text); }
.rn-order-stat.is-highlight .rn-stat-value { color: var(--rn-color-primary); }

.rn-info-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    row-gap: 2px;
    border-top: 1px solid var(--rn-color-border);
}
.rn-info-grid dt, .rn-info-grid dd {
    padding: 18px 16px;
    border-bottom: 1px solid var(--rn-color-border-soft);
    margin: 0;
}
.rn-info-grid dt {
    font-size: 14px;
    color: var(--rn-color-muted);
    background: transparent;
}
.rn-info-grid dd {
    font-size: 14px;
    color: var(--rn-color-text);
}

/* ====================================================================
 * RESPONSIVE
 * ==================================================================== */
@media (max-width: 1024px) {
    .rn-quick-cards { grid-template-columns: repeat(2, 1fr); }
    .rn-product-grid { grid-template-columns: repeat(3, 1fr); }
    .rn-product-view { grid-template-columns: 1fr; }
    .rn-cart-layout { grid-template-columns: 1fr; }
    .rn-summary { position: static; }
    .rn-order-stats { grid-template-columns: 1fr; }
    .rn-order-stat { border-right: 0; border-bottom: 1px solid var(--rn-color-border); }
    .rn-form-row { grid-template-columns: 1fr; }
    .rn-form-row > label { padding-top: 0; }
}
@media (max-width: 768px) {
    /* 모바일에서 헤더 하단 가느다란 선 제거 (검색바 아래 선) + 브레드크럼 숨김 */
    .rn-header { border-bottom: 0; }
    .rn-breadcrumb { display: none; }
    /* 헤더: 로고 + 햄버거 한 줄, 검색은 별도 row, GNB 는 드로어로 이동 */
    .rn-header-top {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        height: auto;
        padding: 12px 16px;
    }
    .rn-logo img { height: 32px; }
    .rn-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: none;
        margin-top: 4px;
    }
    .rn-search input { height: 44px; padding-right: 44px; padding-left: 16px; font-size: 13px; }
    .rn-util { gap: 8px; justify-content: flex-end; }
    /* 모바일에서 util 라벨 텍스트 숨김, 아이콘만 */
    .rn-util-item span { display: none; }
    .rn-util-item { padding: 8px; }
    /* 모바일에서는 로그아웃이 드로어 안에 있으므로 헤더 util 의 로그아웃 링크 숨김.
       회원가입은 드로어 액션에 노출되므로 헤더에서는 숨겨 마이페이지/로그인 + 햄버거만 노출.
       NOTE: html.rn a.rn-util-item(=display:inline-flex, specificity 0,2,2)가
       단순 .rn-util a[...](0,2,1)를 이겨 숨김이 무력화되던 회귀가 있었다.
       시안(254:4) 헤더는 로그인/마이페이지 아이콘 + 햄버거만 노출하므로
       html.rn 접두로 specificity 를 올려 확실히 숨긴다. */
    html.rn .rn-util .js-rn-logout,
    html.rn .rn-util a[href*="/member/join1"] { display: none; }
    /* 데스크톱 GNB 숨기고 햄버거 노출 */
    .rn-gnb { display: none; }
    .rn-gnb-toggle { display: inline-flex; }
    .rn-mypage-dropdown { right: 8px; }

    /* 시안(254:4) — 모바일 배너의 제목/설명/인디케이터(1|5 알약)는 좌측 정렬.
       이미지는 기존대로 중앙 하단 유지(align-items:center). 텍스트 블록을 stretch 시켜
       내부 텍스트와 inline-flex 인디케이터가 좌측에서 시작하도록 한다. */
    .rn-hero-slide { flex-direction: column; align-items: center; text-align: left; }
    .rn-hero-text { align-self: stretch; max-width: none; }
    .rn-hero-text h2 { font-size: 28px; }
    .rn-hero-image { width: 240px; height: 200px; }
    html.rn .rn-main-tabs-inner a { font-size: 13px; padding: 0 6px; height: 48px; }
    .rn-product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .rn-option-row { grid-template-columns: 60px 1fr; }

    /* 카테고리 필터 칩 (모바일) — mockup 반응형/02_1_제품보기.png
       회색 배경 wrapper 제거, 칩 사이즈 축소, 1줄 가로 스크롤 (스크롤바 비표시) */
    .rn-filter-chips-wrap {
        background: transparent;
        padding: 8px 0;
        margin: 8px 0 16px;
        /* 모바일은 회색 배경이 없으므로 데스크탑 full-bleed(100vw) 를 리셋 */
        width: auto;
        left: auto;
        margin-left: 0;
    }
    .rn-filter-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        /* 첫 칩 좌측을 제품 그리드 좌측(.rn-product-page 의 24px padding)과 일치시킨다.
           기존 0 16px 인셋이 칩만 16px 더 밀어 제품과 시작점이 어긋났음(시안은 동일). */
        padding: 0;
        overflow-x: auto;
        -ms-overflow-style: none;       /* IE / Edge legacy */
        scrollbar-width: none;          /* Firefox */
        -webkit-overflow-scrolling: touch;
    }
    .rn-filter-chips::-webkit-scrollbar { display: none; }  /* Chrome / Safari */
    .rn-filter-chip {
        flex-shrink: 0;
        height: 40px;
        padding: 0 20px;
        font-size: 15px;
    }

    /* 카드 텍스트 — 시안(265:2048) 일치: 여백 + 폰트/색상
       이미지→카테고리 12px, 카테고리→품명 4px, 품명→가격 8px
       카테고리 #999 Medium 12 / 품명 #333 Regular 12 / 가격 #121212 SemiBold 16 */
    .rn-product-card .rn-product-thumb { margin-bottom: 12px; }
    .rn-product-category { margin-bottom: 4px; font-size: 12px; font-weight: 500; color: #999; }
    .rn-product-name { margin-bottom: 8px; font-size: 12px; font-weight: 400; color: #333; }
    .rn-product-price { font-size: 16px; font-weight: 600; color: #121212; }

    /* 페이지 타이틀 — 모바일은 Figma(03_3_구매, node 269:5663 "결제하기") 기준 18px/Bold 로 통일.
       데스크톱 40px hero 대비 축소. 가운데정렬·weight 700·letter-spacing 은 전역 .rn-page-title 에서 상속.
       (이전엔 40px 고정이라 일부 페이지만 개별 18px 오버라이드 → 페이지별 18/40px 불일치 발생. 전역에서 일괄 통일.) */
    .rn-page-title {
        font-size: 18px;
        margin: 8px 0 12px;
    }
}
@media (max-width: 480px) {
    /* 시안(254:998~) — 모바일 바로가기 카드: 가로형 92px.
       제목+자세히보기(좌측, 세로 stack) / 아이콘(우측 ~44px). 카드 간격 12px. */
    .rn-quick-cards { grid-template-columns: 1fr; gap: 12px; margin: 24px auto 48px; }
    .rn-quick-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        height: auto;
        min-height: 92px;
        padding: 16px 24px;
        border-radius: var(--rn-radius-sm); /* 8px (시안 rounded-[8px]) */
    }
    .rn-quick-card > div { flex: 1 1 auto; min-width: 0; }
    .rn-quick-card strong { font-size: 16px; margin-bottom: 8px; } /* 시안 Bold 14px → 412px 뷰포트 비례 16px */
    .rn-quick-card .rn-quick-more { font-size: 13px; }             /* 시안 자세히보기 #555 Medium 12px */
    .rn-quick-card .rn-quick-icon { align-self: center; width: 44px; height: 44px; flex: 0 0 auto; }
    .rn-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
    .rn-form-actions { flex-direction: column; }
    .rn-form-actions .rn-btn { width: 100%; min-width: 0; }
    /* 풀폭 액션 버튼 — 인증/회원/배송지 등록 등 */
    .rn-btn-block,
    .rn-btn-full { width: 100%; }
}

/* =============================================================
   Phase 3 — 공지/문의/마이페이지/배송지 공용 컴포넌트
   ============================================================= */

/* ----- 버튼 바리에이션 ----- */
.rn-btn-outline {
    background: #fff;
    color: var(--rn-color-sub);
    border-color: var(--rn-color-border);
}
.rn-btn-outline:hover { border-color: var(--rn-color-primary); color: var(--rn-color-primary); }

html.rn a.rn-btn-dark,
html.rn a.rn-btn-dark:link,
html.rn a.rn-btn-dark:visited,
html.rn button.rn-btn-dark,
html.rn .rn-btn-dark {
    background: var(--rn-color-bg-dark);
    border-color: var(--rn-color-bg-dark);
    color: #fff;
}
html.rn a.rn-btn-dark:hover,
html.rn button.rn-btn-dark:hover,
html.rn .rn-btn-dark:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.rn-btn-full { display: flex; width: 100%; }

/* ----- 폼 액션 버튼 영역 (중앙 정렬) ----- */
.rn-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 0;
}
.rn-form-actions .rn-btn { min-width: 140px; }

/* ----- 게시판 테이블 (공지/문의 공용) ----- */
.rn-board-meta {
    font-size: 14px;
    color: var(--rn-color-sub);
    margin: 0 0 12px;
}
.rn-board-meta em { font-style: normal; font-weight: 700; color: var(--rn-color-primary); }

.rn-board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--rn-color-text);
}
.rn-board-table thead th {
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-color-sub);
    padding: 16px 8px;
    border-bottom: 1px solid var(--rn-color-border);
    background: var(--rn-color-bg-muted);
    text-align: center;
}
.rn-board-table tbody td {
    padding: 18px 8px;
    font-size: 14px;
    border-bottom: 1px solid var(--rn-color-border);
    color: var(--rn-color-text);
    text-align: center;
    vertical-align: middle;
}
.rn-board-table .rn-board-title { text-align: left; }
.rn-board-table .rn-board-title a { color: var(--rn-color-text); }
.rn-board-table .rn-board-title a:hover { color: var(--rn-color-primary); text-decoration: underline; }
.rn-board-table .rn-board-date,
.rn-board-table .rn-board-view { color: var(--rn-color-muted); }
.rn-no-data-row {
    padding: 80px 0 !important;
    color: var(--rn-color-muted);
}

/* 공지사항 고정 뱃지 */
.rn-notice-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--rn-radius-sm);
    background: var(--rn-color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* 문의 답변 상태 인라인 텍스트 */
.rn-reply-done { color: var(--rn-color-primary); font-weight: 700; }
.rn-reply-pending { color: var(--rn-color-muted); }

/* 글쓰기 버튼 자리 */
.rn-board-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
.rn-board-actions .rn-btn svg { margin-right: 4px; }

/* ----- 공지/문의 상세 ----- */
.rn-notice-detail {
    border-top: 2px solid var(--rn-color-text);
    padding-top: 32px;
    margin-top: 8px;
}
.rn-notice-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--rn-color-text);
}
.rn-notice-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--rn-color-sub);
    padding-bottom: 20px;
    /* 시안: 첨부파일 위 separator 는 진한 #333 */
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}
.rn-notice-meta em { font-style: normal; color: var(--rn-color-muted); margin-right: 6px; }

.rn-notice-body {
    min-height: 300px;
    padding: 32px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rn-color-text);
    background: var(--rn-color-bg-muted);
    border-radius: var(--rn-radius-sm);
    margin: 32px 0 40px;
}

.rn-notice-nav {
    display: grid;
    grid-template-columns: 120px 1fr;
    margin: 0;
    border-top: 1px solid var(--rn-color-text);
}
.rn-notice-nav dt,
.rn-notice-nav dd {
    padding: 18px 12px;
    border-bottom: 1px solid var(--rn-color-border);
    margin: 0;
    font-size: 14px;
}
.rn-notice-nav dt {
    font-weight: 600;
    color: var(--rn-color-sub);
    background: var(--rn-color-bg-muted);
}
.rn-notice-nav dd a { color: var(--rn-color-text); }
.rn-notice-nav dd a:hover { color: var(--rn-color-primary); text-decoration: underline; }
.rn-notice-nav-empty { color: var(--rn-color-muted); }

/* 시안: 라벨 + 파일 목록을 한 줄로, 아래쪽만 얇은 separator */
.rn-notice-files {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rn-color-border);
}
.rn-notice-files-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--rn-color-text);
    flex-shrink: 0;
}
.rn-notice-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.rn-file-link {
    color: var(--rn-color-sub);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rn-file-link:hover { color: var(--rn-color-primary); }

/* 답변완료/미답변 (상세 상단 뱃지) */
.rn-reply-status {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 답변 박스 (시안: 본문 위 separator + 라이트 그레이 컨테이너 + 안쪽 흰 박스) */
.rn-reply-box {
    background: var(--rn-color-bg-muted);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    position: relative;
}
/* 답변 박스 위쪽 separator — 본문과 답변을 분리하는 라인 */
.rn-reply-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 1px;
    background: var(--rn-color-border);
}

.rn-reply-head {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--rn-color-sub);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.rn-reply-label {
    color: var(--rn-color-primary);
    font-weight: 700;
    font-size: 16px;
}
.rn-reply-meta em { font-style: normal; color: var(--rn-color-muted); margin-right: 6px; }
/* 시안: 답변 내용은 흰색 박스로 분리 */
.rn-reply-cont {
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: 8px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rn-color-text);
    white-space: pre-wrap;
}

/* ----- 글쓰기 폼 (공통 dl 그리드) ----- */
.rn-write-form {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-top: 1px solid var(--rn-color-text);
    margin: 8px 0 0;
}
.rn-write-form dt,
.rn-write-form dd {
    padding: 20px 12px;
    border-bottom: 1px solid var(--rn-color-border);
    margin: 0;
    display: flex;
    align-items: center;
}
.rn-write-form dt {
    font-weight: 600;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-write-form dd { gap: 8px; flex-wrap: wrap; }
.rn-write-form dd .rn-input { flex: 1; min-width: 0; }
.rn-write-form dd .rn-textarea { width: 100%; min-height: 180px; }
.rn-gubn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rn-gubn-row .rn-select { width: auto; min-width: 200px; }

/* 파일 업로드 wrap */
.rn-file-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.rn-file-wrap .rn-input { flex: 1; }
.rn-file-btn {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.rn-file-btn input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.rn-file-btn svg { margin-right: 4px; }
.rn-file-name { font-size: 14px; color: var(--rn-color-muted); }

.rn-file-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rn-file-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: var(--rn-color-bg-muted);
    border-radius: var(--rn-radius-sm);
}
.rn-file-row a { color: var(--rn-color-sub); font-size: 14px; flex: 1; }
.rn-file-row a:hover { color: var(--rn-color-primary); }
.rn-file-remove {
    background: transparent;
    border: 0;
    color: var(--rn-color-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--rn-radius-pill);
}
.rn-file-remove:hover { color: var(--rn-color-danger); background: #fff; }

/* ----- 마이페이지 info 폼 박스 ----- */
.rn-info-form {
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    padding: 28px 32px;
    max-width: 800px;
    margin: 0 auto;
}
.rn-info-form-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rn-color-text);
    color: var(--rn-color-text);
}
.rn-info-form-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    margin: 0;
}
.rn-info-form-grid dt,
.rn-info-form-grid dd {
    padding: 20px 4px;
    border-bottom: 1px solid var(--rn-color-border);
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
}
.rn-info-form-grid dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-color-sub);
}
.rn-info-form-grid dd:last-of-type,
.rn-info-form-grid dt:last-of-type { border-bottom: 0; }
.rn-info-text { font-size: 14px; color: var(--rn-color-text); }
.rn-input-hint {
    font-size: 12px;
    color: var(--rn-color-danger);
    margin: 6px 0 0;
    width: 100%;
}

/* ----- 회원탈퇴 안내 ----- */
.rn-cancel-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--rn-color-bg-muted);
    border-radius: var(--rn-radius-md);
    max-width: 600px;
    margin: 24px auto 0;
}
.rn-cancel-box strong {
    display: block;
    font-size: 20px;
    color: var(--rn-color-text);
    margin-bottom: 12px;
}
.rn-cancel-box p { font-size: 14px; color: var(--rn-color-muted); margin: 0; }

/* ----- 배송지관리 ----- */
.rn-delivery-list {
    border-top: 1px solid var(--rn-color-text);
    margin-top: 8px;
}
.rn-delivery-row {
    display: grid;
    grid-template-columns: 60px 220px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 24px 12px;
    border-bottom: 1px solid var(--rn-color-border);
}
.rn-delivery-pick {
    display: flex;
    justify-content: center;
    align-items: center;
}
.rn-delivery-pick input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rn-delivery-pick label {
    width: 22px;
    height: 22px;
    border: 2px solid var(--rn-color-border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: border-color 0.15s;
}
.rn-delivery-pick input:checked + label { border-color: var(--rn-color-primary); }
.rn-delivery-pick input:checked + label::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--rn-color-primary);
    border-radius: 50%;
}
.rn-delivery-alias {
    font-size: 15px;
    font-weight: 600;
    color: var(--rn-color-text);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rn-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--rn-color-text);
    border-radius: var(--rn-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--rn-color-text);
    background: #fff;
}
.rn-delivery-info {
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-delivery-info p { margin: 0; line-height: 1.6; }
.rn-delivery-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ----- 배송지 등록 모달 ----- */
.rn-modal-sm { max-width: 480px; padding: 0; }
.rn-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 2px solid var(--rn-color-text);
}
.rn-modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.rn-modal-body { padding: 24px 28px; }
.rn-modal-foot { padding: 0 28px 28px; }

.rn-modal-form { margin: 0; }
.rn-modal-form dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-color-text);
    margin-bottom: 6px;
}
.rn-modal-form dt em { color: var(--rn-color-danger); font-style: normal; }
.rn-modal-form dd { margin: 0 0 16px; }

.rn-addr-search { display: flex; gap: 8px; }
.rn-addr-search .rn-input { flex: 1; }
.rn-addr-search .rn-btn { flex-shrink: 0; }

.rn-check-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
}
.rn-check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rn-color-primary); }

/* 모바일 대응 — 게시판/마이페이지/배송지 */
@media (max-width: 768px) {
    /* 게시판 테이블을 카드로 변환 — thead 숨기고 td 마다 data-label 로 라벨 prefix */
    .rn-board-table,
    .rn-board-table tbody,
    .rn-board-table tr,
    .rn-board-table td { display: block; width: 100%; }
    .rn-board-table thead { display: none; }
    .rn-board-table { border-top: 0; }
    .rn-board-table tr {
        border: 1px solid var(--rn-color-border);
        border-radius: var(--rn-radius-md);
        padding: 14px 16px;
        margin-bottom: 12px;
        background: #fff;
    }
    .rn-board-table tbody td {
        border-bottom: 0;
        padding: 4px 0;
        text-align: left !important;
        font-size: 13px;
    }
    .rn-board-table tbody td[data-label]::before {
        content: attr(data-label) " : ";
        display: inline-block;
        min-width: 64px;
        margin-right: 6px;
        font-weight: 600;
        color: var(--rn-color-muted);
    }
    /* 제목 행은 라벨 prefix 없이 강조 */
    .rn-board-table tbody td.rn-board-title {
        font-size: 15px;
        font-weight: 600;
        padding: 2px 0 8px;
        border-bottom: 1px solid var(--rn-color-border-soft);
        margin-bottom: 8px;
    }
    .rn-board-table tbody td.rn-board-title::before { content: none; }
    .rn-no-data-row { padding: 60px 0 !important; text-align: center; }

    .rn-write-form { grid-template-columns: 100px 1fr; }
    .rn-info-form { padding: 20px 16px; }
    /* 마이페이지 회원정보 폼: 모바일은 라벨(위) + 필드(아래) 세로 스택 (시안 mypage_mobile) */
    .rn-info-form-grid { grid-template-columns: 1fr; }
    .rn-info-form-grid dt,
    .rn-info-form-grid dd {
        display: block;
        width: auto;       /* grid 1fr 셀이 폭 결정 (100% 강제 시 긴 콘텐츠로 셀 초과 → 가로 overflow) */
        min-width: 0;      /* grid item 기본 min-width:auto 로 인한 콘텐츠 overflow 방지 */
        min-height: 0;
    }
    .rn-info-form-grid dt {
        padding: 16px 0 6px;
        border-bottom: 0;
    }
    .rn-info-form-grid dd {
        padding: 0 0 16px;
    }
    .rn-info-form-grid dd .rn-input,
    .rn-info-form-grid dd .rn-btn { width: 100%; }
    /* 사업자등록증/통장사본 파일행: 파일명칸은 넓게, 업로드 버튼은 우측에 고정 */
    .rn-info-form-grid dd .rn-file-wrap { width: 100%; }
    .rn-info-form-grid dd .rn-file-wrap .rn-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    .rn-info-form-grid dd .rn-file-wrap .rn-file-btn {
        flex: 0 0 auto;
        width: auto;
    }
    .rn-notice-nav { grid-template-columns: 80px 1fr; }
    .rn-delivery-row {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "pick alias"
            "pick info"
            ". actions";
        gap: 8px;
    }
    .rn-delivery-pick { grid-area: pick; align-self: start; }
    .rn-delivery-alias { grid-area: alias; }
    .rn-delivery-info { grid-area: info; }
    .rn-delivery-actions { grid-area: actions; justify-content: flex-end; }
}

/* =============================================================
   Phase 4a: alert modal specificity namespace (grep anchor)
   — design-images: 알림창1·2 (info/warn) + 컨펌창1·2 (primary/danger)
   — framework.js action_popup 가 .is-open / .is-info / .is-warn /
     .is-confirm / .is-primary / .is-danger 클래스를 토글한다.
   ============================================================= */
.rn-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;            /* .is-open 클래스 부여 시 flex (인라인 style 사용 금지) */
    align-items: center;
    justify-content: center;
    font-family: var(--rn-font-sans);
}
.rn-alert-modal.is-open { display: flex; }

.rn-alert-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(17, 24, 39, 0.55);
}

.rn-alert-box {
    position: relative;
    z-index: 1;
    width: 460px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: var(--rn-radius-md);
    box-shadow: var(--rn-shadow-modal);
    padding: 40px 32px 32px;
    text-align: center;
}

.rn-alert-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 0;
    color: var(--rn-color-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rn-alert-close:hover { color: var(--rn-color-text); }
.rn-alert-close svg { width: 20px; height: 20px; }

.rn-alert-icon {
    margin: 0 auto 22px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rn-alert-icon svg { width: 100%; height: 100%; }
/* alert 모드 (icon 영역 사용). confirm 모드는 아이콘 영역 숨김 */
.rn-alert-modal.is-confirm .rn-alert-icon { display: none; }

.rn-alert-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.rn-alert-text {
    margin: 0;
    font-size: 15px;
    color: var(--rn-color-sub);
    line-height: 1.7;
    white-space: pre-line;
}

/* 컨펌 모드 — 좌측 정렬 헤더 + 하단 구분선 (design-images 컨펌창1·2) */
.rn-alert-modal.is-confirm .rn-alert-box {
    text-align: left;
    padding: 24px 28px 24px;
}
.rn-alert-modal.is-confirm .rn-alert-title {
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    padding: 0 36px 18px 0; /* 우측 X 버튼 영역 확보 (border-bottom 은 박스 풀폭 유지) */
    margin: 0;
    border-bottom: 1px solid var(--rn-color-border);
}
.rn-alert-modal.is-confirm .rn-alert-text {
    text-align: center;
    margin: 32px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rn-color-sub);
}

/* 액션 버튼 영역 */
/* alert 모드 (default): 단일 confirm 버튼 — 중앙 정렬, 적당한 폭 (design-images 알림창1·2) */
.rn-alert-actions {
    display: grid;
    grid-template-columns: minmax(200px, 280px);
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
/* confirm 모드: 좌 취소 / 우 confirm 2-column 풀폭 (design-images 컨펌창1·2) */
.rn-alert-modal.is-confirm .rn-alert-actions {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    margin-top: 24px;
}

/* 알림/컨펌 모달 버튼 — design-images 기준 직사각형 (border-radius 8px).
   global .rn-btn 의 pill 모양을 alert 모달 안에서만 override. */
html.rn .rn-alert-actions .rn-btn,
html.rn .rn-alert-actions .rn-btn-primary,
html.rn .rn-alert-actions .rn-btn-danger {
    border-radius: 8px;
    height: 50px;
    font-size: 15px;
    font-weight: 600;
}

/* 알림 모달 취소 버튼 (confirm 모드 전용 — alert 모드에서는 .rn-alert-actions 에서 inline display:none 처리됨) */
.rn-alert-cancel {
    background: #fff;
    border-color: var(--rn-color-border);
    color: var(--rn-color-sub);
}
.rn-alert-cancel:hover {
    border-color: var(--rn-color-text);
    color: var(--rn-color-text);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    /* inset:0 단축속성 미해석 환경(실기기/인앱 WebView) 방어 — 4변 명시 + 중앙정렬 재확인 */
    .rn-alert-modal.is-open {
        top: 0; right: 0; bottom: 0; left: 0;
        display: flex; align-items: center; justify-content: center;
    }
    .rn-alert-box { width: 100%; padding: 32px 20px 24px; }
    .rn-alert-title { font-size: 19px; }
    .rn-alert-modal.is-confirm .rn-alert-title { font-size: 19px; }
}

/* =============================================================
   스크롤 리빌 — IntersectionObserver 가 .is-visible 클래스를 부여.
   섹션의 자식 카드 등에 .rn-reveal 을 부여하면 시간차로 부드럽게 등장.
   ============================================================= */
.rn-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--rn-reveal-delay, 0s),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--rn-reveal-delay, 0s);
    will-change: opacity, transform;
}
.rn-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* stagger: 4개 quick 카드 등 grid 자식에 nth-child 로 지연 부여 */
.rn-quick-cards > .rn-reveal:nth-child(1) { --rn-reveal-delay: 0.05s; }
.rn-quick-cards > .rn-reveal:nth-child(2) { --rn-reveal-delay: 0.20s; }
.rn-quick-cards > .rn-reveal:nth-child(3) { --rn-reveal-delay: 0.35s; }
.rn-quick-cards > .rn-reveal:nth-child(4) { --rn-reveal-delay: 0.50s; }
/* quick 카드 전용 — 우측에서 날아와 spring(overshoot) 으로 제자리에 안착 */
.rn-quick-cards > .rn-reveal {
    transform: translateX(140px);
    transition: opacity .55s ease-out var(--rn-reveal-delay, 0s),
                transform .85s cubic-bezier(0.175, 0.885, 0.32, 1.275) var(--rn-reveal-delay, 0s);
}
.rn-quick-cards > .rn-reveal.is-visible {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .rn-reveal { transition: none; opacity: 1; transform: none; }
}

/* =============================================================
   팝업/모달 등장 인터랙션 — 노출 시 하단에서 슬라이드업 + 페이드인.
   .is-open 클래스가 토글되며 애니메이션 1회 재생.
   ============================================================= */
@keyframes rn-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes rn-popup-rise-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* action_popup 알림/컨펌 모달 */
.rn-alert-modal.is-open .rn-alert-backdrop {
    animation: rn-popup-fade-in 0.25s ease-out both;
}
.rn-alert-modal.is-open .rn-alert-box {
    animation: rn-popup-rise-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 일반 .rn-modal — backdrop 자체가 컨테이너이므로 자식 .rn-modal 에 슬라이드업 */
.rn-modal-backdrop.is-open { animation: rn-popup-fade-in 0.25s ease-out both; }
.rn-modal-backdrop.is-open > .rn-modal {
    animation: rn-popup-rise-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .rn-alert-modal.is-open .rn-alert-backdrop,
    .rn-alert-modal.is-open .rn-alert-box,
    .rn-modal-backdrop.is-open,
    .rn-modal-backdrop.is-open > .rn-modal {
        animation: none;
    }
}

/* =============================================================
   Phase 5 — 모바일 GNB (햄버거 + 드로어), Empty state, Bottom-bar
   design-images/반응형/01_메인-메뉴.png 기준
   ============================================================= */

/* 햄버거 버튼 — 데스크톱에서는 숨김, 모바일(@768)에서만 노출.
   Phase 5 가 위쪽 1024/768 미디어쿼리 블록보다 뒤에 정의되므로
   여기서 display 토글 규칙을 한 번 더 둬야 cascade 순서상 우선 적용됨. */
.rn-gnb-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--rn-color-text);
    cursor: pointer;
    padding: 4px;
}
.rn-gnb-toggle svg { width: 24px; height: 24px; }
.rn-gnb-toggle:hover { color: var(--rn-color-primary); }
@media (max-width: 768px) {
    .rn-gnb-toggle { display: inline-flex; }
    /* GNB 본체는 모바일에서 드로어로 대체 */
    .rn-gnb { display: none; }
}

/* 드로어 백드롭 — 드로어보다 z-index 한 단 낮게 (z=800 < drawer z=810).
   드로어가 풀폭으로 덮으므로 모바일에서는 시각적으로 보이지 않지만,
   off-click 닫기 핸들러를 위해 유지한다. */
.rn-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: var(--rn-z-drawer-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--rn-dur-base) var(--rn-ease),
                visibility 0s linear var(--rn-dur-base);
}
.rn-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--rn-dur-base) var(--rn-ease);
}

/* 드로어 본체 — 모바일 풀폭(mockup 반응형/01_메인-메뉴.png 기준).
   화면 전체를 덮어 배경 dim 이 노출되지 않음.
   100dvh : 안드로이드/iOS 브라우저 chrome(주소바/제스처바)을 제외한 동적 뷰포트.
   100vh fallback 은 미지원 브라우저용. */
.rn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: var(--rn-shadow-drawer);
    z-index: var(--rn-z-drawer);
    transform: translateX(100%);
    transition: transform var(--rn-dur-base) var(--rn-ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.rn-drawer.is-open { transform: translateX(0); }

.rn-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rn-color-border);
    flex-shrink: 0;
}
.rn-drawer-head .rn-logo img { height: 32px; }
.rn-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--rn-color-sub);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rn-drawer-close svg { width: 22px; height: 22px; }

/* 드로어 메뉴 — 5개 GNB 아이템 + 마이페이지/배송지 + 로그아웃 */
.rn-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.rn-drawer-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--rn-color-text);
    border-bottom: 1px solid var(--rn-color-border-soft);
}
.rn-drawer-menu > li > a:hover,
.rn-drawer-menu > li.is-active > a {
    color: var(--rn-color-primary);
    background: var(--rn-color-bg-muted);
}
.rn-drawer-menu > li > a::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--rn-color-muted);
    border-top: 1.5px solid var(--rn-color-muted);
    transform: rotate(45deg);
}

/* 드로어 액션 (마이페이지/배송지 또는 로그인/회원가입) — 메뉴 바로 아래 */
.rn-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
}
.rn-drawer-actions a,
.rn-drawer-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-color-text);
    cursor: pointer;
}
.rn-drawer-actions a:hover,
.rn-drawer-actions button:hover {
    border-color: var(--rn-color-primary);
    color: var(--rn-color-primary);
}

/* 드로어 하단 — 로그아웃 sticky, margin-top:auto 로 빈 공간을 모두 차지해 바닥에 붙임.
   하단 padding 충분히 확보 + safe-area-inset 합산 → 안드로이드 브라우저 chrome
   (주소바·제스처바)에 가리지 않게 함. */
.rn-drawer-foot {
    margin-top: auto;
    border-top: 1px solid var(--rn-color-border-soft);
    padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
}
.rn-drawer-logout {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #fff;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    color: var(--rn-color-sub);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.rn-drawer-logout:hover {
    border-color: var(--rn-color-primary);
    color: var(--rn-color-primary);
}

/* ---------- 인증/회원 화면 공용 폼 (mockup 00_1~00_6) ----------
   로그인, 아이디 찾기, 비밀번호 찾기, 비밀번호 변경, 회원가입 완료 등
   중앙 정렬, max-width 480px, 입력 필드는 라이트 그레이 배경 풀폭. */
.rn-auth-wrap {
    max-width: 480px;
    margin: 40px auto 80px;
    padding: 0 24px;
}
.rn-auth-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin: 24px 0 32px;
    letter-spacing: -0.5px;
}
.rn-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rn-auth-form .rn-input,
.rn-auth-form input[type="text"],
.rn-auth-form input[type="password"],
.rn-auth-form input[type="email"] {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    font-size: 15px;
    color: var(--rn-color-text);
    outline: none;
    transition: all .15s ease;
    font-family: inherit;
}
.rn-auth-form input:focus {
    background: #fff;
    border-color: var(--rn-color-primary);
}
/* 회색 배경은 readonly/disabled 일 때만 — 헤더 검색바(.rn-search input) 는 별도 규칙 유지 */
.rn-auth-form input[readonly],
.rn-auth-form input:disabled {
    background: var(--rn-color-bg-muted);
    color: var(--rn-color-muted);
}
.rn-auth-form input::placeholder { color: var(--rn-color-muted); }

/* 보조 링크 (아이디 찾기 | 비밀번호 찾기) */
.rn-auth-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 4px 4px 12px;
    font-size: 14px;
    color: var(--rn-color-sub);
}
.rn-auth-links a { color: var(--rn-color-sub); }
.rn-auth-links a:hover { color: var(--rn-color-primary); }
.rn-auth-links .rn-auth-divider {
    width: 1px;
    height: 12px;
    background: var(--rn-color-border);
}

/* 버튼 묶음 — 풀폭 스택 */
.rn-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.rn-auth-actions .rn-btn {
    width: 100%;
    height: 56px;
    border-radius: var(--rn-radius-sm);
    font-size: 16px;
    font-weight: 600;
}

/* outlined "회원가입" 버튼 — 네이비 보더 + 네이비 텍스트 */
.rn-btn-outline-primary {
    background: #fff;
    border-color: var(--rn-color-primary);
    color: var(--rn-color-primary);
}
.rn-btn-outline-primary:hover {
    background: var(--rn-color-primary-soft);
    border-color: var(--rn-color-primary-hover);
    color: var(--rn-color-primary-hover);
}

/* 가입 완료 등 안내성 화면 — 큰 아이콘 + 메시지 + 단일 CTA */
.rn-auth-message {
    text-align: center;
    padding: 40px 16px;
}
.rn-auth-message .rn-auth-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
}
.rn-auth-message .rn-auth-icon svg { width: 44px; height: 44px; }
.rn-auth-message strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--rn-color-text);
    margin-bottom: 12px;
}
.rn-auth-message p {
    font-size: 15px;
    color: var(--rn-color-sub);
    line-height: 1.7;
    margin: 0;
}

/* 모바일 — 화면 양쪽 16px 여백, 타이틀 축소 */
@media (max-width: 480px) {
    .rn-auth-wrap { padding: 0 16px; margin: 24px auto 60px; }
    .rn-auth-title { font-size: 24px; margin: 16px 0 24px; }
    .rn-auth-form input { height: 52px; font-size: 14px; }
    .rn-auth-actions .rn-btn { height: 52px; font-size: 15px; }
}

/* 회원가입 유형 선택 (join1) — 개인사업자 / 법인사업자 2-카드 */
.rn-join-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rn-join-type {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 20px 28px;
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    background: #fff;
    color: var(--rn-color-text);
    transition: all .15s ease;
}
.rn-join-type:hover {
    border-color: var(--rn-color-primary);
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
}
.rn-join-type-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rn-color-primary-soft);
    color: var(--rn-color-primary);
    margin-bottom: 16px;
}
.rn-join-type-icon svg { width: 36px; height: 36px; }
.rn-join-type strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.rn-join-type-desc {
    font-size: 13px;
    color: var(--rn-color-muted);
}
.rn-join-type:hover .rn-join-type-desc { color: var(--rn-color-primary); }
.rn-join-type-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rn-color-muted);
    display: inline-flex;
}
.rn-join-type-arrow svg { width: 18px; height: 18px; }
.rn-join-type:hover .rn-join-type-arrow { color: var(--rn-color-primary); }

@media (max-width: 480px) {
    .rn-join-type-grid { grid-template-columns: 1fr; }
    .rn-join-type { flex-direction: row; align-items: center; padding: 20px 56px 20px 20px; text-align: left; }
    .rn-join-type-icon { margin-bottom: 0; margin-right: 16px; flex-shrink: 0; }
}

/* 약관 동의 (회원가입 1단계) */
.rn-agree-section { margin-bottom: 28px; }
.rn-agree-section > strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--rn-color-text);
}
.rn-agree-all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid var(--rn-color-text);
    border-radius: var(--rn-radius-sm);
    background: #fff;
    margin-bottom: 28px;
    cursor: pointer;
}
.rn-agree-all label {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--rn-color-text);
    cursor: pointer;
    flex: 1;
}
.rn-agree-cont {
    border: 1px solid var(--rn-color-border);
    border-radius: var(--rn-radius-sm);
    background: var(--rn-color-bg-muted);
    padding: 16px 20px;
    height: 140px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--rn-color-sub);
    margin-bottom: 12px;
}
.rn-agree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 0;
    cursor: pointer;
}
.rn-agree-row label {
    margin: 0;
    font-size: 14px;
    color: var(--rn-color-sub);
    cursor: pointer;
}
/* 체크박스 디자인 통일 */
.rn-agree-all input[type="checkbox"],
.rn-agree-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--rn-color-primary);
    flex-shrink: 0;
}

/* ---------- Empty state (제품 없을 경우 / 주문 없음 등) ---------- */
.rn-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--rn-color-muted);
}
.rn-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rn-color-muted);
}
.rn-empty-icon svg { width: 100%; height: 100%; }
.rn-empty-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--rn-color-muted);
    margin: 0;
}
.rn-empty-desc {
    font-size: 14px;
    color: var(--rn-color-muted);
    margin: 8px 0 24px;
}
.rn-empty .rn-btn { min-width: 180px; margin-top: 24px; }

/* 점선 테두리 박스 변형 — mockup 02_7_제품 없을 경우 (제품 목록 빈 상태) */
.rn-empty.is-bordered {
    border: 2px dashed var(--rn-color-border);
    border-radius: var(--rn-radius-md);
    padding: 120px 24px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px 0 24px;
}
@media (max-width: 768px) {
    .rn-empty.is-bordered { padding: 80px 16px; min-height: 360px; }
}

/* ---------- 모바일 sticky 하단 액션 바 (장바구니/주문 검토 등) ---------- */
.rn-bottom-bar {
    display: none; /* 기본 숨김. @media 768 에서 노출 */
}
@media (max-width: 768px) {
    .rn-bottom-bar {
        display: flex;
        gap: 8px;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--rn-color-border);
        z-index: 50;
    }
    .rn-bottom-bar .rn-btn { flex: 1; }
}

