/* ZHIYAR — shared glass custom-dropdown (cream/green/gold, matching the header search-category dropdown).
   Built on <details>/<summary> so open/close is native — no JS dependency for that part. */

.zhiyar-select-row__label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.zhiyar-select {
	position: relative;
	display: block;
	max-width: 420px;
}

.zhiyar-select__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(201, 160, 84, 0.4);
	background: rgba(255, 255, 255, 0.5);
	color: var(--ast-global-color-3, #12241c);
	font-family: inherit;
	font-size: 1em;
	cursor: pointer;
	list-style: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zhiyar-select__trigger::-webkit-details-marker {
	display: none;
}

.zhiyar-select__trigger::marker {
	content: '';
}

.zhiyar-select__trigger:hover {
	border-color: rgba(201, 160, 84, 0.7);
}

.zhiyar-select[open] > .zhiyar-select__trigger {
	box-shadow: 0 0 0 3px rgba(201, 160, 84, 0.3);
}

.zhiyar-select__value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zhiyar-select__chevron {
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--ast-global-color-1, #a9813f);
	transition: transform 0.2s ease;
}

.zhiyar-select[open] .zhiyar-select__chevron {
	transform: rotate(180deg);
}

/* The open panel — fully custom, so it can actually be glassy/rounded (native <select> popups can't be). */
.zhiyar-select__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(250, 247, 240, 0.78) 100%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid rgba(201, 160, 84, 0.3);
	border-radius: 16px;
	box-shadow: 0 18px 40px -12px rgba(13, 31, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	z-index: 20;
}

.zhiyar-select__option {
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 0.95em;
	color: var(--ast-global-color-3, #12241c);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.zhiyar-select__option:hover {
	background: rgba(201, 160, 84, 0.16);
}

.zhiyar-select__option.is-selected {
	background: var(--ast-global-color-2, #1a3d2e);
	color: var(--ast-global-color-4, #f5f0e6);
	font-weight: 600;
}

.zhiyar-select__native {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}
