.gbt-product-search {
	position: relative;
	width: min(100%, 420px);
}

.gbt-product-search .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gbt-product-search--compact {
	width: min(100%, 320px);
	margin-left: auto;
}

.gbt-product-search--header {
	width: 100%;
	max-width: none;
	margin-left: 0;
}

.gbt-product-search--header .gbt-product-search__panel {
	left: 0;
	right: 0;
	width: 100%;
	min-width: 100%;
}

.gbt-product-search.is-open {
	z-index: 45;
}

.gbt-product-search__control {
	position: relative;
	display: flex;
	align-items: center;
}

.gbt-product-search__icon {
	position: absolute;
	left: 14px;
	width: 18px;
	height: 18px;
	color: #8b817b;
	pointer-events: none;
}

.gbt-product-search__input {
	width: 100%;
	height: 42px;
	padding: 0 40px 0 42px;
	border: 1px solid #ead6cb;
	border-radius: 999px;
	background: #fffaf5;
	color: #17110f;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.gbt-product-search__input::-webkit-search-decoration,
.gbt-product-search__input::-webkit-search-cancel-button,
.gbt-product-search__input::-webkit-search-results-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.gbt-product-search__input::-ms-clear,
.gbt-product-search__input::-ms-reveal {
	display: none;
	width: 0;
	height: 0;
}

.gbt-product-search__input:focus {
	outline: none;
	border-color: #df2f24;
	box-shadow: 0 0 0 3px rgba(223, 47, 36, .12);
}

.gbt-product-search__clear {
	position: absolute;
	right: 8px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8b817b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gbt-product-search__clear:hover,
.gbt-product-search__clear:focus-visible {
	color: #df2f24;
	background: #fff0ea;
	outline: none;
}

.gbt-product-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 40;
	overflow: hidden;
	border: 1px solid #ead6cb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(23, 17, 15, .12);
}

.gbt-product-search.is-loading .gbt-product-search__panel {
	opacity: .96;
}

.gbt-product-search__status {
	padding: 14px 16px;
	color: #8b817b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.gbt-product-search__results {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: min(420px, 52vh);
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.gbt-product-search__result {
	border-bottom: 1px solid #f1e4da;
}

.gbt-product-search__result:last-child {
	border-bottom: 0;
}

.gbt-product-search__result-link {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 12px 14px;
	color: inherit;
	text-decoration: none;
	transition: background .15s ease;
}

.gbt-product-search__result-link:hover,
.gbt-product-search__result-link:focus {
	background: #fff4ea;
	outline: none;
}

.gbt-product-search__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid #f1e4da;
	border-radius: 10px;
	background: #fff8ef;
	overflow: hidden;
	flex-shrink: 0;
}

.gbt-product-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.gbt-product-search__thumb--empty {
	background: linear-gradient(180deg, #fff8ef 0%, #fff1e6 100%);
}

.gbt-product-search__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.gbt-product-search__title {
	margin: 0;
	color: #17110f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gbt-product-search__details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}

.gbt-product-search__subtitle,
.gbt-product-search__sku {
	color: #8b817b;
	font-size: 12px;
	line-height: 1.35;
	min-width: 0;
}

.gbt-product-search__subtitle {
	flex: 1 1 100%;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gbt-product-search__sku {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.gbt-product-search__badge {
	flex: 0 1 auto;
	max-width: 100%;
	padding: 3px 8px;
	border-radius: 999px;
	background: #fff0ea;
	color: #df2f24;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gbt-product-search__footer {
	padding: 12px 14px 14px;
	border-top: 1px solid #f1e4da;
	background: #fffdf9;
}

.gbt-product-search__view-all {
	display: inline-flex;
	align-items: center;
	color: #df2f24;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.gbt-product-search__view-all:hover,
.gbt-product-search__view-all:focus-visible {
	text-decoration: underline;
}

.gbt-product-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.gbt-product-topbar .gbt-breadcrumb {
	margin-bottom: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.product-toolbar .gbt-product-search {
	flex: 1 1 360px;
	max-width: 420px;
}

@media (max-width: 960px) {
	.gbt-product-list-hero__top {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.gbt-product-list-hero__search {
		width: 100%;
	}

	.gbt-product-search--header {
		max-width: none;
		margin-left: 0;
	}

	.gbt-product-search--header .gbt-product-search__panel {
		left: 0;
		right: 0;
		width: 100%;
	}

	.gbt-product-search__input {
		height: 44px;
		font-size: 16px;
	}

	.gbt-product-search__results {
		max-height: min(360px, 48vh);
	}

	.gbt-product-search__result-link {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.gbt-product-search__thumb {
		width: 52px;
		height: 52px;
	}

	.gbt-product-search__title {
		font-size: 15px;
	}

	.gbt-product-search__details {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.gbt-product-search__sku,
	.gbt-product-search__badge {
		max-width: 100%;
	}

	.product-toolbar {
		flex-wrap: wrap;
	}

	.gbt-product-topbar {
		flex-direction: column;
		align-items: stretch;
	}

	.gbt-product-search--compact {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	.gbt-product-search__panel {
		border-radius: 12px;
		box-shadow: 0 16px 36px rgba(23, 17, 15, .16);
	}

	.gbt-product-search__footer {
		position: sticky;
		bottom: 0;
		z-index: 1;
	}
}
