/* Search Results — hero + search box, type tabs / sort, result rows,
   pagination and the help sidebar on white (design.md §Search results; the
   "TriggerTech website" export TriggerTech Search Results.dc.html).

   Desktop is the export at 1728; 1100–1728 the sidebar column and gap clamp
   (320→400, 56→96). ≤1099 the sidebar drops under the results as a 2-up
   grid; ≤767 is the phone layout. Off-palette greys are the export's own
   (design.md §Search results). */

.tt-search-results {
	background: #fff;
	color: #000;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
}

.tt-search-results > * {
	margin-block: 0 !important;
}

.tt-search-results p {
	margin: 0;
}

/* ---- Hero ----------------------------------------------------------------- */
.tt-search-results__hero {
	padding: clamp(40px, 5vw, 80px) calc(50px + var(--tt-bleed)) clamp(32px, 3.5vw, 56px);
	border-bottom: 1px solid #e2e2de;
}

.tt-search-results__hero-inner {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2vw, 28px);
}

.tt-search-results__breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-search-results__breadcrumb a {
	color: var(--wp--preset--color--grey, #73736f) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.tt-search-results__breadcrumb a:hover {
	color: var(--wp--preset--color--red, #cf2026) !important;
}

.tt-search-results__current {
	color: #000;
}

/* Eyebrow: 40×1 red rule + Base Model 16px, 0.15em — red on this white ground. */
.tt-search-results__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-size: 16px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red, #cf2026) !important;
}

.tt-search-results__eyebrow::before {
	content: "";
	flex: 0 0 40px;
	height: 1px;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 72px !important;
	line-height: 1.04 !important;
	text-transform: none !important;
	color: #000 !important;
	overflow-wrap: anywhere;
}

.tt-search-results__accent {
	color: var(--wp--preset--color--red, #cf2026);
}

/* Search box: 62px, grey hairline → 2px red while focused. */
.tt-search-results__form {
	max-width: 900px;
	margin: 0;
}

.tt-search-results__box {
	display: flex;
	align-items: stretch;
	height: 62px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey-light, #adadad);
	transition: box-shadow 0.25s ease;
}

.tt-search-results__box:focus-within {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__box-icon {
	display: flex;
	flex: 0 0 54px;
	align-items: center;
	justify-content: center;
	color: #000;
}

.tt-search-results__input {
	flex: 1;
	min-width: 0;
	padding: 0 20px 0 0;
	border: 0 !important;
	border-radius: 0;
	outline: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 18px;
	color: #000;
	-webkit-appearance: none;
	appearance: none;
}

.tt-search-results__input::placeholder {
	color: #969692;
}

.tt-search-results__input::-webkit-search-cancel-button,
.tt-search-results__input::-webkit-search-decoration {
	display: none;
	-webkit-appearance: none;
}

.tt-search-results__clear {
	display: flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--grey, #73736f);
	cursor: pointer;
	transition: color 0.2s ease;
}

.tt-search-results__clear[hidden] {
	display: none;
}

.tt-search-results__clear:hover {
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__submit {
	display: flex;
	flex: 0 0 152px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--red, #cf2026) !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff !important;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.tt-search-results__submit:hover {
	background: #aa161c !important;
}

.tt-search-results__submit svg {
	display: block;
}

.tt-search-results__summary {
	font-size: 16px;
	line-height: 1.6;
	color: #5a5a56;
}

/* ---- Body: results column + sidebar ---------------------------------------- */
.tt-search-results__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(320px, 12.74vw + 180px, 400px);
	gap: clamp(56px, 6.37vw - 14px, 96px);
	align-items: start;
	padding: clamp(32px, 3.5vw, 56px) calc(50px + var(--tt-bleed)) clamp(72px, 7vw, 120px);
}

.tt-search-results__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Toolbar: type tabs (wrap onto more lines when they run out of room) + sort. */
.tt-search-results__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}

.tt-search-results__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.tt-search-results__tab {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 18px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #c8c8c4;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none !important;
	color: #000 !important;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tt-search-results__tab:hover {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__tab--active {
	background: #000;
	box-shadow: inset 0 0 0 1px #000;
	color: #fff !important;
}

.tt-search-results__tab-count {
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 13px;
	letter-spacing: 0;
	color: var(--wp--preset--color--grey, #73736f);
	transition: color 0.25s ease;
}

.tt-search-results__tab--active .tt-search-results__tab-count {
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-search-results__sort {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.tt-search-results__sort-label {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey, #73736f);
}

.tt-search-results__select {
	height: 44px;
	padding: 0 44px 0 16px;
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey-light, #adadad);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.05em;
	color: #000;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.2s ease;
}

.tt-search-results__select:hover,
.tt-search-results__select:focus {
	outline: 0;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026);
}

/* search-results.js submits on change; without it this button applies the sort. */
.tt-search-results.is-enhanced .tt-search-results__sort-apply {
	display: none;
}

.tt-search-results__sort-apply {
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: #000;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tt-search-results__sort-apply:hover {
	background: var(--wp--preset--color--red, #cf2026);
}

/* ---- Result rows ----------------------------------------------------------- */
.tt-search-results__list {
	margin-top: 16px;
	border-top: 1px solid #e2e2de;
}

.tt-search-results__row {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 36px;
	padding: 36px 0;
	border-bottom: 1px solid #e2e2de;
	animation: tt-search-row-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tt-search-results__row--no-thumb {
	grid-template-columns: minmax(0, 1fr);
}

@keyframes tt-search-row-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Product shot centred at 82% on the light plate. */
.tt-search-results__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f1;
}

.tt-search-results__thumb img {
	display: block;
	width: 82%;
	height: 82%;
	object-fit: contain;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-search-results__row:hover .tt-search-results__thumb img {
	transform: scale(1.06);
}

.tt-search-results__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.tt-search-results__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tt-search-results__type {
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__dot {
	width: 4px;
	height: 4px;
	border-radius: 2px;
	background: #c8c8c4;
}

.tt-search-results__cat {
	color: var(--wp--preset--color--grey, #73736f);
}

.tt-search-results__item-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 28px !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

/* Title: turns red as a 1px red underline draws in. */
.tt-search-results__item-title a {
	color: #000 !important;
	text-decoration: none !important;
	background: linear-gradient(var(--wp--preset--color--red, #cf2026), var(--wp--preset--color--red, #cf2026)) left calc(100% - 1px) / 0 1px no-repeat;
	transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-search-results__item-title a:hover {
	color: var(--wp--preset--color--red, #cf2026) !important;
	background-size: 100% 1px;
}

.tt-search-results__hl {
	padding: 0 0.06em;
	background: rgba(207, 32, 38, 0.13);
	color: inherit;
}

.tt-search-results__url {
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none !important;
	color: var(--wp--preset--color--grey, #73736f) !important;
	transition: color 0.2s ease;
}

.tt-search-results__url:hover {
	color: #000 !important;
}

.tt-search-results__snippet {
	max-width: 820px;
	margin-top: 2px !important;
	font-size: 16px;
	line-height: 1.65;
	color: #434342;
	text-wrap: pretty;
}

.tt-search-results__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 6px;
}

.tt-search-results__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
}

.tt-search-results__now {
	font-size: 20px;
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__was {
	font-size: 16px;
	color: #8c8c88;
}

.tt-search-results__fits {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--grey, #73736f);
}

.tt-search-results__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #000 !important;
	transition: color 0.2s ease;
}

.tt-search-results__more span {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-search-results__more:hover {
	color: var(--wp--preset--color--red, #cf2026) !important;
}

.tt-search-results__more:hover span {
	transform: translateX(6px);
}

/* ---- Pagination ------------------------------------------------------------ */
.tt-search-results__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
}

.tt-search-results__range {
	font-size: 15px;
	color: var(--wp--preset--color--grey, #73736f);
}

.tt-search-results__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tt-search-results__page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey-light, #adadad);
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 16px;
	text-decoration: none !important;
	color: #000 !important;
	transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

a.tt-search-results__page:hover {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__page--active {
	background: var(--wp--preset--color--red, #cf2026);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--red, #cf2026);
	color: #fff !important;
}

.tt-search-results__page--prev svg {
	transform: rotate(180deg);
}

.tt-search-results__page--disabled {
	opacity: 0.3;
}

.tt-search-results__gap {
	padding: 0 4px;
	color: var(--wp--preset--color--grey, #73736f);
}

/* ---- No results ------------------------------------------------------------ */
.tt-search-results__empty {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 16px;
	padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px);
	background: #f4f4f1;
}

.tt-search-results__empty-icon {
	display: block;
}

.tt-search-results__empty-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 40px !important;
	line-height: 1.1 !important;
	text-transform: none !important;
	color: #000 !important;
	overflow-wrap: anywhere;
}

.tt-search-results__empty-text {
	max-width: 640px;
	font-size: 16px;
	line-height: 1.65;
	color: #434342;
}

/* ---- Sidebar --------------------------------------------------------------- */
.tt-search-results__side {
	position: sticky;
	top: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.tt-search-results__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	box-shadow: inset 0 0 0 1px #e2e2de;
}

.tt-search-results__card--platforms {
	gap: 8px;
}

.tt-search-results__card-label,
.tt-search-results__help-label {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-search-results__card--platforms .tt-search-results__card-label {
	margin-bottom: 8px;
}

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

.tt-search-results__chip {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	background: #f4f4f1;
	font-size: 15px;
	text-decoration: none !important;
	color: #000 !important;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.tt-search-results__chip--light {
	background: #fff;
}

.tt-search-results__chip:hover {
	background: var(--wp--preset--color--red, #cf2026);
	color: #fff !important;
}

.tt-search-results__platform {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	border-bottom: 1px solid #e2e2de;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 17px;
	text-decoration: none !important;
	color: #000 !important;
	transition: color 0.25s ease;
}

.tt-search-results__platform:last-child {
	border-bottom: 0;
}

.tt-search-results__platform span {
	color: var(--wp--preset--color--grey-light, #adadad);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease;
}

.tt-search-results__platform:hover {
	color: var(--wp--preset--color--red, #cf2026) !important;
}

.tt-search-results__platform:hover span {
	color: var(--wp--preset--color--red, #cf2026);
	transform: translateX(6px);
}

/* Dark help card with the faint diamond mark bottom-right. */
.tt-search-results__help {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
	padding: 36px 32px;
	background: var(--wp--preset--color--ink, #141412);
	color: #fff;
}

.tt-search-results__help-mark {
	position: absolute;
	right: -18px;
	bottom: -14px;
	display: block;
	opacity: 0.12;
	pointer-events: none;
}

.tt-search-results__help-label {
	color: var(--wp--preset--color--red-bright, #ff4349);
}

.tt-search-results__help-title {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 28px;
	line-height: 1.15;
}

.tt-search-results__help-text,
.tt-search-results__help-hours {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-search-results__help-hours {
	margin-top: -10px !important;
	font-size: 14px;
}

.tt-search-results__help-phone {
	font-weight: 600;
	font-size: 24px;
	text-decoration: none !important;
	color: #fff !important;
	transition: color 0.2s ease;
}

.tt-search-results__help-phone:hover {
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-search-results__help-actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.tt-search-results__help-btn {
	padding: 11px 18px;
	letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
	.tt-search-results__row {
		animation: none;
	}
}

/* ---- Tablet (≤1099px): sidebar under the results, 2-up --------------------- */
@media (max-width: 1099px) {
	.tt-search-results__hero,
	.tt-search-results__body {
		padding-inline: 32px;
	}

	.tt-search-results__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 72px;
	}

	.tt-search-results__side {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Mobile (≤767px) ------------------------------------------------------- */
@media (max-width: 767px) {
	.tt-search-results__hero,
	.tt-search-results__body {
		padding-inline: 16px;
	}

	.tt-search-results__title {
		font-size: 38px !important;
	}

	.tt-search-results__box {
		height: 54px;
	}

	.tt-search-results__input {
		font-size: 16px;
	}

	.tt-search-results__clear {
		flex-basis: 40px;
	}

	.tt-search-results__submit {
		flex-basis: 54px;
	}

	.tt-search-results__submit-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.tt-search-results__tab {
		gap: 8px;
		height: 40px;
		padding: 0 14px;
		font-size: 13px;
	}

	.tt-search-results__pagination {
		flex-direction: column;
		align-items: flex-start;
	}

	.tt-search-results__pages {
		gap: 6px;
	}

	.tt-search-results__page {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}

	.tt-search-results__row {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 16px;
		padding: 26px 0;
	}

	.tt-search-results__row--no-thumb {
		grid-template-columns: minmax(0, 1fr);
	}

	.tt-search-results__item-title {
		font-size: 21px !important;
	}

	.tt-search-results__snippet {
		font-size: 15px;
	}

	.tt-search-results__foot .tt-search-results__fits {
		display: none;
	}

	.tt-search-results__row--no-thumb .tt-search-results__foot .tt-search-results__fits {
		display: inline;
	}

	.tt-search-results__empty-title {
		font-size: 28px !important;
	}

	.tt-search-results__side {
		display: flex;
	}
}
