.kpw-cart-icon-btn {
	position: relative;
	background: transparent;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
}
.kpw-cart-icon-btn:hover,.kpw-cart-icon-btn:focus,.kpw-cart-icon-btn:action {
 background: var(--kpw-red) !important;
} 

.kpw-cart-icon-btn svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
}

.kpw-cart-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 50%;
	background: #8B1E1E;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.kpw-cart-badge:empty,
.kpw-cart-badge[data-cart-count="0"] { opacity: .0; visibility: hidden; }

.kpw-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}

.kpw-cart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.kpw-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 553px;
	max-width: 100vw;
	height: 100vh;
	background: #161616;
	color: #fff;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s ease;
	box-shadow: -8px 0 30px rgba(0,0,0,.4);
}

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

.kpw-cart-sidebar-header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #2a2a2a;
	flex: 0 0 auto;
}

.kpw-cart-sidebar-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
}

.kpw-cart-sidebar-title svg { width: 20px; height: 20px; stroke: #fff; }

.kpw-cart-sidebar-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.kpw-cart-sidebar-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
}

.kpw-cart-empty {
	padding: 40px 0;
	text-align: center;
	color: #9a9a9a;
}

.kpw-cart-items {
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1 1 auto;
}

.kpw-cart-item {
	display: flex;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid #262626;
}

.kpw-cart-item-image {
	width: 64px;
	height: 64px;
	flex: 0 0 auto;
	border-radius: 6px;
	overflow: hidden;
	background: #222;
}

.kpw-cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kpw-cart-item-details {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kpw-cart-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.kpw-cart-item-name {
	font-size: 14px;
	font-weight: 600;
}

.kpw-cart-item-remove {
	background: transparent;
	border: none;
	color: #9a9a9a;
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
}

.kpw-cart-item-meta {
	font-size: 12px;
	color: #9a9a9a;
}

.kpw-cart-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
}

.kpw-cart-item-bottom .kpw-qty-control {
	display: inline-flex;
	align-items: center;
	background: #262626;
	border-radius: 4px;
}

.kpw-cart-item-bottom .kpw-qty-control button {
	background: transparent;
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 14px;
}

.kpw-cart-item-bottom .kpw-qty-control .kpw-qty-value {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
}

.kpw-cart-item-price {
	font-size: 14px;
	font-weight: 600;
	color: #e05252;
}

.kpw-cart-summary {
	flex: 0 0 auto;
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid #2a2a2a;
}

.kpw-cart-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	margin-bottom: 16px;
}

.kpw-cart-subtotal-row span:last-child {
	font-weight: 700;
}

.kpw-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 52px;
	background: #8B1E1E;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	transition: filter .15s ease;
}

.kpw-checkout-btn:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 600px) {
	.kpw-cart-sidebar { width: 100% !important; }
}
