/* Etik Bakkal Çekirdek — arama önerileri: tür etiketi (Marka, Kategori, Yazı). */

.autocomplete-suggestion .etik-search-type {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	background: #f1f1ee;
	color: #555;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
}

.autocomplete-suggestion .search-image {
	object-fit: contain;
	background: #fff;
}

/* Arama alanı odaktayken açılan keşif paneli. */
.searchform .live-search-results.etik-has-panel {
	display: block;
	position: static;
}

.etik-search-panel {
	--etik-search-radius: 14px;
	--etik-search-control-radius: var(--etik-btn-radius, 10px);
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 10000;
	width: min(920px, calc(100vw - 32px));
	max-height: min(720px, calc(100vh - 130px));
	padding: 24px 28px 28px;
	overflow-y: auto;
	border: 2px solid #ec671c;
	border-radius: var(--etik-search-radius);
	background: #fff;
	box-shadow: 0 14px 42px rgba(32, 30, 27, .18);
	transform: translateX(-50%);
}

.etik-search-panel[hidden] {
	display: none !important;
}

.etik-search-panel__section + .etik-search-panel__section {
	margin-top: 25px;
}

.etik-search-panel__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 13px;
}

.etik-search-panel__heading h3 {
	margin: 0;
	color: #333;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.etik-search-panel__more,
.etik-search-panel__clear {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ec671c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.etik-search-panel__history-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.etik-search-panel__history-row {
	display: flex;
	align-items: center;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid #e7e7e4;
	border-radius: var(--etik-search-control-radius);
	background: #f6f6f4;
}

.etik-search-panel__history-remove {
	display: inline-grid;
	flex: 0 0 auto;
	order: 2;
	width: 30px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #aaa;
	font-size: 19px;
	font-weight: 300;
	line-height: 1;
	place-items: center;
	cursor: pointer;
}

.etik-search-panel__history-remove:hover,
.etik-search-panel__history-remove:focus {
	color: #555;
}

.etik-search-panel__empty {
	margin: 0;
	padding: 9px 0 3px;
	color: #777;
	font-size: 14px;
}

.etik-search-panel__history-item {
	min-width: 0;
	max-width: 300px;
	order: 1;
	padding: 9px 4px 9px 14px;
	border: 0;
	background: transparent;
	color: #353535;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}

.etik-search-panel__history-item:hover,
.etik-search-panel__history-item:focus {
	color: #ec671c;
}

.etik-search-panel__products {
	display: grid;
	grid-auto-columns: minmax(190px, 1fr);
	grid-auto-flow: column;
	gap: 12px;
	padding-bottom: 4px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
}

.etik-search-product {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	min-height: 112px;
	overflow: hidden;
	border: 1px solid #e2e2df;
	border-radius: var(--etik-search-radius);
	background: #fff;
	color: #333;
	scroll-snap-align: start;
}

.etik-search-product:hover {
	border-color: #ec671c;
	color: #333;
	box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}

.etik-search-product__image {
	width: 76px;
	height: 112px;
	padding: 8px;
	object-fit: contain;
	background: #fafafa;
}

.etik-search-product__body {
	display: flex;
	min-width: 0;
	padding: 12px 10px;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
}

.etik-search-product__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.etik-search-product__price {
	color: #18864b;
	font-size: 15px;
}

.etik-search-product__prices {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 3px 7px;
	line-height: 1.25;
}

.etik-search-product__regular {
	color: #888;
	font-size: 12px;
	font-weight: 400;
}

.etik-search-panel__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.etik-search-panel__chip {
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: var(--etik-search-control-radius);
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.2;
}

.etik-search-panel__chip:hover,
.etik-search-panel__chip.is-hot {
	border-color: #fee8d9;
	background: #fff4ec;
	color: #d9570e;
}

@media (max-width: 849px) {
	.etik-search-panel {
		position: fixed;
		top: var(--etik-search-mobile-top, 64px);
		left: 0;
		right: 0;
		z-index: 100000;
		width: auto;
		height: calc(100dvh - var(--etik-search-mobile-top, 64px));
		max-height: none;
		padding: 20px 16px 36px;
		border: 0;
		border-top: 1px solid #e4e4e4;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.etik-search-panel__section + .etik-search-panel__section {
		margin-top: 22px;
		padding-top: 20px;
		border-top: 8px solid #f5f5f3;
	}

	.etik-search-panel__heading h3 {
		font-size: 17px;
	}

	.etik-search-panel__more,
	.etik-search-panel__clear {
		font-size: 14px;
	}

	.etik-search-panel__history-row {
		height: 40px;
		min-height: 40px;
	}

	body .etik-search-panel button.etik-search-panel__history-remove {
		width: 29px;
		height: 40px;
		min-height: 40px !important;
		margin: 0;
		padding: 0 !important;
		line-height: 1 !important;
	}

	body .etik-search-panel button.etik-search-panel__history-item {
		display: flex;
		align-items: center;
		align-self: stretch;
		max-width: min(260px, calc(100vw - 80px));
		min-height: 40px !important;
		margin: 0;
		padding: 0 3px 0 13px !important;
		font-size: 14px;
		line-height: 1.25 !important;
	}

	.etik-search-panel__empty {
		padding-left: 2px;
	}

	.etik-search-panel__products {
		grid-auto-columns: minmax(220px, 76vw);
		gap: 10px;
	}

	.etik-search-product {
		grid-template-columns: 82px minmax(0, 1fr);
		min-height: 118px;
	}

	.etik-search-product__image {
		width: 82px;
		height: 118px;
	}

	.etik-search-panel__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 3px;
	}

	.etik-search-panel__chip {
		flex: 0 0 auto;
	}
}
