/* ========== Site search page ========== */
.search-page {
	background: #f5f5f5;
	color: #000;
	font-family: 'Outfit', 'Microsoft YaHei', PingFang SC, -apple-system, Arial, sans-serif;
}

.search-inner {
	width: 85%;
	margin: 0 auto;
	padding: 6.4rem 0 8rem;
	box-sizing: border-box;
}

@media (min-width: 1921px) {
	.search-inner {
		width: 60%;
	}
}

.search-hero {
	text-align: center;
	margin-bottom: 3.2rem;
}

.search-title {
	margin: 0;
	font-size: 5.6rem;
	line-height: 1.15;
	font-weight: 700;
	color: #000;
}

.search-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 64rem;
	height: 5.6rem;
	margin: 3.2rem auto 0;
	padding: 0 0.8rem 0 2.4rem;
	box-sizing: border-box;
	background: #fff;
	border-radius: 999rem;
	box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.04);
}

.search-form input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 1.6rem;
	line-height: 1.4;
	color: #000;
}

.search-form input::placeholder {
	color: #999;
}

.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.4rem;
	height: 4.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.search-form button img {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
	opacity: 0.55;
}

.search-form button:hover img {
	opacity: 0.9;
}

.search-summary {
	margin: 1.6rem 0 0;
	font-size: 1.5rem;
	line-height: 1.5;
	color: #666;
}

.search-summary strong {
	color: #000;
	font-weight: 600;
}

.search-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem;
	margin: 0 0 2.8rem;
}

.search-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.4rem;
	border-radius: 999rem;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 1.4rem;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease;
}

.search-filter em {
	font-style: normal;
	color: #999;
	font-size: 1.2rem;
}

.search-filter:hover {
	background: #eee;
}

.search-filter.is-active {
	background: #000;
	color: #fff;
}

.search-filter.is-active em {
	color: rgba(255, 255, 255, 0.7);
}

.search-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

/* FAQ tab: one white panel, accordion rows */
.search-results--faq {
	gap: 0;
	padding: 0 2.4rem;
	background: #fff;
	border-radius: 1.6rem;
	box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.04);
}

.search-card {
	margin: 0;
}

.search-card-link {
	display: grid;
	grid-template-columns: 9.6rem minmax(0, 1fr) 2rem;
	align-items: center;
	gap: 1.6rem;
	padding: 1.6rem 2rem;
	background: #fff;
	border-radius: 1.2rem;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-card.is-faq .search-card-link {
	grid-template-columns: minmax(0, 1fr) 2rem;
}

.search-card-link:hover {
	transform: translateY(-0.1rem);
	box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.06);
}

.search-card-media {
	display: block;
	width: 9.6rem;
	height: 9.6rem;
	border-radius: 0.8rem;
	overflow: hidden;
	background: #f0f0f0;
}

.search-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #f7f7f7;
}

.search-card-media.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
}

.search-card-media.is-empty img {
	width: 1px;
	height: 1px;
	opacity: 0;
}

.search-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}

.search-card-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.search-badge {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999rem;
	font-size: 1.1rem;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: #eee;
	color: #555;
}

.search-badge--products {
	background: #fff1df;
	color: #b56a00;
}

.search-badge--news {
	background: #e8f1ff;
	color: #1a5fb4;
}

.search-badge--faq {
	background: #e9f7ef;
	color: #1e7a46;
}

.search-meta {
	font-size: 1.2rem;
	color: #999;
}

.search-card-title {
	display: block;
	font-size: 1.8rem;
	line-height: 1.35;
	font-weight: 600;
	color: #000;
}

.search-card-snippet {
	display: block;
	font-size: 1.4rem;
	line-height: 1.55;
	color: #666;
}

.search-card-arrow {
	width: 1.6rem;
	height: 1.6rem;
	opacity: 0.35;
	justify-self: end;
}

.search-card-link:hover .search-card-arrow {
	opacity: 0.8;
}

.search-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	margin-top: 3.2rem;
}

.search-pager-link {
	color: #000;
	font-size: 1.4rem;
	text-decoration: none;
	font-weight: 600;
}

.search-pager-link:hover {
	text-decoration: underline;
}

.search-pager-status {
	font-size: 1.3rem;
	color: #777;
}

.search-empty {
	text-align: center;
	padding: 4.8rem 1.6rem;
	background: #fff;
	border-radius: 1.2rem;
}

.search-empty p {
	margin: 0;
	font-size: 1.6rem;
	line-height: 1.6;
	color: #555;
}

.search-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.2rem;
	margin-top: 2rem;
}

.search-empty-actions a {
	display: inline-flex;
	align-items: center;
	padding: 0.9rem 1.6rem;
	border-radius: 999rem;
	background: #000;
	color: #fff;
	text-decoration: none;
	font-size: 1.4rem;
}

.search-empty-actions a:hover {
	opacity: 0.88;
}

/* FAQ accordion (expand in place) */
.search-faq-item {
	margin: 0;
	background: #fff;
	border-radius: 1.2rem;
	box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

.search-results--faq .search-faq-item {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid #eee;
}

.search-results--faq .search-faq-item:last-child {
	border-bottom: 0;
}

.search-faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
	width: 100%;
	margin: 0;
	padding: 2rem;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: #000;
	box-sizing: border-box;
}

.search-results--faq .search-faq-trigger {
	padding: 2.2rem 0;
}

.search-faq-item.is-open .search-faq-trigger {
	padding-bottom: 1.2rem;
}

.search-faq-qwrap {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
	flex: 1;
}

.search-faq-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.search-faq-cat {
	font-size: 1.2rem;
	line-height: 1.4;
	color: #888;
}

.search-faq-question {
	font-size: 1.8rem;
	line-height: 1.4;
	font-weight: 600;
	color: #111;
}

.search-faq-icon {
	position: relative;
	flex-shrink: 0;
	width: 1.8rem;
	height: 1.8rem;
}

.search-faq-icon::before,
.search-faq-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #111;
	transform: translate(-50%, -50%);
}

.search-faq-icon::before {
	width: 1.4rem;
	height: 0.14rem;
}

.search-faq-icon::after {
	width: 0.14rem;
	height: 1.4rem;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-faq-item.is-open .search-faq-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

.search-faq-panel {
	display: block;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.22s ease;
}

.search-faq-answer,
.search-faq-html,
.search-faq-snippet {
	margin: 0;
	padding: 0 2rem 1.8rem;
	font-size: 1.5rem;
	line-height: 1.75;
	font-weight: 300;
	color: #666;
	box-sizing: border-box;
}

.search-results--faq .search-faq-answer,
.search-results--faq .search-faq-html,
.search-results--faq .search-faq-snippet {
	padding-left: 0;
	padding-right: 0;
}

.search-faq-answer {
	padding-left: 4rem;
	list-style: decimal;
}

.search-results--faq .search-faq-answer {
	padding-left: 2rem;
}

.search-faq-answer > li {
	list-style: decimal;
	margin: 0 0 1rem;
	padding-left: 0.4rem;
}

.search-faq-answer > li:last-child {
	margin-bottom: 0;
}

.search-faq-html p {
	margin: 0 0 1rem;
}

.search-faq-html p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.search-faq-panel,
	.search-faq-icon::after {
		transition: none;
	}
}

@media (max-width: 900px) {
	.search-inner {
		width: 92%;
		padding: 4.8rem 0 6rem;
	}

	.search-title {
		font-size: 3.6rem;
	}

	.search-form {
		height: 4.8rem;
		margin-top: 2.4rem;
		padding-left: 1.8rem;
	}

	.search-card-link {
		grid-template-columns: 7.2rem minmax(0, 1fr);
		gap: 1.2rem;
		padding: 1.2rem 1.4rem;
	}

	.search-card-arrow {
		display: none;
	}

	.search-card-media {
		width: 7.2rem;
		height: 7.2rem;
	}

	.search-card-title {
		font-size: 1.6rem;
	}

	.search-results--faq {
		padding: 0 1.6rem;
	}

	.search-faq-trigger {
		padding: 1.6rem 1.4rem;
	}

	.search-results--faq .search-faq-trigger {
		padding: 1.8rem 0;
	}

	.search-faq-question {
		font-size: 1.6rem;
	}

	.search-faq-answer,
	.search-faq-html,
	.search-faq-snippet {
		padding: 0 1.4rem 1.4rem;
	}

	.search-results--faq .search-faq-answer,
	.search-results--faq .search-faq-html,
	.search-results--faq .search-faq-snippet {
		padding-left: 0;
		padding-right: 0;
	}

	.search-faq-answer {
		padding-left: 3.2rem;
	}

	.search-results--faq .search-faq-answer {
		padding-left: 1.6rem;
	}
}
