/* FEMISKIRA */
:root {
	--fm-color-primary: #5a4743;
	--fm-color-primary-hover: #4a3a37;
	--fm-color-bg: #ffffff;
	--fm-color-bg-secondary: #f8f9fa;
	--fm-color-shell: #efe3d3;
	--fm-color-text: #333333;
	--fm-color-text-muted: #6b7280;
	--fm-color-border: #e5e7eb;
	--fm-color-white: #ffffff;

	--fm-font-heading: 'Montserrat', 'Segoe UI', sans-serif;
	--fm-font-body: 'Open Sans', 'Segoe UI', sans-serif;

	--fm-container-max: 80rem;
	--fm-header-height: 5rem;
	--fm-header-height-mobile: 4rem;
	--fm-radius: 0.625rem;
	--fm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--fm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
	--fm-transition: 0.2s ease;
	--fm-z-header: 100;
	--fm-z-search: 110;
	--fm-z-mobile-menu: 105;
}
/* Google Fonts подключаются в header.php */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	overflow-x: hidden;
}

body.fm-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--fm-font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--fm-color-text);
	background: var(--fm-color-bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.fm-page {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 100vh;
	width: 100%;
}

.fm-main {
	flex: 1;
	width: 100%;
}

.fm-container {
	width: 100%;
	max-width: var(--fm-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.fm-container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.fm-container {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fm-font-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--fm-color-text);
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--fm-color-primary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.fm-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Кнопки */
.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--fm-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	border-radius: var(--fm-radius);
	border: none;
	cursor: pointer;
	transition: background var(--fm-transition), color var(--fm-transition), border-color var(--fm-transition);
	text-decoration: none;
}

.fm-btn--primary {
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
}

.fm-btn--primary:hover {
	background: var(--fm-color-primary-hover);
	color: var(--fm-color-white);
}

.fm-btn--outline {
	background: transparent;
	color: var(--fm-color-primary);
	border: 1px solid var(--fm-color-primary);
}

.fm-btn--outline:hover {
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
}

/* Сброс стилей демо-магазина в контенте */
.fm-main .bx-content-section.container {
	max-width: var(--fm-container-max);
}
/* ========== Header ========== */
.fm-header {
	position: sticky;
	top: 0;
	z-index: var(--fm-z-header);
	background: var(--fm-color-shell, #efe3d3);
	border-bottom: 1px solid var(--fm-color-border);
	width: 100%;
}

.fm-header__top {
	background: var(--fm-color-shell, #efe3d3);
	padding: 0.5rem 0;
	font-size: 0.75rem;
}

@media (min-width: 640px) {
	.fm-header__top {
		font-size: 0.875rem;
	}
}

.fm-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.fm-header__contacts {
	display: none;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.fm-header__contacts {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.fm-header__contacts {
		gap: 1.5rem;
	}
}

.fm-header__contacts a {
	white-space: nowrap;
	transition: color var(--fm-transition);
}

.fm-header__contacts a:hover {
	color: var(--fm-color-primary);
}

.fm-header__top-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	flex-wrap: wrap;
	justify-content: flex-end;
}

@media (min-width: 640px) {
	.fm-header__top-links {
		gap: 0.75rem;
	}
}

@media (min-width: 768px) {
	.fm-header__top-links {
		gap: 1rem;
	}
}

.fm-header__top-link {
	white-space: nowrap;
	font-size: inherit;
	transition: color var(--fm-transition);
}

.fm-header__top-link:hover {
	color: var(--fm-color-primary);
}

.fm-header__top-link--hide-sm {
	display: none;
}

@media (min-width: 640px) {
	.fm-header__top-link--hide-sm {
		display: inline;
	}
}

.fm-header__top-link--hide-md {
	display: none;
}

@media (min-width: 768px) {
	.fm-header__top-link--hide-md {
		display: inline;
	}
}

/* Main bar */
.fm-header__main {
	height: var(--fm-header-height-mobile);
}

@media (min-width: 640px) {
	.fm-header__main {
		height: var(--fm-header-height);
	}
}

.fm-header__main-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 1rem;
}

.fm-header__logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.fm-header__logo img {
	height: 2.25rem;
	width: auto;
}

@media (min-width: 640px) {
	.fm-header__logo img {
		height: 2.75rem;
	}
}

.fm-header__nav {
	display: none;
	align-items: center;
	gap: 2rem;
	margin-left: auto;
	margin-right: 2rem;
}

@media (min-width: 768px) {
	.fm-header__nav {
		display: flex;
	}
}

.fm-header__nav-link {
	font-family: var(--fm-font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	transition: color var(--fm-transition);
}

.fm-header__nav-link:hover,
.fm-header__nav-link.is-active {
	color: var(--fm-color-primary);
}

.fm-header__actions {
	display: none;
	align-items: center;
	gap: 1.25rem;
	margin-left: 0;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.fm-header__actions {
		display: flex;
	}
}

.fm-header__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--fm-color-text);
	transition: color var(--fm-transition);
	position: relative;
}

.fm-header__icon-btn:hover {
	color: var(--fm-color-primary);
}

.fm-header__icon-btn svg {
	width: 1.25rem;
	height: 1.25rem;
}

.fm-header__burger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--fm-color-text);
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.fm-header__burger {
		display: none;
	}
}

.fm-header__burger svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* Mobile menu */
.fm-header__mobile {
	display: none;
	border-top: 1px solid var(--fm-color-border);
	background: var(--fm-color-shell, #efe3d3);
}

.fm-header__mobile.is-open {
	display: block;
}

.fm-header__mobile-inner {
	padding: 1rem;
}

.fm-header__mobile-link {
	display: block;
	padding: 0.5rem 0;
	font-family: var(--fm-font-heading);
	transition: color var(--fm-transition);
}

.fm-header__mobile-link:hover {
	color: var(--fm-color-primary);
}

.fm-header__mobile-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-top: 1rem;
	margin-top: 0.5rem;
	border-top: 1px solid var(--fm-color-border);
}

/* Search overlay */
.fm-search {
	display: none;
	position: fixed;
	inset: 0;
	z-index: var(--fm-z-search);
	background: rgba(0, 0, 0, 0.4);
	align-items: flex-start;
	justify-content: center;
	padding: 6rem 1rem 1rem;
}

.fm-search.is-open {
	display: flex;
}

.fm-search__panel {
	width: 100%;
	max-width: 36rem;
	background: var(--fm-color-bg);
	border-radius: var(--fm-radius);
	padding: 1.5rem;
	box-shadow: var(--fm-shadow-md);
	position: relative;
}

.fm-search__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	color: var(--fm-color-text-muted);
}

.fm-search__close:hover {
	color: var(--fm-color-text);
}

/* Basket line in header */
.fm-basket-line {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.fm-basket-line__link {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	color: var(--fm-color-text);
	transition: color var(--fm-transition);
}

.fm-basket-line__link:hover {
	color: var(--fm-color-primary);
}

.fm-basket-line__link svg {
	width: 1.25rem;
	height: 1.25rem;
}

.fm-basket-line__count {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-align: center;
	color: var(--fm-color-white);
	background: var(--fm-color-primary);
	border-radius: 9999px;
}

.fm-basket-line__count:empty,
.fm-basket-line__count[data-count="0"] {
	display: none;
}

/* Page header (breadcrumbs + title) */
.fm-page-header {
	background: var(--fm-color-bg-secondary);
	padding: 1rem 0;
}

.fm-page-header__title {
	margin: 0.5rem 0 0;
	font-size: 1.5rem;
}

@media (min-width: 768px) {
	.fm-page-header__title {
		font-size: 2rem;
	}
}

.fm-page-header .bx-breadcrumb {
	margin: 0;
	padding: 0;
	background: none;
}

/* ========== Footer ========== */
.fm-footer {
	background: var(--fm-color-shell, #efe3d3);
	margin-top: 5rem;
	width: 100%;
}

.fm-body--home .fm-footer {
	margin-top: 0;
}

.fm-footer__inner {
	padding: 4rem 0;
}

.fm-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.fm-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fm-footer__brand p {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
}

.fm-footer__logo {
	height: 2.5rem;
	width: auto;
}

.fm-footer__social {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.fm-footer__social a {
	color: var(--fm-color-text);
	transition: color var(--fm-transition);
}

.fm-footer__social a:hover {
	color: var(--fm-color-primary);
}

.fm-footer__social svg {
	width: 1.25rem;
	height: 1.25rem;
}

.fm-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--fm-font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.fm-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-footer__list li + li {
	margin-top: 0.5rem;
}

.fm-footer__list a {
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
	transition: color var(--fm-transition);
}

.fm-footer__list a:hover {
	color: var(--fm-color-primary);
}

.fm-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
}

.fm-footer__contact-item + .fm-footer__contact-item {
	margin-top: 0.75rem;
}

.fm-footer__contact-item svg {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
}

.fm-footer__bottom {
	padding: 2rem 0;
	border-top: 1px solid var(--fm-color-border);
}

.fm-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
	text-align: center;
}

@media (min-width: 768px) {
	.fm-footer__bottom-inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

/* Скрыть старые элементы демо-шаблона */
.fm-body .bx-wrapper,
.fm-body #bx_eshop_wrap {
	display: contents;
}

.fm-body .bx-basket-fixed,
.fm-body .bx-basket-fixed.bottom {
	display: none !important;
}
/* Поиск в шапке */
.fm-search-form__row {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	.fm-search-form__row {
		flex-direction: row;
	}
}

.fm-search-form__row input[type="search"],
.fm-search-form__row input[type="text"] {
	flex: 1;
}

.fm-search .title-search-input,
.fm-search input[type="text"],
.fm-search input[type="search"] {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius);
	font-family: var(--fm-font-body);
}

.fm-search .title-search-result,
.fm-search .bx-searchtitle {
	width: 100%;
}

.fm-search .bx-searchtitle-form {
	display: flex;
	gap: 0.5rem;
}

.fm-search .bx-searchtitle-form input {
	flex: 1;
}

/* Хлебные крошки */
.fm-breadcrumb {
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
}

.fm-breadcrumb a {
	color: var(--fm-color-text-muted);
}

.fm-breadcrumb a:hover {
	color: var(--fm-color-primary);
}

.fm-breadcrumb-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.fm-breadcrumb-nav__sep {
	color: var(--fm-color-text-muted);
	user-select: none;
}

.fm-breadcrumb-nav a {
	color: var(--fm-color-text-muted);
}

.fm-breadcrumb-nav a:hover {
	color: var(--fm-color-primary);
}

.fm-breadcrumb-nav span[aria-current="page"] {
	color: var(--fm-color-text);
}
/* ===== Hero ===== */
.fm-hero {
	position: relative;
	height: 500px;
	overflow: hidden;
	background: var(--fm-color-primary);
}

@media (min-width: 768px) {
	.fm-hero {
		height: 600px;
	}
}

.fm-hero__track {
	position: absolute;
	inset: 0;
}

.fm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
	background-color: var(--fm-color-primary);
	background-image: var(--fm-hero-bg, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.fm-hero__slide.is-active {
	opacity: 1;
}

.fm-hero__slide .fm-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.35));
	pointer-events: none;
}

.fm-hero__slide[style*="linear-gradient"] .fm-hero__overlay {
	display: none;
}

/* Always show overlay for photo slides */
.fm-hero__slide[style*="url("]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.35));
	z-index: 1;
	pointer-events: none;
}

/* Content above overlay */
.fm-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
}

.fm-hero__text {
	max-width: 42rem;
	color: #fff;
}

.fm-hero__caption {
	display: none;
}

.fm-hero__caption.is-active {
	display: block;
}

.fm-hero__title {
	margin: 0 0 1rem;
	font-family: var(--fm-font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
	color: #fff;
}

@media (min-width: 640px) {
	.fm-hero__title {
		font-size: 1.875rem;
	}
}

@media (min-width: 768px) {
	.fm-hero__title {
		font-size: 2.25rem;
		margin-bottom: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.fm-hero__title {
		font-size: 3rem;
	}
}

.fm-hero__subtitle {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
	.fm-hero__subtitle {
		font-size: 1.25rem;
		margin-bottom: 2rem;
	}
}

.fm-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 640px) {
	.fm-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

.fm-btn--hero-light {
	background: #fff;
	color: var(--fm-color-primary);
}

.fm-btn--hero-light:hover {
	background: #f3f4f6;
	color: var(--fm-color-primary);
}

.fm-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease;
}

.fm-hero__nav:hover {
	background: rgba(255, 255, 255, 0.35);
}

.fm-hero__nav--prev {
	left: 1rem;
}

.fm-hero__nav--next {
	right: 1rem;
}

.fm-hero__dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
}

.fm-hero__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: none;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
}

.fm-hero__dot.is-active {
	width: 2rem;
	background: #fff;
}

.fm-hero__dot:hover {
	background: rgba(255, 255, 255, 0.75);
}

/* ===== Home sections ===== */
.fm-section {
	padding: 5rem 0;
}

.fm-section--muted {
	background: var(--fm-color-bg-secondary);
}

.fm-section--primary {
	background: var(--fm-color-primary);
	color: #fff;
}

.fm-section__title {
	margin: 0 0 3rem;
	font-family: var(--fm-font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	text-align: center;
}

@media (min-width: 640px) {
	.fm-section__title {
		font-size: 1.875rem;
	}
}

@media (min-width: 768px) {
	.fm-section__title {
		font-size: 2.25rem;
	}
}

.fm-section__title--left {
	text-align: left;
	margin-bottom: 0;
}

.fm-section__lead {
	margin: -2rem auto 3rem;
	max-width: 40rem;
	text-align: center;
	font-size: 1.125rem;
	color: var(--fm-color-text-muted);
}

.fm-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 3rem;
}

.fm-section__link {
	font-family: var(--fm-font-heading);
	color: var(--fm-color-primary);
	white-space: nowrap;
}

.fm-section__link:hover {
	opacity: 0.8;
}

.fm-section--primary .fm-section__title,
.fm-section--primary .fm-section__lead {
	color: #fff;
}

.fm-section--primary .fm-section__lead {
	opacity: 0.9;
}

/* Audience */
.fm-audience {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.fm-audience {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fm-audience__item {
	text-align: center;
}

.fm-audience__item a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.fm-audience__icon {
	width: 6rem;
	height: 6rem;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: var(--fm-color-bg-secondary);
	color: var(--fm-color-primary);
	transition: background 0.2s ease, color 0.2s ease;
}

.fm-audience__item a:hover .fm-audience__icon {
	background: var(--fm-color-primary);
	color: #fff;
}

.fm-audience__icon svg {
	width: 3rem;
	height: 3rem;
}

.fm-audience__name {
	margin: 0 0 0.5rem;
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
	transition: color 0.2s ease;
}

.fm-audience__item a:hover .fm-audience__name {
	color: var(--fm-color-primary);
}

.fm-audience__text {
	margin: 0;
	color: var(--fm-color-text-muted);
}

/* Advantages */
.fm-advantages {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.fm-advantages {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.fm-advantages {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fm-advantage {
	background: #fff;
	border-radius: var(--fm-radius);
	padding: 1.5rem;
	box-shadow: var(--fm-shadow-sm);
	transition: box-shadow 0.2s ease;
}

.fm-advantage:hover {
	box-shadow: var(--fm-shadow-md);
}

.fm-advantage__icon {
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.1);
	color: var(--fm-color-primary);
}

.fm-advantage__icon svg {
	width: 2rem;
	height: 2rem;
}

.fm-advantage__title {
	margin: 0 0 0.5rem;
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
}

.fm-advantage__text {
	margin: 0;
	color: var(--fm-color-text-muted);
}

/* Product cards */
.fm-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.fm-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.fm-products {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fm-card {
	position: relative;
	background: #fff;
	border-radius: var(--fm-radius);
	overflow: hidden;
	box-shadow: var(--fm-shadow-sm);
	transition: box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.fm-card:hover {
	box-shadow: var(--fm-shadow-md);
}

.fm-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.25rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: #fff;
}

.fm-card__badge--sale {
	background: #ef4444;
}

.fm-card__badge--out {
	background: #6b7280;
}

.fm-card__image {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f3f4f6;
}

.fm-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.fm-card:hover .fm-card__image img {
	transform: scale(1.05);
}

.fm-card__image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #9ca3af;
	font-size: 0.875rem;
}

.fm-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fm-card__cat {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	color: #6b7280;
}

.fm-card__title {
	margin: 0 0 0.5rem;
	font-family: var(--fm-font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--fm-color-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fm-card__title:hover {
	color: var(--fm-color-primary);
}

.fm-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.fm-card__price-current {
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.fm-card__price-old {
	font-size: 0.875rem;
	color: #9ca3af;
	text-decoration: line-through;
}

.fm-card__actions {
	margin-top: auto;
}

.fm-btn--block {
	width: 100%;
	display: flex;
}

.fm-btn.is-disabled,
.fm-btn.is-disabled:hover {
	background: #d1d5db;
	color: #fff;
	pointer-events: none;
	cursor: not-allowed;
}

/* Remove old broken bootstrap product styles override */
.fm-home-products .row {
	display: contents;
}

.fm-section__cta {
	margin-top: 3rem;
	text-align: center;
}

/* Reviews */
.fm-reviews {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.fm-reviews {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fm-review {
	background: #fff;
	border-radius: var(--fm-radius);
	padding: 1.5rem;
	box-shadow: var(--fm-shadow-sm);
}

.fm-review__head {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.fm-review__avatar {
	width: 3rem;
	height: 3rem;
	margin-right: 1rem;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.1);
	color: var(--fm-color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
	flex-shrink: 0;
}

.fm-review__name {
	margin: 0;
	font-family: var(--fm-font-heading);
}

.fm-review__role {
	margin: 0;
	font-size: 0.875rem;
	color: var(--fm-color-text-muted);
}

.fm-review__text {
	margin: 0;
	color: var(--fm-color-text-muted);
	font-style: italic;
}

/* CTA block */
.fm-cta-block {
	text-align: center;
	max-width: 56rem;
	margin: 0 auto;
}

.fm-cta-block .fm-section__title {
	margin-bottom: 1.5rem;
}

.fm-cta-block .fm-section__lead {
	margin: 0 auto 2rem;
	color: rgba(255, 255, 255, 0.9);
}

.fm-btn--cta-light {
	background: #fff;
	color: var(--fm-color-primary);
	font-size: 1.125rem;
	padding: 1rem 2rem;
}

.fm-btn--cta-light:hover {
	background: #f3f4f6;
	color: var(--fm-color-primary);
}

/* Full-bleed home: remove default content padding issues */
.fm-main--home {
	padding: 0;
}

.fm-main--home > .fm-container {
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}
.fm-header svg,.fm-footer svg,.fm-basket-line svg,.fm-search__close svg{width:1.25rem;height:1.25rem;flex-shrink:0;display:block}.fm-header__burger svg{width:1.5rem;height:1.5rem}.fm-search:not(.is-open){display:none!important}.fm-audience__icon svg{width:3rem;height:3rem}.fm-advantage__icon svg{width:2rem;height:2rem}

/* === catalog.css inlined === */
/* Catalog & product card */

.fm-catalog,
.fm-product__wrap,
.fm-related {
	max-width: var(--fm-container-max, 80rem);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.fm-catalog,
	.fm-product__wrap,
	.fm-related {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.fm-product__wrap.fm-container {
	max-width: var(--fm-container-max, 80rem);
}

.fm-catalog {
	padding-top: 0;
	padding-bottom: 3rem;
}

.fm-catalog__layout {
	display: grid;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.fm-catalog__layout {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
		gap: 2.5rem;
	}
}

.fm-catalog__sidebar {
	position: sticky;
	top: 1rem;
}

.fm-catalog__filters {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.fm-catalog__filters.fm-card,
.fm-catalog__filters.fm-card--padded {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}

.fm-catalog__filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.fm-catalog__filters-title {
	margin: 0;
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--fm-color-text, #333);
}

.fm-catalog__filters-reset {
	font-size: 0.875rem;
	color: var(--fm-color-primary, #5a4743);
	text-decoration: none;
}

.fm-catalog__filters-reset:hover {
	text-decoration: underline;
}

/* Categories / subcategories above products */
.fm-catalog-cats {
	margin: 0 0 1.75rem;
	width: 100%;
}

.fm-catalog-cats__list {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 0.75rem !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.fm-catalog-cats__item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.fm-catalog-cats__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	border: 1px solid var(--fm-color-border, #e5e7eb);
	border-radius: var(--fm-radius, 0.625rem);
	background: #fff;
	color: var(--fm-color-text, #333);
	text-decoration: none !important;
	font-family: var(--fm-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.fm-catalog-cats__link:hover {
	border-color: var(--fm-color-primary, #5a4743);
	color: var(--fm-color-primary, #5a4743);
}

.fm-catalog-cats__count {
	font-weight: 500;
	font-size: 0.8125rem;
	color: #9ca3af;
}

/* Smart filter (bootstrap_v4) — стиль сайдбара, без скрытия логики Bitrix */
.fm-catalog__filters .bx-filter,
.fm-catalog__filters .smart-filter {
	margin: 0;
	font-family: var(--fm-font-heading, Montserrat, "Segoe UI", sans-serif);
}

.fm-catalog__filters .bx-filter-section,
.fm-catalog__filters .smart-filter-section {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.fm-catalog__filters .smart-filter-title {
	display: none !important;
}

.fm-catalog__filters .row {
	display: block;
	margin: 0;
}

.fm-catalog__filters .row > [class*="col"] {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

.fm-catalog__filters .smart-filter-parameters-box {
	border-bottom: 1px solid #e5e7eb;
	margin: 0;
	padding: 0;
}

.fm-catalog__filters .smart-filter-parameters-box-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--fm-color-text, #333);
	cursor: pointer;
	transition: color 0.2s ease;
}

.fm-catalog__filters .smart-filter-parameters-box-title:hover,
.fm-catalog__filters .smart-filter-parameters-box-title:hover .smart-filter-parameters-box-title-text {
	color: var(--fm-color-primary, #5a4743);
}

.fm-catalog__filters .smart-filter-parameters-box-title-text {
	color: inherit !important;
	font-family: var(--fm-font-heading, Montserrat, "Segoe UI", sans-serif);
}

.fm-catalog__filters .smart-filter-angle {
	opacity: 0.55;
}

.fm-catalog__filters .smart-filter-parameters-box .smart-filter-block {
	padding: 0 0 1rem;
}

.fm-catalog__filters .smart-filter-input-group-number .d-flex {
	display: flex !important;
	gap: 1rem;
	justify-content: space-between;
}

.fm-catalog__filters .smart-filter-input-group-number .form-group {
	width: calc(50% - 0.5rem) !important;
	margin: 0;
}

.fm-catalog__filters .form-control,
.fm-catalog__filters input[type="number"],
.fm-catalog__filters input[type="text"] {
	width: 100%;
	height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	background: #fff;
	color: #333;
}

.fm-catalog__filters .form-control:focus,
.fm-catalog__filters input[type="number"]:focus,
.fm-catalog__filters input[type="text"]:focus {
	outline: none;
	border-color: var(--fm-color-primary, #5a4743);
	box-shadow: 0 0 0 2px rgba(90, 71, 67, 0.15);
}

/* Ползунок цены — позиции меток обязательны: style.css компонента часто не грузится */
.fm-catalog__filters .smart-filter-slider-track-container {
	display: block !important;
	visibility: visible !important;
	overflow: visible;
	height: auto !important;
	padding: 1.75rem 0.75rem 1.5rem;
	margin-top: 0.5rem;
}

.fm-catalog__filters .smart-filter-slider-track {
	display: block !important;
	visibility: visible !important;
	position: relative;
	height: 7px !important;
	background: #e7e7e7;
	border-radius: 999px;
}

.fm-catalog__filters .smart-filter-slider-ruler {
	display: block !important;
	visibility: visible !important;
	position: absolute !important;
	top: -6px;
	bottom: auto;
	width: 1px;
	height: 17px;
	background: #c4b5b0;
	right: auto;
}

.fm-catalog__filters .smart-filter-slider-ruler.p1 { left: 0 !important; right: auto !important; }
.fm-catalog__filters .smart-filter-slider-ruler.p2 { left: 25% !important; right: auto !important; }
.fm-catalog__filters .smart-filter-slider-ruler.p3 { left: 50% !important; right: auto !important; }
.fm-catalog__filters .smart-filter-slider-ruler.p4 { left: 75% !important; right: auto !important; }
.fm-catalog__filters .smart-filter-slider-ruler.p5 { left: auto !important; right: 0 !important; }

.fm-catalog__filters .smart-filter-slider-ruler span {
	position: absolute;
	top: -16px;
	left: 50%;
	display: block;
	width: auto;
	min-width: 0;
	max-width: 4.5rem;
	margin-left: 0;
	transform: translateX(-50%);
	color: #6b7280;
	text-align: center;
	font-size: 10px;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

/* В узком сайдбаре средние метки только мешают — оставляем min/max */
.fm-catalog__filters .smart-filter-slider-ruler.p2,
.fm-catalog__filters .smart-filter-slider-ruler.p3,
.fm-catalog__filters .smart-filter-slider-ruler.p4 {
	background: transparent;
}

.fm-catalog__filters .smart-filter-slider-ruler.p2 span,
.fm-catalog__filters .smart-filter-slider-ruler.p3 span,
.fm-catalog__filters .smart-filter-slider-ruler.p4 span {
	display: none !important;
}

.fm-catalog__filters .smart-filter-slider-ruler.p1 span {
	left: 0;
	transform: none;
	text-align: left;
}

.fm-catalog__filters .smart-filter-slider-ruler.p5 span {
	left: auto;
	right: 0;
	transform: none;
	text-align: right;
}

.fm-catalog__filters .smart-filter-slider-price-bar-v {
	background-color: var(--fm-color-primary, #5a4743) !important;
}

.fm-catalog__filters .smart-filter-slider-handle {
	position: absolute;
	top: 100%;
	width: 18px;
	height: 18px;
	margin-top: -4px;
	border: 2px solid var(--fm-color-primary, #5a4743);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	z-index: 120;
}

/* Картинки/цвета в фильтре — не схлопывать в «палку» */
.fm-catalog__filters .smart-filter-input-group-checkbox-pictures {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures .smart-filter-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	float: none !important;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures .smart-filter-checkbox-btn.bx-color-sl {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.25rem !important;
	height: 2.25rem !important;
	padding: 2px;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	background: #fff;
	overflow: hidden;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures .smart-filter-checkbox-btn-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 0.25rem;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-list .form-group,
.fm-catalog__filters .smart-filter-input-group-checkbox-list .form-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	padding: 0;
}

.fm-catalog__filters .form-check-input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	flex-shrink: 0;
	border-radius: 0.25rem;
	border: 1px solid #d1d5db;
	accent-color: var(--fm-color-primary, #5a4743);
	pointer-events: auto;
}

.fm-catalog__filters .smart-filter-checkbox-text,
.fm-catalog__filters .form-check-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.875rem;
	color: #374151;
	cursor: pointer;
	line-height: 1.4;
}

.fm-catalog__filters .smart-filter-param-btn.bx-spm,
.fm-catalog__filters .smart-filter-checkbox-text-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.5rem 1rem;
	margin: 0 0.5rem 0.5rem 0;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	background: #fff;
	font-size: 0.875rem;
	color: #333;
}

.fm-catalog__filters .smart-filter-param-label.bx-active .smart-filter-param-btn,
.fm-catalog__filters .smart-filter-checkbox-label.bx-active .smart-filter-checkbox-btn {
	border-color: var(--fm-color-primary, #5a4743);
	color: var(--fm-color-primary, #5a4743);
}

/* Цветовые кружки (не трогаем вложенный .btn-image у брендов/картинок) */
.fm-catalog__filters .smart-filter-input-group-checkbox-list .smart-filter-checkbox-btn.bx-color-sl {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	border: 2px solid #d1d5db;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}

/* Кнопки Показать / Сбросить */
.fm-catalog__filters .smart-filter-button-box {
	display: block !important;
	margin-top: 1.25rem;
	padding-top: 0.25rem;
	border-bottom: 0;
}

.fm-catalog__filters .smart-filter-button-box .smart-filter-block {
	display: block !important;
	padding: 0;
}

.fm-catalog__filters .smart-filter-button-box .smart-filter-parameters-box-container {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fm-catalog__filters .smart-filter-button-box .btn,
.fm-catalog__filters .smart-filter-button-box input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1rem;
	border-radius: 0.625rem;
	border: 1px solid var(--fm-color-primary, #5a4743);
	font-family: var(--fm-font-heading, Montserrat, "Segoe UI", sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.fm-catalog__filters .smart-filter-button-box .btn-primary,
.fm-catalog__filters .smart-filter-button-box input.btn-primary {
	background: var(--fm-color-primary, #5a4743) !important;
	border-color: var(--fm-color-primary, #5a4743) !important;
	color: #fff !important;
}

.fm-catalog__filters .smart-filter-button-box .btn-link,
.fm-catalog__filters .smart-filter-button-box input.btn-link {
	background: #fff !important;
	color: var(--fm-color-primary, #5a4743) !important;
	text-decoration: none !important;
}

.fm-catalog__filters .smart-filter-popup-result {
	position: static !important;
	display: block;
	margin-top: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: none;
	font-size: 0.8125rem;
	color: #374151;
}

.fm-catalog-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.fm-catalog-section__title {
	margin: 0 0 0.35rem;
	font-family: var(--fm-font-heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}

.fm-catalog-section__count {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.fm-catalog-empty {
	padding: 3rem 1rem;
	text-align: center;
	color: #6b7280;
}

.fm-catalog-empty .fm-btn {
	margin-top: 1rem;
}

/* Product grid — reuse home card look on catalog pages */
.fm-catalog .fm-products,
.fm-related .fm-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.fm-catalog .fm-products,
	.fm-related .fm-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.fm-catalog .fm-products,
	.fm-related .fm-products {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fm-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 0;
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow-sm);
	transition: box-shadow 0.2s ease;
}

.fm-product-card:hover {
	box-shadow: var(--fm-shadow-md);
}

.fm-product-card .fm-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.25rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: #fff;
}

.fm-product-card .fm-card__badge--sale {
	background: #ef4444;
}

.fm-product-card .fm-card__badge--out {
	background: #6b7280;
}

.fm-card__fav {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	background: #fff;
	color: #9ca3af;
	box-shadow: var(--fm-shadow-sm);
	transition: color 0.2s ease, background 0.2s ease;
}

.fm-card__fav:hover {
	color: #ef4444;
	background: #fff;
}

.fm-product-card .fm-card__image {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #e8eee8;
}

.fm-product-card .fm-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.fm-product-card:hover .fm-card__image img {
	transform: scale(1.05);
}

.fm-product-card .fm-card__image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #9ca3af;
	font-size: 0.875rem;
}

.fm-product-card .fm-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fm-product-card .fm-card__cat {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	color: #6b7280;
}

.fm-product-card .fm-card__title {
	margin: 0 0 0.5rem;
	font-family: var(--fm-font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--fm-color-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fm-product-card .fm-card__title:hover {
	color: var(--fm-color-primary);
}

.fm-product-card .fm-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.fm-product-card .fm-card__price-current {
	font-family: var(--fm-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.fm-product-card .fm-card__price-old {
	font-size: 0.875rem;
	color: #9ca3af;
	text-decoration: line-through;
}

.fm-card__actions--stack {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: auto;
}

.fm-card__actions--stack .fm-btn {
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
}

.fm-btn.is-disabled,
.fm-btn.is-disabled:hover,
a.fm-btn.is-disabled {
	background: #d1d5db;
	border-color: #d1d5db;
	color: #fff;
	pointer-events: none;
	cursor: not-allowed;
}

.fm-btn--outline.is-disabled,
.fm-btn--outline.is-disabled:hover {
	background: transparent;
	border-color: #d1d5db;
	color: #d1d5db;
}

/* Pager */
.fm-catalog-pager {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.fm-catalog-pager .bx-pagination,
.fm-catalog-pager ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-catalog-pager a,
.fm-catalog-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--fm-color-border, #e5e7eb);
	border-radius: var(--fm-radius);
	color: var(--fm-color-text);
	text-decoration: none;
	font-size: 0.875rem;
}

.fm-catalog-pager .bx-active span,
.fm-catalog-pager li.bx-active a,
.fm-catalog-pager .bx-active a {
	background: var(--fm-color-primary);
	border-color: var(--fm-color-primary);
	color: #fff;
}

/* Product detail */
.fm-product {
	padding: 0 0 1rem;
}

.fm-product__grid {
	display: grid !important;
	gap: 2.5rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.fm-product__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}
}

.fm-product__main-image {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--fm-radius);
	background: #e8eee8;
}

.fm-product__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-product__image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #9ca3af;
}

.fm-product__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}

.fm-product__thumb {
	aspect-ratio: 3 / 4;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--fm-radius);
	overflow: hidden;
	background: #e8eee8;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.fm-product__thumb.is-active,
.fm-product__thumb:hover {
	border-color: var(--fm-color-primary);
}

.fm-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-product__info-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.fm-product__title {
	margin: 0 0 0.5rem;
	font-family: var(--fm-font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.fm-product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.fm-product__fav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background: #f3f4f6;
	color: #4b5563;
	transition: background 0.2s ease, color 0.2s ease;
}

.fm-product__fav:hover {
	background: #fee2e2;
	color: #ef4444;
}

.fm-product__price-block {
	margin-bottom: 1.5rem;
}

.fm-product__prices {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.fm-product__price {
	font-family: var(--fm-font-heading);
	font-size: 1.875rem;
	font-weight: 700;
}

.fm-product__price-old {
	font-size: 1.25rem;
	color: #9ca3af;
	text-decoration: line-through;
}

.fm-product__stock {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
}

.fm-product__stock.is-in {
	color: #16a34a;
}

.fm-product__stock.is-out {
	color: #dc2626;
}

.fm-product__sizes {
	margin-bottom: 1.5rem;
}

.fm-product__colors {
	margin-bottom: 1.25rem;
}

.fm-product__color-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fm-product__color {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 2px solid #d1d5db;
	border-radius: 9999px;
	background: #e5e7eb center/cover no-repeat;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fm-product__color.is-active {
	border-color: var(--fm-color-primary);
	box-shadow: 0 0 0 2px rgba(46, 134, 193, 0.25);
}

.fm-product__sizes-label em {
	font-style: normal;
	font-weight: 400;
	color: #6b7280;
}

.fm-product__sizes-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.fm-product__sizes-label {
	font-weight: 600;
}

.fm-product__sizes-head a {
	font-size: 0.875rem;
	color: var(--fm-color-primary);
	text-decoration: none;
}

.fm-product__sizes-head a:hover {
	text-decoration: underline;
}

.fm-product__size-list {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
	width: 100%;
}

.fm-product__size {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 0.25rem;
	border: 2px solid #d1d5db;
	border-radius: var(--fm-radius, 0.625rem);
	background: #fff;
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1;
	color: var(--fm-color-text, #333);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fm-product__size:hover:not(:disabled) {
	border-color: var(--fm-color-primary, #5a4743);
}

.fm-product__size.is-active {
	border-color: var(--fm-color-primary, #5a4743);
	background: var(--fm-color-primary, #5a4743);
	color: #fff;
}

.fm-product__size:disabled,
.fm-product__size.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fm-product__size.is-unavailable {
	opacity: 0.45;
	text-decoration: line-through;
}

.fm-product__size-hint {
	display: none;
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #dc2626;
}

.fm-product__size-hint.is-visible {
	display: block;
}

.fm-product__actions {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	margin-bottom: 2rem;
	width: 100%;
}

.fm-product__buy {
	flex: 1 1 auto;
	width: 100%;
	min-height: 3.5rem;
	padding: 1rem 1.5rem;
	text-align: center;
	justify-content: center;
}

.fm-product__buy:not(.is-disabled) {
	background: var(--fm-color-primary, #5a4743);
	color: #fff;
}

.fm-product__share {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 3.5rem;
	width: 3.5rem;
	min-height: 3.5rem;
	border: 2px solid #d1d5db;
	border-radius: var(--fm-radius, 0.625rem);
	background: #fff;
	color: #4b5563;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.fm-product__share:hover,
.fm-product__share.is-copied {
	border-color: var(--fm-color-primary);
	color: var(--fm-color-primary);
}

.fm-product__benefits {
	list-style: none;
	margin: 0;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--fm-color-border, #e5e7eb);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fm-product__benefits li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.fm-product__benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.1);
	color: var(--fm-color-primary);
}

.fm-product__benefits strong {
	display: block;
	font-size: 0.9375rem;
}

.fm-product__benefits span {
	font-size: 0.875rem;
	color: #6b7280;
}

/* Tabs */
.fm-product__tabs {
	margin-top: 3rem;
}

.fm-product__tablist {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--fm-color-border, #e5e7eb);
}

.fm-product__tab {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: #6b7280;
	font-family: var(--fm-font-heading);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.fm-product__tab.is-active {
	color: var(--fm-color-primary);
	border-bottom-color: var(--fm-color-primary);
}

.fm-product__tabpanel {
	padding: 1.5rem 0;
}

.fm-product__desc {
	line-height: 1.7;
	color: #374151;
	max-width: 48rem;
}

.fm-product__muted {
	margin: 0;
	color: #6b7280;
}

.fm-product__chars {
	margin: 0;
	max-width: 40rem;
}

.fm-product__char {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--fm-color-border, #e5e7eb);
}

.fm-product__char:last-child {
	border-bottom: 0;
}

.fm-product__char dt {
	font-weight: 600;
	color: #374151;
}

.fm-product__char dd {
	margin: 0;
	text-align: right;
	color: #6b7280;
}

/* Related */
.fm-related {
	margin-top: 4rem;
	padding-bottom: 2rem;
}

.fm-related__title {
	margin: 0 0 2rem;
	font-family: var(--fm-font-heading);
	font-size: 1.75rem;
	font-weight: 700;
}

@media (max-width: 639px) {
	.fm-product__size-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fm-product__title {
		font-size: 1.5rem;
	}
}



/* ===== FM PAGES CSS (inlined for Bitrix asset cache) ===== */
.fm-page-section {
	padding: 4rem 0;
}

.fm-page-section--muted {
	background: var(--fm-color-bg-secondary);
}

.fm-page-section--tight {
	padding: 2.5rem 0;
}

.fm-page-grid {
	display: grid;
	gap: 1.5rem;
}

.fm-page-grid--2 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.fm-page-grid--3 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.fm-page-grid--4 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.fm-page-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fm-page-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fm-page-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.fm-page-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fm-page-heading {
	margin: 0 0 1rem;
	font-size: 2rem;
}

.fm-page-heading--center {
	text-align: center;
}

.fm-page-subtitle {
	margin: 0 0 2rem;
	color: var(--fm-color-text-muted);
}

.fm-hero-banner {
	position: relative;
	overflow: hidden;
	background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38));
	color: var(--fm-color-white);
}

.fm-hero-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fm-hero-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
}

.fm-hero-banner__inner {
	position: relative;
	z-index: 1;
	min-height: 420px;
	display: flex;
	align-items: center;
	padding: 4rem 0;
}

.fm-hero-banner__content {
	max-width: 42rem;
}

.fm-hero-banner__title {
	margin: 0 0 1rem;
	font-size: 2.25rem;
	line-height: 1.15;
	color: var(--fm-color-white);
}

.fm-hero-banner__text {
	margin: 0 0 2rem;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
	.fm-hero-banner__title {
		font-size: 3rem;
	}
}

.fm-card {
	background: var(--fm-color-white);
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow-sm);
}

.fm-card--padded {
	padding: 1.5rem;
}

.fm-icon-circle {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 4.5rem !important;
	height: 4.5rem !important;
	max-width: 4.5rem !important;
	max-height: 4.5rem !important;
	margin: 0 auto 1rem;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.08);
	color: var(--fm-color-primary);
	overflow: hidden;
	flex-shrink: 0;
}

.fm-icon-circle svg {
	width: 2rem !important;
	height: 2rem !important;
	max-width: 2rem !important;
	max-height: 2rem !important;
	display: block;
}

.fm-feature-card {
	text-align: center;
}

.fm-feature-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}

.fm-feature-card__text {
	margin: 0;
	color: var(--fm-color-text-muted);
	font-size: 0.95rem;
}

.fm-step {
	text-align: center;
}

.fm-step__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1rem;
	border-radius: 9999px;
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
	font-family: var(--fm-font-heading);
	font-weight: 700;
}

.fm-list-check,
.fm-list-bullet {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-list-check li,
.fm-list-bullet li {
	position: relative;
	padding-left: 1.5rem;
	color: var(--fm-color-text-muted);
}

.fm-list-check li + li,
.fm-list-bullet li + li {
	margin-top: 0.75rem;
}

.fm-list-check li::before,
.fm-list-bullet li::before {
	position: absolute;
	left: 0;
	top: 0.1rem;
	color: var(--fm-color-primary);
}

.fm-list-check li::before {
	content: "✓";
}

.fm-list-bullet li::before {
	content: "•";
}

.fm-logo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.fm-logo-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fm-logo-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 7rem;
	padding: 1.5rem;
	color: #9ca3af;
	font-family: var(--fm-font-heading);
}

.fm-cta-box {
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
	border-radius: var(--fm-radius);
	padding: 2rem;
}

.fm-cta-box h2,
.fm-cta-box h3 {
	color: var(--fm-color-white);
	margin-top: 0;
}

.fm-cta-box p {
	color: rgba(255, 255, 255, 0.92);
}

.fm-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fm-page-kicker {
	margin: 0 0 0.5rem;
	color: var(--fm-color-text-muted);
	font-size: 0.95rem;
}

.fm-faq-group + .fm-faq-group {
	margin-top: 2.5rem;
}

.fm-faq-item + .fm-faq-item {
	margin-top: 0.75rem;
}

.fm-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	list-style: none;
	cursor: pointer;
	font-family: var(--fm-font-heading);
}

.fm-faq-item summary::-webkit-details-marker {
	display: none;
}

.fm-faq-item summary::after {
	content: "+";
	font-size: 1.125rem;
	color: var(--fm-color-primary);
}

.fm-faq-item[open] summary::after {
	content: "−";
}

.fm-faq-item__content {
	padding: 0 1.25rem 1rem;
	color: var(--fm-color-text-muted);
}

.fm-info-band {
	background: var(--fm-color-bg-secondary);
	border-radius: var(--fm-radius);
	padding: 1rem 1.25rem;
}

.fm-delivery-method__meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	margin-top: 1rem;
	border-top: 1px solid var(--fm-color-border);
}

.fm-delivery-method__meta-label {
	display: block;
	font-size: 0.75rem;
	color: var(--fm-color-text-muted);
}

.fm-detail-note {
	padding: 1.5rem;
	border-left: 4px solid var(--fm-color-primary);
	background: var(--fm-color-white);
	border-radius: var(--fm-radius);
}

.fm-table-wrap {
	overflow-x: auto;
}

.fm-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}

.fm-table th {
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
	text-align: left;
	padding: 1rem;
	font-family: var(--fm-font-heading);
	font-weight: 600;
}

.fm-table td {
	padding: 1rem;
	border-top: 1px solid var(--fm-color-border);
}

.fm-table tbody tr:nth-child(even) {
	background: var(--fm-color-bg-secondary);
}

.fm-measure-box {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 2rem;
}

@media (min-width: 768px) {
	.fm-measure-box {
		grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
		align-items: start;
	}
}

.fm-illustration {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	background: var(--fm-color-bg-secondary);
	border-radius: var(--fm-radius);
	text-align: center;
}

.fm-illustration__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 8rem !important;
	height: 8rem !important;
	max-width: 8rem !important;
	max-height: 8rem !important;
	margin-bottom: 1rem;
	border-radius: 9999px;
	background: var(--fm-color-white);
	color: var(--fm-color-primary);
	overflow: hidden;
	flex-shrink: 0;
}

.fm-illustration__icon svg {
	width: 3rem !important;
	height: 3rem !important;
	max-width: 3rem !important;
	max-height: 3rem !important;
	display: block;
}

.fm-account-layout {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.fm-account-layout {
		grid-template-columns: 260px minmax(0, 1fr);
	}
}

.fm-account-sidebar {
	padding: 1.5rem;
}

.fm-account-user {
	text-align: center;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--fm-color-border);
}

.fm-account-user__avatar {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 4.5rem !important;
	height: 4.5rem !important;
	max-width: 4.5rem !important;
	max-height: 4.5rem !important;
	margin-bottom: 1rem;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.08);
	color: var(--fm-color-primary);
	overflow: hidden;
	flex-shrink: 0;
}

.fm-account-user__avatar svg {
	width: 2rem !important;
	height: 2rem !important;
	max-width: 2rem !important;
	max-height: 2rem !important;
	display: block;
}

.fm-account-nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fm-account-nav a,
.fm-account-nav span {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-radius: var(--fm-radius);
}

.fm-account-nav .is-active {
	background: var(--fm-color-primary);
	color: var(--fm-color-white);
}

.fm-account-panel {
	padding: 1.5rem;
}

.fm-form-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.fm-form-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fm-form-field label,
.fm-form-field strong {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.fm-form-field input[type="text"],
.fm-form-field input[type="password"],
.fm-form-field input[type="email"],
.fm-form-field input[type="tel"],
.fm-form-field input[type="date"],
.fm-form-field textarea,
.fm-form-field select {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius);
	font: inherit;
}

.fm-form-field textarea {
	min-height: 110px;
	resize: vertical;
}

.fm-form-footer {
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid var(--fm-color-border);
}

.fm-empty-state {
	padding: 3rem 1.5rem;
	text-align: center;
}

.fm-favorites-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.fm-favorites-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.fm-favorites-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fm-product-card {
	overflow: hidden;
	position: relative;
}

.fm-product-card__badge,
.fm-product-card__remove {
	position: absolute;
	top: 0.75rem;
	z-index: 1;
}

.fm-product-card__badge {
	left: 0.75rem;
	padding: 0.35rem 0.6rem;
	background: #ef4444;
	color: #fff;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
}

.fm-product-card__remove {
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid var(--fm-color-border);
	color: var(--fm-color-text-muted);
}

.fm-product-card__media {
	aspect-ratio: 3 / 4;
	background: #b0beac;
}

.fm-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-product-card__body {
	padding: 1rem;
}

.fm-product-card__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.fm-product-card__meta {
	margin: 0 0 0.75rem;
	color: var(--fm-color-text-muted);
	font-size: 0.875rem;
}

.fm-product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.fm-product-card__price-current {
	color: var(--fm-color-primary);
	font-family: var(--fm-font-heading);
	font-weight: 600;
}

.fm-product-card__price-old {
	color: #9ca3af;
	text-decoration: line-through;
	font-size: 0.875rem;
}

/* Content pages: contacts / about / b2b / delivery */

.fm-contacts-layout {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.fm-contacts-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: 3rem;
	}
}

.fm-contacts-block {
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--fm-color-border);
}

.fm-contacts-row {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 1rem;
}

.fm-contacts-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fm-color-text);
}

.fm-contacts-card {
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: var(--fm-radius);
	background: var(--fm-color-bg-secondary, #efe3d3);
}

.fm-contacts-card p {
	margin: 0 0 0.35rem;
	color: #6b7280;
}

.fm-contacts-subheading {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.fm-marketplace-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fm-marketplace-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius);
	background: #fff;
	color: var(--fm-color-text);
	text-decoration: none;
	font-weight: 600;
}

.fm-marketplace-link:hover {
	border-color: var(--fm-color-primary);
	color: var(--fm-color-primary);
}

.fm-marketplace-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.25rem 0.4rem;
	border-radius: 0.375rem;
	background: #cb11ab;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.fm-marketplace-badge--ozon {
	background: #005bff;
}

.fm-form-note {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: #6b7280;
}

.fm-stats-row,
.fm-discount-row {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 768px) {
	.fm-stats-row,
	.fm-discount-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fm-stat-card,
.fm-discount-card {
	padding: 1.25rem 1.5rem;
	border-radius: var(--fm-radius);
	background: var(--fm-color-bg-secondary, #efe3d3);
	text-align: center;
}

.fm-stat-card strong,
.fm-discount-card strong {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--fm-font-heading);
	font-size: 1.75rem;
	color: var(--fm-color-primary);
}

.fm-stat-card span,
.fm-discount-card span {
	color: #6b7280;
	font-size: 0.9375rem;
}

.fm-content-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.fm-content-tabs__btn {
	padding: 0.625rem 1rem;
	border: 1px solid var(--fm-color-border);
	border-radius: var(--fm-radius);
	background: #fff;
	color: var(--fm-color-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.fm-content-tabs__btn.is-active,
.fm-content-tabs__btn:hover {
	border-color: var(--fm-color-primary);
	background: var(--fm-color-primary);
	color: #fff;
}

.fm-content-panel[hidden] {
	display: none !important;
}


/* ===== FM SVG HARD LIMITS ===== */
.fm-icon-circle svg,
.fm-illustration__icon svg,
.fm-account-user__avatar svg,
.fm-header__icon-btn svg,
.fm-feature-card svg {
	width: 2rem !important;
	height: 2rem !important;
	max-width: 2.5rem !important;
	max-height: 2.5rem !important;
}
.fm-illustration__icon svg {
	width: 3rem !important;
	height: 3rem !important;
	max-width: 3rem !important;
	max-height: 3rem !important;
}
#basket-root.bx-step-opacity { opacity: 1 !important; }


/* ===== FM CART / CHECKOUT POLISH ===== */
#basket-root.bx-step-opacity { opacity: 1 !important; }
#basket-root .basket-items-list-wrapper,
#basket-root .basket-checkout-container {
	border: 1px solid var(--fm-color-border, #e5e7eb);
	border-radius: var(--fm-radius, 12px);
	background: #fff;
	overflow: hidden;
}
#basket-root .basket-checkout-block-btn .btn,
#basket-root .btn.btn-primary {
	background: var(--fm-color-primary, #5A4743) !important;
	border-color: var(--fm-color-primary, #5A4743) !important;
}
.bx-soa-section {
	border: 1px solid var(--fm-color-border, #e5e7eb) !important;
	border-radius: var(--fm-radius, 12px) !important;
	background: #fff !important;
	margin-bottom: 1rem !important;
}
.bx-soa-section-title-count {
	display: none !important;
}
.bx-soa-cart-total-line-value,
.bx-price {
	color: var(--fm-color-primary, #5A4743);
}
.bx-soa-cart-total .btn {
	background: var(--fm-color-primary, #5A4743) !important;
	border-color: var(--fm-color-primary, #5A4743) !important;
}

/* ===== Cart mockup (sync) ===== */
/* ===== Cart (mockup layout) ===== */
.fm-cart-empty {
	max-width: 28rem;
	margin: 2rem auto 4rem;
	text-align: center;
}

.fm-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 9999px;
	background: rgba(90, 71, 67, 0.08);
	color: var(--fm-color-primary, #5A4743);
}

.fm-cart-empty__icon svg {
	width: 2.25rem !important;
	height: 2.25rem !important;
}

.fm-cart {
	opacity: 1 !important;
}

.fm-cart__head {
	margin-bottom: 0.35rem;
}

.fm-cart__head .fm-page-heading {
	margin: 0 0 0.25rem;
	font-size: 2rem;
}

.fm-cart__count {
	margin: 0 0 1.5rem;
	color: #6b7280;
	font-size: 0.9375rem;
}

.fm-cart__count a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}

.fm-cart__layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 992px) {
	.fm-cart__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2rem;
	}

	.fm-cart__aside {
		position: sticky;
		top: 1.25rem;
	}
}

.fm-cart .basket-items-list-wrapper,
.fm-cart .basket-items-list-wrapper-light {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.fm-cart .basket-items-list-wrapper-height-fixed {
	height: auto !important;
	max-height: none !important;
}

.fm-cart .basket-items-list-container,
.fm-cart .basket-items-list {
	overflow: visible !important;
}

.fm-cart .basket-items-list-table {
	display: block;
	width: 100%;
	border: 0;
}

/* Card = CSS grid over table row */
.fm-cart .basket-items-list-item-container {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"desc remove"
		"desc sum"
		"amount sum";
	gap: 0.75rem 1.25rem;
	align-items: start;
	margin: 0 0 1rem;
	padding: 1.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	position: relative;
}

.fm-cart .basket-items-list-item-container > td {
	display: block !important;
	border: 0 !important;
	padding: 0 !important;
	width: auto !important;
	float: none !important;
}

.fm-cart .basket-items-list-item-descriptions { grid-area: desc; }
.fm-cart .basket-items-list-item-amount { grid-area: amount; align-self: end; }
.fm-cart .basket-items-list-item-price { grid-area: sum; align-self: start; justify-self: end; text-align: right; }
.fm-cart .basket-items-list-item-price-for-one { display: none !important; }
.fm-cart .basket-items-list-item-remove {
	grid-area: remove;
	justify-self: end;
	position: static !important;
}

@media (min-width: 640px) {
	.fm-cart .basket-items-list-item-container {
		grid-template-columns: minmax(0, 1fr) 140px 28px;
		grid-template-areas:
			"desc sum remove"
			"amount sum remove";
	}
}

.fm-cart .basket-items-list-item-descriptions-inner {
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	float: none !important;
	width: 100% !important;
}

@media (min-width: 640px) {
	.fm-cart .basket-items-list-item-descriptions-inner {
		grid-template-columns: 112px minmax(0, 1fr);
	}
}

.fm-cart .basket-item-block-image {
	float: none !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.fm-cart .basket-item-image-link { display: block; }

.fm-cart .basket-item-image {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto !important;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #eee;
	background: #f3f4f6;
}

.fm-cart .basket-item-block-info {
	padding: 0 !important;
	min-width: 0;
	float: none !important;
}

.fm-cart .basket-item-info-name {
	margin: 0 0 0.35rem !important;
	padding: 0 !important;
}

.fm-cart .basket-item-info-name,
.fm-cart .basket-item-info-name-link {
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.0625rem !important;
	font-weight: 600;
	line-height: 1.35;
	color: #333 !important;
	text-decoration: none !important;
}

/* Props / SKU as compact text rows */
.fm-cart .basket-item-block-properties {
	display: grid;
	gap: 0.2rem;
	margin-top: 0.35rem;
}

.fm-cart .basket-item-property,
.fm-cart .basket-item-property-custom,
.fm-cart .basket-item-property-scu-text,
.fm-cart .basket-item-property-scu-image {
	display: flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #6b7280;
}

.fm-cart .basket-item-property-name,
.fm-cart .basket-item-property-custom-name {
	color: #9ca3af;
	font-weight: 400 !important;
}

.fm-cart .basket-item-property-name::after,
.fm-cart .basket-item-property-custom-name::after {
	content: ":";
}

.fm-cart .basket-item-property-value,
.fm-cart .basket-item-property-custom-value {
	color: #374151;
	font-weight: 500 !important;
}

/* Hide interactive SCU chips — show only selected value as text */
.fm-cart .basket-item-scu-list {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.fm-cart .basket-item-scu-item {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.fm-cart .basket-item-scu-item.selected {
	display: inline !important;
}

.fm-cart .basket-item-scu-item.selected .basket-item-scu-item-inner {
	display: inline !important;
	background: none !important;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	font-size: inherit;
	color: #374151;
	font-weight: 500;
}

.fm-cart .basket-item-property-scu-image .basket-item-scu-item.selected .basket-item-scu-item-inner {
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	vertical-align: -2px;
	background-size: cover !important;
}

/* Hide "Тип цены" and empty props */
.fm-cart .basket-item-property-custom-text .basket-item-property-custom-name {
	text-transform: none;
}

/* Quantity: horizontal - 1 + */
.fm-cart .basket-item-block-amount {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.35rem;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.fm-cart .basket-item-amount-btn-minus,
.fm-cart .basket-item-amount-btn-plus {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #d1d5db !important;
	border-radius: 9999px !important;
	background: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
}

.fm-cart .basket-item-amount-filed-block {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

.fm-cart .basket-item-amount-filed,
.fm-cart input[data-entity="basket-item-quantity-field"] {
	display: inline-block !important;
	width: 2rem !important;
	min-width: 0 !important;
	height: 2rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: center;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 2rem;
	box-shadow: none !important;
}

.fm-cart .basket-item-amount-field-description {
	display: none !important;
}

.fm-cart .basket-item-block-price {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right;
}

.fm-cart .basket-item-price-current-text,
.fm-cart .basket-item-price-current {
	color: var(--fm-color-primary, #5A4743) !important;
	font-weight: 700 !important;
	font-size: 1.125rem !important;
	white-space: nowrap;
}

.fm-cart .basket-item-price-old,
.fm-cart .basket-item-price-title,
.fm-cart .basket-item-price-difference {
	display: none !important;
}

.fm-cart .basket-item-actions-remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	color: #9ca3af;
	cursor: pointer;
	background: transparent;
}

.fm-cart .basket-item-actions-remove:hover { color: #333; }

.fm-cart-summary {
	padding: 1.5rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	background: #fff !important;
	display: block !important;
	opacity: 1 !important;
	box-shadow: none !important;
	flex-wrap: nowrap !important;
}

.fm-cart-summary__title {
	margin: 0 0 1.25rem;
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
}

.fm-cart-summary__rows {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.fm-cart-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9375rem;
	color: #374151;
}

.fm-cart-summary__row--total {
	padding-top: 0.75rem;
	border-top: 1px solid #e5e7eb;
	font-size: 1.125rem;
}

.fm-cart-summary__row--total strong {
	color: var(--fm-color-primary, #5A4743);
	font-weight: 700;
}

.fm-cart-summary__actions {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.fm-cart-summary__actions .fm-btn,
.fm-cart-summary .basket-btn-checkout {
	width: 100%;
	min-height: 2.75rem;
	border-radius: 0.625rem;
	font-weight: 600;
}

.fm-cart-summary .basket-btn-checkout {
	background: var(--fm-color-primary, #5A4743) !important;
	border-color: var(--fm-color-primary, #5A4743) !important;
	color: #fff !important;
}

.fm-cart-summary__trust {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.fm-cart-summary__trust li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.fm-cart-summary__trust li::before {
	content: "✓";
	color: var(--fm-color-primary, #5A4743);
	font-weight: 700;
	flex-shrink: 0;
}

.bx-sbb-empty-cart-container { display: none !important; }

/* Hide noisy basket props by name via attribute when possible */
.fm-cart .basket-item-property-custom-text:has(.basket-item-property-custom-name) {
	/* fallback below for older browsers */
}

/* ===== Catalog mockup identity (sync) ===== */
.fm-catalog-cats { display: none !important; }

.fm-filter-cats {
	margin: 0 0 1.25rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.fm-filter-cats__title {
	margin: 0 0 0.75rem;
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	color: #333;
}

.fm-filter-cats__list {
	display: grid;
	gap: 0.5rem;
}

.fm-filter-cats__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.875rem;
	color: #374151;
	cursor: pointer;
}

.fm-filter-cats__item input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--fm-color-primary, #5A4743);
	flex-shrink: 0;
}

.fm-filter-cats__item.is-active .fm-filter-cats__name {
	font-weight: 600;
	color: var(--fm-color-primary, #5A4743);
}

.fm-filter-cats__count {
	margin-left: auto;
	color: #9ca3af;
	font-size: 0.8125rem;
}

.fm-catalog-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.fm-catalog-sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.fm-catalog-sort select {
	min-width: 11rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #333;
	font-size: 0.875rem;
}

/* Size as chips */
.fm-catalog__filters .fm-filter-chips {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fm-catalog__filters .fm-filter-chips .form-group,
.fm-catalog__filters .fm-filter-chips .form-check {
	margin: 0 !important;
	position: relative;
}

.fm-catalog__filters .fm-filter-chips .form-check-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fm-catalog__filters .fm-filter-chips .form-check-label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}

.fm-catalog__filters .fm-filter-chips .form-check-input:checked + .form-check-label {
	border-color: var(--fm-color-primary, #5A4743);
	color: var(--fm-color-primary, #5A4743);
	background: rgba(90, 71, 67, 0.06);
}

/* Regular checkbox lists (brand/material) — vertical rows */
.fm-catalog__filters .smart-filter-input-group-checkbox-list:not(.fm-filter-chips) {
	display: grid;
	gap: 0.35rem;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-list:not(.fm-filter-chips) .form-check-input {
	position: static;
	opacity: 1;
	pointer-events: auto;
	width: 1rem;
	height: 1rem;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-list:not(.fm-filter-chips) .form-check-label {
	display: inline;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 400;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	width: 100%;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-btn {
	width: 1.25rem !important;
	height: 1.25rem !important;
	border-radius: 999px !important;
	padding: 0 !important;
	overflow: hidden;
}

.fm-catalog__filters .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-btn-image {
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 999px;
	background-size: cover !important;
}

.fm-catalog__filters .smart-filter-input-group-number .d-flex {
	margin-bottom: 0.25rem;
}

/* Product cards closer to mockup */
.fm-catalog .fm-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (min-width: 1024px) {
	.fm-catalog .fm-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.fm-product-card .fm-card__actions--stack {
	display: grid;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.fm-product-card .fm-card__image {
	border-radius: 0.75rem;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: #e8ebe4;
}

.fm-product-card .fm-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-product-card .fm-card__fav {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.92);
	color: #6b7280;
}

.fm-product-card {
	position: relative;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.fm-product-card .fm-card__body {
	padding: 0.75rem 0 0;
}


/* ===== Checkout (mockup: form left + sticky order sidebar) ===== */
#bx-soa-order {
	opacity: 1 !important;
	visibility: visible !important;
}

.fm-checkout .fm-page-kicker {
	margin: 0 0 0.5rem;
}

.fm-checkout .fm-page-kicker a {
	color: var(--fm-color-primary, #5a4743);
	text-decoration: none;
	font-size: 0.875rem;
}

.fm-checkout .fm-page-kicker a:hover {
	text-decoration: underline;
}

.fm-checkout .fm-page-heading {
	margin: 0 0 1.75rem;
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	color: #1f1f1f;
}

.fm-checkout .bx-soa-wrapper {
	font-family: var(--fm-font-body, "Open Sans", sans-serif);
}

.fm-checkout-layout {
	align-items: flex-start;
}

.fm-checkout-main > .bx-soa-section {
	margin-bottom: 1rem !important;
	padding: 1.35rem 1.5rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.fm-checkout .bx-soa-section-title-container {
	margin-bottom: 1.1rem;
	cursor: default !important;
}

.fm-checkout .bx-soa-section-title {
	display: flex !important;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #1f1f1f !important;
	line-height: 1.3;
}

.fm-checkout .bx-soa-section-title-count,
.fm-checkout-main .bx-soa-editstep,
.fm-checkout .bx-soa-more,
.fm-checkout-order-save > a[data-save-button],
.fm-checkout .bx-soa-coupon,
.fm-checkout .bx-soa-coupon-block {
	display: none !important;
}

.fm-checkout #bx-soa-properties .bx-soa-section-title::before,
.fm-checkout #bx-soa-delivery .bx-soa-section-title::before,
.fm-checkout #bx-soa-region .bx-soa-section-title::before,
.fm-checkout #bx-soa-paysystem .bx-soa-section-title::before,
.fm-checkout #bx-soa-pickup .bx-soa-section-title::before {
	content: "";
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	background: center / contain no-repeat;
	opacity: 0.85;
}

.fm-checkout #bx-soa-properties .bx-soa-section-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235a4743' stroke-width='1.75' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.5 20.118a7.5 7.5 0 0115 0'/%3E%3C/svg%3E");
}

.fm-checkout #bx-soa-delivery .bx-soa-section-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235a4743' stroke-width='1.75' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 18.75a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 01-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124l-.804-8A1.125 1.125 0 0020.422 8.25H15.75m-6.75 0V6.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V8.25m-6.75 0h6.75'/%3E%3C/svg%3E");
}

.fm-checkout #bx-soa-region .bx-soa-section-title::before,
.fm-checkout #bx-soa-pickup .bx-soa-section-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235a4743' stroke-width='1.75' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 10.5a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z'/%3E%3C/svg%3E");
}

.fm-checkout #bx-soa-paysystem .bx-soa-section-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235a4743' stroke-width='1.75' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 12a2.25 2.25 0 00-2.25-2.25H15a3 3 0 11-6 0H5.25A2.25 2.25 0 003 12m18 0v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 9m18 0V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v3'/%3E%3C/svg%3E");
}

.fm-checkout .bx-soa-section-content {
	display: block !important;
	height: auto !important;
	opacity: 1 !important;
	padding: 0 !important;
}

.fm-checkout .bx-soa-section-content.container-fluid {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.fm-checkout .form-control,
.fm-checkout input[type="text"],
.fm-checkout input[type="email"],
.fm-checkout input[type="tel"],
.fm-checkout select,
.fm-checkout textarea,
.fm-checkout .bx-ui-sls-fake,
.fm-checkout .bx-ui-slst-pool .bx-ui-slst-input-block {
	border: 1px solid #d1d5db !important;
	border-radius: 0.5rem !important;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem !important;
	font-size: 0.9375rem !important;
	background: #fff !important;
	box-shadow: none !important;
}

.fm-checkout textarea.form-control,
.fm-checkout .bx-soa-customer-textarea {
	min-height: 5.5rem;
	resize: vertical;
}

.fm-checkout .form-control:focus,
.fm-checkout input:focus,
.fm-checkout select:focus,
.fm-checkout textarea:focus {
	border-color: var(--fm-color-primary, #5a4743) !important;
	box-shadow: 0 0 0 2px rgba(90, 71, 67, 0.12) !important;
	outline: none;
}

.fm-checkout label,
.fm-checkout .bx-soa-custom-label,
.fm-checkout .bx-soa-customer-label {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: #374151 !important;
	margin-bottom: 0.35rem !important;
}

/* Delivery / payment as radio rows */
.fm-checkout #bx-soa-delivery .bx-soa-pp-company,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 0 0.65rem !important;
	padding: 0.85rem 1rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.65rem !important;
	background: #fff !important;
	cursor: pointer;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company:last-child,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company:last-child {
	margin-bottom: 0 !important;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company.bx-selected,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company.bx-selected {
	border-color: var(--fm-color-primary, #5a4743) !important;
	box-shadow: 0 0 0 1px var(--fm-color-primary, #5a4743);
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company-graf-container,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company-graf-container {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	order: 1;
	flex: 1 1 auto;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company-image,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company-image {
	display: none !important;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company-checkbox,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company-checkbox {
	position: static !important;
	opacity: 1 !important;
	width: 1.1rem !important;
	height: 1.1rem !important;
	margin: 0 !important;
	accent-color: var(--fm-color-primary, #5a4743);
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company-smalltitle,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company-smalltitle {
	order: 2;
	flex: 1 1 12rem;
	margin: 0 !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	color: #1f1f1f !important;
	text-align: left !important;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-delivery-cost,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-delivery-cost {
	order: 3;
	margin-left: auto !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	color: var(--fm-color-primary, #5a4743) !important;
	white-space: nowrap;
}

.fm-checkout #bx-soa-delivery .bx-soa-pp-company-desc,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-company-desc,
.fm-checkout #bx-soa-delivery .bx-soa-pp-desc-container,
.fm-checkout #bx-soa-paysystem .bx-soa-pp-desc-container {
	width: 100%;
	order: 4;
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: 0.15rem;
}

/* Aside: Ваш заказ */
.fm-checkout-aside-col {
	position: relative;
}

.fm-checkout .bx-soa-cart-total-ghost {
	display: none !important;
	padding: 0 !important;
	height: 0 !important;
}

.fm-checkout-aside {
	position: sticky;
	top: 1.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	padding: 1.35rem 1.35rem 1.15rem;
}

.fm-checkout-aside__basket {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.fm-checkout-aside__basket .bx-soa-section-title-container {
	margin-bottom: 1rem;
}

.fm-checkout-aside__basket .bx-soa-editstep {
	display: none !important;
}

.fm-checkout-aside .bx-soa-cart-total {
	position: static !important;
	top: auto !important;
	width: auto !important;
	margin: 1rem 0 0 !important;
	padding: 1rem 0 0 !important;
	border: none !important;
	border-top: 1px solid #e5e7eb !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.fm-checkout-aside .bx-soa-cart-total-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0.35rem 0 !important;
	font-size: 0.9375rem;
	color: #4b5563;
}

.fm-checkout-aside .bx-soa-cart-total-line-total {
	margin-top: 0.75rem !important;
	padding-top: 0.75rem;
	border-top: 1px solid #f3f4f6;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1f1f1f;
}

.fm-checkout-aside .bx-soa-cart-total-line-value,
.fm-checkout-aside .bx-price {
	color: var(--fm-color-primary, #5a4743) !important;
	font-weight: 700;
}

.fm-checkout-aside .bx-soa-cart-total-line-total .bx-soa-cart-total-line-value,
.fm-checkout-aside .bx-soa-cart-total-line-total .bx-price {
	font-size: 1.35rem !important;
}

.fm-checkout-aside .bx-soa-cart-total-button-container {
	display: block !important;
	margin-top: 1.1rem !important;
}

.fm-checkout-aside .bx-soa-cart-total .btn,
.fm-checkout-aside .bx-soa-cart-total-button-container .btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 3rem;
	padding: 0.75rem 1.25rem !important;
	border-radius: 0.65rem !important;
	background: var(--fm-color-primary, #5a4743) !important;
	border-color: var(--fm-color-primary, #5a4743) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	text-decoration: none !important;
}

.fm-checkout-aside .bx-soa-cart-total .btn:hover {
	background: var(--fm-color-primary-hover, #4a3a37) !important;
	border-color: var(--fm-color-primary-hover, #4a3a37) !important;
}

.fm-checkout-offer {
	margin: 0.85rem 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #9ca3af;
	text-align: center;
}

.fm-checkout-offer a {
	color: var(--fm-color-primary, #5a4743);
	text-decoration: underline;
}

/* Basket items in sidebar */
.fm-checkout-aside .bx-soa-item-table,
.fm-checkout-aside .bx-soa-item-tr,
.fm-checkout-aside .bx-soa-item-td {
	display: block !important;
	width: 100% !important;
	border: none !important;
}

.fm-checkout-aside .bx-soa-item-tr {
	display: grid !important;
	grid-template-columns: 3.25rem 1fr auto;
	gap: 0.65rem 0.75rem;
	align-items: start;
	padding: 0.75rem 0 !important;
	border-bottom: 1px solid #f3f4f6 !important;
}

.fm-checkout-aside .bx-soa-item-tr:last-child {
	border-bottom: none !important;
}

.fm-checkout-aside .bx-soa-item-img-block,
.fm-checkout-aside .bx-soa-item-imgcontainer {
	width: 3.25rem !important;
	height: 3.25rem !important;
	min-width: 3.25rem !important;
	border-radius: 0.4rem;
	overflow: hidden;
	background: #f3f4f6;
	grid-column: 1;
	grid-row: 1 / span 2;
}

.fm-checkout-aside .bx-soa-item-imgcontainer {
	background-size: cover !important;
	background-position: center !important;
}

.fm-checkout-aside .bx-soa-item-title {
	grid-column: 2;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #1f1f1f !important;
	line-height: 1.35;
}

.fm-checkout-aside .bx-soa-item-td-price,
.fm-checkout-aside .bx-soa-item-td.bx-soa-item-td-price,
.fm-checkout-aside .bx-soa-item-td:last-child {
	grid-column: 3;
	grid-row: 1;
	text-align: right !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	color: #1f1f1f !important;
	white-space: nowrap;
}

.fm-checkout-aside .bx-soa-item-td-text,
.fm-checkout-aside .bx-soa-item-properties {
	grid-column: 2;
	font-size: 0.75rem !important;
	color: #6b7280 !important;
}

.fm-checkout-aside .bx-soa-item-table thead,
.fm-checkout-aside .bx-soa-item-th,
.fm-checkout-aside .bx-soa-item-control,
.fm-checkout-aside .bx-soa-coupon-block,
.fm-checkout-aside .bx-soa-price-old {
	display: none !important;
}

.fm-checkout-total-mobile {
	display: none !important;
}

@media (max-width: 991.98px) {
	.fm-checkout-aside {
		position: static;
		margin-top: 1.25rem;
	}
}

.fm-checkout .bx-soa-empty-cart-container {
	max-width: 28rem;
	margin: 2rem auto 3rem;
	text-align: center;
}

.fm-checkout .bx-soa-empty-cart-text {
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.fm-checkout .bx-soa-empty-cart-desc {
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.fm-checkout .bx-soa-empty-cart-desc a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	border-radius: 0.625rem;
	background: var(--fm-color-primary, #5a4743);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
}
/* ===== Checkout (standard SOA + brand styles) ===== */
#bx-soa-order {
	opacity: 1 !important;
}

.fm-checkout .fm-page-heading {
	margin: 0 0 1.5rem;
}

.fm-checkout .bx-soa-wrapper {
	font-family: var(--fm-font-body, "Open Sans", sans-serif);
}

.fm-checkout .bx-soa-section {
	margin-bottom: 1rem !important;
	padding: 1.25rem 1.5rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.fm-checkout .bx-soa-section-title-container {
	margin-bottom: 1rem;
}

.fm-checkout .bx-soa-section-title {
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #333 !important;
}

.fm-checkout .bx-soa-section-title-count {
	display: none !important;
}

.fm-checkout .form-control,
.fm-checkout input[type="text"],
.fm-checkout input[type="email"],
.fm-checkout input[type="tel"],
.fm-checkout select,
.fm-checkout textarea {
	border: 1px solid #d1d5db !important;
	border-radius: 0.5rem !important;
	min-height: 2.5rem;
}

.fm-checkout .form-control:focus,
.fm-checkout input:focus,
.fm-checkout select:focus,
.fm-checkout textarea:focus {
	border-color: var(--fm-color-primary, #5A4743) !important;
	box-shadow: 0 0 0 2px rgba(90, 71, 67, 0.15) !important;
}

.fm-checkout .bx-soa-pp-company,
.fm-checkout .bx-soa-pp-item-container label {
	border-radius: 0.5rem;
}

.fm-checkout .bx-soa-cart-total {
	padding: 1.5rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	background: #fff !important;
}

.fm-checkout .bx-soa-cart-total-line-value,
.fm-checkout .bx-price,
.fm-checkout .bx-soa-cart-total .bx-price {
	color: var(--fm-color-primary, #5A4743) !important;
	font-weight: 700;
}

.fm-checkout .bx-soa-cart-total .btn,
.fm-checkout #bx-soa-orderSave .btn,
.fm-checkout .bx-soa-cart-total-ghost .btn {
	background: var(--fm-color-primary, #5A4743) !important;
	border-color: var(--fm-color-primary, #5A4743) !important;
	color: #fff !important;
	border-radius: 0.625rem !important;
	font-weight: 600;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
}

.fm-checkout .bx-soa-empty-cart-container {
	max-width: 28rem;
	margin: 2rem auto 3rem;
	text-align: center;
}

.fm-checkout .bx-soa-empty-cart-text {
	font-family: var(--fm-font-heading, Montserrat, sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.fm-checkout .bx-soa-empty-cart-desc {
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.fm-checkout .bx-soa-empty-cart-desc a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	border-radius: 0.625rem;
	background: var(--fm-color-primary, #5A4743);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
}
