body.lf-cart-page #bx_eshop_wrap > .workarea > .container.bx-content-section {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	padding-right: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	box-sizing: border-box;
}

body.lf-cart-page #bx_eshop_wrap > .workarea > .container.bx-content-section > .row {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

body.lf-cart-page #bx_eshop_wrap > .workarea > .container.bx-content-section .bx-content.col {
	width: 100%;
	max-width: none;
	flex: 0 0 100%;
	padding-left: 0;
	padding-right: 0;
}

body.lf-cart-page.lf-cart-page--empty #bx_eshop_wrap > .container.bx-content-section.lf-after-header {
	display: none !important;
}

body.lf-cart-page {
	--lf-heading-serif: "Lato", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--lf-pagetitle-weight: 400;
	--lf-pagetitle-size: clamp(1.75rem, 3vw, 2.25rem);
	--lf-pagetitle-line-height: 1.2;
	--lf-pagetitle-letter-spacing: 0;
}

body.lf-cart-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header.lf-after-header--cart {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	padding-right: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	padding-top: 48px;
	padding-bottom: 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	row-gap: 0;
}

body.lf-cart-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header.lf-after-header--cart > .row.lf-cart-page-head__title-row {
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
}

body.lf-cart-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header.lf-after-header--cart > .row.lf-cart-page-head__title-row > * {
	margin: 0 !important;
	padding: 0 !important;
}

body.lf-cart-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header.lf-after-header--cart #pagetitle {
	font-family: var(--lf-heading-serif);
	font-weight: var(--lf-pagetitle-weight);
	font-size: var(--lf-pagetitle-size);
	line-height: var(--lf-pagetitle-line-height);
	letter-spacing: var(--lf-pagetitle-letter-spacing);
	font-synthesis: none;
	color: #0f172a;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	width: 100%;
}

.lf-cart {
	--lf-cart-text: #111111;
	--lf-cart-muted: #8d8d92;
	--lf-cart-border: #d8d8dc;
	--lf-cart-red: #ff1f2d;
	--lf-cart-item-height: 386px;
	font-family: var(--lf-font-family, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	color: var(--lf-cart-text);
	margin: 0 auto;
	padding: 0 0 clamp(28px, 4vw, 48px);
	width: 100%;
	box-sizing: border-box;
}

.lf-cart * {
	box-sizing: border-box;
}

.lf-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 31.5%);
	gap: clamp(16px, 1.7vw, 28px);
	align-items: start;
}

.lf-cart__items {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.lf-cart-item {
	display: grid;
	grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
	height: var(--lf-cart-item-height);
	min-height: var(--lf-cart-item-height);
	background: #ffffff;
	border: 0;
	border-radius: 8px;
	box-shadow: 0px 6px 22px 0px #0000000A;
	overflow: hidden;
}

.lf-cart-item__media {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	background: #f2f2f3;
	overflow: hidden;
}

.lf-cart-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lf-cart-item__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(22px, 2vw, 36px);
}

.lf-cart-item__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: start;
}

.lf-cart-item__title-wrap {
	min-width: 0;
}

.lf-cart-item__title {
	margin: 0;
	font-size: clamp(18px, 1.35vw, 24px);
	line-height: 1.25;
	font-weight: 500;
	color: #3f3f43;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.lf-cart-item__article {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: var(--lf-cart-muted);
}

.lf-cart-item__qty {
	position: relative;
	width: 174px;
	max-width: 100%;
	aspect-ratio: 174 / 48;
	flex-shrink: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.lf-cart-item__qty-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.lf-cart-item__qty-svg__minus path,
.lf-cart-item__qty-svg__plus path {
	stroke: #000000;
	transition: opacity 0.15s ease;
}

.lf-cart-item__qty--at-min .lf-cart-item__qty-svg__minus path {
	opacity: 0.35;
}

.lf-cart-item__qty--at-min .lf-cart-item__qty-svg__plus path {
	opacity: 1;
}

.lf-cart-item__qty--at-max .lf-cart-item__qty-svg__plus path {
	opacity: 0.35;
}

.lf-cart-item__qty--at-max .lf-cart-item__qty-svg__minus path {
	opacity: 1;
}

.lf-cart-item__qty--mid .lf-cart-item__qty-svg__minus path,
.lf-cart-item__qty--mid .lf-cart-item__qty-svg__plus path {
	opacity: 1;
}

.lf-cart-item__qty-hit {
	position: absolute;
	top: 0;
	height: 100%;
	width: calc(100% * 47 / 174);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 1;
	transition: background 0.12s ease;
}

.lf-cart-item__qty-hit--minus {
	left: 0;
}

.lf-cart-item__qty-hit--plus {
	right: 0;
}

.lf-cart-item__qty-hit:hover:not(:disabled) {
	background: rgba(64, 64, 66, 0.04);
}

.lf-cart-item__qty-hit:focus,
.lf-cart-item__qty-hit:focus-visible {
	outline: none;
	box-shadow: none;
}

.lf-cart-item__qty-hit::-moz-focus-inner {
	border: 0;
	padding: 0;
}

.lf-cart-item__qty-hit:disabled {
	cursor: default;
}

.lf-cart-item__qty-input {
	position: absolute;
	left: calc(100% * 47 / 174);
	top: 0;
	width: calc(100% * 80 / 174);
	height: 100%;
	margin: 0;
	padding: 0 2px;
	box-sizing: border-box;
	border: none;
	text-align: center;
	font-family: var(--lf-font-family, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(13px, 1.65cqi, 17px);
	font-weight: 400;
	font-style: normal;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #000000;
	background: transparent;
	outline: none;
	z-index: 2;
	cursor: text;
}

.lf-cart-item__qty-input:focus {
	outline: none;
	box-shadow: none;
}

.lf-cart-item__qty-input::selection {
	background: rgba(64, 100, 200, 0.2);
}

.lf-cart-item__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	margin-top: 20px;
}

.lf-cart-item__price-old {
	font-size: 18px;
	line-height: 1.28;
	font-weight: 500;
	letter-spacing: -0.0195em;
	color: #404042;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.lf-cart-item__price-current {
	font-size: 24px;
	line-height: 1.28;
	font-weight: 500;
	letter-spacing: -0.0195em;
	color: #3f3f43;
}

.lf-cart .lf-product-card__currency-prefix {
	font-weight: inherit;
	margin-right: 0;
	letter-spacing: inherit;
}

.lf-cart .lf-product-card__price-digits {
	font-variant-numeric: tabular-nums;
}

.lf-cart-item__props {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.4;
	color: #111111;
	overflow-wrap: anywhere;
}

.lf-cart-item__props-separator {
	margin: 0 8px;
}

.lf-cart-item__bottom {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	gap: 12px;
	align-items: end;
	margin-top: auto;
	padding-top: 28px;
}

.lf-cart-item__wishlist,
.lf-cart-item__delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	border: 1px solid #111111;
	border-radius: 8px;
	background: #ffffff;
	color: #111111;
	cursor: pointer;
	margin: 0;
	padding: 0;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.lf-cart-item__wishlist {
	position: relative;
}

.lf-cart-item__wishlist input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.lf-cart-item__wishlist-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: inherit;
}

.lf-cart-item__wishlist-heart svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	transition: fill 0.15s ease;
}

/* Hover-инверт только для кнопок без активного состояния. У избранного активное состояние —
   красное сердце, hover после клика не инвертим (иначе вокруг красного «прыгает» серый фон). */
.lf-cart-item__wishlist:hover,
.lf-cart-item__delete:hover,
.lf-cart-item__delete:focus-visible {
	background: #404042;
	border-color: #404042;
	color: #ffffff;
}

/* Активное состояние избранного: сердце красное (как в каталоге/детальной).
   Hover поверх checked гасим — кнопка остаётся белой с красным сердцем. */
.lf-cart-item__wishlist:has(input:checked) .lf-cart-item__wishlist-heart svg path {
	fill: #e11d48;
	stroke: #e11d48;
}

.lf-cart-item__wishlist:has(input:checked),
.lf-cart-item__wishlist:has(input:checked):hover,
.lf-cart-item__wishlist:has(input:checked):focus-within {
	background: #ffffff;
	border-color: #111111;
	color: #111111;
}

@keyframes lf-cart-wishlist-tap {
	0% { transform: scale(1); }
	45% { transform: scale(0.9); }
	100% { transform: scale(1); }
}

.lf-cart-item__wishlist.lf-wishlist--animating {
	animation: lf-cart-wishlist-tap 0.38s ease;
}

.lf-cart-item__delete:disabled {
	opacity: 0.45;
	cursor: default;
}

.lf-cart-item__sum {
	justify-self: end;
	align-self: end;
	font-size: clamp(22px, 1.55vw, 28px);
	line-height: 1.28;
	font-weight: 500;
	letter-spacing: -0.0195em;
	color: #000000;
	text-align: right;
}

.lf-cart-summary {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border: 0;
	border-radius: 8px;
	box-shadow: 0px 6px 22px 0px #0000000A;
	padding: clamp(24px, 2vw, 32px);
}

.lf-cart-summary__title {
	margin: 0 0 30px;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: 0;
}

.lf-cart-summary__rows {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 16px;
}

.lf-cart-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 16px;
	line-height: 1.35;
	color: #4a4a4d;
}

.lf-cart-summary__row strong {
	font-size: 18px;
	line-height: 1.28;
	font-weight: 400;
	letter-spacing: -0.0195em;
	color: #111111;
	text-align: right;
	white-space: nowrap;
}

.lf-cart-summary__count {
	color: #a9abad;
}

.lf-cart-summary__row--discount strong {
	color: var(--lf-cart-red);
}

.lf-cart-summary__promo {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0 0 30px;
}

.lf-cart-summary__promo-toggle {
	align-self: flex-end;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4a4a4d;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.lf-cart-summary__promo-discount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 16px;
	line-height: 1.35;
	color: #4a4a4d;
}

.lf-cart-summary__promo-discount strong {
	color: var(--lf-cart-red);
	font-size: 18px;
	line-height: 1.28;
	font-weight: 400;
	letter-spacing: 0;
	text-align: right;
	white-space: nowrap;
}

.lf-cart-summary__promo-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.lf-cart-summary__promo-control {
	position: relative;
	width: 100%;
}

.lf-cart-summary__promo-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #c8c8cc;
	border-radius: 8px;
	background: #ffffff;
	color: #111111;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 400;
	letter-spacing: 0;
	outline: none;
	transition: border-color 0.15s ease;
}

.lf-cart-summary__promo-input::placeholder {
	color: #707077;
	opacity: 1;
}

.lf-cart-summary__promo-input:focus {
	border-color: #8f8f96;
}

.lf-cart-summary__promo-submit {
	position: absolute;
	top: 0;
	right: 0;
	height: 48px;
	min-width: 120px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #404042;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lf-cart-summary__promo-submit:hover {
	opacity: 0.88;
	background: #404042;
	color: #ffffff;
}

.lf-cart-summary__promo--ready .lf-cart-summary__promo-input {
	padding-right: 136px;
}

.lf-cart-summary__promo-remove {
	position: absolute;
	top: 50%;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111111;
	cursor: pointer;
	transform: translateY(-50%);
}

.lf-cart-summary__promo-remove svg {
	width: 20px;
	height: 20px;
}

.lf-cart-summary__promo--applied .lf-cart-summary__promo-input {
	padding-right: 48px;
	color: #6f6f76;
}

.lf-cart-summary__promo--error .lf-cart-summary__promo-input {
	border-color: var(--lf-cart-red);
}

.lf-cart-summary__promo-message {
	margin: 0;
	color: var(--lf-cart-muted);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: 0;
}

.lf-cart-summary__promo--error .lf-cart-summary__promo-message {
	color: var(--lf-cart-red);
}

.lf-cart-summary__promo--busy {
	opacity: 0.72;
	pointer-events: none;
}

.lf-cart-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 8px;
}

.lf-cart-summary__total > span {
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 400;
}

.lf-cart-summary__total strong {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 28px;
	line-height: 1.28;
	font-weight: 500;
	letter-spacing: -0.0195em;
	text-align: right;
	white-space: nowrap;
}

.lf-cart-summary__note {
	margin: 0 0 28px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--lf-cart-muted);
}

.lf-cart-summary__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: #404042;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lf-cart-summary__checkout:hover {
	opacity: 0.88;
	background: #404042;
	color: #ffffff;
}

.lf-cart-summary__return {
	align-self: center;
	margin-top: 18px;
	color: #4a4a4d;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: none;
}

.lf-cart-summary__return:hover,
.lf-cart-summary__return:focus,
.lf-cart-summary__return:active {
	color: #4a4a4d;
	text-decoration: underline;
	opacity: 1;
}

.lf-cart--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(430px, 58vh, 680px);
	padding-top: clamp(16px, 4vw, 56px);
	padding-bottom: clamp(32px, 5vw, 72px);
}

.lf-cart-empty {
	display: flex;
	justify-content: center;
	width: 100%;
	text-align: center;
}

.lf-cart-empty__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 520px;
}

.lf-cart-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	color: #404042;
}

.lf-cart-empty__icon svg {
	display: block;
	width: 120px;
	height: 120px;
}

.lf-cart-empty__copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 32px;
}

.lf-cart-empty__title {
	margin: 0;
	font-family: var(--lf-font-family, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 28px;
	line-height: 36px;
	font-weight: 500;
	letter-spacing: 0;
	color: #404042;
}

.lf-cart-empty__text {
	margin: 0;
	font-family: var(--lf-font-family, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
	letter-spacing: 0;
	color: #404042;
}

.lf-cart-empty__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 202px;
	height: 48px;
	min-height: 48px;
	margin-top: 32px;
	padding: 12px;
	border-radius: 8px;
	background: #404042;
	box-shadow: 0px 20px 35px 0px #00000026;
	color: #ffffff;
	font-family: var(--lf-font-family, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.lf-cart-empty__button:hover,
.lf-cart-empty__button:focus-visible {
	opacity: 0.88;
	color: #ffffff;
	box-shadow: 0px 20px 35px 0px #00000026;
	text-decoration: none;
}

.lf-cart-empty__button-icon {
	flex: 0 0 24px;
}

.lf-cart [hidden] {
	display: none !important;
}

.lf-cart-item--busy .lf-cart-item__qty-hit,
.lf-cart-item--busy .lf-cart-item__delete {
	pointer-events: none;
}

@media (max-width: 1199px) {
	.lf-cart__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.lf-cart-item {
		height: auto;
		min-height: 0;
	}

	.lf-cart-summary {
		position: static;
	}
}

@media (max-width: 767px) {
	.lf-cart {
		padding-bottom: 28px;
	}

	.lf-cart__items {
		gap: 16px;
	}

	.lf-cart-item {
		grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
		min-height: 0;
	}

	.lf-cart-item__body {
		padding: 16px;
	}

	.lf-cart-item__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.lf-cart-item__qty {
		width: 148px;
	}

	.lf-cart-item__title {
		font-size: 16px;
	}

	.lf-cart-item__article {
		font-size: 12px;
	}

	.lf-cart-item__price {
		margin-top: 16px;
		gap: 8px;
	}

	.lf-cart-item__price-old,
	.lf-cart-item__props {
		font-size: 14px;
	}

	.lf-cart-item__price-current {
		font-size: 18px;
	}

	.lf-cart-item__props {
		margin-top: 14px;
	}

	.lf-cart-item__bottom {
		grid-template-columns: 48px 48px minmax(0, 1fr);
		gap: 8px;
		padding-top: 22px;
	}

	.lf-cart-summary {
		padding: 22px;
	}
}

@media (max-width: 650px) {
	.lf-cart-item {
		grid-template-columns: 1fr;
	}

	.lf-cart-item__media {
		min-height: 0;
	}

	/* Внутри тела карточки: заголовок+артикул, потом кол-во, потом цена */
	.lf-cart-item__top {
		display: flex;
		flex-direction: column;
		gap: 14px;
		grid-template-columns: none;
	}

	.lf-cart-item__qty {
		width: 140px;
	}
}

@media (max-width: 520px) {
	body.lf-cart-page #bx_eshop_wrap > .workarea > .container.bx-content-section {
		padding-left: 12px;
		padding-right: 12px;
	}
}
