/* RoyalKonyha.hu – Warm Culinary Spotlight Search UI (Espresso, Linen & Terracotta) */

#rk-gs-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000010;
	background: rgba(38, 28, 22, 0.62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .18s ease;
}
#rk-gs-backdrop.open {
	display: block;
	opacity: 1;
}

#rk-gs-modal,
#rk-gs-modal *,
#rk-gs-modal *::before,
#rk-gs-modal *::after {
	box-sizing: border-box;
}

#rk-gs-modal {
	display: none;
	position: fixed;
	top: 3.5vh;
	left: 50%;
	transform: translateX(-50%) scale(0.985);
	z-index: 1000020;
	width: calc(100% - 28px);
	max-width: 1180px;
	max-height: 92vh;
	background: #fffdf9;
	border: 1px solid #e6ddd0;
	border-radius: 26px;
	box-shadow: 0 28px 75px rgba(38, 28, 22, 0.34);
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transition: opacity .18s ease, transform .18s ease;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #261c16;
}
#rk-gs-modal.open {
	display: flex;
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

@media (max-width: 860px) {
	#rk-gs-modal {
		inset: 0 !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		transform: none !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		margin: 0 !important;
		border-radius: 0 !important;
		border: none !important;
		box-shadow: none !important;
		overflow-x: hidden !important;
	}
}

/* Header Search Input Bar */
.rk-gs-header {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 15px 18px;
	border-bottom: 1px solid #ebe2d6;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fffdf9;
	flex-shrink: 0;
	margin: 0;
}
.rk-gs-input-wrap {
	position: relative;
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	align-items: center;
	background: #f4eee5;
	border: 1.5px solid #e6dccf;
	border-radius: 16px;
	padding: 0 14px;
	transition: all .16s ease;
}
.rk-gs-input-wrap:focus-within {
	background: #ffffff;
	border-color: #b84a1c;
	box-shadow: 0 0 0 3.5px rgba(184, 74, 28, 0.14);
}
.rk-gs-search-icon {
	width: 20px;
	height: 20px;
	color: #b84a1c;
	flex-shrink: 0;
}
#rk-gs-input {
	width: 100%;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 12px 10px;
	font-size: 15.5px;
	font-weight: 600;
	color: #261c16;
	-webkit-appearance: none;
	appearance: none;
}
#rk-gs-input::-webkit-search-cancel-button,
#rk-gs-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}
#rk-gs-input::placeholder {
	color: #8c7b70;
	font-weight: 500;
}
.rk-gs-clear-btn {
	display: none;
	background: #e6dccf;
	border: none;
	color: #4a3b32;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	transition: all .14s ease;
}
.rk-gs-clear-btn.visible {
	display: inline-flex;
}
.rk-gs-clear-btn:hover {
	background: #d5c7b6;
	color: #261c16;
}
.rk-gs-close-btn {
	background: #f4eee5;
	border: 1px solid #e6dccf;
	color: #3b2a21;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .15s ease;
	flex-shrink: 0;
}
.rk-gs-close-btn:hover {
	background: #261c16;
	border-color: #261c16;
	color: #fffdf9;
}

@media (max-width: 860px) {
	.rk-gs-header {
		padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px 12px;
		gap: 8px;
	}
	.rk-gs-input-wrap {
		height: 44px;
		padding: 0 11px;
		border-radius: 13px;
	}
	#rk-gs-input {
		padding: 0 8px;
		height: 42px;
		font-size: 16px;
	}
	.rk-gs-close-btn {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}
}

/* 2-Column Body Layout */
.rk-gs-body {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
	flex: 1 1 0%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}
@media (max-width: 860px) {
	.rk-gs-body {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
}

/* Sidebar Facets */
.rk-gs-sidebar {
	background: #faf5ee;
	border-right: 1px solid #ebe2d6;
	padding: 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}
@media (max-width: 860px) {
	#rk-gs-modal.is-init .rk-gs-sidebar {
		display: none !important;
	}
	.rk-gs-sidebar {
		width: 100%;
		max-width: 100%;
		border-right: none;
		border-bottom: 1px solid #ebe2d6;
		padding: 8px 12px;
		overflow-x: auto;
		overflow-y: hidden;
		flex-direction: row;
		align-items: center;
		gap: 6px;
		flex-shrink: 0;
		background: #fffdf9;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.rk-gs-sidebar::-webkit-scrollbar {
		display: none;
	}
	.rk-gs-side-section {
		display: flex;
		align-items: center;
		gap: 6px;
		flex-shrink: 0;
	}
	.rk-gs-side-section > .rk-gs-side-title,
	.rk-gs-desktop-only {
		display: none !important;
	}
}

.rk-gs-side-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #7c6d63;
	margin: 0 0 7px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.rk-gs-clear-recents {
	background: none;
	border: none;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	color: #8c7b70;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}
.rk-gs-clear-recents:hover {
	color: #b84a1c;
}

.rk-gs-facet-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
@media (max-width: 860px) {
	.rk-gs-facet-list {
		flex-direction: row;
		gap: 6px;
	}
}

.rk-gs-facet-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	text-align: left;
	padding: 7.5px 10px;
	border-radius: 11px;
	border: 1px solid transparent;
	background: transparent;
	color: #3b2a21;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: all .14s ease;
}
.rk-gs-fname-icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.rk-gs-fname-icon svg {
	color: #b84a1c;
	flex-shrink: 0;
}
.rk-gs-facet-btn.active .rk-gs-fname-icon svg {
	color: #fffdf9;
}
.rk-gs-facet-btn span.rk-gs-fname {
	word-break: break-word;
}
@media (max-width: 860px) {
	.rk-gs-facet-btn {
		white-space: nowrap;
		width: auto;
		background: #f4eee5;
		border-color: #e6dccf;
		border-radius: 999px;
		padding: 5px 11px;
		font-size: 12px;
		gap: 5px;
	}
}
.rk-gs-facet-btn:hover {
	background: #efe7dc;
	color: #261c16;
}
.rk-gs-facet-btn.active {
	background: #b84a1c !important;
	border-color: #9a3412 !important;
	color: #ffffff !important;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(184, 74, 28, 0.25);
}
.rk-gs-facet-cnt {
	font-size: 11px;
	background: rgba(38, 28, 22, 0.07);
	color: #5c493d;
	padding: 1px 6.5px;
	border-radius: 999px;
	font-weight: 700;
	flex-shrink: 0;
}
.rk-gs-facet-btn.active .rk-gs-facet-cnt {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.rk-gs-price-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #8c7b70;
	font-size: 12px;
}
.rk-gs-price-inputs input {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #dfd3c3;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	background: #ffffff;
	color: #261c16;
	outline: none;
}
.rk-gs-price-inputs input:focus {
	border-color: #b84a1c;
}

/* Main Results Area */
#rk-gs-main.rk-gs-main {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 16px 20px 20px 20px;
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1 1 auto;
	background: #fffdf9;
}
@media (max-width: 860px) {
	#rk-gs-main.rk-gs-main {
		max-width: 100% !important;
		overflow-y: visible;
		overflow-x: hidden !important;
		padding: 12px 12px 20px 12px !important;
	}
}

/* Suggestion Rails (Recent & Popular Culinary Queries) */
.rk-gs-sugg-wrap {
	width: 100%;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0e8dc;
}
.rk-gs-sugg-group {
	margin-bottom: 10px;
}
.rk-gs-sugg-group:last-child {
	margin-bottom: 0;
}
.rk-gs-chips-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.rk-gs-query-chip {
	background: #f5efe6;
	border: 1px solid #e6dccf;
	color: #3b2a21;
	border-radius: 999px;
	padding: 6px 12.5px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all .14s ease;
	white-space: nowrap;
}
.rk-gs-query-chip svg {
	width: 13px;
	height: 13px;
	color: #8c7b70;
	flex-shrink: 0;
}
.rk-gs-query-chip.hot {
	background: #fbf2e6;
	border-color: #ebd4b7;
	color: #8a3916;
}
.rk-gs-query-chip.hot svg {
	color: #b84a1c;
}
.rk-gs-query-chip:hover {
	background: #b84a1c;
	border-color: #b84a1c;
	color: #ffffff;
}
.rk-gs-query-chip:hover svg {
	color: #ffffff;
}

@media (max-width: 640px) {
	.rk-gs-chips-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-right: 12px;
	}
	.rk-gs-chips-row::-webkit-scrollbar {
		display: none;
	}
}

/* Toolbar */
.rk-gs-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid #f0e8dc;
}
.rk-gs-meta {
	font-size: 13px;
	color: #574c44;
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	min-width: 0;
	flex: 1 1 auto;
}
.rk-gs-meta strong {
	color: #261c16;
	font-weight: 800;
}
.rk-gs-trust-pill {
	font-size: 11px;
	font-weight: 700;
	color: #8a3916;
	background: #fbf2e6;
	padding: 2.5px 9px;
	border-radius: 999px;
	border: 1px solid #ebd4b7;
}
.rk-gs-active-flt {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2.5px 9px;
	border-radius: 999px;
	background: #261c16;
	color: #fffdf9;
	font-size: 11.5px;
	font-weight: 700;
	border: none;
	cursor: pointer;
}
.rk-gs-active-flt:hover {
	background: #b84a1c;
}
.rk-gs-sort-select {
	padding: 6.5px 11px;
	border-radius: 11px;
	border: 1px solid #e2d7c8;
	font-size: 12.5px;
	font-weight: 700;
	color: #3b2a21;
	background: #faf5ee;
	cursor: pointer;
	outline: none;
}
#rk-gs-modal.is-init .rk-gs-sort-select {
	display: none;
}
@media (max-width: 640px) {
	.rk-gs-trust-pill {
		display: none !important;
	}
	.rk-gs-sort-select {
		padding: 5px 8px;
		font-size: 12px;
		max-width: 155px;
	}
}

/* Matched Categories & Collections */
.rk-gs-mcat-box {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0e8dc;
}
.rk-gs-mcat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr));
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.rk-gs-mcat-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 13px;
	background: #faf5ee;
	border: 1px solid #e6dccf;
	text-decoration: none !important;
	color: #261c16 !important;
	transition: all .14s ease;
	min-width: 0;
}
.rk-gs-mcat-card:hover {
	border-color: #b84a1c;
	background: #fbf2e6;
	transform: translateY(-1px);
}
.rk-gs-mcat-txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.rk-gs-mcat-path {
	font-size: 10.5px;
	color: #8c7b70;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rk-gs-mcat-name {
	font-size: 12.5px;
	font-weight: 800;
	color: #261c16;
	line-height: 1.3;
	word-break: break-word;
}
.rk-gs-mcat-cnt {
	font-size: 11px;
	font-weight: 800;
	color: #8a3916;
	background: #f5e4cd;
	padding: 2px 8px;
	border-radius: 999px;
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.rk-gs-mcat-box {
		margin-bottom: 10px;
		padding-bottom: 9px;
	}
	.rk-gs-mcat-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 7px;
		padding-right: 12px;
	}
	.rk-gs-mcat-grid::-webkit-scrollbar {
		display: none;
	}
	.rk-gs-mcat-card {
		flex-shrink: 0;
		max-width: 240px;
		padding: 7px 10px;
	}
	.rk-gs-mcat-name {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 12px;
	}
}

/* Product Cards Grid (4:3 Real Home-Kitchen Photography!) */
.rk-gs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
	gap: 14px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
@media (max-width: 640px) {
	.rk-gs-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
	}
}

.rk-gs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	border: 1px solid #e8dfd3;
	border-radius: 18px;
	padding: 10px;
	background: #ffffff;
	transition: all .16s ease;
	color: #261c16;
	min-width: 0;
	overflow: hidden;
}
.rk-gs-card:hover,
.rk-gs-card.kb-active {
	border-color: #b84a1c;
	box-shadow: 0 12px 28px rgba(44, 30, 23, 0.09);
	transform: translateY(-2px);
}
@media (max-width: 640px) {
	.rk-gs-card {
		flex-direction: row;
		gap: 11px;
		align-items: center;
		padding: 9px 10px;
		border-radius: 15px;
	}
	.rk-gs-card:hover {
		transform: none;
	}
}

.rk-gs-img-box {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f5efe6;
	border-radius: 13px;
	overflow: hidden;
	display: block;
	margin-bottom: 9px;
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.rk-gs-img-box {
		width: 86px;
		height: 68px;
		aspect-ratio: auto;
		margin-bottom: 0;
		border-radius: 11px;
	}
}
.rk-gs-img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}
.rk-gs-card:hover .rk-gs-img-box img {
	transform: scale(1.04);
}

.rk-gs-img-badge {
	position: absolute;
	top: 7px;
	left: 7px;
	background: rgba(38, 28, 22, 0.86);
	backdrop-filter: blur(4px);
	color: #fffdf9;
	font-size: 10px;
	font-weight: 800;
	padding: 2.5px 7.5px;
	border-radius: 999px;
}
@media (max-width: 640px) {
	.rk-gs-img-badge {
		display: none;
	}
}

.rk-gs-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	min-width: 0;
}
.rk-gs-cat-line {
	font-size: 11px;
	color: #8c7b70;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}
.rk-gs-title {
	font-size: 13px;
	font-weight: 700;
	color: #261c16;
	line-height: 1.36;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 6px 0;
	text-decoration: none !important;
}
.rk-gs-title:hover {
	color: #b84a1c;
}
mark.rk-gs-hl {
	background: #fde68a;
	color: #261c16;
	padding: 0 2px;
	border-radius: 3px;
	font-weight: 800;
}

.rk-gs-stock-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 8px;
	font-size: 11px;
	margin-bottom: 8px;
}
.rk-gs-stock-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #059669;
	display: inline-block;
	margin-right: 4px;
}
.rk-gs-stock-fast {
	color: #047857;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
}
.rk-gs-stock-std {
	color: #574c44;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
}
.rk-gs-stock-pre {
	color: #9a5111;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
}
.rk-gs-stock-pre .rk-gs-stock-dot {
	background: #d97706;
}
.rk-gs-cart-btn-pre {
	background: #261c16 !important;
}
.rk-gs-cart-btn-pre:hover {
	background: #b84a1c !important;
}
.rk-gs-ind-tag {
	font-size: 10.5px;
	font-weight: 700;
	color: #8a3916;
	background: #fbf2e6;
	padding: 1px 6px;
	border-radius: 6px;
}

.rk-gs-bottom-row {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding-top: 7px;
	border-top: 1px solid #f2ebe1;
}
@media (max-width: 640px) {
	.rk-gs-bottom-row {
		padding-top: 2px;
		border-top: none;
	}
}
.rk-gs-price-wrap {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}
.rk-gs-cur-price {
	font-size: 14.5px;
	font-weight: 800;
	color: #261c16;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.rk-gs-unit-price {
	font-size: 10.5px;
	font-weight: 700;
	color: #b84a1c;
	white-space: nowrap;
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}

.rk-gs-cart-btn {
	background: #261c16;
	color: #fffdf9 !important;
	border: none;
	border-radius: 11px;
	padding: 7.5px 11px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all .15s ease;
	text-decoration: none !important;
	white-space: nowrap;
	flex-shrink: 0;
}
.rk-gs-cart-btn:hover {
	background: #b84a1c;
}
.rk-gs-cart-btn.added {
	background: #047857 !important;
}
@media (max-width: 640px) {
	.rk-gs-cart-btn {
		background: #b84a1c;
		padding: 6.5px 10px;
		font-size: 11.5px;
	}
}

/* Footer Bar */
.rk-gs-footer {
	width: 100%;
	padding: 11px 20px;
	background: #faf5ee;
	border-top: 1px solid #ebe2d6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.rk-gs-kbd-hints {
	font-size: 12px;
	color: #7c6d63;
	display: flex;
	align-items: center;
	gap: 14px;
}
.rk-gs-kbd {
	background: #fffdf9;
	border: 1px solid #d9cbb9;
	border-radius: 6px;
	padding: 1px 6px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-weight: 700;
	color: #3b2a21;
	box-shadow: 0 1px 0 #d9cbb9;
}
.rk-gs-view-all-btn {
	background: #b84a1c;
	color: #ffffff !important;
	border: none;
	border-radius: 13px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-shadow: 0 4px 12px rgba(184, 74, 28, 0.24);
	transition: all .15s ease;
	margin-left: auto;
}
.rk-gs-view-all-btn:hover {
	background: #9a3412;
	transform: translateY(-1px);
}
@media (max-width: 640px) {
	.rk-gs-kbd-hints {
		display: none;
	}
	#rk-gs-modal:not(.has-more) .rk-gs-footer {
		display: none;
	}
	.rk-gs-footer {
		padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)) 12px;
		background: #fffdf9;
	}
	.rk-gs-view-all-btn {
		width: 100%;
		margin-left: 0;
	}
}
