/* 준비물 체크리스트 (/checklist/{slug}, /checklists) */
.cl-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: #fff; padding: 48px 24px 36px; }
.cl-hero-inner { max-width: 960px; margin: 0 auto; }
.cl-back { display: inline-block; color: #94a3b8; text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; }
.cl-back:hover { color: #fff; }
.cl-title { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; word-break: keep-all; }
.cl-intro { margin: 14px 0 0; color: #cbd5e1; font-size: 1rem; line-height: 1.6; max-width: 760px; }
.cl-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cl-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 10px 16px; font-size: 0.85rem; }
.cl-stat strong { display: block; font-size: 1.15rem; color: #fff; }
.cl-preview-badge { display: inline-block; background: #f59e0b; color: #111827; font-weight: 800; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

.cl-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* 진행률 (sticky) */
.cl-progress { position: sticky; top: 0; z-index: 20; background: rgba(248,250,252,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid #e2e8f0; padding: 12px 0; margin-bottom: 24px; }
.cl-progress-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.cl-progress-bar { flex: 1; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.cl-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 999px; transition: width 0.3s; }
.cl-progress-text { font-weight: 800; color: #0f172a; font-size: 0.9rem; white-space: nowrap; }
.cl-progress-actions { display: flex; gap: 6px; }
.cl-mini-btn { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; color: #334155; cursor: pointer; }
.cl-mini-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }

/* 섹션 */
.cl-section { background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.cl-section-title { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.cl-section-count { font-size: 0.8rem; color: #64748b; font-weight: 600; }

/* 항목 */
.cl-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px dashed #e2e8f0; }
.cl-item:first-of-type { border-top: none; padding-top: 0; }
.cl-item.checked .cl-item-name { text-decoration: line-through; color: #94a3b8; }
.cl-item.checked .cl-products { opacity: 0.55; }
.cl-item.optional.hide-optional { display: none; }
.cl-item.checked.hide-checked { display: none; }
.cl-check { width: 24px; height: 24px; margin-top: 2px; accent-color: #2563eb; cursor: pointer; }
.cl-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-item-name { font-size: 1.02rem; font-weight: 700; color: #0f172a; cursor: pointer; }
.cl-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.cl-badge.essential { background: #fee2e2; color: #b91c1c; }
.cl-badge.optional { background: #f1f5f9; color: #64748b; }
.cl-badge.qty { background: #eff6ff; color: #1d4ed8; }
.cl-item-reason { margin: 4px 0 0; font-size: 0.88rem; color: #64748b; line-height: 1.5; }

.cl-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.cl-product { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.cl-product:hover { border-color: #2563eb; transform: translateY(-2px); }
.cl-product img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #f1f5f9; flex-shrink: 0; }
.cl-product-info { min-width: 0; flex: 1; }
.cl-product-tier { font-size: 0.7rem; font-weight: 800; color: #7c3aed; }
.cl-product-name { font-size: 0.82rem; color: #334155; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-product-price { font-size: 0.95rem; font-weight: 800; color: #e11d48; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.cl-product-price .rocket { font-size: 0.65rem; background: #111827; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: 700; }
/* 카드 전체가 링크라는 걸 드러내는 CTA (카드 오른쪽 끝) */
.cl-product-cta { flex-shrink: 0; align-self: center; font-size: 0.72rem; font-weight: 800; line-height: 1.25; text-align: center; color: #fff; background: #2563eb; border-radius: 8px; padding: 7px 9px; white-space: nowrap; transition: background 0.2s; }
.cl-product:hover .cl-product-cta { background: #1d4ed8; }
.cl-pending { font-size: 0.8rem; color: #94a3b8; margin-top: 8px; }

/* 예상 비용 */
.cl-estimate { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #c7d2fe; border-radius: 20px; padding: 22px 24px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.cl-estimate-label { font-size: 0.85rem; color: #475569; font-weight: 600; }
.cl-estimate-value { font-size: 1.4rem; font-weight: 800; color: #1e3a8a; }
.cl-estimate-note { flex-basis: 100%; font-size: 0.78rem; color: #64748b; }

/* FAQ / 관련 */
.cl-faq { background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.cl-faq h2 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.cl-faq details { border-top: 1px dashed #e2e8f0; padding: 12px 0; }
.cl-faq summary { font-weight: 700; color: #1e293b; cursor: pointer; }
.cl-faq p { margin: 8px 0 0; color: #475569; line-height: 1.6; font-size: 0.92rem; }
.cl-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 30px; }
.cl-related a { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; text-decoration: none; color: #0f172a; font-weight: 700; font-size: 0.92rem; }
.cl-related a:hover { border-color: #2563eb; }
.cl-related small { display: block; color: #64748b; font-weight: 500; margin-top: 4px; }

.cl-notice { margin: 20px 0 40px; text-align: center; font-size: 0.78rem; color: #94a3b8; line-height: 1.6; }

/* 목록 페이지 */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cl-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 18px; padding: 22px; text-decoration: none; color: inherit; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; gap: 8px; }
.cl-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.cl-card h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f172a; word-break: keep-all; }
.cl-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cl-card-meta { margin-top: auto; font-size: 0.78rem; color: #94a3b8; font-weight: 600; }

@media (max-width: 640px) {
    .cl-title { font-size: 1.5rem; }
    .cl-section { padding: 18px; }
    .cl-products { grid-template-columns: 1fr; }
    .cl-progress-actions { display: none; }
    /* 좁은 화면: CTA 를 카드 아래 전체 폭 띠로 내려 상품명·가격 영역을 확보 */
    .cl-product { flex-wrap: wrap; }
    .cl-product-cta { flex-basis: 100%; padding: 6px; }
    .cl-product-cta br { display: none; }
}
@media print {
    .cl-progress, .cl-products, .cl-related, .cl-faq, .footer, .top-btn, .cl-back { display: none !important; }
    .cl-hero { background: none; color: #000; padding: 0; }
}

/* 공유 위젯 (post.jsp 인라인 스타일과 동일) */
.share-widget-container { margin: 30px 0; padding: 35px 20px; background-color: #f8fafc; border-radius: 12px; text-align: center; border: 1px solid #e2e8f0; }
.share-widget-container h4 { margin: 0 0 24px; font-size: 1.15rem; color: #1e293b; font-weight: 700; }
.share-btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; justify-content: center; padding: 14px 28px; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s ease-in-out; width: 220px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.share-btn.kakao { background-color: #FEE500; color: #000; }
.share-btn.kakao img { width: 24px; height: 24px; margin-right: 10px; }
.share-btn.link-copy { background-color: #3b82f6; color: #fff; }

/* 메인 페이지 체크리스트 섹션 */
.cl-home { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: #fff; border-radius: 20px; padding: 26px 28px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(15,23,42,0.15); }
.cl-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cl-home-title { margin: 0; font-size: 1.35rem; font-weight: 800; }
.cl-home-desc { margin: 6px 0 0; color: #cbd5e1; font-size: 0.9rem; }
.cl-home-more { color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.cl-home-more:hover { background: #e11d48; border-color: #e11d48; }
.cl-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cl-home-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px; text-decoration: none; color: #fff; transition: background 0.2s, transform 0.2s; }
.cl-home-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.cl-home-card-title { font-weight: 700; font-size: 0.98rem; line-height: 1.4; word-break: keep-all; }
.cl-home-card-meta { color: #94a3b8; font-size: 0.78rem; margin-top: 6px; }

/* 글 상세 하단 체크리스트 내부링크 */
.cl-inpost { margin: 40px 0 20px; padding: 22px 24px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; }
.cl-inpost h3 { margin: 0 0 12px; font-size: 1.05rem; color: #0f172a; }
.cl-inpost a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed #e2e8f0; text-decoration: none; color: #1e293b; font-weight: 700; font-size: 0.95rem; }
.cl-inpost a:first-of-type { border-top: none; padding-top: 0; }
.cl-inpost a span { color: #64748b; font-weight: 500; font-size: 0.8rem; white-space: nowrap; }
.cl-inpost a:hover { color: #2563eb; }
