@charset "UTF-8";
/* ============================================================================
   ChannelBase — 전체 사이트 CSS (디자인 시안: 메인 페이지 + FAQ 페이지)
   부트스트랩 미사용. CSS 변수 토큰 + 커스텀 컴포넌트 방식 (BoardmobIP 컨벤션).

   [클래스 계약 — 마크업 작성 시 이 구조대로 사용]
   헤더    : .site-topbar > .container > .brand(.brand-mark/.brand-text) + .topbar-right
   GNB     : .gnb > .container > .gnb-menu > li > a.gnb-link(.active) / .gnb-right > .btn-login
   히어로  : .hero > .hero-bg(img) + .hero-inner(.hero-copy h1 > .accent, .hero-sub, .hero-play)
             + .hero-contact-strip > .contact-card ×3 + .hero-dots > .dot(.active)
   상품    : .best-products(.section) > .section-head + .product-grid > .product-card
             (.product-card-head > .product-name/.product-badge, .product-price > .num/.unit,
              .product-features li, .product-cta)
   안내띠  : .notice-band > .notice-band-title + .notice-band-text / 우측 하단 .floating-kakao
   왜채베  : .why-section > .why-eyebrow, .why-title, .why-desc(.em), .why-grid > .why-item
             (.why-num, .why-item-title, .why-item-desc, .why-chips > .why-chip), .why-cta
   후기    : .reviews(.section) > .section-head + .review-grid > .chat-card(.chat-dark)
             > .chat-bubble(.from-me/.from-them), .chat-caption
   절차    : .process(.section) > .section-head + .process-cols > .process-col-label ×2
             + .timeline > .timeline-item(.left/.right) > .timeline-card(.timeline-dot), .process-note
   푸터    : .site-footer > .footer-top(.footer-brand, .footer-cols > .footer-col) + .footer-bottom
   FAQ     : body.page-light / main > .faq-wrap > .faq-card > .faq-title + .faq-list >
             .faq-item > button.faq-q[aria-expanded] + .faq-a > .faq-a-inner
   공통    : .container(1200px) .section .section-head(.section-eyebrow/.section-title/.section-desc)
             .btn .btn-primary .btn-outline .btn-outline-light .btn-login
   ========================================================================== */

/* ─── 웹폰트: Gmarket Sans(디스플레이/헤드라인) + SUIT(본문) ─── */
@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT/fonts/variable/woff2/SUIT-Variable.css");
@import url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff2.css");
@import url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff2.css");

/* ============================== 디자인 토큰 ============================== */
:root {
    /* 브랜드 컬러 */
    --navy-900: #0F1834;   /* 최심 네이비 — 푸터 하단 바 */
    --navy-800: #14204A;   /* 딥 섹션 배경(왜 채널베이스인가) */
    --navy-700: #1A2B5A;   /* GNB·푸터·로고 네이비 */
    --navy-600: #24376E;   /* 네이비 위 카드/보더 */
    --navy-100: #E8ECF6;   /* 네이비 틴트(연한 라인·배경) */

    --red-600: #C92A35;    /* 레드 hover/강조 진한 톤 */
    --red-500: #E5424D;    /* 시그니처 레드 — 헤드라인 강조·가격·번호 */
    --red-100: #FBEAEC;    /* 레드 틴트 — 상품 카드 헤더 배경 */

    --blue-600: #2448A8;   /* 블루 진한 톤 */
    --blue-500: #2F5FD0;   /* 포인트 블루 — 섹션 타이틀·타임라인 */
    --blue-100: #E9EFFB;   /* 블루 틴트 */

    --kakao-yellow: #FAE100;
    --kakao-brown: #3C1E1E;

    /* 뉴트럴 */
    --bg-page: #FFFFFF;
    --bg-soft: #F4F6FB;    /* 연회색 섹션·FAQ 페이지 배경 */
    --bg-card: #FFFFFF;
    --line: #E3E7F0;
    --line-strong: #C9D0E0;
    --text-strong: #172038;
    --text-body: #3E4658;
    --text-muted: #7C8499;
    --text-invert: #FFFFFF;
    --text-invert-dim: #B9C2DC; /* 네이비 배경 위 보조 텍스트 */

    /* 타이포 */
    --font-body: "SUIT Variable", "SUIT", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --font-display: "GmarketSansBold", "GmarketSansMedium", var(--font-body);
    --font-display-md: "GmarketSansMedium", var(--font-body);

    /* 레이아웃 */
    --container: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 18px rgba(23, 32, 56, 0.08);
    --shadow-float: 0 8px 28px rgba(23, 32, 56, 0.18);

    /* 헤더 높이 (모바일 대응 시 mobile.css 에서 재정의) */
    --topbar-h: 72px;
    --gnb-h: 48px;
}

/* ============================== 베이스 ============================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-page);
    word-break: keep-all; /* 한국어 어절 단위 줄바꿈 */
}

/* FAQ 등 연회색 배경 페이지는 body 에 .page-light 부여 */
body.page-light { background: var(--bg-soft); }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-strong); line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--red-500); color: #fff; }

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================== 공통 유틸 ============================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* 섹션 헤더 — eyebrow(작은 라벨) + 타이틀 + 설명. 기본 중앙 정렬 */
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display-md);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--red-500);
    margin-bottom: 12px;
}
.section-eyebrow.blue { color: var(--blue-500); }
.section-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}
.section-title .accent { color: var(--red-500); }
.section-title.blue { color: var(--blue-500); }
.section-desc {
    margin: 16px auto 0;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ============================== 버튼 ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-display-md);
    font-size: 0.95rem;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red-500); color: #fff; }
.btn-primary:hover { background: var(--red-600); }

.btn-outline { border-color: var(--line-strong); color: var(--text-strong); background: transparent; }
.btn-outline:hover { border-color: var(--red-500); color: var(--red-500); }

.btn-outline-light { border-color: rgba(255,255,255,0.45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; }

/* GNB 우측 로그인 — 작은 고스트 버튼 */
.btn-login {
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-login:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ============================== 헤더: 탑바(흰색) ============================== */
.site-topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-topbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 — 네이비 원형 마크 + 워드마크 (SVG 이미지로 교체 가능) */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { /* 로고 마크 SVG (images/logo-mark.svg, 푸터는 -dark) — 구체+궤도 링+아크 */
    width: 54px; height: 54px;
    display: block;
    flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    letter-spacing: 0.12em;
    color: var(--navy-900);
}
.brand-slogan {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: #7C8AA8;
    text-transform: uppercase;
}

/* ============================== 헤더: GNB(네이비) ============================== */
.gnb {
    background: var(--navy-700);
    height: var(--gnb-h);
    position: sticky;
    top: 0;
    z-index: 100;
}
.gnb .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.gnb-menu {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 4px;
    overflow-x: auto;         /* 항목 많을 때 가로 스크롤 허용 */
    scrollbar-width: none;
}
.gnb-menu::-webkit-scrollbar { display: none; }
.gnb-menu li { height: 100%; flex: none; }
.gnb-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.gnb-link:hover { color: #fff; }
.gnb-link.active { color: #fff; font-weight: 700; }
.gnb-link.active::after { /* 활성 탭 하단 레드 언더라인 */
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 3px;
    background: var(--red-500);
    border-radius: 2px 2px 0 0;
}
.gnb-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ============================== 히어로 ============================== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-900);
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::before { /* 좌→우 네이비 그라데이션 오버레이 — 텍스트 가독성 확보 */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
        rgba(10, 16, 38, 0.88) 0%,
        rgba(10, 16, 38, 0.62) 45%,
        rgba(10, 16, 38, 0.25) 100%);
}
.hero-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-copy h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.28;
    color: #fff;
    letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--red-500); }
.hero-sub {
    margin-top: 20px;
    color: var(--text-invert-dim);
    font-size: 1rem;
    max-width: 480px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; }

/* 우측 유튜브 재생 버튼 */
.hero-play {
    flex: none;
    width: 96px; height: 68px;
    border: 0;
    border-radius: 18px;
    background: var(--red-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(229, 66, 77, 0.5);
    animation: hero-play-pulse 2.4s ease-out infinite;
    transition: transform 0.15s ease;
}
.hero-play:hover { transform: scale(1.06); }
.hero-play::after { /* 재생 삼각형 */
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
@keyframes hero-play-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 66, 77, 0.45); }
    70%  { box-shadow: 0 0 0 22px rgba(229, 66, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 66, 77, 0); }
}

/* 히어로 하단 연락 스트립 — 카드 3개 가로 배치 */
.hero-contact-strip {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0 24px;
}
.contact-card {
    flex: 1;
    max-width: 300px;
    background: rgba(20, 32, 74, 0.92);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 3px solid var(--red-500);
    transition: background 0.18s ease;
}
.contact-card:hover { background: rgba(31, 46, 96, 0.95); }
.contact-card.accent { background: var(--red-500); border-top-color: var(--red-600); }
.contact-card.accent:hover { background: var(--red-600); }
.contact-card-ico {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.contact-card-ico svg { width: 20px; height: 20px; stroke: #fff; }
.contact-card-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.contact-card-value { font-family: var(--font-display-md); font-size: 1.02rem; }

/* 캐러셀 인디케이터 점 */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 108px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dots .dot {
    width: 8px; height: 8px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: width 0.2s ease, background 0.2s ease;
}
.hero-dots .dot.active { width: 22px; border-radius: 4px; background: var(--red-500); }

/* ============================== BEST PRODUCT ============================== */
.best-products { background: #fff; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--red-100);
}
/* 카드 헤더 — 레드 틴트 배경 + 상품명 */
.product-card-head {
    background: var(--red-100);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-name {
    font-family: var(--font-display-md);
    font-size: 1.02rem;
    color: var(--text-strong);
}
.product-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red-500);
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-price {
    font-family: var(--font-display);
    color: var(--red-500);
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 6px;
}
.product-price .unit { font-size: 0.95rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; }
.product-price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }

/* 체크 리스트 — ✓ 마커 */
.product-features { flex: 1; border-top: 1px solid var(--line); padding-top: 18px; }
.product-features li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 0.88rem;
    color: var(--text-body);
}
.product-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--red-100);
}
.product-features li::after {
    content: "";
    position: absolute;
    left: 4px; top: 14px;
    width: 7px; height: 4px;
    border-left: 2px solid var(--red-500);
    border-bottom: 2px solid var(--red-500);
    transform: rotate(-45deg);
}
.product-features li.muted { color: var(--text-muted); }
.product-features li.muted::before { background: var(--bg-soft); }
.product-features li.muted::after { border-color: var(--line-strong); }

.product-cta { margin-top: 22px; }

/* ============================== 구매전 안내 띠 ============================== */
.notice-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
    text-align: center;
}
.notice-band-title {
    font-family: var(--font-display-md);
    font-size: 1.25rem;
    color: var(--text-strong);
}
.notice-band-title .accent { color: var(--red-500); }
.notice-band-text {
    margin: 10px auto 0;
    max-width: 720px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 카카오톡 플로팅 버튼 — 우측 하단 고정 */
.floating-kakao {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 60px; height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    font-family: var(--font-display);
    font-size: 0.78rem;
    box-shadow: var(--shadow-float);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.floating-kakao:hover { transform: scale(1.08); }

/* ============================== 왜 채널베이스인가 (네이비) ============================== */
.why-section {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(47, 95, 208, 0.28), transparent 60%),
        var(--navy-800);
    color: var(--text-invert-dim);
    padding: 100px 0;
}
.why-eyebrow {
    text-align: center;
    font-family: var(--font-display-md);
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    color: var(--red-500);
    margin-bottom: 14px;
}
.why-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #fff;
}
.why-desc {
    text-align: center;
    margin: 18px auto 0;
    max-width: 620px;
    font-size: 0.95rem;
    color: var(--text-invert-dim);
}
.why-desc .em { color: #fff; font-weight: 700; border-bottom: 2px solid var(--red-500); padding-bottom: 1px; }

.why-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
}
.why-item { position: relative; padding-top: 8px; }
.why-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-500);
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.why-num::after { /* 번호 아래 짧은 구분선 */
    content: "";
    display: block;
    width: 26px; height: 2px;
    background: rgba(255,255,255,0.2);
    margin-top: 14px;
}
.why-item-title {
    font-family: var(--font-display-md);
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 12px;
}
.why-item-desc { font-size: 0.85rem; line-height: 1.7; color: var(--text-invert-dim); }

/* 항목 하단 작은 배지/부가 정보 */
.why-chips { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.why-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.why-chip::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red-500);
    flex: none;
}
.why-cta { margin-top: 56px; text-align: center; }

/* ============================== 이용 후기 (채팅 카드) ============================== */
.reviews { background: #fff; }

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
/* 채팅 스크린샷 느낌의 카드 — 밝은/어두운 두 변형 */
.chat-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    background: var(--blue-100);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.chat-card.chat-dark {
    background: var(--navy-800);
    border-color: var(--navy-600);
}
.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    font-size: 0.86rem;
    line-height: 1.6;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 1px 2px rgba(23,32,56,0.08);
}
/* 상대(판매자) 말풍선 — 흰색, 좌측 */
.chat-bubble.from-them {
    align-self: flex-start;
    background: #fff;
    color: var(--text-body);
    border-top-left-radius: 4px;
}
.chat-dark .chat-bubble.from-them { background: var(--navy-600); color: #E7EBF7; }
/* 나(이용자) 말풍선 — 카카오 옐로우, 우측 */
.chat-bubble.from-me {
    align-self: flex-end;
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    border-top-right-radius: 4px;
}
.chat-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.chat-dark .chat-time { color: var(--text-invert-dim); }
.chat-caption {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================== 구매 후 진행 절차 (타임라인) ============================== */
.process { background: var(--bg-soft); }

/* 좌/우 컬럼 라벨 — "고객이 할 일" vs "채널베이스가 진행하는 일" */
.process-cols {
    display: flex;
    justify-content: space-between;
    max-width: 860px;
    margin: 0 auto 8px;
}
.process-col-label {
    font-family: var(--font-display-md);
    font-size: 0.95rem;
    color: var(--text-strong);
    padding: 8px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.process-col-label.mine { color: var(--blue-500); border-color: var(--blue-500); }
.process-col-label.yours { color: var(--red-500); border-color: var(--red-500); }

/* 중앙 세로선 타임라인 — 좌우 교차 배치 */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 24px auto 0;
    padding: 24px 0;
}
.timeline::before { /* 중앙 라인 */
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--line-strong);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 12px 44px 12px 0;
}
.timeline-item.right {
    margin-left: 50%;
    padding: 12px 0 12px 44px;
}
.timeline-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(23,32,56,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.timeline-step {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--blue-500);
    margin-bottom: 6px;
}
.timeline-item.right .timeline-step { color: var(--red-500); }
.timeline-card-title {
    font-family: var(--font-display-md);
    font-size: 1rem;
    color: var(--text-strong);
    margin-bottom: 6px;
}
.timeline-card-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* 중앙 라인 위 점 — 좌측 카드는 파란점, 우측 카드는 빨간점 */
.timeline-item::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--blue-500);
    border: 3px solid var(--bg-soft);
    z-index: 1;
}
.timeline-item.right::after {
    right: auto;
    left: -7px;
    background: var(--red-500);
}
.process-note {
    max-width: 860px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================== 푸터 ============================== */
.site-footer {
    background: var(--navy-700);
    color: var(--text-invert-dim);
    font-size: 0.86rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 0 48px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-slogan { color: var(--text-invert-dim); }
.footer-headline {
    margin-top: 20px;
    font-family: var(--font-display-md);
    font-size: 1.3rem;
    line-height: 1.5;
    color: #fff;
}
.footer-cols { display: flex; gap: 72px; }
.footer-col-title {
    font-family: var(--font-display-md);
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 18px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: var(--text-invert-dim); transition: color 0.15s ease; }
.footer-menu a:hover { color: #fff; }

.footer-sns { display: flex; gap: 10px; margin-top: 4px; }
.footer-sns a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.footer-sns a:hover { background: var(--red-500); }
.footer-sns svg { width: 16px; height: 16px; fill: #fff; }

.footer-bottom {
    background: var(--navy-900);
    padding: 18px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ============================== FAQ 페이지 ============================== */
.faq-wrap { padding: 56px 24px 96px; }
.faq-card {
    max-width: 960px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 64px 40px;
    box-shadow: var(--shadow-card);
}
.faq-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    color: var(--navy-700);
    margin-bottom: 36px;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 2px solid var(--navy-700); }

/* 질문 버튼 — 전체 폭 + 우측 화살표(aria-expanded 로 회전) */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 8px;
    background: none;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-strong);
    transition: color 0.15s ease;
}
.faq-q:hover { color: var(--blue-500); }
.faq-q::before { /* Q. 프리픽스 */
    content: "Q.";
    font-family: var(--font-display);
    color: var(--red-500);
    flex: none;
}
.faq-q .q-text { flex: 1; }
.faq-q .chev {
    flex: none;
    width: 10px; height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);           /* ▼ 접힘 */
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-top: -4px;
}
.faq-q[aria-expanded="true"] { color: var(--navy-700); }
.faq-q[aria-expanded="true"] .chev {
    transform: rotate(-135deg);          /* ▲ 펼침 */
    border-color: var(--red-500);
    margin-top: 4px;
}

/* 답변 — grid-rows 트릭으로 JS 없이도 부드러운 펼침 애니메이션 */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
    overflow: hidden;
    min-height: 0;
}
.faq-a-inner > div { /* 실제 답변 내용 래퍼 */
    padding: 4px 8px 22px 40px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.75;
    position: relative;
}
.faq-a-inner > div::before { /* A. 프리픽스 */
    content: "A.";
    position: absolute;
    left: 8px; top: 4px;
    font-family: var(--font-display);
    color: var(--blue-500);
}

/* ============================== 폼 기본 (로그인/문의 등 공용) ============================== */
.form-field { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-strong);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px var(--blue-100);
}
.form-error { font-size: 0.78rem; color: var(--red-500); margin-top: 6px; }

/* ============================== 내부 페이지 공통 (공지·구매내역·A/S·내정보) ============================== */
/* 라이트 배경 페이지 컨테이너 — FAQ 카드와 같은 톤의 흰 패널을 얹는다 */
.page-wrap { padding: 48px 24px 96px; }
.page-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-card);
}
.page-panel + .page-panel { margin-top: 28px; }
.page-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--navy-700);
    margin-bottom: 8px;
}
.page-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }

/* GNB 우측 언어 토글 */
.lang-toggle {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.lang-toggle:hover { background: rgba(255,255,255,0.12); }

/* 상태 필터 탭 — 구매내역(구매/진행중/A/S중), A/S 내역(전체/접수됨/진행중/완료/거절) */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tab {
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--navy-700); color: var(--navy-700); }
.filter-tab.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.filter-tab .cnt { font-size: 0.75rem; opacity: 0.7; margin-left: 4px; }

/* 데이터 테이블 — 넓은 표는 .table-scroll 로 감싸 가로 스크롤 */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
    background: var(--bg-soft);
    color: var(--text-strong);
    font-weight: 700;
    padding: 12px 14px;
    border-top: 2px solid var(--navy-700);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    text-align: left;
}
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text-body);
    vertical-align: middle;
}
.data-table tr:hover td { background: #FAFBFE; }
.data-table .num { color: var(--text-muted); font-size: 0.8rem; }
.data-table .empty-row td { text-align: center; color: var(--text-muted); padding: 48px 0; }

.data-table.wide { min-width: 1040px; }   /* 컬럼 많은 표 — 컨테이너가 가로 스크롤 */
.data-table td.nowrap, .data-table .num { white-space: nowrap; }

/* 상태 배지 — 구매내역 프로세스 단계 + A/S 상태 공용 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-paid     { background: var(--blue-100); color: var(--blue-600); }   /* 구매완료/접수됨 */
.badge-invite   { background: #FFF4E0; color: #B4770A; }                   /* 초대승인대기 */
.badge-manager  { background: #E9F8F0; color: #1D7A4F; }                   /* 관리자권한부여 */
.badge-owner    { background: #E9F0FF; color: #2448A8; }                   /* 주소유자권한부여 */
.badge-as       { background: var(--red-100); color: var(--red-600); }     /* A/S중/거절 */
.badge-done     { background: var(--navy-100); color: var(--navy-700); }   /* 구매확정/완료 */
.badge-progress { background: #FFF4E0; color: #B4770A; }                   /* 진행중 */

/* 인라인 소형 버튼 (표 안의 A/S 요청 등) */
.btn-sm {
    padding: 7px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--red-500);
    background: #fff;
    color: var(--red-500);
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.btn-sm:hover { background: var(--red-500); color: #fff; }
.btn-sm:disabled { border-color: var(--line-strong); color: var(--text-muted); background: var(--bg-soft); }

/* 모달 — A/S 요청 (옵션 선택 + 메모) */
.cb-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 24, 52, 0.55);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cb-modal-backdrop.open { display: flex; }
.cb-modal {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.cb-modal-head {
    background: var(--navy-700);
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display-md);
    font-size: 1rem;
}
.cb-modal-close { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; }
.cb-modal-body { padding: 24px 22px; }
.cb-modal-foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* 공지사항 리스트 — 제목 클릭 시 내용 펼침 */
.notice-list { border-top: 2px solid var(--navy-700); }
.notice-item { border-bottom: 1px solid var(--line); }
.notice-item-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 8px;
    background: none;
    border: 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-strong);
}
.notice-item-head:hover { color: var(--blue-500); }
.notice-tag {
    flex: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--navy-100);
    color: var(--navy-700);
}
.notice-tag.important { background: var(--red-100); color: var(--red-600); }
.notice-item-title { flex: 1; }
.notice-item-date { flex: none; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.notice-item-body {
    display: none;
    padding: 4px 8px 22px 8px;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.75;
    background: #FAFBFE;
    border-top: 1px dashed var(--line);
}
.notice-item.open .notice-item-body { display: block; }

/* 내정보 — 정보 행 그리드 */
.info-grid { display: grid; grid-template-columns: 160px 1fr; border-top: 2px solid var(--navy-700); }
.info-grid > dt {
    padding: 14px 16px;
    background: var(--bg-soft);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-strong);
    border-bottom: 1px solid var(--line);
}
.info-grid > dd {
    margin: 0;
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 추천인 코드 강조 박스 */
.referral-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--blue-100);
    border: 1px dashed var(--blue-500);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}
.referral-code {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: var(--blue-600);
}

/* 로그인 카드 */
.auth-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
}
.auth-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy-700);
    margin-bottom: 30px;
}

/* 홈 상품 그리드 2단 변형 — 현재 상품 2개 운영 */
.product-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
}

/* ============================== 등장 애니메이션 유틸 ============================== */
/* 마크업에서 .reveal 부여 + JS(IntersectionObserver)로 .in 토글. JS 전이라도 깨지지 않게
   기본 상태는 살짝 아래+투명, 모션 최소화 설정 사용자는 즉시 표시. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================== 전체 폭 패널 + 페이지네이션 + 비고 편집 (구매내역) ============================== */
.page-wrap.fluid { padding: 32px 24px 80px; }
.page-panel.fluid { max-width: none; padding: 36px 40px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-meta { flex: none; font-size: 0.85rem; color: var(--text-muted); padding-top: 10px; }
.panel-meta strong { color: var(--navy-700); }

.data-table .col-memo { min-width: 220px; }
.memo-input {
    width: 100%;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-strong);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.memo-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.memo-input.dirty { border-color: var(--red-500); }

.btn-save { border-color: var(--navy-700); color: var(--navy-700); }
.btn-save:hover { background: var(--navy-700); color: #fff; }
.btn-save.saved { border-color: #1D7A4F; color: #1D7A4F; background: #E9F8F0; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-link {
    min-width: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
}
.page-link:hover { border-color: var(--navy-700); color: var(--navy-700); }
.page-link.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.page-link.disabled { pointer-events: none; opacity: 0.4; }

/* ============================== 인증 (로그인/회원가입) 보조 ============================== */
.auth-card.wide { max-width: 560px; }
.auth-links { text-align: center; margin: 22px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.auth-links a { color: var(--blue-500); font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-label .req { color: var(--red-500); }
.form-label .opt { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.form-hint { margin: 6px 0 0; font-size: 0.76rem; color: var(--text-muted); }
.form-notice {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #E9F8F0;
    color: #1D7A4F;
    font-size: 0.85rem;
    font-weight: 700;
}
.form-checks { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-body); cursor: pointer; }
.form-check input { margin-top: 3px; accent-color: var(--navy-700); }
.form-check a { color: var(--blue-500); text-decoration: underline; }
.gnb-user { color: rgba(255,255,255,0.85); font-size: 0.82rem; margin-right: 4px; white-space: nowrap; }


/* 택1 라디오 그룹 (알림 수신 방법) */
.form-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.15s ease;
}
.form-radio:hover { border-color: var(--navy-700); }
.form-radio:has(input:checked) { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.form-radio input { accent-color: #fff; margin: 0; }


/* 휴대폰 문자 인증 행 (입력 + 버튼) */
.phone-row { display: flex; gap: 8px; }
.phone-row + .phone-row { margin-top: 8px; }
.phone-row .form-input { flex: 1; min-width: 0; }
.phone-row .btn { white-space: nowrap; padding: 0 16px; }
.form-input[readonly] { background: var(--bg-soft); color: var(--text-muted); }
.verify-status.ok { color: #1D7A4F; font-weight: 700; }
.verify-status.err { color: var(--red-500); font-weight: 700; }
.phone-row[hidden] { display: none; }   /* hidden 속성이 display:flex 에 밀리지 않도록 */


/* ============================== 공지 배너 스트립 (전 페이지 상단) ============================== */
#notice-strips { display: flex; flex-direction: column; }
.notice-strip {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 24px; font-size: 0.86rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.notice-strip-tag {
    flex: none; padding: 2px 10px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.notice-strip-text {
    flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left;
    font-family: inherit; font-size: inherit; font-weight: 600; color: inherit; cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-strip-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice-strip-close { flex: none; background: none; border: 0; font-size: 1.15rem; line-height: 1; color: inherit; opacity: 0.6; }
.notice-strip-close:hover { opacity: 1; }
/* 등급별 색 — 장애(빨강) / 경고(주황) / 안내(초록) / 이벤트(파랑) */
.notice-error   { background: #FDECEC; color: #B02A32; }  .notice-error .notice-strip-tag,   .nv-badge-error   { background: #E5424D; color: #fff; }
.notice-caution { background: #FFF4E0; color: #8A5A00; }  .notice-caution .notice-strip-tag, .nv-badge-caution { background: #E08A1E; color: #fff; }
.notice-normal  { background: #E9F8F0; color: #145A3A; }  .notice-normal .notice-strip-tag,  .nv-badge-normal  { background: #1D7A4F; color: #fff; }
.notice-event   { background: #E9EFFB; color: #1F3C8A; }  .notice-event .notice-strip-tag,   .nv-badge-event   { background: #2F5FD0; color: #fff; }
.nv-badge-error, .nv-badge-caution, .nv-badge-normal, .nv-badge-event { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.notice-view-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; line-height: 1.75; color: var(--text-body); max-height: 50vh; overflow: auto; }
.notice-view-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }

/* ============================== 관리자 페이지 보조 ============================== */
.stats-bar {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding: 14px 20px; margin-bottom: 20px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.stat-cell { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.stat-cell .label { font-size: 0.75rem; color: var(--text-muted); }
.stat-cell .value { font-size: 1.05rem; font-weight: 700; color: var(--text-strong); }
.stat-divider { width: 1px; background: var(--line-strong); align-self: stretch; }
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.action-bar .spacer { flex: 1; }
.search-input {
    padding: 9px 14px; min-width: 220px;
    font-family: inherit; font-size: 0.88rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.search-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.data-table .text-left { text-align: left; }
.data-table .price-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .mono { font-family: Consolas, "Courier New", monospace; font-size: 0.78rem; }
.data-table tr.clickable { cursor: pointer; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm.neutral { border-color: var(--line-strong); color: var(--text-body); }
.btn-sm.neutral:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-sm.danger { border-color: var(--red-500); color: var(--red-500); }
.badge-locked { background: var(--red-100); color: var(--red-600); }
.badge-admin { background: var(--navy-100); color: var(--navy-700); }
.notice-title-btn {
    background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere;
}
.notice-title-btn:hover { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.count-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; color: var(--blue-600); background: var(--blue-100);
}
/* 결제 행 드롭다운(수신 전문) */
.log-row > td { padding: 0 !important; background: var(--bg-soft); }
.log-panel { padding: 16px 20px; border-top: 1px solid var(--line); }
.log-title { margin-bottom: 8px; font-size: 0.84rem; font-weight: 700; color: var(--text-strong); }
.log-legend { margin-bottom: 10px; font-size: 0.74rem; color: var(--text-muted); }
.log-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.log-table th, .log-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.log-table th { color: var(--text-muted); font-weight: 600; }
.log-table textarea { width: 100%; height: 56px; resize: vertical; font-family: Consolas, monospace; font-size: 0.72rem; }
.log-empty { padding: 12px; color: var(--text-muted); text-align: center; }
/* 배너 목록 모달 */
.banner-modal-list { display: flex; flex-direction: column; gap: 8px; user-select: none; }
.banner-modal-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.banner-modal-row .title { flex: 1; min-width: 0; font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.banner-modal-row .date { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.banner-modal-row .order-no { flex: none; width: 18px; text-align: center; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; }
.banner-drag-handle {
    flex: none; width: 22px; height: 30px; border: 0; border-radius: 6px; background-color: transparent; cursor: grab; touch-action: none;
    background-image: radial-gradient(circle, var(--text-muted) 1.5px, transparent 1.6px);
    background-size: 7px 7px; background-position: center; background-origin: content-box; padding: 5px 4px;
}
.banner-modal-row.dragging { position: relative; z-index: 2; background: #fff; box-shadow: var(--shadow-float); border-color: var(--blue-500); }
.banner-modal-empty { color: var(--text-muted); font-size: 0.85rem; padding: 14px 4px; }
.banner-add-group { display: flex; gap: 8px; margin-top: 10px; }
.banner-add-group select { flex: 1; min-width: 0; }
.cb-modal.wide { max-width: 640px; }
.log-detail { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); font-size: 0.85rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.cell-ellipsis { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .row-actions { flex-wrap: nowrap; }   /* 관리 버튼은 한 줄로 — 표가 가로 스크롤되므로 세로로 쌓지 않는다 */


/* ============================== 관리자 2차: 큰 모달 · 편집 표 · 설정 폼 ============================== */
.cb-modal.xl { max-width: 1240px; width: calc(100vw - 40px); }
.cb-modal.xl .cb-modal-body { max-height: calc(100vh - 160px); overflow: auto; }
.edit-table .form-input, .edit-table .form-select { padding: 6px 8px; font-size: 0.8rem; min-width: 110px; }
.edit-table .form-input.narrow { min-width: 90px; width: 120px; }
.edit-table .form-input.wide { min-width: 180px; }
.edit-table td { vertical-align: middle; }
.edit-table tr.dirty td { background: #FFFBEB; }
.modal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.modal-toolbar .spacer { flex: 1; }
.form-radios.vertical { flex-direction: column; }
.form-radio.block { border-radius: var(--radius-sm); padding: 12px 14px; align-items: flex-start; }
.form-radio.block .desc { display: block; font-size: 0.76rem; font-weight: 500; opacity: 0.75; margin-top: 2px; }
.setting-section { margin-bottom: 28px; }
.setting-section + .setting-section { border-top: 1px solid var(--line); padding-top: 24px; }
.setting-item {
    border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; background: #fff;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.setting-item .full { grid-column: 1 / -1; }
.setting-item-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.setting-item-head .title { font-weight: 700; color: var(--text-strong); }
.setting-item-head .spacer { flex: 1; }
.product-image-preview { width: 120px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.as-reply { width: 100%; min-width: 220px; font-family: inherit; font-size: 0.82rem; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); resize: vertical; }
.btn-sm.active-status { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.product-desc { font-size: 0.86rem; color: var(--text-body); white-space: pre-line; margin: 0 0 14px; }


/* 홈 배너 미리보기(페이지 설정) */
.hero-preview { width: 320px; height: 150px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(90deg, #0A1026 0%, #101A3D 55%, #1F2E60 100%); flex: none; }
.hero-preview img, .hero-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-preview-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* 배너 클릭 링크 — 배경 위·콘텐츠 아래 */
.hero-bg-link { position: absolute; inset: 0; z-index: 0; }
.hero-inner, .hero-dots, .hero-contact-strip { position: relative; z-index: 1; }
.hero-dots, .hero-contact-strip { position: absolute; }


/* 히어로 배너 슬라이드 (여러 장 로테이션)
   이미지: 같은 파일을 두 겹으로 — .hero-media-backdrop(cover+blur, 빈 공간 채움) 위에 .hero-media(contain, 원본 비율 유지).
   영상: 보통 배너용 16:9로 제작되므로 cover 그대로 사용 */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; overflow: hidden; }
.hero-slide.active { opacity: 1; }
.hero-slide .hero-media { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-slide video.hero-media { object-fit: cover; }
.hero-media-backdrop, .product-card-backdrop {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.85);
    transform: scale(1.12);   /* 블러로 흐려지는 가장자리를 박스 밖으로 밀어냄 */
    pointer-events: none;
}
.hero-dots .dot { cursor: pointer; }
.banner-item .hero-preview { grid-column: 1 / -1; width: 100%; max-width: 480px; height: 180px; }
.hero-preview img { object-fit: contain; }   /* 관리자 미리보기도 실제 노출과 동일하게 비율 유지 */

/* 상품 카드 이미지 — 16:9 박스 안에 원본 비율 유지, 여백은 블러 백드롭 */
.product-card-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.product-card-media .product-card-image { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card-media .product-card-backdrop { filter: blur(18px) brightness(1.02); }

/* 본문 이미지 — A/S 정책·FAQ 텍스트 안의 ![설명](주소) 토큰이 렌더링된 결과 */
.content-img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
/* 페이지 설정: 텍스트영역 머리(라벨 + 이미지 삽입 버튼) */
.ta-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ta-head .form-label { margin: 0; }

/* ── 페이지 설정: 섹션별 카드 + 상단 고정 섹션 탭 ── */
.setting-wrap { max-width: 1100px; margin: 0 auto; }
.setting-wrap .page-panel { max-width: none; }
.setting-intro { padding: 32px 40px 8px; }
.setting-intro .page-desc { margin-bottom: 16px; }
.setting-nav {
    position: sticky; top: 12px; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 16px 0 20px; padding: 8px;
    background: #fff;
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card);
}
.setting-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    font-size: 0.86rem; font-weight: 700; color: var(--text-body); text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.setting-nav a .n {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-100); color: var(--navy-700); font-size: 0.74rem;
}
.setting-nav a:hover { background: var(--bg-soft); }
.setting-nav a.active { background: var(--navy-700); color: #fff; }
.setting-nav a.active .n { background: var(--red-500); color: #fff; }

.setting-section { margin-bottom: 0; padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.setting-section + .setting-section { border-top: 1px solid var(--line); padding-top: 0; margin-top: 20px; }
.setting-head { /* 네이비 헤더 바 — 번호 배지 + 제목 + 설명 */
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px 40px;
    background: linear-gradient(90deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: #fff;
    border-left: 5px solid var(--red-500);
}
.setting-head h2 { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.02em; margin: 0 0 4px; color: #fff; }
.setting-head p { margin: 0; font-size: 0.84rem; line-height: 1.6; color: rgba(255,255,255,0.78); }
.setting-head p strong { color: #fff; }
.setting-num {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--red-500); color: #fff; font-family: var(--font-display); font-size: 0.95rem;
    margin-top: 1px;
}
.setting-body { padding: 26px 40px 32px; background: #fff; }
.setting-body .setting-item { background: var(--bg-soft); }   /* 카드 안 항목은 연회색으로 한 단계 안쪽임을 표시 */
.setting-body .setting-item .form-input, .setting-body .setting-item .form-textarea { background: #fff; }
