/* SEARCH RESULTS PAGE STYLES */

.search {
	padding: 3rem 2rem 5rem;
}

/* Search bar */
.search-bar {
	display: flex;
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto 2.5rem;
}

.search-bar-input {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
}

.search-bar-input svg {
	position: absolute;
	left: 1rem;
	width: 20px;
	height: 20px;
	stroke: var(--brand-light-gray);
	stroke-width: 2;
	fill: none;
	pointer-events: none;
}

.search-bar-input input {
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--brand-dark-gray);
	padding: 0.95rem 1rem 0.95rem 3rem;
	border: 1px solid var(--brand-off-white);
	border-radius: 2px;
	transition: border-color 0.2s ease;
}

.search-bar-input input:focus {
	outline: none;
	border-color: var(--brand-primary-red);
}

/* Result meta + tabs */
.search-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--brand-off-white);
}

.search-summary {
	font-size: 0.85rem;
	color: var(--brand-medium-gray);
}

.search-summary strong {
	color: var(--brand-dark-gray);
}

.search-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.search-tab {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brand-medium-gray);
	background: none;
	border: 1px solid var(--brand-off-white);
	border-radius: 2px;
	padding: 0.5rem 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.search-tab:hover,
.search-tab.active {
	color: var(--brand-white);
	background-color: var(--brand-primary-red);
	border-color: var(--brand-primary-red);
}

/* Result list */
.search-results {
	display: flex;
	flex-direction: column;
}

.search-result {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	gap: 1.5rem;
	align-items: center;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--brand-off-white);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.search-result:hover {
	background-color: #fafafa;
}

.search-result-image {
	width: 96px;
	height: 96px;
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border: 1px solid #ebebeb;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-result-image svg {
	width: 44px;
	height: 44px;
	stroke: var(--brand-light-gray);
	stroke-width: 1.2;
	fill: none;
}

.search-result-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.search-result-type {
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--brand-primary-red);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.search-result-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--brand-black);
	margin: 0;
}

.search-result-title mark {
	background-color: rgba(187, 13, 18, 0.12);
	color: var(--brand-primary-red);
	padding: 0 0.15em;
}

.search-result-text {
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--brand-medium-gray);
	margin: 0;
}

.search-result-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	text-align: right;
}

.search-result-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--brand-dark-gray);
}

.search-result-link {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--brand-primary-red);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* No results state */
.search-empty {
	text-align: center;
	padding: 4rem 1rem;
}

.search-empty svg {
	width: 64px;
	height: 64px;
	stroke: var(--brand-light-gray);
	stroke-width: 1.2;
	fill: none;
	margin-bottom: 1.5rem;
}

.search-empty h2 {
	font-size: 1.25rem;
	color: var(--brand-dark-gray);
	margin-bottom: 0.75rem;
}

.search-empty p {
	color: var(--brand-medium-gray);
}

/* Responsive */
@media (max-width: 768px) {
	.search {
		padding: 2rem 1rem 3.5rem;
	}

	.search-result {
		grid-template-columns: 72px 1fr;
		gap: 1rem;
	}

	.search-result-meta {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		text-align: left;
	}
}
