/* ==========================================================================
   Keranjang Kenangan - Live Search Dropdown Styling
   ========================================================================== */

.kk-header-search-bar {
	position: relative;
}

/* Hilangkan garis ganda (inner input outline) saat fokus agar kotak pencarian tetap bersih */
.kk-store .kk-header-search-bar input[type="search"]:focus,
.kk-store .kk-header-search-bar input[type="search"]:focus-visible,
.kk-store #masthead .kk-header-search-bar input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* Efek fokus search bar: garis tipis dengan pendaran oranye lembut (soft glowing orange) */
.kk-store .kk-header-search-bar:focus-within {
	border-color: #E67E22 !important;
	outline: none !important;
	box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.22), 0 0 8px rgba(230, 126, 34, 0.35) !important;
}

.kk-live-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #FFFDF8;
	border: 1px solid #D8CEBC;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(57, 43, 32, 0.12);
	z-index: 1000;
	overflow: hidden;
	animation: kkFadeInDown 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kkFadeInDown {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.kk-live-search-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

.kk-live-search-item {
	margin: 0;
	padding: 0;
}

.kk-live-search-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	text-decoration: none;
	color: #392B20;
	transition: background-color 120ms ease;
}

.kk-live-search-link:hover,
.kk-live-search-link:focus,
.kk-live-search-item.is-selected .kk-live-search-link {
	background-color: #F4EFE6;
	outline: none;
}

.kk-live-search-thumb {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	background: #ECE5D8;
	flex-shrink: 0;
	border: 1px solid #E5DDCF;
}

.kk-live-search-info {
	flex: 1;
	min-width: 0;
}

.kk-live-search-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: #392B20;
	margin: 0 0 2px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.kk-live-search-price {
	font-size: 0.82rem;
	color: #503923;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.kk-live-search-price .kk-ask-price {
	color: #706456;
	font-style: italic;
	font-size: 0.8rem;
}

.kk-live-search-footer {
	border-top: 1px solid #EBE4D8;
	padding: 10px 14px;
	background: #FAF7F0;
	text-align: center;
}

.kk-live-search-all {
	display: inline-block;
	font-size: 0.84rem;
	font-weight: 600;
	color: #503923;
	text-decoration: none;
	transition: color 120ms ease;
}

.kk-live-search-all:hover,
.kk-live-search-all:focus {
	color: #28583F;
	text-decoration: underline;
}

.kk-live-search-empty {
	padding: 18px 14px;
	text-align: center;
	color: #706456;
	font-size: 0.88rem;
	margin: 0;
}

.kk-live-search-loading {
	padding: 16px 14px;
	text-align: center;
	color: #706456;
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.kk-live-search-dropdown {
		position: fixed;
		top: auto;
		left: 12px;
		right: 12px;
		max-height: 75vh;
		overflow-y: auto;
	}
}
