/* 콘텐츠몰 목록 새 디자인 (2026-10-02 d) — list_26.php 전용, .cl26 범위로 한정
 * 리서치(29CM·무신사·오늘의집·클래스101·크몽·아이디어스·미리캔버스·Creative Market·Envato·Etsy) 공통 규칙 반영
 *  - 정보는 그대로 두고 '정리' : 썸네일 위 배지 1개, 파일 형식은 작가 줄의 작은 회색 배지, 칩은 같은 연회색 한 종류
 *  - 글자 3단계 : 작가·분류 12px / 제목 15px 600 2줄 / 가격 16px 700
 *  - 색 : 글자 2색(#191f28 · #8a919e) + 면/선 + 강조 1색(#0f766e : 무료 · 선택된 필터 · 정액)
 *  - 간격 리듬 : 썸네일→글 12px, 글 줄 사이 4~6px, 카드 사이 가로 24 / 세로 36px
 */
.cl26 {
	--ink: #191f28;
	--sub: #4e5968;
	--muted: #8a919e;
	--line: #e5e8eb;
	--surface: #f2f4f6;
	--thumb-bg: #f4f5f7;
	--accent: #0f766e;
	--accent-soft: #e7f4f2;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px 80px;
	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;
}
.cl26 *, .cl26 *::before, .cl26 *::after { box-sizing: border-box; }
.cl26 a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cl26 h1, .cl26 h3, .cl26 p { margin: 0; }
.cl26 ul { list-style: none; margin: 0; padding: 0; }
.cl26 :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.cl26 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 상단 : 제목 · 내 메뉴 · 검색 · 바로가기 */
.cl26 .cl-head { padding: 36px 0 24px; }
.cl26 .cl-head-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cl26 .cl-eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cl26 h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.cl26 .cl-my { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.cl26 .cl-my a:hover { color: var(--ink); }
.cl26 .cl-my b { color: var(--accent); font-weight: 700; }

.cl26 .cl-search { display: flex; margin-top: 20px; max-width: 640px; height: 50px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.cl26 .cl-search input { flex: 1; min-width: 0; border: 0; padding: 0 22px; font-size: 15px; outline: none; background: transparent; color: var(--ink); }
.cl26 .cl-search input::placeholder { color: var(--muted); }
.cl26 .cl-search button { border: 0; background: var(--ink); color: #fff; padding: 0 24px; font-size: 14px; font-weight: 600; cursor: pointer; }

.cl26 .cl-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.cl26 .cl-quick + .cl-quick { margin-top: 8px; }
.cl26 .cl-quick strong { color: var(--muted); font-weight: 500; margin-right: 6px; }
.cl26 .cl-quick a { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 14px; background: var(--surface); color: var(--sub); transition: background .15s, color .15s; }
.cl26 .cl-quick a:hover { background: #e8ebee; color: var(--ink); }
.cl26 .cl-season-m { display: none; }		/* 절기·기획전 고르는 칸 : 모바일에서만 */
.cl26 .cl-notice { margin-top: 14px; font-size: 13px; color: var(--sub); background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.cl26 .cl-empty-tip { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* 첫 화면 배너 (관리자 콘텐츠 메인 슬라이드)
 *  - 배경색은 관리자 지정 → 글자색은 배경 밝기로 자동(is-dark 흰 글자 / is-light 진한 글자, PHP cl_banner_tone)
 *  - 이미지는 크기가 제각각(460×280, 461×308 …) → 높이를 맞추고 비율 그대로 '전부' 보이게(contain), 잘리지 않음 */
.cl26 .cl-banner { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.cl26 .cl-banner::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(25,31,40,.07); pointer-events: none; z-index: 3; }		/* 흰 배경 배너도 페이지와 구분되는 얇은 테두리 */
.cl26 .cl-banner .swiper-slide { display: flex; align-items: stretch; height: 280px; }
.cl26 .cl-banner-img { flex: none; height: 100%; max-width: 52%; display: flex; align-items: center; }
.cl26 .cl-banner-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.cl26 .cl-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 56px 0 48px; }
.cl26 .cl-banner-text span { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; }
.cl26 .cl-banner-text .t { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; margin: 12px 0 8px; letter-spacing: -0.03em; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.cl26 .cl-banner-text .s { font-size: 15px; line-height: 1.55; word-break: keep-all; }
.cl26 .cl-banner .is-dark { color: #fff; }
.cl26 .cl-banner .is-dark .cl-banner-text span { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.cl26 .cl-banner .is-dark .cl-banner-text .s { color: rgba(255,255,255,.82); }
.cl26 .cl-banner .is-light { color: var(--ink); }
.cl26 .cl-banner .is-light .cl-banner-text span { background: rgba(25,31,40,.86); color: #fff; }
.cl26 .cl-banner .is-light .cl-banner-text .s { color: rgba(25,31,40,.72); }
.cl26 .cl-banner-dots { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 2; line-height: 0; }
.cl26 .cl-banner-dots .swiper-pagination-bullet { width: 7px; height: 7px; margin: 0 4px; opacity: 1; background: rgba(25,31,40,.22); transition: width .2s, background .2s; }
.cl26 .cl-banner-dots .swiper-pagination-bullet-active { width: 18px; border-radius: 4px; background: rgba(25,31,40,.8); }
.cl26 .cl-banner[data-tone="dark"] .cl-banner-dots .swiper-pagination-bullet { background: rgba(255,255,255,.35); }
.cl26 .cl-banner[data-tone="dark"] .cl-banner-dots .swiper-pagination-bullet-active { background: #fff; }

/* 분류 칩 : 높이 34 · 선택 = 진한 차콜 채움, 미선택 = 흰 바탕 + 연한 테두리 */
.cl26 .cl-cates { padding: 4px 0 0; }
.cl26 .cl-scroll { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cl26 .cl-scroll::-webkit-scrollbar { display: none; }
.cl26 .cl-scroll a { flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 17px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--sub); white-space: nowrap; transition: border-color .15s, color .15s; }
.cl26 .cl-scroll a:hover { border-color: #c9ced4; color: var(--ink); }
.cl26 .cl-scroll a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cl26 .cl-subs { margin-top: 10px; gap: 4px; }
.cl26 .cl-subs a { height: 30px; padding: 0 12px; border: 0; background: none; font-size: 13px; border-radius: 15px; }
.cl26 .cl-subs a:hover { background: var(--surface); }
.cl26 .cl-subs a.on { background: var(--surface); color: var(--ink); font-weight: 600; }

/* 필터 · 정렬 */
.cl26 .cl-toolbar { margin-top: 16px; padding: 16px 0 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.cl26 .cl-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl26 .cl-select select {
	height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff;
	font-size: 13px; font-weight: 500; color: var(--sub); cursor: pointer; max-width: 200px;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a919e' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
	transition: border-color .15s;
}
.cl26 .cl-select select:hover { border-color: #c9ced4; }
/* 새 창으로 여는 선택 상자 : 화살표 왼쪽에 새 창 아이콘 1개 (옵션마다 붙이지 않음) */
.cl26 .cl-select.is-ext select {
	padding-right: 50px;
	width: 140px;		/* 닫힌 상태는 '절기·기획전' 만 보이므로 긴 기획전 이름 폭으로 늘어나지 않게 */
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M7 1.5h3.5V5M10.5 1.5 5.5 6.5M9 7.5v2a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2' fill='none' stroke='%238a919e' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a919e' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat, no-repeat;
	background-position: right 30px center, right 12px center;
}
/* 바로가기 줄 이름 옆 새 창 아이콘 */
.cl26 .cl-ext { display: inline-block; vertical-align: -1px; margin-left: 3px; color: var(--muted); }
.cl26 .cl-select.is-on select { border-color: var(--accent); background-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cl26 .cl-seg { display: inline-flex; height: 36px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cl26 .cl-seg a { padding: 0 14px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--sub); }
.cl26 .cl-seg a + a { border-left: 1px solid var(--line); }
.cl26 .cl-seg a:hover { color: var(--ink); }
.cl26 .cl-seg a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cl26 .cl-sortbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cl26 .cl-count { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.cl26 .cl-count b { color: var(--ink); font-weight: 700; }
.cl26 .cl-sort { display: flex; gap: 14px; font-size: 13px; }
.cl26 .cl-sort a { color: var(--muted); font-weight: 500; }
.cl26 .cl-sort a:hover { color: var(--ink); }
.cl26 .cl-sort a.on { color: var(--ink); font-weight: 700; }

/* 카드 그리드 : PC 4열 · 태블릿 3열 · 모바일 2열 */
.cl26 .cl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.cl26 .cl-card a { display: block; }
.cl26 .cl-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--thumb-bg); }
.cl26 .cl-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(25, 31, 40, .06); pointer-events: none; }		/* 흰 바탕 썸네일도 페이지와 구분 */
.cl26 .cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.25, 1, .5, 1); }
.cl26 .cl-card a:hover .cl-thumb img { transform: scale(1.03); }
.cl26 .cl-badge { position: absolute; top: 10px; left: 10px; z-index: 1; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(25, 31, 40, .12); }
.cl26 .cl-badge.is-free { background: var(--accent); color: #fff; box-shadow: none; }

.cl26 .cl-body { padding-top: 12px; }
.cl26 .cl-by { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); min-height: 18px; }
.cl26 .cl-by-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl26 .cl-by i { font-style: normal; margin: 0 4px; color: #c9ced4; }
.cl26 .cl-fmt { flex: none; height: 18px; display: inline-flex; align-items: center; padding: 0 5px; border-radius: 3px; background: #eef0f3; color: #5a606b; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.cl26 .cl-title {
	margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;		/* 2줄 고정 → 같은 줄 카드의 아래 정보가 나란히 */
}
.cl26 .cl-card a:hover .cl-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cl26 .cl-chips { display: flex; gap: 4px; margin-top: 8px; height: 22px; overflow: hidden; flex-wrap: wrap; }
.cl26 .cl-chip { height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: var(--surface); color: var(--sub); font-size: 11px; font-weight: 500; white-space: nowrap; }
.cl26 .cl-chip.is-accent { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cl26 .cl-chip.is-more { background: none; color: var(--muted); padding: 0 2px; }
.cl26 .cl-price { margin-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cl26 .cl-price small { font-size: 13px; font-weight: 500; margin-left: 1px; }
.cl26 .cl-price.is-free { color: var(--accent); }

/* 더보기 · 빈 결과 */
.cl26 .cl-more { text-align: center; margin-top: 56px; }
.cl26 .cl-more a { display: inline-flex; gap: 8px; align-items: center; height: 48px; padding: 0 36px; border: 1px solid var(--line); border-radius: 24px; font-size: 14px; font-weight: 600; transition: border-color .15s; }
.cl26 .cl-more a:hover { border-color: var(--ink); }
.cl26 .cl-more a[aria-busy="true"] { opacity: .5; pointer-events: none; }
.cl26 .cl-more span { font-weight: 400; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl26 .cl-empty { text-align: center; padding: 80px 0; color: var(--sub); font-size: 15px; }
.cl26 .cl-empty a { display: inline-block; margin-top: 16px; height: 40px; line-height: 40px; padding: 0 24px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }

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

@media (max-width: 1100px) {
	.cl26 .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
}

@media (max-width: 768px) {
	.cl26 { padding: 0 16px 60px; }
	.cl26 .cl-head { padding: 24px 0 16px; }
	.cl26 .cl-my { margin-left: auto; justify-content: flex-end; }		/* 제목과 같은 줄 오른쪽 끝 (정액제 안내로 길어져 다음 줄로 내려가도 오른쪽 정렬) */
	.cl26 .cl-search { height: 46px; }
	/* 절기·기획전 : 버튼 여러 줄 → 고르는 칸 한 줄 */
	.cl26 .cl-quick-season { flex-wrap: nowrap; }
	.cl26 .cl-quick-season strong { flex: none; }
	.cl26 .cl-quick-season .cl-ext { display: none; }		/* 모바일은 같은 창에서 이동 */
	.cl26 .cl-quick-season a { display: none; }
	.cl26 .cl-quick-season .cl-season-m { display: block; flex: 1 1 auto; min-width: 0; }
	.cl26 .cl-quick-season .cl-season-m select { width: 100%; max-width: none; }
	/* 모바일 : 이미지 위 · 글 아래, 이미지는 가로 꽉 차게 비율 그대로 */
	.cl26 .cl-banner .swiper-slide { flex-direction: column; height: auto; }
	.cl26 .cl-banner-img { max-width: none; height: auto; width: 100%; justify-content: center; }
	.cl26 .cl-banner-img img { width: 100%; height: auto; max-height: 240px; object-position: center; }
	.cl26 .cl-banner-text { padding: 18px 20px 38px; }
	.cl26 .cl-banner-text .t { margin: 10px 0 6px; }
	.cl26 .cl-banner-text .s { font-size: 14px; }
	/* 가로 스크롤 줄 : 오른쪽 끝을 흐리게 해 더 있음을 알림 */
	.cl26 .cl-cates .cl-scroll, .cl26 .cl-filters { margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
	.cl26 .cl-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.cl26 .cl-filters::-webkit-scrollbar { display: none; }
	.cl26 .cl-select { flex: none; }
	.cl26 .cl-select select { max-width: 150px; }
	.cl26 .cl-seg { flex: none; }
	.cl26 .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
	.cl26 .cl-badge { top: 8px; left: 8px; }
	.cl26 .cl-body { padding-top: 10px; }
	.cl26 .cl-fmt + .cl-fmt { display: none; }		/* 좁은 화면은 형식 배지 1개 */
	.cl26 .cl-title { font-size: 14px; }
	.cl26 .cl-price { font-size: 15px; }
}
