/* ============================================================
   sellerfind_korea v2.0 — 리스트형 스킨 (한국재고·인기셀러 구매대행·제휴)
   프로토타입 디자인: 썸네일 리스트 + 스펙 테이블 + 추천·찜 + 아바타 댓글
============================================================ */
.sfk-wrap, .sfk-view, .sfk-lb {
	--sfk-accent: #2f4ed8;
	--sfk-accent-d: #2540c4;
	--sfk-ink: #16233b;
	--sfk-sub: #5a6172;
	--sfk-muted: #9298a8;
	--sfk-line: #e7e9ef;
	--sfk-soft: #f3f4f6;
	--sfk-hot: #ff5a5f;
}
.sfk-wrap, .sfk-view {
	max-width: 1080px; margin: 0 auto; padding: 6px 0 40px;
	font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	color: var(--sfk-ink); font-size: 15px; line-height: 1.6; letter-spacing: -.2px; word-break: keep-all;
}
.sfk-wrap *, .sfk-view *, .sfk-lb * { box-sizing: border-box; }

/* ---------- 공통 버튼 ---------- */
.sfk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 16px;
	border: 1px solid var(--sfk-line); border-radius: 9px; background: #fff; color: var(--sfk-ink);
	font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: .14s; font-family: inherit; }
.sfk-btn:hover { background: var(--sfk-soft); text-decoration: none; color: var(--sfk-ink); }
.sfk-btn-primary { background: var(--sfk-accent); border-color: var(--sfk-accent); color: #fff; }
.sfk-btn-primary:hover { background: var(--sfk-accent-d); border-color: var(--sfk-accent-d); color: #fff; }
.sfk-btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.sfk-btn.edit { background: #f1f3f7; color: var(--sfk-sub); }
.sfk-btn.del { background: #ffecec; border-color: #ffd3d3; color: #d6373c; }
.sfk-btn-danger { background: #e03131; border-color: #e03131; color: #fff; }

/* ---------- 아바타 팔레트 ---------- */
.sfk-ava { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex;
	align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.sfk-ava img { width: 100%; height: 100%; object-fit: cover; }
.sfk-ava em { font-style: normal; }
.sfk-ava.sm { width: 34px; height: 34px; font-size: 14px; }
.sfk-pal0 { background: linear-gradient(135deg,#7b5cf0,#a78bfa); }
.sfk-pal1 { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.sfk-pal2 { background: linear-gradient(135deg,#ef5350,#f97316); }
.sfk-pal3 { background: linear-gradient(135deg,#10b981,#34d399); }
.sfk-pal4 { background: linear-gradient(135deg,#d63384,#f472b6); }
.sfk-pal5 { background: linear-gradient(135deg,#0ea5e9,#38bdf8); }
.sfk-pal6 { background: linear-gradient(135deg,#475569,#64748b); }
.sfk-pal7 { background: linear-gradient(135deg,#14b8a6,#2dd4bf); }

/* ---------- 목록: 게시판 헤더 ---------- */
.sfk-bhead { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border: 1px solid var(--sfk-line); border-radius: 14px; background: #fff; padding: 15px 18px; margin-bottom: 14px; }
.sfk-bname { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.sfk-bname i { width: 9px; height: 9px; border-radius: 50%; background: var(--sfk-accent); }
.sfk-bname small { font-weight: 400; font-size: 13px; color: var(--sfk-muted); margin-left: 2px; }

/* ---------- 분류/공지 ---------- */
.sfk-cats { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.sfk-cats li a { display: block; padding: 7px 14px; border: 1px solid var(--sfk-line); border-radius: 999px;
	font-size: 13.5px; color: var(--sfk-sub); text-decoration: none; background: #fff; font-weight: 600; }
.sfk-cats li.on a, .sfk-cats li a:hover { background: var(--sfk-accent); border-color: var(--sfk-accent); color: #fff; }
.sfk-notice { margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid var(--sfk-line); border-radius: 12px; overflow: hidden; }
.sfk-notice li a { display: block; padding: 10px 14px; font-size: 14px; color: var(--sfk-ink); text-decoration: none; }
.sfk-notice li + li a { border-top: 1px solid var(--sfk-line); }
.sfk-notice em { font-style: normal; color: var(--sfk-accent); font-weight: 800; margin-right: 6px; }

/* ---------- 목록: 행 ---------- */
.sfk-rows { border: 1px solid var(--sfk-line); border-radius: 14px; background: #fff; overflow: hidden; }
.sfk-row { display: flex; gap: 15px; padding: 15px 17px; text-decoration: none; color: inherit; align-items: center; transition: .12s; }
.sfk-row + .sfk-row { border-top: 1px solid var(--sfk-line); }
.sfk-row:hover { background: #fafbfe; text-decoration: none; color: inherit; }
.sfk-row-thumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: none; background: var(--sfk-soft); position: relative; }
.sfk-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfk-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sfk-ph em { font-style: normal; color: rgba(255,255,255,.95); font-weight: 800; font-size: 14px; letter-spacing: 0; }
.sfk-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sfk-row-tit { font-size: 15.5px; font-weight: 700; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sfk-nbdg { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px;
	background: var(--sfk-hot); color: #fff; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 800; vertical-align: 2px; }
.sfk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sfk-chips i { font-style: normal; font-size: 12px; color: var(--sfk-sub); background: var(--sfk-soft); border-radius: 6px; padding: 2.5px 9px; font-weight: 600; }
.sfk-chips i.c { background: #eef2ff; color: var(--sfk-accent); }
.sfk-row-meta { font-size: 12.5px; color: var(--sfk-muted); }
.sfk-row-meta em { font-style: normal; }
.sfk-row-right { flex: none; text-align: right; display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.sfk-row-right .p { font-style: normal; color: var(--sfk-accent); font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.sfk-row-right .q { font-style: normal; color: var(--sfk-muted); font-size: 12.5px; }
.sfk-empty { padding: 60px 0; text-align: center; color: var(--sfk-muted); }

/* ---------- 목록 하단 ---------- */
.sfk-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; align-items: center; }
.sfk-paging { display: flex; gap: 4px; }
.sfk-paging a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px; color: var(--sfk-sub); text-decoration: none; font-size: 14px; }
.sfk-paging a:hover { background: var(--sfk-soft); }
.sfk-paging a.on { background: var(--sfk-accent); color: #fff; font-weight: 800; }
.sfk-search { display: flex; gap: 6px; margin: 0; }
.sfk-search select, .sfk-search input[type=text] { height: 37px; border: 1px solid var(--sfk-line); border-radius: 8px;
	padding: 0 10px; font-size: 13.5px; background: #fff; font-family: inherit; }
.sfk-search input[type=text] { width: 220px; }
.sfk-search input:focus, .sfk-search select:focus { outline: 2px solid var(--sfk-accent); outline-offset: -1px; }

/* ============================================================
   글보기
============================================================ */
.sfk-crumb { font-size: 12.5px; color: var(--sfk-muted); margin: 4px 0 12px; }
.sfk-crumb a { color: var(--sfk-muted); text-decoration: none; }
.sfk-vtit { margin: 0 0 14px; font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -.5px; }
.sfk-auth { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--sfk-line); flex-wrap: wrap; }
.sfk-auth b { font-size: 14.5px; }
.sfk-auth .d { font-size: 13px; color: var(--sfk-muted); }
.sfk-auth-r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.sfk-avform { display: flex; gap: 5px; margin: 0; }
.sfk-avform input[type=number] { width: 84px; height: 30px; border: 1px solid var(--sfk-line); border-radius: 7px; padding: 0 8px; font-size: 12.5px; font-family: inherit; }
.sfk-avnote { margin: 8px 0 0; font-size: 12.5px; color: #0a8a4a; font-weight: 700; }

.sfk-spec2 { width: 100%; border-collapse: collapse; margin: 16px 0 0; border: 1px solid var(--sfk-line); border-radius: 12px; overflow: hidden; }
.sfk-spec2 th, .sfk-spec2 td { padding: 12px 15px; font-size: 14px; border-bottom: 1px solid var(--sfk-line); text-align: left; }
.sfk-spec2 tr:last-child th, .sfk-spec2 tr:last-child td { border-bottom: 0; }
.sfk-spec2 th { width: 128px; background: #f8f9fc; color: var(--sfk-sub); font-weight: 700; }
.sfk-spec2 td.p { color: var(--sfk-accent); font-weight: 800; font-size: 15.5px; }
.sfk-spec2 td small { color: var(--sfk-muted); font-weight: 400; font-size: 12.5px; }

.sfk-gallery { margin-top: 18px; }
.sfk-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sfk-album { border: 1px solid var(--sfk-line); background: #fff; border-radius: 12px; padding: 0 0 10px;
	cursor: pointer; text-align: left; overflow: hidden; transition: .14s; font: inherit; color: inherit; }
.sfk-album:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22,35,59,.1); }
.sfk-album-thumb { position: relative; display: block; aspect-ratio: 1/1; background: var(--sfk-soft); }
.sfk-album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfk-album-cnt { position: absolute; right: 8px; bottom: 8px; font-style: normal; background: rgba(22,35,59,.7);
	color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.sfk-album-name { display: block; padding: 9px 12px 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sfk-content { padding: 24px 2px 8px; min-height: 80px; font-size: 15px; }
.sfk-content img { max-width: 100%; height: auto; }
.sfk-files { margin: 10px 0 0; padding: 0; list-style: none; }
.sfk-files li a { display: block; padding: 9px 12px; border: 1px solid var(--sfk-line); border-radius: 8px;
	margin-bottom: 6px; font-size: 13.5px; color: var(--sfk-ink); text-decoration: none; }
.sfk-files li a:hover { background: var(--sfk-soft); }
.sfk-files li a em { font-style: normal; color: var(--sfk-muted); }

.sfk-vbtns { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.sfk-vbtns-r { display: flex; gap: 8px; }

/* ---------- 댓글 ---------- */
.sfk-cmts { margin-top: 28px; }
.sfk-ctit { font-size: 17px; margin: 0 0 12px; font-weight: 800; }
.sfk-ctit em { font-style: normal; color: var(--sfk-accent); }
.sfk-cmt-list { border: 1px solid var(--sfk-line); border-radius: 14px; background: #fff; overflow: hidden; }
.sfk-cmt-list:empty { display: none; }
.sfk-cmt { display: flex; gap: 11px; padding: 14px 16px; }
.sfk-cmt + .sfk-cmt { border-top: 1px solid var(--sfk-line); }
.sfk-cmt-main { flex: 1; min-width: 0; }
.sfk-cmt-head { display: flex; gap: 8px; align-items: baseline; }
.sfk-cmt-head b { font-size: 14px; }
.sfk-cmt-head em { font-style: normal; color: var(--sfk-muted); font-size: 12px; }
.sfk-cmt-body { margin-top: 4px; font-size: 14px; line-height: 1.65; }
.sfk-cmt-secret { color: var(--sfk-muted); }
.sfk-cmt-btns { display: flex; gap: 6px; margin-top: 8px; }
.sfk-cmt-btns a { font-size: 11.5px; font-weight: 700; color: var(--sfk-sub); text-decoration: none;
	background: var(--sfk-soft); border-radius: 6px; padding: 3px 9px; }
.sfk-cmt-btns a.del { background: #ffecec; color: #d6373c; }
.sfk-cmt-btns a:hover { filter: brightness(.95); }
.sfk-cform { margin-top: 14px; border: 1px solid var(--sfk-line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.sfk-cform-btn { margin-top: 10px; text-align: right; }
.sfk-cform-login { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border: 1px solid var(--sfk-line); border-radius: 14px; padding: 15px 18px; background: #fff; font-size: 14px; color: var(--sfk-sub); }

/* ---------- 쓰기/삭제 폼 (기존 유지) ---------- */
.sfk-wtit { font-size: 22px; margin: 6px 0 18px; font-weight: 800; }
.sfk-frow { margin-bottom: 14px; }
.sfk-frow > label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.sfk-frow > label small { font-weight: 400; color: var(--sfk-muted); margin-left: 6px; }
.sfk-req { color: var(--sfk-hot); font-style: normal; margin-left: 2px; }
.sfk-frow input[type=text], .sfk-frow input[type=password], .sfk-frow input[type=number],
.sfk-frow select, .sfk-frow textarea { width: 100%; max-width: 100%; height: 40px; border: 1px solid var(--sfk-line);
	border-radius: 8px; padding: 0 12px; font-size: 14.5px; background: #fff; font-family: inherit; }
.sfk-frow textarea { height: auto; padding: 10px 12px; }
.sfk-frow select { width: auto; min-width: 200px; }
.sfk-frow input:focus, .sfk-frow select:focus, .sfk-frow textarea:focus { outline: 2px solid var(--sfk-accent); outline-offset: -1px; }
.sfk-wbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.sfk-delete p { padding: 16px 0 24px; }

/* ---------- 라이트박스 ---------- */
.sfk-lb { position: fixed; inset: 0; z-index: 99999; display: none; }
.sfk-lb.on { display: block; }
.sfk-lb-back { position: absolute; inset: 0; background: rgba(10,11,14,.93); }
.sfk-lb-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); max-width: 92vw; max-height: 82vh; border-radius: 6px; }
.sfk-lb-x { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 26px; }
.sfk-lb-prev { left: 10px; } .sfk-lb-next { right: 10px; }
.sfk-lb-prev, .sfk-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; font-size: 30px; }
.sfk-lb-x, .sfk-lb-prev, .sfk-lb-next { background: rgba(255,255,255,.09); color: #fff; border: 0; border-radius: 10px;
	cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sfk-lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #e6e9ef; font-size: 14px; }
body.sfk-lb-open { overflow: hidden; }

/* ---------- 반응형 ---------- */
@media (max-width: 720px) {
	.sfk-wrap, .sfk-view { overflow-wrap: anywhere; }
	.sfk-row { gap: 11px; padding: 13px 13px; }
	.sfk-row-thumb { width: 74px; height: 74px; border-radius: 10px; }
	.sfk-row-tit { font-size: 14.5px; }
	.sfk-row-right { min-width: 78px; }
	.sfk-row-right .p { font-size: 15px; }
	.sfk-vtit { font-size: 20px; }
	.sfk-auth-r { margin-left: 0; width: 100%; justify-content: flex-end; }
	.sfk-spec2 th { width: 92px; }
	.sfk-albums { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.sfk-search input[type=text] { width: 130px; flex: 1; }
	.sfk-foot { align-items: stretch; }
	.sfk-search { width: 100%; }
	.sfk-search select { display: none; }
}

/* v2.0.2: 등록/저장류 파란 버튼 글씨 흰색 강제 (레이아웃 링크색 덮어쓰기 방지) */
.sfk-wrap .sfk-btn-primary, .sfk-view .sfk-btn-primary,
.sfk-wrap a.sfk-btn-primary:link, .sfk-wrap a.sfk-btn-primary:visited, .sfk-wrap a.sfk-btn-primary:hover,
.sfk-view a.sfk-btn-primary:link, .sfk-view a.sfk-btn-primary:visited, .sfk-view a.sfk-btn-primary:hover { color: #fff !important; }

/* v2.1: 720px 이하 목록·상세·버튼 폭 통일 */
@media (max-width:720px){
	.sfk-wrap,
	.sfk-view,
	.sfk-wrap form,
	.sfk-view form,
	.sfk-wrap table,
	.sfk-view table{
		width:100%;
		min-width:0;
		max-width:100%;
	}
	.sfk-wrap img,.sfk-view img,
	.sfk-wrap video,.sfk-view video,
	.sfk-wrap iframe,.sfk-view iframe{max-width:100%}
	.sfk-wrap img,.sfk-view img,
	.sfk-wrap video,.sfk-view video{height:auto}
	.sfk-wrap input,.sfk-view input,
	.sfk-wrap select,.sfk-view select,
	.sfk-wrap textarea,.sfk-view textarea,
	.sfk-wrap button,.sfk-view button{
		min-width:0;
		max-width:100%;
	}

	.sfk-bhead{flex-wrap:wrap}
	.sfk-row{
		width:100%;
		min-width:0;
		min-height:64px;
	}
	.sfk-row-right{
		flex:0 1 auto;
		min-width:0;
		max-width:34%;
	}
	.sfk-spec2{
		width:100%;
		table-layout:fixed;
	}
	.sfk-spec2 th{
		width:92px;
		min-width:0;
		word-break:keep-all;
		white-space:normal;
	}
	.sfk-spec2 td{
		min-width:0;
		overflow-wrap:anywhere;
	}
	.sfk-content{min-width:0;max-width:100%}

	.sfk-vbtns{
		display:grid;
		grid-template-columns:minmax(0,1fr);
		gap:8px;
	}
	.sfk-vbtns > .sfk-btn{
		width:100%;
		min-height:44px;
	}
	.sfk-vbtns-r{
		display:grid;
		grid-template-columns:repeat(2,minmax(0,1fr));
		width:100%;
		gap:8px;
	}
	.sfk-vbtns-r .sfk-btn{
		width:100%;
		min-width:0;
		min-height:44px;
		padding:8px;
		text-align:center;
		white-space:normal;
	}
	.sfk-vbtns-r .sfk-btn:last-child:nth-child(odd){grid-column:1/-1}
	.sfk-search{min-width:0}
	.sfk-search input[type=text]{
		width:100%;
		min-width:0;
	}
	.sfk-wbtns{flex-wrap:wrap}
	.sfk-wbtns .sfk-btn{min-height:44px}
}
