body.lgt-side-cart-open { overflow: hidden; }

.lgt-side-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(2px);
}

.lgt-side-cart {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	height: 100dvh;
	background: #fff;
	color: #1c2434;
	box-shadow: -20px 0 55px rgba(15, 23, 42, 0.22);
	transform: translateX(105%);
	transition: transform 220ms ease;
}

.lgt-side-cart.is-open { transform: translateX(0); }
.lgt-side-cart.is-loading .lgt-side-cart__content { opacity: 0.58; pointer-events: none; }

.lgt-side-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 26px 20px;
	border-bottom: 1px solid #e4e8ef;
}

.lgt-side-cart__eyebrow {
	margin: 0 0 3px;
	color: #526074;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lgt-side-cart__header h2 {
	margin: 0;
	color: #182033;
	font-size: 27px;
	line-height: 1.1;
}

.lgt-side-cart__close,
.lgt-side-cart__remove {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #d8dee8;
	border-radius: 50%;
	background: #fff;
	color: #293246;
	line-height: 1 !important;
	cursor: pointer;
	appearance: none;
}

.lgt-side-cart__close { flex: 0 0 42px; width: 42px !important; height: 42px !important; font-size: 26px; }
.lgt-side-cart__remove { flex: 0 0 28px; width: 28px !important; height: 28px !important; font-size: 19px; }
.lgt-side-cart__close:hover,
.lgt-side-cart__remove:hover { border-color: #364157; background: #f5f7fa; }

.lgt-side-cart__notice {
	display: none;
	margin: 14px 20px 0;
	padding: 11px 13px;
	border-radius: 8px;
	background: #eaf8ef;
	color: #176536;
	font-size: 13px;
}
.lgt-side-cart__notice.is-visible { display: block; }
.lgt-side-cart__notice.is-error { background: #fff0ee; color: #9f2f22; }

.lgt-side-cart__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	transition: opacity 150ms ease;
}

.lgt-side-cart__items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 22px 20px;
}

.lgt-side-cart__item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 15px;
	padding: 18px 0;
	border-bottom: 1px solid #e9edf2;
}

.lgt-side-cart__image {
	display: grid;
	place-items: center;
	overflow: hidden;
	height: 92px;
	border: 1px solid #e1e6ed;
	border-radius: 10px;
	background: #fff;
}
.lgt-side-cart__image img { width: 100%; height: 100%; object-fit: contain; }

.lgt-side-cart__item-main { min-width: 0; }
.lgt-side-cart__item-head { display: flex; align-items: flex-start; gap: 10px; }
.lgt-side-cart__name {
	display: -webkit-box;
	flex: 1 1 auto;
	overflow: hidden;
	color: #1c2434;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.lgt-side-cart__variation { display: grid; gap: 3px; margin-top: 7px; color: #667085; font-size: 12px; }
.lgt-side-cart__variation strong { color: #475467; }

.lgt-side-cart__item-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 13px;
}

.lgt-side-cart__quantity {
	display: grid;
	grid-template-columns: 30px 38px 30px;
	overflow: hidden;
	height: 34px;
	border: 1px solid #d7dde6;
	border-radius: 7px;
}
.lgt-side-cart__quantity button,
.lgt-side-cart__quantity input {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #1f2937;
	text-align: center;
}
.lgt-side-cart__quantity button { cursor: pointer; font-size: 17px; }
.lgt-side-cart__quantity button:hover { background: #f2f4f7; }
.lgt-side-cart__quantity input {
	border-right: 1px solid #e0e5ec;
	border-left: 1px solid #e0e5ec;
	appearance: textfield;
	font-weight: 700;
}
.lgt-side-cart__quantity input::-webkit-inner-spin-button { appearance: none; }
.lgt-side-cart__line-price { white-space: nowrap; color: #182033; font-size: 14px; }
.lgt-side-cart .tax_label { display: none !important; }

.lgt-side-cart__footer {
	padding: 20px 24px 24px;
	border-top: 1px solid #dfe4eb;
	background: #f8fafc;
}
.lgt-side-cart__subtotal { display: flex; justify-content: space-between; gap: 15px; font-size: 16px; }
.lgt-side-cart__subtotal strong { color: #111827; font-size: 18px; }
.lgt-side-cart__subtotal-value { display: inline-flex; align-items: baseline; gap: 7px; }
.lgt-side-cart__subtotal-value small { color: #f2ae00; font-size: 12px; font-weight: 900; white-space: nowrap; }
.lgt-side-cart__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 17px; }
.lgt-side-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 9px 14px;
	border: 1px solid #344054;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}
.lgt-side-cart__button--secondary { background: #fff; color: #273247; }
.lgt-side-cart__button--primary { width: 100%; box-sizing: border-box; border-color: #ffca08; background: #ffca08; color: #1d2433; }
.lgt-side-cart__button:hover { filter: brightness(0.97); }
.lgt-side-cart__cart-link { color: #344054; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.lgt-side-cart__cart-link:hover { color: #111827; }

.lgt-side-cart__empty {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 45px 28px;
	color: #667085;
	text-align: center;
}
.lgt-side-cart__empty strong { color: #182033; font-size: 20px; }

.add_to_cart_button.is-loading,
.lgt-product__addtocart.is-loading {
	position: relative;
	pointer-events: none;
	color: transparent !important;
}
.add_to_cart_button.is-loading::after,
.lgt-product__addtocart.is-loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	color: #293246;
	content: "";
	animation: lgt-cart-spin 0.7s linear infinite;
}

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

@media (max-width: 520px) {
	.lgt-side-cart { width: 100vw; }
	.lgt-side-cart__header { padding: 19px 18px 16px; }
	.lgt-side-cart__items { padding-right: 16px; padding-left: 16px; }
	.lgt-side-cart__footer { padding: 17px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.lgt-side-cart { transition: none; }
	.add_to_cart_button.is-loading::after,
	.lgt-product__addtocart.is-loading::after { animation-duration: 1.4s; }
}
