.tasco-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 99998;
}

.tasco-cart-overlay.tasco-visible {
	opacity: 1;
	visibility: visible;
}

.tasco-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: min(92vw, 380px);
	height: 100vh;
	background: #fff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 99999;
	display: flex;
	flex-direction: column;
}

.tasco-cart-sidebar.tasco-open {
	transform: translateX(0);
}

body.tasco-cart-open {
	overflow: hidden;
}

.tasco-cart-sidebar__header,
.tasco-cart-sidebar__footer {
	padding: 20px;
	border-bottom: 1px solid #ececec;
	flex-shrink: 0;
}

.tasco-cart-sidebar__footer {
	border-bottom: 0;
	border-top: 1px solid #ececec;
	margin-top: auto;
	background: #fff;
}

.tasco-cart-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
	font-size: 20px;
	color: #111;
}

.tasco-cart-sidebar__close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #ef1f63;
	cursor: pointer;
	padding: 0;
}

.tasco-cart-sidebar__body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.tasco-cart-sidebar__loading,
.tasco-cart-sidebar__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 160px;
	text-align: center;
	color: #666;
}

.tasco-cart-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #d9e5ff;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: tasco-cart-spin 0.8s linear infinite;
}

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

.tasco-cart-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 14px;
	padding: 0 0 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #f0f0f0;
}

.tasco-cart-item__image {
	width: 84px;
	height: 84px;
	border-radius: 10px;
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tasco-cart-item__image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tasco-cart-item__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.tasco-cart-item__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.tasco-cart-item__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
	text-decoration: none;
	text-transform: uppercase;
}

.tasco-cart-item__price {
	white-space: nowrap;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.tasco-cart-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tasco-cart-item__qty {
	display: flex;
	align-items: center;
	border: 1px solid #d7e2ff;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.tasco-sidebar-minus,
.tasco-sidebar-plus {
	width: 34px;
	height: 34px;
	border: 0;
	background: #2f6dd8;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.tasco-sidebar-minus:disabled,
.tasco-sidebar-plus:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tasco-sidebar-qty {
	min-width: 70px;
	width: 70px;
	height: 34px;
	padding: 0 12px;
	text-align: center;
	font-size: 13px;
	color: #2f6dd8;
	border: 0;
	outline: none;
	background: #fff;
	white-space: nowrap;
	-moz-appearance: textfield;
}

.tasco-sidebar-qty::-webkit-outer-spin-button,
.tasco-sidebar-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tasco-cart-item__remove {
	border: 0;
	background: transparent;
	color: #ef1f63;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.tasco-cart-sidebar__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 18px;
}

.tasco-cart-sidebar__actions {
	display: flex;
	gap: 12px;
}

.tasco-cart-sidebar__continue,
.tasco-cart-sidebar__go-cart {
	flex: 1;
	height: 46px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.tasco-cart-sidebar__continue {
	border: 1px solid #2f6dd8;
	background: #fff;
	color: #2f6dd8;
}

.tasco-cart-sidebar__go-cart {
	border: 1px solid #2f6dd8;
	background: #2f6dd8;
	color: #fff;
}

.tasco-cart-sidebar__continue:hover,
.tasco-cart-sidebar__go-cart:hover {
	filter: brightness(1.05);
	color: inherit;
}

.tasco-cart-sidebar__go-cart:hover {
	color: #fff;
}

@media (max-width: 575.98px) {
	.tasco-cart-sidebar {
		width: 100vw;
	}

	.tasco-cart-sidebar__header,
	.tasco-cart-sidebar__body,
	.tasco-cart-sidebar__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tasco-cart-sidebar__actions {
		flex-direction: column;
	}
}