.cart-overlay {
	position: fixed;
	top: var(--cart-top, 0px);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3000;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open .cart-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

html.cart-locked {
	overflow: hidden;
}

#cart .cart-panel {
	position: fixed;
	top: var(--cart-top, 0px);
	right: 0;
	bottom: 0;
	z-index: 3001;
	display: flex;
	flex-direction: column;
	width: 610px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #ffffff;
	border: 0;
	border-radius: 0;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
	list-style: none;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0.3s ease;
	overflow: visible;
}

body.cart-open #cart .cart-panel {
	transform: translateX(0);
	visibility: visible;
}

#cart .cart-panel > li {
	list-style: none;
}

#cart .cart-panel__body,
#cart .cart-panel__foot,
#cart .cart-panel__sticky {
	transition: filter 0.2s ease, opacity 0.2s ease;
}

#cart.is-loading .cart-panel__body,
#cart.is-loading .cart-panel__foot,
#cart.is-loading .cart-panel__sticky {
	filter: blur(2px);
	opacity: 0.6;
	pointer-events: none;
}

#cart.is-loading .cart-panel::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(51, 102, 0, 0.2);
	border-top-color: #336600;
	border-radius: 50%;
	animation: cart-spin 0.7s linear infinite;
	z-index: 5;
	pointer-events: none;
}

@keyframes cart-spin {
	to { transform: rotate(360deg); }
}

.cart-panel__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 32px 32px 16px 32px;
}

.cart-panel__title {
	margin: 0;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.cart-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: #1a1a1a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cart-panel__close:hover {
	color: #336600;
}

.cart-panel__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0 32px;
}

.cart-panel__list {
	display: flex;
	flex-direction: column;
}

.cart-item {
	display: flex;
	gap: 8px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #e6e6e6;
}
.cart-panel__list  .cart-item:last-child {
	margin-bottom: 56px;
}

.cart-item__img {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
}

.cart-item__img img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.cart-item__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.cart-item__top {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.cart-item__name {
	flex: 1 1 auto;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cart-item__name:hover {
	color: #336600;
}

.ic {
	display: block;
	flex: 0 0 auto;
}

.cart-item__del {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: #b3b3b3;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
}

.cart-item__del:hover {
	color: #fc4324;
}

.cart-item__bonus {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.cart-item__bonus-label {
	color: #666666;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.cart-item__bonus-value {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.cart-item__art,
.cart-item__option {
	margin: 0;
	color: #666666;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.cart-item__stock {
	margin: 0;
	color: #fc4324;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.cart-item__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.cart-item__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

@media (min-width: 768px) {
	.cart-item__row {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.cart-item__row .cart-item__info {
		flex: 1 1 auto;
		justify-content: end;
		gap: 92px;
	}
}

.cart-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 48px;
	padding: 4px;
	border: 1px solid #cccccc;
	border-radius: 6px;
}

.cart-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.cart-qty__btn[disabled],
.cart-qty__btn[disabled]:hover {
	background: none;
	color: #cccccc;
	cursor: not-allowed;
	opacity: 0.5;
}

.cart-qty__btn:hover {
	background: #f2f2f2;
}

.cart-qty__btn--minus {
	color: #cccccc;
}

.cart-qty__btn--minus:hover {
	color: #808080;
}

.cart-qty__btn--plus {
	color: #336600;
}

.cart-qty__btn--plus:hover {
	color: #2a5500;
}

.cart-qty__val.cart-qty__val {
	width: 34px;
	min-width: 24px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 16px;
	line-height: 1;
	appearance: textfield;
	-moz-appearance: textfield;
}

.cart-qty__val.cart-qty__val:focus {
	outline: none;
	background: none;
}

.cart-qty__val.cart-qty__val::-webkit-outer-spin-button,
.cart-qty__val.cart-qty__val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item__price {
	flex: 0 0 auto;
	text-align: right;
}

.cart-item__price-current {
	display: block;
	color: #1a1a1a;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.cart-item__price--sale .cart-item__price-current {
	color: #fc4324;
}

.cart-item__price-old {
	display: block;
	color: #808080;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: line-through;
	white-space: nowrap;
}

.cart-panel__foot {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background: #f2f2f2;
}

.cart-foot__promo {
	color: #336600;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.cart-foot__promo {
	cursor: pointer;
}

.cart-foot__promo:hover {
	text-decoration: underline;
	color: #336600;
}

.cart-promo__form {
	display: none;
	align-items: center;
	gap: 12px;
}

.cart-promo.is-open .cart-foot__promo {
	display: none;
}

.cart-promo.is-open .cart-promo__form {
	display: flex;
}

.cart-promo__field {
	flex: 1 1 auto;
	min-width: 0;
}

.cart-promo__input {
	width: 100%;
	height: 40px;
	padding: 12px;
	border: 1px solid #cccccc;
	border-radius: 6px;
	background: #ffffff;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.cart-promo__input::placeholder {
	color: #999999;
}

.cart-promo.has-error .cart-promo__input {
	border-color: #fc4324;
}

.cart-promo__apply {
	flex: 0 0 auto;
	height: 40px;
	padding: 8px 16px;
	border: 1px solid #336600;
	border-radius: 6px;
	background: transparent;
	color: #666;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.cart-promo__apply:hover {
	background: #336600;
	color: #ffffff;
}

.cart-promo__close,
.cart-promo__remove {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: #1a1a1a;
	cursor: pointer;
	transition: color 0.2s ease;
}

.cart-promo__close:hover,
.cart-promo__remove:hover {
	color: #fc4324;
}

.cart-promo__error {
	display: none;
	margin: 6px 0 0;
	color: #fc4324;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.cart-promo.has-error .cart-promo__error {
	display: block;
}

.cart-promo__applied {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	background: #ffffff;
}

.cart-promo__code {
	flex: 1 1 auto;
	color: #336600;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.cart-promo__discount {
	flex: 0 0 auto;
	text-align: right;
	color: #fc4324;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
}

.cart-foot__totals {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cart-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cart-total-row__label {
	color: #808080;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.cart-total-row__value {
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	text-align: right;
	white-space: nowrap;
}

.cart-total-row--regular_discount .cart-total-row__value {
	color: #FC4324;
}

.cart-total-row__value--bonus {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cart-foot__divider {
	height: 0;
	border: 0;
	border-top: 1px solid #e6e6e6;
	margin: 0;
}

.cart-foot__pay {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cart-foot__pay-label {
	color: #21232b;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

.cart-foot__pay-value {
	color: #21232b;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.cart-foot__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 6px;
	background: #336600;
	color: #ffffff;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease;
}

.cart-foot__checkout:hover {
	background: #2a5500;
	color: #ffffff;
}

.cart-foot__checkout.is-disabled,
.cart-foot__checkout.is-disabled:hover {
	background: #cccccc;
	color: #ffffff;
	pointer-events: none;
	cursor: default;
}

.cart-foot__continue {
	align-self: center;
	color: #1a1a1a;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: 0;
}

.cart-foot__continue:hover {
	color: #336600;
}

.cart-panel__empty {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	color: #666666;
	font-size: 15px;
	text-align: center;
}

.cart-panel__sticky {
	display: none;
}

@media (max-width: 767px) {
	.cart-panel__head,
	.cart-panel__foot {
		padding: 16px;
	}

	.cart-panel__body {
		padding: 0 16px;
	}

	.cart-panel__title {
		font-size: 20px;
		font-weight: 600;
	}

	.cart-promo__form {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.cart-promo__field {
		order: 1;
	}

	.cart-promo__close {
		order: 2;
	}

	.cart-promo__apply {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
	}

	#cart .cart-panel {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.cart-panel__head {
		position: sticky;
		top: 0;
		z-index: 2;
		background: #ffffff;
	}

	.cart-panel__body {
		flex: 1 0 auto;
		min-height: 0;
		overflow-y: visible;
	}

	.cart-panel__foot {
		flex: 0 0 auto;
	}

	.cart-panel__sticky {
		position: sticky;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 3;
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 12px 16px;
		background: #ffffff;
		border-top: 1px solid #e6e6e6;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}

	.cart-panel__sticky.is-hidden {
		display: none;
	}

	.cart-sticky__pay {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.cart-sticky__pay-label {
		color: #21232b;
		font-family: 'Roboto', Arial, sans-serif;
		font-size: 16px;
		line-height: 1.4;
	}

	.cart-sticky__pay-value {
		color: #21232b;
		font-family: 'Inter', 'Roboto', Arial, sans-serif;
		font-size: 20px;
		font-weight: 600;
		line-height: 1.4;
		white-space: nowrap;
	}

	.cart-sticky__checkout {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 48px;
		padding: 12px 20px;
		border: 0;
		border-radius: 6px;
		background: #336600;
		color: #ffffff;
		font-family: 'Inter', 'Roboto', Arial, sans-serif;
		font-size: 15px;
		font-weight: 500;
		line-height: 24px;
		text-transform: uppercase;
		text-decoration: none;
	}

	.cart-sticky__checkout:hover,
	.cart-sticky__checkout:focus {
		background: #2a5500;
		color: #ffffff;
	}
}
