:root {
	--mm-green: #006b4f;
	--mm-red: #b90f2d;
	--mm-ink: #17191c;
	--mm-muted: #687078;
	--mm-surface: #f4f5f5;
	--mm-border: #e1e4e6;
}

/* Header search trigger. */
.mm-header-search {
	min-width: 0;
}

.ws-header-search .mm-search-trigger {
	align-items: center;
	background: #f0f1f1 !important;
	border: 1px solid #e0e4e2 !important;
	border-radius: 7px !important;
	box-shadow: none !important;
	color: #626a67 !important;
	cursor: pointer;
	display: flex;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	gap: 1rem;
	justify-content: space-between;
	margin: 0 !important;
	min-height: 48px;
	padding: 0.75rem 1rem !important;
	text-align: left;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 120ms ease;
	width: 100%;
}

.ws-header-search:hover .mm-search-trigger,
.ws-header-search:focus-within .mm-search-trigger,
.ws-header-search .mm-search-trigger:hover,
.ws-header-search .mm-search-trigger:focus,
.ws-header-search .mm-search-trigger:focus-visible {
	background: #edf5f2 !important;
	border-color: var(--mm-green) !important;
	box-shadow: 0 0 0 3px rgb(0 107 79 / 10%) !important;
	color: var(--mm-green) !important;
}

.ws-header-search .mm-search-trigger:active {
	background: #e2eee9 !important;
	border-color: var(--mm-green) !important;
	color: var(--mm-green) !important;
	transform: scale(0.995);
}

.ws-header-search .mm-search-trigger svg {
	flex: 0 0 auto;
	transition: transform 180ms ease;
}

.ws-header-search:hover .mm-search-trigger svg,
.ws-header-search:focus-within .mm-search-trigger svg {
	transform: scale(1.06);
}

.mm-search-trigger:focus-visible,
.mm-search-close:focus-visible,
.mm-search-reset:focus-visible,
.mm-search-more:focus-visible,
.mm-search-input:focus-visible,
.mm-search-result:focus-visible,
.mm-search-all:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mm-green) 75%, white);
	outline-offset: 3px;
}

body.mm-search-open {
	overflow: hidden !important;
}

/* Full-screen product search. */
.mm-search-overlay[hidden] {
	display: none !important;
}

.mm-search-overlay {
	background-color: #fff;
	color: var(--mm-ink);
	font-size: 16px;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	position: fixed;
	transition: background-color 320ms ease;
	z-index: 1000000;
}

.mm-search-overlay.mm-search-opening,
.mm-search-overlay.mm-search-closing {
	background-color: rgb(255 255 255 / 0%);
}

.mm-search-topbar,
.mm-search-summary,
.mm-search-results,
.mm-search-actions {
	transition: opacity 220ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mm-search-overlay.mm-search-opening .mm-search-topbar,
.mm-search-overlay.mm-search-opening .mm-search-summary,
.mm-search-overlay.mm-search-opening .mm-search-results,
.mm-search-overlay.mm-search-opening .mm-search-actions,
.mm-search-overlay.mm-search-closing .mm-search-topbar,
.mm-search-overlay.mm-search-closing .mm-search-summary,
.mm-search-overlay.mm-search-closing .mm-search-results,
.mm-search-overlay.mm-search-closing .mm-search-actions {
	opacity: 0;
	transform: translateY(8px);
}

.mm-search-overlay.mm-search-morphing .mm-search-form {
	opacity: 0;
}

.mm-search-overlay.mm-search-morphing .mm-search-summary,
.mm-search-overlay.mm-search-morphing .mm-search-results,
.mm-search-overlay.mm-search-morphing .mm-search-actions {
	opacity: 0;
	transform: translateY(8px);
}

.mm-search-morph {
	align-items: center;
	background: #f0f1f1;
	border: 1px solid #dce3e0;
	box-shadow: 0 16px 44px rgb(15 38 31 / 14%);
	box-sizing: border-box;
	color: #626a67;
	display: flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	gap: 16px;
	justify-content: space-between;
	line-height: 1.25;
	overflow: hidden;
	padding: 0 16px;
	pointer-events: none;
	position: fixed;
	white-space: nowrap;
	z-index: 1000002;
}

.mm-search-morph__label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.mm-search-morph svg {
	flex: 0 0 auto;
	height: 24px;
	width: 24px;
}

.mm-search-shell {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1480px;
	min-height: 100%;
	padding: clamp(20px, 4vw, 64px);
	padding-bottom: max(clamp(28px, 5vw, 72px), env(safe-area-inset-bottom));
	padding-left: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left));
	padding-right: max(clamp(20px, 4vw, 64px), env(safe-area-inset-right));
	padding-top: max(clamp(20px, 4vw, 64px), env(safe-area-inset-top));
	width: 100%;
}

.mm-search-topbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: clamp(20px, 4vw, 48px);
}

.mm-search-close,
.mm-search-reset {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--mm-ink);
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	padding: 8px;
}

.mm-search-close {
	border-radius: 50%;
	height: 44px;
	width: 44px;
}

.mm-search-close:hover,
.mm-search-close:focus,
.mm-search-close:active,
.mm-search-reset:hover,
.mm-search-reset:focus,
.mm-search-reset:active {
	background: #e8f1ee !important;
	color: var(--mm-green) !important;
}

.mm-search-form {
	align-items: center;
	background: var(--mm-surface);
	border: 2px solid transparent;
	border-radius: 24px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: clamp(72px, 8vw, 100px);
	padding: 0 clamp(16px, 3vw, 32px);
	transition: border-color 150ms ease, box-shadow 150ms ease, opacity 120ms ease;
	width: 100%;
}

.mm-search-form:focus-within {
	border-color: var(--mm-green);
	box-shadow: 0 0 0 4px rgb(0 107 79 / 12%);
}

.mm-search-form__icon {
	color: #363b3f;
	margin-right: clamp(10px, 2vw, 20px);
}

.mm-search-input {
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: var(--mm-ink);
	font: inherit;
	font-size: clamp(18px, 2vw, 25px);
	line-height: 1.3;
	margin: 0 !important;
	min-width: 0;
	padding: 20px 0 !important;
	width: 100%;
}

.mm-search-input::-webkit-search-cancel-button {
	display: none;
}

.mm-search-input::placeholder {
	color: #747b80;
	opacity: 1;
}

.mm-search-input:focus {
	outline: none !important;
}

.mm-search-reset[hidden] {
	display: none !important;
}

.mm-search-reset {
	border-radius: 50%;
	height: 42px;
	margin-left: 10px;
	width: 42px;
}

.mm-search-summary {
	color: var(--mm-muted);
	font-size: 15px;
	line-height: 1.5;
	min-height: 1.5em;
	padding: 20px 4px 10px;
}

.mm-search-results {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 4px 0;
}

.mm-search-results[aria-busy="true"] {
	opacity: 0.62;
	pointer-events: none;
}

.mm-search-result {
	align-items: center;
	background: #fff;
	border: 1px solid var(--mm-border);
	border-radius: 14px;
	box-sizing: border-box;
	color: var(--mm-ink);
	display: grid;
	gap: 16px;
	grid-template-columns: 88px minmax(0, 1fr);
	min-width: 0;
	padding: 12px;
	text-decoration: none !important;
	transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mm-search-result:hover,
.mm-search-result.is-active,
.mm-search-result[aria-selected="true"] {
	border-color: var(--mm-green);
	box-shadow: 0 5px 18px rgb(20 33 29 / 10%);
	color: var(--mm-ink);
	transform: translateY(-1px);
}

.mm-search-result__media,
.mm-search-result__placeholder {
	align-items: center;
	background: #f7f7f7;
	border-radius: 10px;
	display: flex;
	height: 88px;
	justify-content: center;
	overflow: hidden;
	width: 88px;
}

.mm-search-result__image {
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.mm-search-result__placeholder::before {
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.25' y='4.25' width='17.5' height='15.5' rx='2.25' fill='none' stroke='%23929a97' stroke-width='1.5'/%3E%3Ccircle cx='9' cy='9.5' r='1.75' fill='none' stroke='%23929a97' stroke-width='1.5'/%3E%3Cpath d='m4.5 17 4.75-4 3.25 2.5 3-3 4 4.5' fill='none' stroke='%23929a97' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
	content: "";
	height: 30px;
	opacity: 0.72;
	width: 30px;
}

.mm-search-result__placeholder::after {
	color: #848c89;
	content: "Без фото";
	font-size: 10px;
	font-weight: 400;
	line-height: 1.1;
	margin-top: 4px;
}

.mm-search-result__placeholder {
	flex-direction: column;
}

.mm-search-result__content {
	min-width: 0;
}

.mm-search-result__title {
	display: -webkit-box;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	margin: 0 0 8px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mm-search-result__price {
	color: var(--mm-green);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.mm-search-result__price del {
	color: #777e83;
	font-size: 0.85em;
	font-weight: 500;
	margin-right: 0.35em;
}

.mm-search-result__price ins {
	background: transparent;
	color: var(--mm-red);
	text-decoration: none;
}

.mm-search-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 22px;
	width: 100%;
}

.mm-search-more,
.mm-search-all {
	align-items: center;
	border-radius: 7px;
	display: inline-flex;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	justify-content: center;
	line-height: 1.25;
	min-height: 48px;
	padding: 8px 22px;
	text-decoration: none !important;
}

.mm-search-overlay .mm-search-more {
	background: #fff !important;
	border: 1px solid var(--mm-green) !important;
	box-shadow: none !important;
	color: var(--mm-green) !important;
	cursor: pointer;
	line-height: 1.25 !important;
	margin: 0 !important;
}

.mm-search-all {
	background: var(--mm-green);
	color: #fff !important;
	margin-left: auto;
}

.mm-search-more[hidden],
.mm-search-all[hidden] {
	display: none !important;
}

.mm-search-overlay .mm-search-more:hover,
.mm-search-overlay .mm-search-more:focus,
.mm-search-overlay .mm-search-more:active {
	background: #e8f1ee !important;
	border-color: #00513d !important;
	color: #00513d !important;
}

.mm-search-overlay .mm-search-more:disabled {
	cursor: wait;
	opacity: 0.55;
}

.mm-search-all:hover {
	background: #00513d;
	color: #fff !important;
}

/* Filtering removes the category tiles without leaving an empty gap. */
body.mm-filters-active .lux-subcats {
	display: none !important;
}

body.mm-filter-sidebar-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.woocommerce-page #secondary.site-sidebar.active .wrap-scroll .btn-exit {
		align-items: center;
		background: #00513d;
		border: 0;
		border-radius: 999px;
		display: flex !important;
		height: 40px;
		justify-content: center;
		margin: 0 0 12px auto;
		padding: 8px;
		width: 40px;
	}

	.woocommerce-page #secondary.site-sidebar .wrap-scroll .btn-exit svg {
		height: 24px;
		width: 24px;
	}
}

/*
 * Single-product recommendation sections are full-width blocks. Their product
 * cards, not the section wrappers, form the responsive grid.
 */
body.single-product .related.products,
body.single-product .up-sells.products,
body.single-product .upsells.products,
body.single-product .lux-recently-viewed-wrapper.related.products {
	clear: both;
	display: block !important;
	flex: 0 0 100% !important;
	max-width: 100%;
	width: 100% !important;
}

body.single-product .related.products > h2,
body.single-product .up-sells.products > h2,
body.single-product .upsells.products > h2,
body.single-product .lux-recently-viewed-wrapper.related.products > h2 {
	display: block;
	width: 100%;
}

body.single-product .related.products > ul.products,
body.single-product .up-sells.products > ul.products,
body.single-product .upsells.products > ul.products,
body.single-product .lux-recently-viewed-wrapper ul.products {
	--mm-recommendation-columns: 4;
	box-sizing: border-box;
	display: grid !important;
	gap: clamp(8px, 1.4vw, 20px) !important;
	grid-template-columns: repeat(var(--mm-recommendation-columns), minmax(0, 1fr)) !important;
	max-width: 100%;
	width: 100% !important;
}

body.single-product .related.products > ul.products > li.product,
body.single-product .up-sells.products > ul.products > li.product,
body.single-product .upsells.products > ul.products > li.product,
body.single-product .lux-recently-viewed-wrapper ul.products > li.product {
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	width: auto !important;
}

@media (max-width: 1023px) {
	body.single-product .related.products > ul.products,
	body.single-product .up-sells.products > ul.products,
	body.single-product .upsells.products > ul.products,
	body.single-product .lux-recently-viewed-wrapper ul.products {
		--mm-recommendation-columns: 3;
	}
}

@media (max-width: 767px) {
	.mm-header-search {
		margin-bottom: 12px;
	}

	.mm-search-shell {
		min-height: 100dvh;
		padding-top: max(14px, env(safe-area-inset-top));
	}

	.mm-search-topbar {
		margin-bottom: 12px;
	}

	.mm-search-form {
		border-radius: 16px;
		min-height: 64px;
		padding: 0 14px;
	}

	.mm-search-input {
		font-size: 18px;
		padding: 16px 0 !important;
	}

	.mm-search-results {
		grid-template-columns: minmax(0, 1fr);
	}

	.mm-search-result {
		gap: 12px;
		grid-template-columns: 72px minmax(0, 1fr);
		padding: 10px;
	}

	.mm-search-result__media,
	.mm-search-result__placeholder {
		height: 72px;
		width: 72px;
	}

	.mm-search-actions {
		gap: 8px;
	}

	.mm-search-more,
	.mm-search-all {
		font-size: 13px;
		line-height: 1.25;
		min-height: 44px;
		padding: 8px 12px;
	}

	body.single-product .related.products > ul.products,
	body.single-product .up-sells.products > ul.products,
	body.single-product .upsells.products > ul.products,
	body.single-product .lux-recently-viewed-wrapper ul.products {
		--mm-recommendation-columns: 2;
	}
}

@media (max-width: 359px) {
	.mm-search-actions {
		gap: 6px;
	}

	.mm-search-more,
	.mm-search-all {
		font-size: 12px;
		min-width: 0;
		padding: 8px 7px;
		white-space: nowrap;
	}

	body.single-product .related.products > ul.products,
	body.single-product .up-sells.products > ul.products,
	body.single-product .upsells.products > ul.products,
	body.single-product .lux-recently-viewed-wrapper ul.products {
		--mm-recommendation-columns: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-search-overlay,
	.mm-search-topbar,
	.mm-search-summary,
	.mm-search-results,
	.mm-search-actions,
	.mm-search-all,
	.mm-search-form,
	.mm-search-result,
	.ws-header-search .mm-search-trigger,
	.ws-header-search .mm-search-trigger svg {
		transition: none;
	}

	.mm-search-morph {
		display: none;
	}
}
