/**
 * 2026-11 renew — search results (sense2_pc_search S1·S2 / sense2_mobile_list_states 검색)
 * 클래스 접두사 = renew-results (components.css 의 .renew-search 헤더 pill 과 충돌 방지)
 * 페이지 배경 = white · 헤더·목록과 같은 1360 max + pad 56 (태블릿 28 · 모바일 16)
 * 카드 = 목록과 같은 list_card_cell + renew_card_from_item(variant list)
 * 모바일 정렬 시트 = list.css 의 .renew-list-sheet--sort 재사용
 */
.renew-results {
	--renew-results-pad-x: var(--renew-pad-x, 56px);
	--renew-results-max: var(--renew-max, 1360px);
	box-sizing: border-box;
	padding: 40px 0 96px;
	background: var(--renew-surface);
	font-family: var(--renew-sans);
	color: var(--renew-ink);
}

/* custom.css h1{Prompt} 가 base :where()를 이김 → 검색 트리에서 inherit 강제 (list.css와 같은 방식) */
.renew-results :is(
	div, span, p, a, em, i, strong, b, small,
	h1, h2, h3, h4, h5, h6,
	form, label, input, button, textarea, select,
	nav, ul, li, img, figure, figcaption, article, section, header, aside
) {
	font-family: inherit;
}

.renew-results :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

.renew-results .renew-serif,
.renew-results .renew-serif :is(em, i, span, b, strong, small),
.renew-results .renew-product-card__name,
.renew-results .renew-product-card__name :is(em, i, span) {
	font-family: var(--renew-serif);
	font-weight: 400;
}

.renew-results__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--renew-results-max);
	margin: 0 auto;
	padding: 0 var(--renew-results-pad-x);
}

/* ——— Title (S1 · S2 공통) ——— */
.renew-results__title {
	margin: 0;
	font-family: var(--renew-serif);
	font-size: 64px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.01em;
}

.renew-results .renew-results__title em {
	font-family: var(--renew-serif);
	font-style: italic;
	font-weight: 400;
}

html:lang(ko) .renew-results .renew-results__title em {
	font-style: normal;
}

/* ——— Tabs + Filter/Sort (S1) ——— */
.renew-results__tabrow {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	box-sizing: border-box;
	min-height: 44px;
	margin-top: 22px;
	border-bottom: 1px solid var(--renew-line);
}

.renew-results__tabs {
	display: flex;
	gap: 28px;
	min-width: 0;
}

/* hover 배경 패딩(8/12)만큼 margin을 빼서 글자 위치는 그대로 */
.renew-results__tab {
	position: relative;
	display: inline-block;
	margin: -8px -12px -1px;
	padding: 8px 12px 12px;
	border-bottom: 2px solid transparent;
	font-size: 15px;
	line-height: 18px;
	color: var(--renew-muted);
	text-decoration: none;
	white-space: nowrap;
}

.renew-results__tab:hover {
	background: var(--renew-bg-warm);
	color: var(--renew-ink);
	text-decoration: none;
}

.renew-results__tab.is-on {
	border-bottom-color: var(--renew-ink);
	color: var(--renew-ink);
}

.renew-results__tab:focus-visible,
.renew-results__filter:focus-visible,
.renew-results__post:focus-visible,
.renew-results__page:focus-visible,
.renew-results__m-btn:focus-visible {
	outline: 2px solid var(--renew-accent, #137382);
	outline-offset: 3px;
	border-radius: 2px;
}

/* 탭 행 min-height 44 — 탭 글자 중심(보더 위 22px)과 행 세로 중앙이 같아서 도구는 padding 없이 중앙 정렬 */
.renew-results__tools {
	display: flex;
	align-self: center;
	align-items: center;
	gap: 28px;
}

.renew-results__filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 18px;
	font-size: 14px;
	line-height: 18px;
	color: var(--renew-ink);
	text-decoration: none;
	white-space: nowrap;
}

.renew-results__filter:hover {
	color: var(--renew-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 정렬 드롭다운 = components.css `.renew-select--inline` · 검색 도구줄은 14px */
.renew-results__tools .renew-select--inline .renew-select__trigger {
	font-size: 14px;
}

/* 모바일 Filter | Sort 바 — PC 에서는 숨김 */
.renew-results__m-actions {
	display: none;
}

/* ——— Grid (목록 카드와 같은 4열) ——— */
.renew-results__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 40px 24px;
	margin-top: 28px;
}

.renew-results .renew-product-card--list .renew-product-card__media {
	aspect-ratio: 4 / 5;
	background: var(--renew-bg-warm);
}

.renew-results .renew-product-card--list .renew-product-card__brand {
	margin-top: 12px;
	font-size: 10px;
}

.renew-results .renew-product-card--list .renew-product-card__name,
.renew-results .renew-product-card--list a.renew-product-card__hit .renew-product-card__name {
	display: block;
	min-height: 48px;
	margin-top: 4px;
	font-size: 20px;
	line-height: 1.2;
}

.renew-results .renew-product-card--list .renew-product-card__row--list {
	margin-top: 6px;
}

.renew-results__more {
	margin-top: 48px;
	text-align: center;
}

.renew-results__more .renew-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.renew-results__none {
	margin: 56px 0;
	font-size: 15px;
	color: var(--renew-muted);
	text-align: center;
}

/* ——— Community (게시글 결과) ——— */
.renew-results__posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.renew-results__posts > li {
	margin: 0;
	border-bottom: 1px solid var(--renew-line);
}

.renew-results__post {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	padding: 28px 0;
	color: var(--renew-ink);
	text-decoration: none;
}

.renew-results__post:hover {
	color: var(--renew-ink);
	text-decoration: none;
}

.renew-results__post:hover .renew-results__post-title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.renew-results__post-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.renew-results__post-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.renew-results__post-board {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--renew-muted);
}

.renew-results__post-title {
	font-size: 26px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.renew-results__post-snippet {
	display: -webkit-box;
	font-size: 14px;
	line-height: 1.7;
	color: var(--renew-muted);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.renew-results__post-meta {
	font-size: 12px;
	color: var(--renew-muted);
}

.renew-results__post-thumb {
	flex: none;
	width: 120px;
	aspect-ratio: 1 / 1;
	background: var(--renew-bg-warm);
	overflow: hidden;
}

.renew-results__post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.renew-results__pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 48px;
}

.renew-results__page {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 14px;
	color: var(--renew-muted);
	text-decoration: none;
}

.renew-results__page:hover {
	color: var(--renew-ink);
	text-decoration: none;
}

.renew-results__page:hover:not(.is-on) {
	background: var(--renew-bg-warm);
}

.renew-results__page.is-on {
	background: var(--renew-ink);
	color: var(--renew-surface);
}

/* ——— Empty (S2 결과 없음) ——— */
.renew-results__empty {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 64px;
	margin-top: 40px;
}

.renew-results__text {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--renew-muted);
}

.renew-results__kicker {
	margin: 28px 0 12px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--renew-muted);
}

.renew-results__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.renew-results .renew-chip {
	height: 36px;
	padding: 0 14px;
	font-size: 13px;
}

.renew-results__concierge {
	padding: 28px 32px;
	background: var(--renew-bg-warm);
}

.renew-results__concierge .renew-results__kicker {
	margin: 0;
}

.renew-results__concierge-title {
	margin: 8px 0 0;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.15;
}

.renew-results__concierge-field {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	height: 64px;
	margin-top: 16px;
	border-bottom: 1px solid var(--renew-ink);
	font-size: 15px;
	color: var(--renew-muted);
	text-decoration: none;
}

.renew-results__concierge-field svg {
	flex: none;
	color: var(--renew-ink);
}

.renew-results__loved {
	margin-top: 48px;
}

.renew-results__loved .renew-results__kicker {
	margin: 0 0 16px;
}

.renew-results__grid--loved {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 0;
}

/* 컨시어지 직접 입력 (form) — 메인 .renew-concierge__input 과 같은 serif italic · 보더 없음
 * 레거시 input[type=text] 보더·배경을 덮기 위해 선택자를 3단으로 올림 */
.renew-results .renew-results__concierge-field .renew-results__concierge-input {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 none;
	border-radius: 0;
	outline: 0 none;
	background: transparent;
	box-shadow: none;
	font-family: var(--renew-serif);
	font-size: 24px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	color: var(--renew-ink);
	-webkit-appearance: none;
	appearance: none;
}

.renew-results .renew-results__concierge-field .renew-results__concierge-input::placeholder {
	color: var(--renew-placeholder);
	font-family: var(--renew-serif);
	font-style: italic;
	opacity: 1;
}

.renew-results .renew-results__concierge-field .renew-results__concierge-input:focus {
	border: 0 none;
	outline: 0 none;
	background: transparent;
	box-shadow: none;
}

.renew-results__concierge-go {
	flex: none;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0 none;
	background: transparent;
	color: var(--renew-ink);
	cursor: pointer;
}

/* custom.css 전역 button:hover(#26c0bb) 차단 — 호버는 투명도만 */
.renew-results__concierge-go:hover,
.renew-results__concierge-go:active,
.renew-results__concierge-go:focus {
	background: transparent;
	color: var(--renew-ink);
}

.renew-results__concierge-go:hover {
	opacity: 0.7;
}

.renew-results__concierge-field:focus-within {
	border-bottom-width: 2px;
}

/* 컨시어지 추천 (/api/rec) */
.renew-results__picks {
	margin-top: 48px;
}

.renew-results__picks .renew-results__kicker {
	margin: 0 0 16px;
}

.renew-results__picks-status {
	margin: 0;
	font-size: 14px;
	color: var(--renew-muted);
}

.renew-results__picks-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 40px 24px;
}

.renew-results__picks-grid:empty {
	display: none;
}

/* 카드 = 링크 + 하트 버튼(미디어 우상단, components.css 공용 하트 스타일) */
.renew-results__pick {
	position: relative;
	min-width: 0;
}

.renew-results__pick-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	color: var(--renew-ink);
	text-decoration: none;
}

.renew-results__pick-link:hover {
	color: var(--renew-ink);
	text-decoration: none;
}

/* 이미지 영역 = 상품 카드(.renew-product-card__media)와 동일: 4:5 · 웜 배경 · 72% contain + multiply */
.renew-results__pick-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	margin-bottom: 8px;
	background: var(--renew-bg-warm);
	overflow: hidden;
}

.renew-results__pick-media img {
	position: absolute;
	inset: 14%;
	display: block;
	width: 72%;
	height: 72%;
	mix-blend-mode: multiply;
	object-fit: contain;
}

.renew-results__pick-name {
	font-size: 18px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.renew-results__pick-price {
	font-size: 13px;
	color: var(--renew-muted);
}

/* ——— Tablet / Mobile 공통 (≤991): PC 도구 → Filter | Sort 바, 정렬은 바텀시트 ——— */
@media (max-width: 991px) {
	.renew-results {
		--renew-results-pad-x: var(--renew-pad-x-tab, 28px);
		padding: 24px 0 72px;
	}

	.renew-results__title {
		font-size: 48px;
	}

	.renew-results__tools {
		display: none;
	}

	/* 시안 Filter | Sort — 화면 풀블리드 탭 바 (목록 .renew-list__m-actions 와 동일) */
	.renew-results__m-actions {
		display: flex;
		gap: 0;
		box-sizing: border-box;
		width: auto;
		margin: 20px calc(-1 * var(--renew-results-pad-x)) 0;
		border-top: 0 none;
		border-bottom: 1px solid var(--renew-line);
		background: var(--renew-surface);
	}

	.renew-results__m-btn {
		flex: 1 1 50%;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		box-sizing: border-box;
		min-width: 0;
		height: 48px;
		margin: 0;
		padding: 0 12px;
		border: 0 none;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		font-family: var(--renew-sans);
		font-size: 14px;
		font-weight: 400;
		line-height: 1;
		color: var(--renew-ink);
		text-decoration: none;
		cursor: pointer;
	}

	/* custom.css 전역 button:hover(#26c0bb) 차단 — 흰 배경 툴바 버튼은 호버·눌림 시 --renew-bg-warm */
	.renew-results__m-btn:hover {
		color: var(--renew-ink);
		text-decoration: none;
	}

	button.renew-results__m-btn:hover,
	button.renew-results__m-btn:active {
		background: var(--renew-bg-warm);
	}

	button.renew-results__m-btn:focus {
		background: transparent;
	}

	.renew-results__m-btn + .renew-results__m-btn {
		border-left: 1px solid var(--renew-line);
	}

	.renew-results__m-btn--sort .renew-icon {
		flex: none;
		width: 12px;
		height: 12px;
		opacity: 0.75;
	}

	.renew-results__grid,
	.renew-results__grid--loved {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 16px;
		margin-top: 24px;
	}

	.renew-results__picks-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.renew-results__concierge-field {
		height: 52px;
	}

	.renew-results .renew-results__concierge-field .renew-results__concierge-input {
		font-size: 20px;
	}

	.renew-results__empty {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.renew-results .renew-product-card--list .renew-product-card__name,
	.renew-results .renew-product-card--list a.renew-product-card__hit .renew-product-card__name {
		min-height: 2.4em;
		font-size: 16px;
	}

	.renew-results__post-title {
		font-size: 22px;
	}
}

/* ——— Mobile ——— */
@media (max-width: 767px) {
	.renew-results {
		--renew-results-pad-x: var(--renew-pad-x-m, 16px);
		padding: 20px 0 64px;
	}

	.renew-results__title {
		font-size: 30px;
		line-height: 1.1;
	}

	.renew-results__tabs {
		gap: 18px;
	}

	.renew-results__tab {
		font-size: 14px;
	}

	.renew-results__m-actions {
		margin-top: 0;
		border-top: 0 none;
	}

	.renew-results__grid,
	.renew-results__grid--loved {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
		margin-top: 20px;
	}

	.renew-results__concierge-field {
		height: 48px;
	}

	.renew-results .renew-results__concierge-field .renew-results__concierge-input {
		font-size: 18px;
	}

	.renew-results__picks {
		margin-top: 36px;
	}

	.renew-results__picks-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.renew-results__pick-name {
		font-size: 15px;
	}

	.renew-results .renew-product-card--list .renew-product-card__name,
	.renew-results .renew-product-card--list a.renew-product-card__hit .renew-product-card__name {
		font-size: 15px;
	}

	.renew-results__more {
		margin-top: 36px;
	}

	.renew-results__post {
		gap: 16px;
		padding: 20px 0;
	}

	.renew-results__post-title {
		font-size: 18px;
	}

	.renew-results__post-snippet {
		font-size: 13px;
	}

	.renew-results__post-thumb {
		width: 72px;
	}

	.renew-results__pager {
		margin-top: 32px;
	}

	.renew-results__concierge {
		padding: 20px 18px;
	}

	.renew-results__concierge-title {
		font-size: 26px;
	}

	.renew-results__loved {
		margin-top: 40px;
	}
}
