.tps-food-app,
.tps-product-detail {
	color: #2d2d3a;
	font-family: "Nunito", "Host Grotesk", system-ui, sans-serif;
}

.tps-food-app {
	--tps-bg: #ded8cd;
	--tps-surface: #f2f2f4;
	--tps-divider: #d7d8df;
	--tps-accent: #efc28f;
	--tps-text: #2b2d43;
	--tps-muted: #9295a6;
	--tps-submit: #f38d7b;
	--tps-filter: #9ec6ea;
	background: var(--tps-bg);
	border-radius: 34px;
	padding: 52px 56px 64px;
}

.tps-food-search-shell {
	display: grid;
	gap: 34px;
}

.tps-food-hero {
	align-items: center;
	display: grid;
	gap: 46px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.tps-food-hero__copy h1 {
	color: var(--tps-text);
	font-size: clamp(48px, 6vw, 54px);
	font-weight: 700;
	line-height: 1.07;
	margin: 0;
	max-width: 12ch;
}

.tps-food-hero__copy .tps-highlight {
	background: linear-gradient(transparent 64%, var(--tps-accent) 64%);
	padding: 0 0.08em;
}

.tps-food-hero__media {
	background: #aab39f;
	border-radius: 30px;
	box-shadow: 0 14px 32px rgba(31, 37, 55, 0.12);
	min-height: 328px;
	overflow: hidden;
}

.tps-food-hero__media img,
.tps-food-hero__media-fallback {
	display: block;
	height: 100%;
	width: 100%;
}

.tps-food-hero__media img {
	object-fit: cover;
}

.tps-food-hero__media-fallback {
	background:
		radial-gradient(circle at 22% 40%, rgba(255, 255, 255, 0.28), transparent 50%),
		radial-gradient(circle at 72% 65%, rgba(255, 203, 145, 0.34), transparent 48%),
		linear-gradient(135deg, #4c6b54 0%, #1f3c2d 45%, #13281f 100%);
}

.tps-eyebrow {
	color: #ff8d7c;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px;
}

.tps-product-detail h1 {
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	margin: 0 0 12px;
}

.tps-product-detail p {
	color: #4a5565;
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
}

.tps-food-search {
	align-items: stretch;
	background: var(--tps-surface);
	border: 1px solid var(--tps-divider);
	border-radius: 999px;
	display: grid;
	grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)) auto auto;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(26, 31, 49, 0.12);
}

.tps-food-search__field {
	align-items: center;
	border-right: 1px solid var(--tps-divider);
	display: flex;
	gap: 8px;
	min-height: 86px;
	padding: 0 26px;
}

.tps-food-search__field--query input {
	background: transparent;
	border: 0;
	color: var(--tps-text);
	font: inherit;
	font-size: 18px;
	line-height: 1.3;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.tps-food-search__field--query input::placeholder {
	color: var(--tps-muted);
}

.tps-food-search__field--query input:focus {
	outline: none;
}

.tps-food-search__fake-select {
	color: var(--tps-text);
	font-size: 16px;
	font-weight: 600;
	justify-content: space-between;
	line-height: 1.2;
	white-space: nowrap;
}

.tps-food-search__chevron {
	color: #9599ab;
	font-size: 16px;
	line-height: 1;
}

.tps-food-search__button,
.tps-buy-box a {
	align-items: center;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	text-decoration: none;
}

.tps-food-search__button {
	color: #fff;
	height: 66px;
	margin: auto 10px;
	padding: 0;
	width: 66px;
}

.tps-food-search__button svg {
	display: block;
	height: 30px;
	width: 30px;
}

.tps-food-search__button--filter {
	background: var(--tps-filter);
}

.tps-food-search__button--submit {
	background: var(--tps-submit);
	margin-left: 0;
}

.tps-buy-box a {
	background: #ffcc9f;
	color: #2d2d3a;
	padding: 13px 22px;
}

.tps-food-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 30px 0 0;
}

.tps-product-tile {
	background: #efe7db;
	border-radius: 24px;
	box-shadow: 0 12px 24px rgba(45, 45, 58, 0.12);
	overflow: hidden;
}

.tps-product-tile__image {
	align-items: center;
	aspect-ratio: 1;
	background: #f9f8f6;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.tps-product-tile__image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tps-product-tile__image span {
	color: #ff8d7c;
	font-size: 42px;
	font-weight: 800;
}

.tps-product-tile__body {
	padding: 22px;
}

.tps-product-tile__body p {
	color: #ff8d7c;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
}

.tps-product-tile h3 {
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 18px;
}

.tps-product-tile a {
	color: inherit;
	text-decoration: none;
}

.tps-product-stats {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tps-product-stats span {
	background: #ff8d7c;
	border-radius: 18px;
	color: rgba(255, 255, 255, 0.82);
	display: grid;
	font-size: 11px;
	justify-items: center;
	min-height: 62px;
	padding: 10px 6px;
	text-align: center;
}

.tps-product-stats strong {
	color: #fff;
	display: block;
	font-size: 16px;
	line-height: 1.4;
}

.tps-back-link {
	color: #4a5565;
	display: inline-flex;
	font-weight: 700;
	margin: 24px 0;
	text-decoration: none;
}

.tps-product-detail__top {
	display: grid;
	gap: 56px;
	grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
	margin-bottom: 56px;
}

.tps-product-detail__image {
	aspect-ratio: 1;
	background: #efe7db;
	border-radius: 24px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	position: relative;
}

.tps-product-detail__image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tps-fav-button {
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
	color: #ff8d7c;
	cursor: pointer;
	font-size: 26px;
	height: 56px;
	position: absolute;
	right: 24px;
	top: 24px;
	width: 56px;
}

.tps-fav-button.is-active {
	background: #ff8d7c;
	color: #fff;
}

.tps-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.tps-tags span {
	background: #efe7db;
	border-radius: 999px;
	color: #2d2d3a;
	font-size: 13px;
	padding: 8px 14px;
}

.tps-product-detail__copy {
	padding-top: 12px;
}

.tps-product-stats--large {
	margin: 28px 0;
}

.tps-product-stats--large span {
	background: #efe7db;
	color: #4a5565;
	min-height: 84px;
}

.tps-product-stats--large strong {
	color: #ff8d7c;
	font-size: 24px;
}

.tps-buy-box,
.tps-detail-band {
	background: #efe7db;
	border-radius: 20px;
	padding: 24px;
}

.tps-buy-box {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr auto;
}

.tps-buy-box span {
	color: #4a5565;
	display: block;
	font-size: 14px;
}

.tps-buy-box strong {
	display: block;
	font-size: 24px;
	margin-top: 6px;
}

.tps-detail-band {
	margin: 24px 0;
}

.tps-detail-band h2 {
	font-size: 24px;
	margin: 0 0 18px;
}

.tps-nutrients {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.tps-nutrients span {
	display: grid;
	gap: 4px;
	min-width: 84px;
}

.tps-nutrients strong {
	color: #2d2d3a;
}

.tps-empty {
	background: #efe7db;
	border-radius: 16px;
	padding: 24px;
}

.tps-single-product-actions {
	display: flex;
	justify-content: flex-end;
	margin: 24px 0 0;
}

.tps-resync-form button {
	background: #2d2d3a;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: 12px 18px;
}

@media (max-width: 1200px) {
	.tps-food-app {
		padding: 40px 28px 52px;
	}

	.tps-food-hero {
		gap: 30px;
		grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
	}

	.tps-food-search {
		grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto auto;
	}

	.tps-food-search__field:nth-of-type(5) {
		display: none;
	}
}

@media (max-width: 900px) {
	.tps-product-detail__top,
	.tps-buy-box {
		grid-template-columns: 1fr;
	}

	.tps-food-app {
		border-radius: 0;
		padding: 0 0 44px;
	}

	.tps-food-search-shell {
		gap: 22px;
	}

	.tps-food-hero {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.tps-food-hero__media {
		border-radius: 0;
		box-shadow: none;
		min-height: 300px;
		order: -1;
	}

	.tps-food-hero__copy {
		padding: 16px;
	}

	.tps-food-hero__copy h1 {
		font-size: clamp(44px, 10vw, 68px);
		max-width: 11ch;
	}

	.tps-food-search {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: block;
		overflow: visible;
		padding: 0 16px;
	}

	.tps-food-search__field--query {
		background: var(--tps-surface);
		border: 1px solid var(--tps-divider);
		border-radius: 999px;
		box-shadow: 0 8px 18px rgba(26, 31, 49, 0.12);
		min-height: 72px;
		padding: 0 22px;
	}

	.tps-food-search__field--query input {
		font-size: 18px;
	}

	.tps-food-search__fake-select,
	.tps-food-search__button {
		display: none;
	}

	.tps-food-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 20px 16px 0;
	}
}

@media (max-width: 640px) {
	.tps-food-grid,
	.tps-product-stats {
		grid-template-columns: 1fr;
	}

	.tps-food-hero__media {
		min-height: 270px;
	}

	.tps-food-hero__copy h1 {
		font-size: clamp(34px, 13vw, 52px);
	}

	.tps-food-search__field--query input,
	.tps-food-search__fake-select {
		font-size: 16px;
	}
}
