/* Victor Search Overlay — scoped Liquid Glass search experience. */
.victor-shell-search {
	--victor-search-action: var( --victor-action, #155eef );
	--victor-search-ink: var( --victor-ink, #1f2329 );
	--victor-search-muted: var( --victor-text-muted, #6f7580 );
	--victor-search-subtle: var( --victor-text-subtle, #969ba4 );
	--victor-search-border: var( --victor-border, rgba( 31, 35, 41, .10 ) );
	position: fixed;
	z-index: var( --victor-shell-z-search, 2147483200 );
	inset: 0;
	display: grid;
	align-items: start;
	justify-items: center;
	box-sizing: border-box;
	padding: clamp( 68px, 9vh, 112px ) 20px 28px;
	overflow: hidden;
	direction: rtl;
	font-family: var( --victor-font-family, Peyda, Arial, sans-serif );
	pointer-events: none;
}

.victor-shell-search[hidden] {
	display: none;
}

.victor-shell-search *,
.victor-shell-search *::before,
.victor-shell-search *::after {
	box-sizing: border-box;
}

.victor-shell-search__backdrop {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: rgba( 238, 241, 246, .58 );
	opacity: 0;
	-webkit-backdrop-filter: blur( 18px ) saturate( 145% );
	backdrop-filter: blur( 18px ) saturate( 145% );
	transition: opacity .22s ease;
}

.victor-shell-search__surface {
	position: relative;
	z-index: 1;
	display: flex;
	width: min( 100%, 1040px );
	max-height: min( 82vh, 760px );
	max-height: min( 82dvh, 760px );
	overflow: hidden;
	border: 1px solid rgba( 255, 255, 255, .76 );
	border-radius: 28px;
	background: rgba( 255, 255, 255, .78 );
	box-shadow: 0 24px 64px rgba( 28, 34, 46, .14 ), 0 4px 14px rgba( 28, 34, 46, .06 ), inset 0 1px 0 rgba( 255, 255, 255, .92 );
	opacity: 0;
	-webkit-backdrop-filter: blur( 32px ) saturate( 175% );
	backdrop-filter: blur( 32px ) saturate( 175% );
	transform: translateY( 16px );
	transition: opacity .32s cubic-bezier( .2, .8, .2, 1 ), transform .32s cubic-bezier( .2, .8, .2, 1 );
	flex-direction: column;
}

.victor-shell-search.is-open,
.victor-shell-search.is-closing {
	pointer-events: auto;
}

.victor-shell-search.is-open .victor-shell-search__backdrop,
.victor-shell-search.is-open .victor-shell-search__surface {
	opacity: 1;
}

.victor-shell-search.is-open .victor-shell-search__surface {
	transform: translateY( 0 );
}

.victor-shell-search.is-closing .victor-shell-search__backdrop {
	transition-duration: .18s;
}

.victor-shell-search.is-closing .victor-shell-search__surface {
	transition-duration: .22s;
}

.victor-shell-search__header {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr ) auto auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 16px 18px;
	border-block-end: 1px solid var( --victor-search-border );
	background: rgba( 255, 255, 255, .46 );
	direction: rtl;
}

.victor-shell-search__search-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: var( --victor-search-muted );
}

.victor-shell-search__search-icon svg,
.victor-shell-search__clear svg,
.victor-shell-search__close svg,
.victor-shell-search__view-all svg,
.victor-shell-search__empty-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.victor-shell-search .victor-shell-search__input {
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var( --victor-search-ink );
	font: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	text-align: right;
	direction: rtl;
	appearance: none;
	-webkit-appearance: none;
}

.victor-shell-search .victor-shell-search__input::-webkit-search-cancel-button,
.victor-shell-search .victor-shell-search__input::-webkit-search-decoration {
	display: none;
	appearance: none;
	-webkit-appearance: none;
}

.victor-shell-search .victor-shell-search__input::placeholder {
	color: var( --victor-search-subtle );
	opacity: 1;
}

.victor-shell-search button.victor-shell-search__clear,
.victor-shell-search button.victor-shell-search__close,
.victor-shell-search button.victor-shell-search__text-button,
.victor-shell-search button.victor-shell-search__chip {
	margin: 0;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.victor-shell-search button.victor-shell-search__clear,
.victor-shell-search button.victor-shell-search__close {
	display: grid;
	place-items: center;
	width: 42px;
	min-width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var( --victor-search-muted );
	transition: color .18s ease, background-color .18s ease, transform .14s ease;
}

.victor-shell-search button.victor-shell-search__clear[hidden] {
	display: none;
}

.victor-shell-search button.victor-shell-search__clear:hover,
.victor-shell-search button.victor-shell-search__close:hover {
	border-color: transparent;
	background: rgba( 31, 35, 41, .065 );
	box-shadow: none;
	color: var( --victor-search-ink );
}

.victor-shell-search button.victor-shell-search__clear:active,
.victor-shell-search button.victor-shell-search__close:active,
.victor-shell-search button.victor-shell-search__chip:active {
	transform: scale( .97 );
}

.victor-shell-search button:focus-visible,
.victor-shell-search a:focus-visible,
.victor-shell-search .victor-shell-search__input:focus-visible {
	outline: 2px solid var( --victor-search-action );
	outline-offset: 2px;
}

.victor-shell-search__body {
	min-height: 260px;
	padding: 24px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.victor-shell-search__state[hidden],
.victor-shell-search__section[hidden] {
	display: none;
}

.victor-shell-search__intro {
	margin: 0 0 22px;
	color: var( --victor-search-muted );
	font-size: 14px;
	line-height: 1.8;
}

.victor-shell-search__section + .victor-shell-search__section {
	margin-block-start: 26px;
}

.victor-shell-search__section h3,
.victor-shell-search__results-state h3 {
	margin: 0 0 12px;
	color: var( --victor-search-ink );
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

.victor-shell-search__section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 12px;
}

.victor-shell-search__section-heading h3 {
	margin: 0;
}

.victor-shell-search__section-heading > span {
	color: var( --victor-search-muted );
	font-size: 12px;
}

.victor-shell-search button.victor-shell-search__text-button {
	padding: 4px 2px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var( --victor-search-muted );
	font-size: 12px;
	font-weight: 500;
}

.victor-shell-search button.victor-shell-search__text-button:hover {
	background: transparent;
	color: var( --victor-search-ink );
}

.victor-shell-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.victor-shell-search__chips--centered {
	justify-content: center;
	margin-block-start: 18px;
}

.victor-shell-search button.victor-shell-search__chip {
	min-height: 36px;
	padding: 7px 14px;
	border: 1px solid rgba( 31, 35, 41, .09 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, .58 );
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, .76 );
	color: var( --victor-search-ink );
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .14s ease;
}

.victor-shell-search button.victor-shell-search__chip:hover {
	border-color: rgba( 21, 94, 239, .20 );
	background: rgba( 21, 94, 239, .065 );
	box-shadow: none;
	color: var( --victor-search-action );
}

.victor-shell-search__categories {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 10px;
}

.victor-shell-search__category {
	display: grid;
	grid-template-columns: 50px minmax( 0, 1fr );
	align-items: center;
	gap: 11px;
	min-width: 0;
	min-height: 64px;
	padding: 7px;
	border: 1px solid rgba( 31, 35, 41, .08 );
	border-radius: 17px;
	background: rgba( 255, 255, 255, .48 );
	color: var( --victor-search-ink );
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.victor-shell-search__category:hover {
	border-color: rgba( 21, 94, 239, .18 );
	background: rgba( 255, 255, 255, .74 );
	color: var( --victor-search-ink );
	transform: translateY( -1px );
}

.victor-shell-search__category img,
.victor-shell-search__category-placeholder {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 13px;
	background: rgba( 31, 35, 41, .055 );
	object-fit: cover;
}

.victor-shell-search__category span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.victor-shell-search__loading,
.victor-shell-search__results {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 10px;
}

.victor-shell-search__skeleton,
.victor-shell-search__result {
	display: grid;
	grid-template-columns: 76px minmax( 0, 1fr );
	align-items: center;
	gap: 13px;
	min-width: 0;
	min-height: 96px;
	padding: 10px;
	border: 1px solid rgba( 31, 35, 41, .075 );
	border-radius: 19px;
	background: rgba( 255, 255, 255, .50 );
}

.victor-shell-search__skeleton-image,
.victor-shell-search__result-image,
.victor-shell-search__result-image-placeholder {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 15px;
	background: rgba( 31, 35, 41, .065 );
	object-fit: cover;
}

.victor-shell-search__skeleton-copy {
	display: grid;
	gap: 9px;
}

.victor-shell-search__skeleton-copy i {
	display: block;
	width: 84%;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient( 100deg, rgba( 31, 35, 41, .06 ) 20%, rgba( 255, 255, 255, .72 ) 40%, rgba( 31, 35, 41, .06 ) 60% );
	background-size: 220% 100%;
	animation: victor-search-skeleton 1.45s ease-in-out infinite;
}

.victor-shell-search__skeleton-copy i:nth-child( 2 ) {
	width: 58%;
}

.victor-shell-search__skeleton-copy i:nth-child( 3 ) {
	width: 42%;
}

.victor-shell-search__result {
	color: var( --victor-search-ink );
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.victor-shell-search__result:hover {
	border-color: rgba( 21, 94, 239, .17 );
	background: rgba( 255, 255, 255, .78 );
	color: var( --victor-search-ink );
	transform: translateY( -1px );
}

.victor-shell-search__result-copy {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	justify-content: center;
}

.victor-shell-search__result-name {
	display: -webkit-box;
	overflow: hidden;
	color: var( --victor-search-ink );
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.65;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.victor-shell-search__result-category {
	margin-block-start: 2px;
	color: var( --victor-search-muted );
	font-size: 11.5px;
	line-height: 1.5;
}

.victor-shell-search__result-price {
	margin-block-start: auto;
	padding-block-start: 5px;
	color: var( --victor-search-ink );
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	direction: rtl;
}

.victor-shell-search__result-price del {
	color: var( --victor-search-subtle );
	font-weight: 500;
	opacity: .8;
}

.victor-shell-search__result-price ins {
	text-decoration: none;
}

.victor-shell-search__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin-block-start: 14px;
	padding: 10px 18px;
	border: 1px solid rgba( 21, 94, 239, .22 );
	border-radius: 16px;
	background: rgba( 21, 94, 239, .065 );
	color: var( --victor-search-action );
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, transform .14s ease;
}

.victor-shell-search__view-all:hover {
	background: rgba( 21, 94, 239, .10 );
	color: var( --victor-search-action );
}

.victor-shell-search__view-all:active {
	transform: scale( .99 );
}

.victor-shell-search__view-all svg {
	width: 18px;
	height: 18px;
}

.victor-shell-search__empty,
.victor-shell-search__error {
	max-width: 620px;
	margin: 28px auto;
	text-align: center;
}

.victor-shell-search__empty-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border: 1px solid rgba( 31, 35, 41, .08 );
	border-radius: 50%;
	background: rgba( 255, 255, 255, .58 );
	color: var( --victor-search-muted );
}

.victor-shell-search__empty h3,
.victor-shell-search__error h3 {
	margin: 0 0 7px;
	color: var( --victor-search-ink );
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
}

.victor-shell-search__empty p,
.victor-shell-search__error p {
	margin: 0;
	color: var( --victor-search-muted );
	font-size: 13px;
	line-height: 1.8;
}

body.victor-shell-search-open {
	overflow: hidden;
	overscroll-behavior: none;
}

body.victor-shell-search-open .victor-shell-mobile-navigation {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY( 12px );
}

body.victor-shell-search-open .victor-shell-product-action,
body.victor-shell-search-open .vpe-mobile-buybar {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@keyframes victor-search-skeleton {
	from { background-position: 100% 0; }
	to { background-position: -120% 0; }
}

@supports not ( ( -webkit-backdrop-filter: blur( 1px ) ) or ( backdrop-filter: blur( 1px ) ) ) {
	.victor-shell-search__backdrop {
		background: rgba( 238, 241, 246, .92 );
	}

	.victor-shell-search__surface {
		background: rgba( 255, 255, 255, .97 );
	}
}

@media ( max-width: 768px ) {
	.victor-shell-search {
		align-items: end;
		padding: max( 8px, env( safe-area-inset-top, 0px ) ) 0 0;
	}

	.victor-shell-search__surface {
		width: 100%;
		height: calc( 100vh - env( safe-area-inset-top, 0px ) - 8px );
		max-height: none;
		border-block-end: 0;
		border-radius: 26px 26px 0 0;
		transform: translateY( 14px );
	}

	.victor-shell-search__header {
		gap: 6px;
		padding: 11px max( 10px, env( safe-area-inset-right, 0px ) ) 11px max( 10px, env( safe-area-inset-left, 0px ) );
	}

	.victor-shell-search .victor-shell-search__input {
		height: 46px;
		font-size: 16px;
	}

	.victor-shell-search__search-icon,
	.victor-shell-search button.victor-shell-search__clear,
	.victor-shell-search button.victor-shell-search__close {
		width: 44px;
		min-width: 44px;
		height: 44px;
	}

	.victor-shell-search__body {
		min-height: 0;
		padding: 20px max( 14px, env( safe-area-inset-right, 0px ) ) calc( 22px + env( safe-area-inset-bottom, 0px ) ) max( 14px, env( safe-area-inset-left, 0px ) );
	}

	.victor-shell-search__categories {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.victor-shell-search__loading,
	.victor-shell-search__results {
		grid-template-columns: minmax( 0, 1fr );
	}

	.victor-shell-search__skeleton,
	.victor-shell-search__result {
		grid-template-columns: 68px minmax( 0, 1fr );
		min-height: 88px;
		border-radius: 17px;
	}

	.victor-shell-search__skeleton-image,
	.victor-shell-search__result-image,
	.victor-shell-search__result-image-placeholder {
		width: 68px;
		height: 68px;
		border-radius: 13px;
	}
}

@supports ( height: 100dvh ) {
	@media ( max-width: 768px ) {
		.victor-shell-search__surface {
			height: calc( 100dvh - env( safe-area-inset-top, 0px ) - 8px );
		}
	}
}

@media ( max-width: 390px ) {
	.victor-shell-search__header {
		grid-template-columns: 44px minmax( 0, 1fr ) 44px 44px;
		gap: 4px;
	}

	.victor-shell-search__search-icon,
	.victor-shell-search button.victor-shell-search__clear,
	.victor-shell-search button.victor-shell-search__close {
		width: 44px;
		min-width: 44px;
		height: 44px;
	}

	.victor-shell-search__categories {
		gap: 8px;
	}

	.victor-shell-search__category {
		grid-template-columns: 42px minmax( 0, 1fr );
		gap: 8px;
		font-size: 12px;
	}

	.victor-shell-search__category img,
	.victor-shell-search__category-placeholder {
		width: 42px;
		height: 42px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.victor-shell-search__backdrop,
	.victor-shell-search__surface,
	.victor-shell-search button,
	.victor-shell-search a {
		transition: none;
	}

	.victor-shell-search__skeleton-copy i {
		animation: none;
		background: rgba( 31, 35, 41, .065 );
	}
}
