/* 콘텐츠몰 상세 새 디자인 (2026-10-02) — view_26.php 전용, .cv26 범위로 한정
 * list_26.css(d)와 같은 색·글자·간격 체계 → 목록에서 들어와도 한 제품처럼
 * 리서치(Creative Market · Envato · Etsy · 미리캔버스 · 크몽 · 클래스101 · 29CM 상세) 반영
 *  - 첫 화면에 '보고 → 확인하고 → 산다'가 다 들어오게 : 미리보기 58% | 구매 정보 42%, 구매 정보는 PC 에서 따라 내려옴(sticky)
 *  - 사는 사람이 망설이는 지점만 정보로 : 포함 파일(형식·개수·용량), 받을 수 있는 기간, 사용 범위(허용 / 불가)
 *  - 모바일 : 위쪽 구매 버튼이 화면에서 사라질 때만 하단 구매 바
 *  - 색 : 글자 #191f28 · #8a919e + 면 #f2f4f6 · 선 #e5e8eb + 강조 1색 #0f766e (무료 · 허용 표시 · 정액)
 */
.cv26 {
	--ink: #191f28;
	--sub: #4e5968;
	--muted: #8a919e;
	--line: #e5e8eb;
	--surface: #f2f4f6;
	--thumb-bg: #f4f5f7;
	--accent: #0f766e;
	--accent-soft: #e7f4f2;
	--warn: #b4532a;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px 100px;
	color: var(--ink);
	font-family: Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
}
.cv26 *, .cv26 *::before, .cv26 *::after { box-sizing: border-box; }
.cv26 a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cv26 h1, .cv26 h2, .cv26 h3, .cv26 p, .cv26 dl, .cv26 dd { margin: 0; }
.cv26 ul { list-style: none; margin: 0; padding: 0; }
.cv26 button { font: inherit; }
.cv26 :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.cv26 .cv-gallery, .cv26 .cv-detail { -webkit-user-select: none; user-select: none; }		/* 기존 화면과 같이 작가 이미지 보호 */

/* 위치 */
.cv26 .cv-crumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 24px 0 16px; font-size: 13px; color: var(--muted); }
.cv26 .cv-crumb a:hover { color: var(--ink); }
.cv26 .cv-crumb span { color: #c9ced4; }

/* ── 첫 화면 ───────────────────────────────────────────── */
.cv26 .cv-top { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 48px; align-items: start; }

.cv26 .cv-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--thumb-bg); display: flex; align-items: center; justify-content: center; }
.cv26 .cv-stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(25,31,40,.06); pointer-events: none; }
.cv26 .cv-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }		/* 미리보기는 자르지 않음 */
.cv26 .cv-stage-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(25,31,40,.72); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.cv26 .cv-stage-count b { font-weight: 700; }
.cv26 .cv-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cv26 .cv-thumbs button { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--thumb-bg); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.cv26 .cv-thumbs button:hover { opacity: 1; }
.cv26 .cv-thumbs button.on { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cv26 .cv-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv26 .cv-panel { position: sticky; top: 24px; }
.cv26 .cv-brand { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--sub); }
.cv26 .cv-brand span { color: var(--muted); font-size: 16px; line-height: 1; }
.cv26 .cv-brand:hover { color: var(--ink); }
.cv26 .cv-title { margin-top: 8px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cv26 .cv-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cv26 .cv-badge { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink); }
.cv26 .cv-badge.is-free { background: var(--accent); border-color: var(--accent); color: #fff; }
.cv26 .cv-badge.is-soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cv26 .cv-price { margin-top: 18px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cv26 .cv-price small { font-size: 18px; font-weight: 500; margin-left: 2px; }
.cv26 .cv-price.is-free { color: var(--accent); }
.cv26 .cv-coupon { margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* 받는 것 */
.cv26 .cv-spec { margin-top: 20px; border-top: 1px solid var(--line); }
.cv26 .cv-spec > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cv26 .cv-spec dt { color: var(--muted); }
.cv26 .cv-spec dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ink); }
.cv26 .cv-spec dd a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cv26 .cv-spec dd a:hover { text-decoration-color: var(--ink); }
.cv26 .cv-spec dd a + a::before { content: '·'; margin-right: 6px; color: #c9ced4; display: inline-block; }
.cv26 .cv-fmt { height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: #eef0f3; color: #5a606b; font-size: 12px; font-weight: 600; }
.cv26 .cv-dim { color: var(--muted); }

/* 구매 */
.cv26 .cv-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.cv26 .cv-btn { height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; }
.cv26 .cv-btn.is-primary { background: var(--ink); color: #fff; }
.cv26 .cv-btn.is-primary:hover { background: #2b3441; }
.cv26 .cv-btn.is-sub { height: 46px; font-size: 15px; border-color: var(--accent); color: var(--accent); }
.cv26 .cv-btn.is-sub:hover { background: var(--accent-soft); }
.cv26 .cv-btn:active { transform: translateY(1px); }
.cv26 .cv-cta-note { text-align: center; font-size: 13px; color: var(--sub); }

/* 사용 범위 : 허용(체크) / 불가(선) 두 가지 표시만 */
.cv26 .cv-license { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.cv26 .cv-license li { position: relative; padding-left: 22px; }
.cv26 .cv-license li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; background-repeat: no-repeat; background-size: 12px; }
.cv26 .cv-license li.ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.8 9 10 3' fill='none' stroke='%230f766e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cv26 .cv-license li.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%238a919e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cv26 .cv-license li.ok { color: var(--ink); }
.cv26 .cv-license a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 2px; }

.cv26 .cv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cv26 .cv-tags a { height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 13px; border: 1px solid var(--line); font-size: 12px; color: var(--sub); transition: border-color .15s, color .15s; }
.cv26 .cv-tags a:hover { border-color: #c9ced4; color: var(--ink); }

/* ── 탭 ───────────────────────────────────────────────── */
.cv26 .cv-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 28px; margin-top: 56px; padding: 0 2px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(6px); backdrop-filter: saturate(1.4) blur(6px); }
.cv26 .cv-tabs a { padding: 16px 0 14px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cv26 .cv-tabs a:hover { color: var(--ink); }
.cv26 .cv-tabs a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.cv26 .cv-tabs b { color: var(--accent); font-weight: 700; margin-left: 2px; }

.cv26 .cv-body { max-width: 860px; margin: 0 auto; }
.cv26 [id] { scroll-margin-top: 64px; }

/* 상세 설명 (작가 HTML 그대로) */
.cv26 .cv-detail { padding: 40px 0 8px; }
.cv26 .cv-detail-in { position: relative; }
.cv26 .cv-detail-in.is-fold { max-height: 1000px; overflow: hidden; }
.cv26 .cv-detail-in.is-fold::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.cv26 .contentContents { font-size: 15px; line-height: 1.8; color: var(--ink); }
.cv26 .contentContents img { max-width: 100%; height: auto !important; margin: 0 auto; }
.cv26 .contentContents em { display: inline-block; }
.cv26 .cv-detail-more { text-align: center; margin-top: 20px; }
.cv26 .cv-detail-more button { height: 46px; padding: 0 32px; border-radius: 23px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cv26 .cv-detail-more button:hover { border-color: var(--ink); }

/* 작가 */
.cv26 .cv-maker { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin-top: 48px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; }
.cv26 .cv-maker-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface); grid-row: span 1; }
.cv26 .cv-maker-img.is-empty { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--sub); }
.cv26 .cv-maker-txt .n { font-size: 16px; font-weight: 700; }
.cv26 .cv-maker-txt .d { margin-top: 2px; font-size: 13px; color: var(--sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv26 .cv-maker-links { display: flex; gap: 8px; }
.cv26 .cv-maker-links a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cv26 .cv-maker-links a:hover { border-color: var(--ink); }
.cv26 .cv-maker-admin { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }

/* 이용안내 */
.cv26 .cv-guide { margin-top: 56px; }
.cv26 .cv-guide h2, .cv26 .cv-more-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cv26 .cv-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.cv26 .cv-guide-grid > div { padding: 20px; border-radius: 12px; background: var(--surface); }
.cv26 .cv-guide h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.cv26 .cv-guide li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.65; color: var(--sub); }
.cv26 .cv-guide li + li { margin-top: 4px; }
.cv26 .cv-guide li::before { content: ''; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: #c9ced4; }

/* 댓글 · 후기 · 문의 (기존 파일의 마크업) */
.cv26 .cv-community { margin-top: 56px; }
.cv26 .cv-community .comment_container + .comment_container { margin-top: 48px; }

/* 같은 작가 · 함께 쓰면 좋은 것 */
.cv26 .cv-more { margin-top: 64px; }
.cv26 .cv-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.cv26 .cv-more-btn { text-align: center; margin-top: 28px; }
.cv26 .cv-more-btn button, .cv26 .cv-more-btn a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 28px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.cv26 .cv-more-btn button:hover, .cv26 .cv-more-btn a:hover { border-color: var(--ink); }
.cv26 .cv-more-btn span { font-weight: 400; font-size: 13px; color: var(--muted); }
.cv26 .cv-more-btn [hidden], .cv26 .cv-cards li[hidden] { display: none; }
.cv26 .cv-more-why { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13px; color: var(--muted); }
.cv26 .cv-more-why span { color: var(--sub); }
.cv26 .cv-cards .k i { font-style: normal; margin: 0 5px; color: #c9ced4; }
.cv26 .cv-cards .k b { font-weight: 600; color: var(--accent); }		/* 겹친 태그 = 추천 이유 */
.cv26 .cv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.cv26 .cv-card-img { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--thumb-bg); position: relative; }
.cv26 .cv-card-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(25,31,40,.06); }
.cv26 .cv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.25, 1, .5, 1); }
.cv26 .cv-cards a:hover img { transform: scale(1.03); }
.cv26 .cv-cards .k { margin-top: 10px; font-size: 12px; color: var(--muted); }
.cv26 .cv-cards .t { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv26 .cv-cards .k + .t { margin-top: 2px; }
.cv26 .cv-cards .p { margin-top: 6px; font-size: 15px; font-weight: 700; }
.cv26 .cv-cards .p.is-free { color: var(--accent); }

.cv26 .cv-plan { margin-top: 48px; }
.cv26 .cv-plan a { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.cv26 .cv-plan a:hover { border-color: var(--ink); }
.cv26 .cv-plan img { width: 96px; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 8px; flex: none; }
.cv26 .cv-plan div { flex: 1; min-width: 0; }
.cv26 .cv-plan .k { font-size: 12px; color: var(--muted); }
.cv26 .cv-plan .t { margin-top: 2px; font-size: 16px; font-weight: 700; }
.cv26 .cv-ext { flex: none; color: var(--muted); }

/* 모바일 하단 구매 바 (PC 에서는 숨김) */
.cv26 .cv-bar { display: none; }

@media (prefers-reduced-motion: reduce) {
	.cv26 * { transition: none !important; }
}

@media (max-width: 1024px) {
	.cv26 .cv-top { gap: 32px; }
	.cv26 .cv-spec > div { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 768px) {
	.cv26 { padding: 0 16px 96px; }
	.cv26 .cv-crumb { padding: 16px 0 12px; }
	.cv26 .cv-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.cv26 .cv-stage { border-radius: 10px; }
	.cv26 .cv-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
	.cv26 .cv-thumbs::-webkit-scrollbar { display: none; }
	.cv26 .cv-thumbs li { flex: 0 0 56px; }
	.cv26 .cv-panel { position: static; }
	.cv26 .cv-price { font-size: 26px; }
	.cv26 .cv-tabs { gap: 20px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
	.cv26 .cv-tabs::-webkit-scrollbar { display: none; }
	.cv26 .cv-tabs a { font-size: 14px; }
	.cv26 .cv-detail { padding-top: 28px; }
	.cv26 .contentContents { font-size: 14px; }
	.cv26 .cv-maker { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; }
	.cv26 .cv-maker-img { width: 48px; height: 48px; }
	.cv26 .cv-maker-links { grid-column: 1 / -1; margin-top: 10px; }
	.cv26 .cv-maker-links a { flex: 1; justify-content: center; }
	.cv26 .cv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }

	.cv26 .cv-bar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
		transform: translateY(110%); transition: transform .25s cubic-bezier(.25, 1, .5, 1);
	}
	.cv26 .cv-bar.is-show { transform: translateY(0); }
	.cv26 .cv-bar-price { flex: none; min-width: 72px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
	.cv26 .cv-bar-price small { font-size: 13px; font-weight: 500; }
	.cv26 .cv-bar-price.is-free { color: var(--accent); }
	.cv26 .cv-bar .cv-btn { flex: 1; height: 48px; font-size: 15px; }
}
