/* Ghetaldus – prijedlozi pretrage (Avoco, 27.11.2026.) */

.gh-s-host {
	position: relative;
}

.gh-s-panel {
	--gh-blue: #0e4488;
	--gh-text: #202532;
	--gh-muted: #6b7280;
	--gh-line: #eceef2;
	--gh-hover: #f3f6fb;

	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 1001;
	width: min(820px, calc(100vw - 32px));
	max-height: min(75vh, 640px);
	overflow-y: auto;
	background: #fff;
	color: var(--gh-text);
	border: 1px solid var(--gh-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .12);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}

.gh-s-panel[hidden] {
	display: none;
}

.gh-s-panel a {
	color: inherit;
	text-decoration: none;
}

.gh-s-grid {
	display: grid;
	grid-template-columns: 1fr;
}

.gh-s-grid--two {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.gh-s-col {
	padding: 12px;
	min-width: 0;
}

.gh-s-grid--two .gh-s-side {
	border-left: 1px solid var(--gh-line);
	padding: 16px 20px;
}

/* Proizvodi */
.gh-s-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 6px;
}

.gh-s-img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gh-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.gh-s-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gh-s-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gh-s-title {
	font-size: 13px;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-s-price {
	font-weight: 600;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
}

.gh-s-price del {
	color: var(--gh-muted);
	font-weight: 400;
}

.gh-s-price ins {
	text-decoration: none;
}

/* Bazna (sidrena) cijena – manje i diskretno */
.gh-s-price .anchor-pricing-anchor-price {
	flex-basis: 100%;
	font-size: 11px;
	font-weight: 400;
	color: var(--gh-muted);
}

.gh-s-badge {
	background: #d92d20;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
}

.gh-s-all {
	display: block;
	margin-top: 8px;
	padding: 12px;
	text-align: center;
	font-weight: 600;
	color: #fff !important;
	background: var(--gh-blue);
	border-radius: 0;
}

/* Desni stupac */
.gh-s-group + .gh-s-group {
	margin-top: 18px;
}

.gh-s-heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gh-text);
	margin-bottom: 6px;
}

.gh-s-link {
	display: block;
	padding: 5px 8px;
	margin: 0 -8px;
	border-radius: 4px;
}

.gh-s-count,
.gh-s-muted {
	color: var(--gh-muted);
	font-size: 12px;
}

/* Hover + odabir tipkovnicom */
.gh-s-product:hover,
.gh-s-link:hover,
.gh-s-nav.is-active {
	background: var(--gh-hover);
}

.gh-s-all:hover,
.gh-s-all.is-active {
	background: #0b376e;
}

.gh-s-panel strong {
	font-weight: 700;
}

/* Nema rezultata */
.gh-s-empty {
	padding: 20px;
}

.gh-s-empty-title {
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 4px;
}

.gh-s-empty-text {
	color: var(--gh-muted);
	margin: 0 0 14px;
}

.gh-s-empty-text a {
	color: var(--gh-blue) !important;
	text-decoration: underline !important;
}

.gh-s-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.gh-s-chip {
	padding: 4px 10px;
	border: 1px solid var(--gh-line);
	border-radius: 999px;
	font-size: 13px;
}

/* Učitavanje */
.gh-s-host.gh-s-loading input {
	background-image: linear-gradient(90deg, transparent, rgba(14, 68, 136, .08), transparent);
	background-size: 200% 100%;
	animation: gh-s-loading 1s linear infinite;
}

@keyframes gh-s-loading {
	from { background-position: 100% 0; }
	to { background-position: -100% 0; }
}

/* Mobitel / uski ekran: jedan stupac, panel unutar toka */
@media (max-width: 767px) {
	.gh-s-panel {
		position: static;
		width: 100%;
		max-height: 70vh;
		margin-top: 6px;
	}

	.gh-s-grid--two {
		grid-template-columns: 1fr;
	}

	/* kratke sekcije (kategorije, brendovi, modeli) iznad proizvoda */
	.gh-s-grid--two .gh-s-side {
		order: -1;
		border-left: 0;
		border-bottom: 1px solid var(--gh-line);
		padding: 12px 16px;
	}
}
