/* ============================================================
   Discovery 모듈 — 카탈로그/키워드샵 탐색 출구 (2026-06-12)
   무드: 장인의 진열장 — 한지 · 먹 · 단청 진홍 · 금박 괘선
   - 헤딩: Nanum Myeongjo (로컬, data/fonts/nanum.css 전역 로드)
   - 그리드 내부 삽입형은 grid-column 1/-1 로 전폭 차지
   ============================================================ */
.sok-disc-band,
.sok-disc-exits { grid-column: 1 / -1; min-width: 0; }

/* ---------- 공통 헤더 ---------- */
.sok-disc-band-head { margin-bottom: 16px; }
.sok-disc-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    color: #b82647;
    font-weight: 700;
    margin-bottom: 6px;
}
.sok-disc-title {
    font-family: 'Nanum Myeongjo', 'Nanum Gothic', serif;
    font-size: 21px;
    font-weight: 700;
    color: #22252a;
    line-height: 1.3;
    margin: 0 0 4px;
}
.sok-disc-sub { font-size: 12px; color: #8a8273; margin: 0; }

/* ---------- 후기 베스트 밴드 ---------- */
.sok-disc-band {
    position: relative;
    margin: 14px 0;
    padding: 26px 16px 20px;
    background:
        radial-gradient(900px 320px at 6% -10%, rgba(184, 38, 71, .05), transparent 62%),
        linear-gradient(180deg, #fbf8f2 0%, #f6f1e7 100%);
    border-top: 1px solid #e7ddca;
    border-bottom: 1px solid #e7ddca;
}
/* 금박 모서리 괘선 — 전통 책 귀퉁이 장식 */
.sok-disc-band::before,
.sok-disc-band::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
}
.sok-disc-band::before { top: 8px; left: 8px; border-top: 2px solid #c3a45c; border-left: 2px solid #c3a45c; }
.sok-disc-band::after  { bottom: 8px; right: 8px; border-bottom: 2px solid #c3a45c; border-right: 2px solid #c3a45c; }

/* 트랙: 모바일 가로 스크롤 스냅 (다음 카드 peek) */
.sok-disc-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px;
    scrollbar-width: none;
}
.sok-disc-track::-webkit-scrollbar { display: none; }

.sok-disc-card {
    flex: 0 0 66%;
    max-width: 250px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7ddca;
    border-radius: 10px;
    overflow: hidden;
    color: #22252a;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sok-disc-card:hover,
.sok-disc-card:focus-visible {
    transform: translateY(-4px);
    border-color: #c3a45c;
    box-shadow: 0 10px 24px rgba(34, 37, 42, .13);
    color: #22252a;
}
.sok-disc-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f4efe6;
}
.sok-disc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sok-disc-rank {
    position: absolute;
    top: 0;
    left: 10px;
    background: #b82647;
    color: #fff;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px 8px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 6px rgba(184, 38, 71, .35);
}
/* 구매자 사진 후기 — 금박 링 원형 오버레이 */
.sok-disc-rphoto {
    position: absolute;
    right: 8px;
    bottom: -14px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #c3a45c, 0 3px 10px rgba(34, 37, 42, .22);
    overflow: hidden;
    background: #fff;
}
.sok-disc-rphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sok-disc-body {
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.sok-disc-meta { font-size: 12px; color: #b8923d; font-weight: 700; }
.sok-disc-meta em { font-style: normal; color: #8a8273; font-weight: 400; }
.sok-disc-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sok-disc-price { font-size: 15px; font-weight: 800; color: #22252a; }
.sok-disc-quote {
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px dashed #e0d6c2;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    line-height: 1.55;
    color: #6f675a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 그리드 끝 출구 ---------- */
.sok-disc-exits {
    margin: 36px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sok-disc-shop-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.sok-disc-shop-track::-webkit-scrollbar { display: none; }
.sok-disc-shop {
    position: relative;
    flex: 0 0 46%;
    max-width: 210px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2f415d;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.sok-disc-shop::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 26, .04) 30%, rgba(20, 22, 26, .74) 100%);
}
.sok-disc-shop:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(34, 37, 42, .18);
}
.sok-disc-shop-name {
    position: relative;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.sok-disc-shop:hover .sok-disc-shop-name { text-decoration: underline; text-underline-offset: 3px; }
.sok-disc-shop-cnt { position: relative; font-size: 11px; color: rgba(255, 255, 255, .85); }

.sok-disc-cat-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.sok-disc-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid #ddd2bd;
    border-radius: 999px;
    background: #fff;
    color: #4a4438;
    font-size: 13px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.sok-disc-cat em { font-style: normal; font-size: 11px; color: #b8923d; }
.sok-disc-cat:hover { border-color: #b82647; color: #b82647; background: #fdf6f7; }
.sok-disc-cat:hover em { color: #b82647; }

/* ---------- 판매 베스트 차트 스트립 ---------- */
.sok-disc-chart {
    margin: 8px 0 14px;
    padding: 12px 0 2px;
    border-bottom: 1px solid #f0ece2;
}
.sok-disc-chart-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.sok-disc-chart-label {
    font-family: 'Nanum Myeongjo', 'Nanum Gothic', serif;
    font-size: 16px;
    font-weight: 700;
    color: #22252a;
    padding-left: 10px;
    border-left: 3px solid #b82647;
    line-height: 1.2;
}
.sok-disc-chart-note { font-size: 11px; color: #9a917f; font-style: normal; }
.sok-disc-chart-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    scrollbar-width: none;
}
.sok-disc-chart-list::-webkit-scrollbar { display: none; }
.sok-disc-chart-list li { flex: 0 0 auto; min-width: 0; }
.sok-disc-chart-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 10px;
    border: 1px solid #ece5d6;
    border-radius: 10px;
    background: #fff;
    color: #22252a;
    width: 205px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sok-disc-chart-item:hover {
    border-color: #b82647;
    box-shadow: 0 4px 12px rgba(34, 37, 42, .08);
    color: #22252a;
}
.sok-disc-chart-rank {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 19px;
    font-weight: 700;
    color: #c3a45c;
    width: 16px;
    text-align: center;
    flex: none;
    line-height: 1;
}
.sok-disc-chart-item.is-first .sok-disc-chart-rank { color: #b82647; }
.sok-disc-chart-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    flex: none;
    border: 1px solid #f0ece2;
    background: #f4efe6;
}
.sok-disc-chart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sok-disc-chart-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sok-disc-chart-info strong {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sok-disc-chart-info span { font-size: 12px; color: #8a8273; font-weight: 700; }

/* ---------- 키워드샵 미니 스트립 (그리드 중간, 조용한 한 줄) ---------- */
.sok-disc-shopstrip {
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    margin: 4px 0;
    border-top: 1px dashed #e7ddca;
    border-bottom: 1px dashed #e7ddca;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sok-disc-shopstrip::-webkit-scrollbar { display: none; }
.sok-disc-shopstrip-label { flex: none; font-size: 12px; color: #8a8273; font-weight: 700; }
.sok-disc-shopstrip-row { display: flex; gap: 8px; }
.sok-disc-shopstrip-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 6px;
    border: 1px solid #ece5d6;
    border-radius: 999px;
    background: #fff;
    color: #4a4438;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease;
}
.sok-disc-shopstrip-chip:hover { border-color: #b82647; color: #b82647; }
.sok-disc-shopstrip-thumb { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; }
.sok-disc-shopstrip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sok-disc-shopstrip-cnt { font-style: normal; font-size: 11px; color: #b8923d; }

/* ---------- 홈 베스트100 레일 ---------- */
.sok-home-best { margin: 4px 0 36px; }
.sok-home-best-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.sok-home-best-title { font-size: 19px; font-weight: 800; color: #222; margin: 0; }
.sok-home-best-sub { font-size: 12px; color: #888; }
.sok-home-best-more { margin-left: auto; font-size: 12px; color: #b82647; font-weight: 700; white-space: nowrap; }
.sok-home-best-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.sok-home-best-track::-webkit-scrollbar { display: none; }
.sok-home-best-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
    color: #222;
    min-width: 0;
}
.sok-home-best-card:hover { color: #222; }
.sok-home-best-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
}
.sok-home-best-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sok-home-best-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: #b82647;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 0 0 8px 0;
}
.sok-home-best-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
    min-height: 2.7em;
}
.sok-home-best-price { display: block; font-size: 13px; font-weight: 800; margin-top: 2px; }

/* ---------- 베스트100 선정 근거 한 줄 (금박 괘선 장식) ---------- */
.sok-best-basis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #8a8273;
    margin: 0 0 18px;
    text-align: center;
}
.sok-best-basis > span { text-wrap: balance; word-break: keep-all; }
.sok-best-basis::before,
.sok-best-basis::after {
    content: "";
    flex: none;
    height: 1px;
    width: 34px;
    background: linear-gradient(90deg, transparent, #c3a45c 30%, #c3a45c 70%, transparent);
    display: none;
}
.sok-best-basis em { font-style: normal; color: #b0a892; }

/* ---------- 베스트100 히어로 ---------- */
.sok-best-hero {
    position: relative;
    margin: 10px 0 18px;
    padding: 30px 16px 22px;
    text-align: center;
    background:
        radial-gradient(700px 280px at 50% -20%, rgba(184, 38, 71, .06), transparent 65%),
        linear-gradient(180deg, #fbf8f2 0%, #f6f1e7 100%);
    border-top: 1px solid #e7ddca;
    border-bottom: 1px solid #e7ddca;
}
.sok-best-hero::before,
.sok-best-hero::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
}
.sok-best-hero::before { top: 8px; left: 8px; border-top: 2px solid #c3a45c; border-left: 2px solid #c3a45c; }
.sok-best-hero::after  { bottom: 8px; right: 8px; border-bottom: 2px solid #c3a45c; border-right: 2px solid #c3a45c; }
.sok-best-hero .sok-disc-eyebrow { margin-bottom: 8px; }
.sok-best-hero-title {
    font-family: 'Nanum Myeongjo', 'Nanum Gothic', serif;
    font-size: 34px;
    font-weight: 700;
    color: #22252a;
    line-height: 1.15;
    margin: 0 0 6px;
}
.sok-best-hero-title small {
    font-size: 19px;
    font-weight: 700;
    color: #b82647;
    vertical-align: 2px;
}
.sok-best-hero-sub { font-size: 12px; color: #8a8273; margin: 0 0 16px; }
.sok-best-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.sok-best-tab {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #ddd2bd;
    border-radius: 999px;
    background: #fff;
    color: #4a4438;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
}
.sok-best-tab:hover { border-color: #b82647; color: #b82647; }
.sok-best-tab.is-active {
    background: #b82647;
    border-color: #b82647;
    color: #fff;
    box-shadow: 0 4px 10px rgba(184, 38, 71, .25);
}

/* ---------- TOP3 포디움 ---------- */
.sok-best-podium {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.sok-best-podium::-webkit-scrollbar { display: none; }
.sok-best-podium-card {
    flex: 0 0 76%;
    max-width: 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7ddca;
    border-radius: 12px;
    overflow: hidden;
    color: #22252a;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sok-best-podium-card:hover,
.sok-best-podium-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(34, 37, 42, .14);
    color: #22252a;
}
.sok-best-podium-card.is-gold { border-color: #c3a45c; box-shadow: 0 4px 14px rgba(195, 164, 92, .22); }
.sok-best-podium-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f4efe6;
}
.sok-best-podium-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sok-best-podium-rank {
    position: absolute;
    top: 0;
    left: 12px;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    padding: 10px 10px 12px;
    border-radius: 0 0 8px 8px;
    background: #8a8273;
    box-shadow: 0 2px 8px rgba(34, 37, 42, .25);
}
.sok-best-podium-rank em { font-style: normal; font-size: 12px; margin-left: 1px; }
.is-gold .sok-best-podium-rank { background: #b82647; }
.is-silver .sok-best-podium-rank { background: #6f7682; }
.is-bronze .sok-best-podium-rank { background: #9c7a52; }
.sok-best-podium-body {
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.sok-best-podium-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sok-best-podium-price { font-size: 16px; font-weight: 800; color: #22252a; }

/* ---------- PC ---------- */
@media (min-width: 1024px) {
    .sok-disc-band {
        margin: 18px 0;
        padding: 32px 28px 26px;
        border: 1px solid #e7ddca;
        border-radius: 12px;
    }
    .sok-disc-title { font-size: 25px; }
    .sok-disc-sub { font-size: 13px; }
    .sok-disc-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
        padding: 2px 0 0;
    }
    .sok-disc-card { flex: none; max-width: none; }
    .sok-disc-card:nth-child(n+4) { display: none; } /* PC 는 상위 3개만 — 인터럽트 높이 절제 */
    .sok-disc-name { font-size: 14px; min-height: 2.8em; }
    .sok-disc-shop-track { flex-wrap: wrap; overflow: visible; }
    .sok-disc-shop { flex: 0 0 calc(33.333% - 7px); max-width: none; aspect-ratio: 21 / 9; }
    .sok-disc-chart-list { overflow: visible; }
    .sok-disc-chart-list li { flex: 1 1 0; }
    .sok-disc-chart-item { width: 100%; }
    .sok-best-hero { padding: 40px 28px 30px; border: 1px solid #e7ddca; border-radius: 12px; }
    .sok-best-hero-title { font-size: 44px; }
    .sok-best-hero-title small { font-size: 24px; }
    .sok-best-hero-sub { font-size: 13px; }
    .sok-home-best-track { overflow: visible; }
    .sok-home-best-card { flex: 1 1 0; }
    .sok-home-best-title { font-size: 21px; }
    .sok-best-basis { font-size: 13px; gap: 16px; }
    .sok-best-basis::before, .sok-best-basis::after { width: 72px; display: block; }
    .sok-best-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; }
    .sok-best-podium-card { flex: none; max-width: none; }
    .sok-best-podium-card.is-gold { transform: translateY(-6px); }
    .sok-best-podium-card.is-gold:hover { transform: translateY(-10px); }
}
