/* Cart Panel V2 - Modern Design Styles */
.cart-panel.cart-panel-v2 {
	position: fixed;
	top: 0;
	right: -450px;
	width: 450px;
	height: 100vh;
	height: 100dvh;
	background: linear-gradient(180deg, var(--primary-background-color) 0%, var(--tertiary-background-color) 100%);
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1002;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.cart-panel.cart-panel-v2.active {
	right: 0;
}

.cart-panel-v2 .cart-header.cart-panel-v2-header {
	margin-bottom: 0;
}

.cart-panel-v2-header {
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 30px;
	background: var(--sc-cart-panel-v2-header-bg, var(--primary-background-color));
	border-bottom: 2px solid var(--sc-cart-panel-v2-header-border-bottom, var(--primary-brand-color));
	position: relative;
}

.cart-panel-v2-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-brand-color), transparent);
	opacity: 0.5;
}

.cart-panel-v2-header-content {
	display: flex;
	align-items: center;
	gap: 15px;
}

.cart-panel-v2-icon {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-cart-panel-v2-icon-bg, var(--primary-brand-color));
	border-radius: 12px;
	color: var(--sc-cart-panel-v2-icon-text, var(--primary-button-text-color));
	font-size: 20px;
	box-shadow: 0 4px 12px var(--primary-brand-color);
	opacity: 0.3;
}

.cart-panel-v2-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--sc-cart-panel-v2-title-text, var(--primary-title-color));
	margin: 0;
	background: linear-gradient(135deg, var(--primary-brand-color) 0%, var(--secondary-brand-color) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cart-panel-v2-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-cart-panel-v2-close-bg, transparent);
	border: 2px solid var(--sc-cart-panel-v2-close-border, var(--primary-brand-color));
	border-radius: 10px;
	color: var(--sc-cart-panel-v2-close-text, var(--primary-brand-color));
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cart-panel-v2-close:hover {
	background: var(--sc-cart-panel-v2-close-hover-bg, var(--primary-brand-color));
	color: var(--sc-cart-panel-v2-close-hover-text, var(--primary-button-text-color));
	transform: rotate(90deg);
}

.cart-panel-v2-body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.cart-panel-v2 .cart-items {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 20px 30px;
	margin-bottom: 0;
}

.cart-panel-v2 .cart-items::-webkit-scrollbar {
	width: 6px;
}

.cart-panel-v2 .cart-items::-webkit-scrollbar-track {
	background: var(--sc-cart-panel-v2-cart-items-bg, var(--primary-background-color));
}

.cart-panel-v2 .cart-items::-webkit-scrollbar-thumb {
	background: var(--sc-cart-panel-v2-cart-items-bg-2, var(--primary-brand-color));
	border-radius: 3px;
}

.cart-panel-v2 .cart-items::-webkit-scrollbar-thumb:hover {
	background: var(--sc-cart-panel-v2-cart-items-hover-bg, var(--secondary-brand-color));
}

.cart-item {
	display: flex;
	gap: 15px;
	padding: 20px;
	margin-bottom: 20px;
	background: var(--sc-cart-panel-v2-cart-item-bg, var(--secondary-background-color));
	border-radius: 16px;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.cart-item::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid var(--sc-cart-panel-v2-cart-item-after-border, var(--primary-brand-color));
	border-radius: 16px;
	opacity: 0.1;
	pointer-events: none;
}

.cart-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-brand-color), var(--secondary-brand-color));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cart-item:hover::after {
	opacity: 0.3;
}

.cart-item:hover::before {
	opacity: 1;
}

.cart-item-img {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--sc-cart-panel-v2-cart-item-img-bg, var(--primary-background-color));
	border: 2px solid transparent;
	transition: all 0.3s ease;
	position: relative;
}

.cart-item-img::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 2px solid var(--sc-cart-panel-v2-cart-item-img-before-border, var(--primary-brand-color));
	border-radius: 12px;
	opacity: 0.2;
	pointer-events: none;
	z-index: 1;
}

.cart-item:hover .cart-item-img {
	transform: scale(1.05);
}

.cart-item:hover .cart-item-img::before {
	opacity: 0.5;
}

.cart-item-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-img img {
	transform: scale(1.1);
}

.cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.cart-item-title {
	font-weight: 600;
	font-size: 16px;
	color: var(--sc-cart-panel-v2-cart-item-title-text, var(--primary-title-color));
	margin-bottom: 0;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.cart-item-title:hover {
	color: var(--sc-cart-panel-v2-cart-item-title-hover-text, var(--primary-brand-color));
}

.cart-item-size {
	font-size: 13px;
	color: var(--sc-cart-panel-v2-cart-item-size-text, var(--primary-text-color));
	opacity: 0.7;
	font-weight: 500;
}

.cart-item-price-container {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cart-item-price {
	color: var(--sc-cart-panel-v2-cart-item-price-text, var(--original-price-color));
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 0;
}

.cart-item-priceAfterDiscount {
	text-decoration: line-through;
	color: var(--sc-cart-panel-v2-cart-item-priceafterdiscount-text, var(--discount-price-color));
	font-size: 14px;
	opacity: 0.7;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
}

.cart-item-quantity .quantity-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--sc-cart-panel-v2-quantity-btn-bg, var(--primary-brand-color));
	color: var(--sc-cart-panel-v2-quantity-btn-text, var(--primary-button-text-color));
	border: none;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-item-quantity .quantity-btn:hover {
	background: var(--sc-cart-panel-v2-quantity-btn-hover-bg, var(--primary-button-hover-background-color));
	transform: scale(1.1);
}

.cart-item-quantity .quantity-input {
	width: 50px;
	height: 32px;
	border-radius: 8px;
	border: 2px solid transparent;
	background: var(--sc-cart-panel-v2-quantity-input-bg, var(--primary-background-color));
	color: var(--sc-cart-panel-v2-quantity-input-text, var(--primary-text-color));
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	position: relative;
}

.cart-item-quantity .quantity-input::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 2px solid var(--sc-cart-panel-v2-quantity-input-before-border, var(--primary-brand-color));
	border-radius: 8px;
	opacity: 0.3;
	pointer-events: none;
}

.cart-item-quantity .quantity-input:focus {
	outline: none;
}

.cart-item-quantity .quantity-input:focus::before {
	opacity: 1;
}

.cart-item-remove {
	color: var(--sc-cart-panel-v2-cart-item-remove-text, var(--discount-badge-background-color));
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--sc-cart-panel-v2-cart-item-remove-bg, transparent);
	border: 1px solid transparent;
	width: fit-content;
	position: relative;
}

.cart-item-remove:hover {
	color: var(--sc-cart-panel-v2-cart-item-remove-hover-text, var(--discount-badge-background-color));
	border-color: var(--sc-cart-panel-v2-cart-item-remove-hover-border, var(--discount-badge-background-color));
	transform: translateX(3px);
}

.cart-item-remove:hover::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--sc-cart-panel-v2-cart-item-remove-before-hover-bg, var(--discount-badge-background-color));
	border-radius: 8px;
	opacity: 0.1;
	pointer-events: none;
}

.cart-panel-v2-footer {
	flex-shrink: 0;
	padding: 25px 30px;
	background: var(--sc-cart-panel-v2-footer-bg, var(--primary-background-color));
	border-top: 2px solid var(--sc-cart-panel-v2-footer-border-top, var(--primary-brand-color));
	position: relative;
}

.cart-panel-v2-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-brand-color), transparent);
	opacity: 0.5;
}

.cart-panel-v2 .cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	padding: 20px;
	background: var(--sc-cart-panel-v2-cart-total-bg, var(--secondary-background-color));
	border-radius: 12px;
	border: 2px solid transparent;
	position: relative;
}

.cart-panel-v2 .cart-total::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 2px solid var(--sc-cart-panel-v2-cart-total-before-border, var(--primary-brand-color));
	border-radius: 12px;
	opacity: 0.2;
	pointer-events: none;
}

.cart-panel-v2 .cart-total .cart-total-label {
	color: var(--sc-cart-panel-v2-cart-total-label-text, var(--primary-text-color));
	font-size: 18px;
}

.cart-panel-v2 .cart-total #cartTotal {
	color: var(--sc-cart-panel-v2-carttotal-text, var(--primary-brand-color));
	font-size: 24px;
	font-weight: 700;
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, var(--primary-brand-color) 0%, var(--secondary-brand-color) 100%);
	color: var(--sc-cart-panel-v2-checkout-btn-text, var(--primary-button-text-color));
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	box-shadow: 0 4px 15px var(--primary-brand-color);
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-checkout-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px var(--primary-brand-color);
	color: var(--sc-cart-panel-v2-checkout-btn-hover-text, var(--primary-button-text-color));
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-checkout-btn i {
	transition: transform 0.3s ease;
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-checkout-btn:hover i {
	transform: translateX(5px);
}

[dir="rtl"] .cart-panel-v2 .checkout-btn.cart-panel-v2-checkout-btn:hover i {
	transform: translateX(-5px);
}

.cart-panel-v2 .browse-btn.cart-panel-v2-browse {
	display: none;
	padding: 40px 30px;
	text-align: center;
}

.cart-panel-v2-empty-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-cart-panel-v2-empty-icon-bg, transparent);
	border-radius: 50%;
	border: 3px solid transparent;
	position: relative;
}

.cart-panel-v2-empty-icon::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--sc-cart-panel-v2-empty-icon-before-bg, var(--primary-brand-color));
	border-radius: 50%;
	opacity: 0.1;
	pointer-events: none;
}

.cart-panel-v2-empty-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 3px solid var(--sc-cart-panel-v2-empty-icon-after-border, var(--primary-brand-color));
	border-radius: 50%;
	opacity: 0.3;
	pointer-events: none;
}

.cart-panel-v2-empty-icon i {
	font-size: 48px;
	color: var(--sc-cart-panel-v2-empty-icon-icon-text, var(--primary-brand-color));
	opacity: 0.5;
}

.cart-panel-v2-empty-text {
	font-size: 18px;
	color: var(--sc-cart-panel-v2-empty-text-text, var(--primary-text-color));
	opacity: 0.7;
	margin-bottom: 30px;
	font-weight: 500;
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-browse-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	background: var(--sc-cart-panel-v2-browse-btn-bg, var(--primary-button-background-color));
	color: var(--sc-cart-panel-v2-browse-btn-text, var(--primary-button-text-color));
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-browse-btn:hover {
	background: var(--sc-cart-panel-v2-browse-btn-hover-bg, var(--primary-button-hover-background-color));
	color: var(--sc-cart-panel-v2-browse-btn-hover-text, var(--primary-button-hover-text-color));
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-browse-btn i {
	transition: transform 0.3s ease;
}

.cart-panel-v2 .checkout-btn.cart-panel-v2-browse-btn:hover i {
	transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.cart-panel.cart-panel-v2 {
		width: 90%;
		right: -100%;
	}

	.cart-panel-v2-header {
		padding: 20px 25px;
	}

	.cart-panel-v2-icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.cart-panel-v2-title {
		font-size: 22px;
	}

	.cart-panel-v2 .cart-items {
		padding: 15px 25px;
	}

	.cart-item {
		padding: 15px;
		margin-bottom: 15px;
	}

	.cart-item-img {
		width: 80px;
		height: 80px;
	}

	.cart-item-title {
		font-size: 15px;
	}

	.cart-item-price {
		font-size: 16px;
	}

	.cart-panel-v2-footer {
		padding: 20px 25px;
	}

	.cart-total {
		padding: 15px;
	}

	.cart-total-amount {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.cart-panel.cart-panel-v2 {
		width: 100%;
	}

	.cart-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.cart-item-img {
		width: 120px;
		height: 120px;
	}

	.cart-item-details {
		width: 100%;
		align-items: center;
	}
}

/* RTL Support */
[dir="rtl"] .cart-panel.cart-panel-v2 {
	right: auto;
	left: -450px;
	transition: left 0.3s ease;
}

[dir="rtl"] .cart-panel.cart-panel-v2.active {
	left: 0;
	right: auto;
}

[dir="rtl"] .cart-item-img {
	margin-right: 0;
	margin-left: 15px;
}

@media (max-width: 768px) {
	[dir="rtl"] .cart-panel.cart-panel-v2 {
		left: -100%;
	}
}

@media (max-width: 480px) {
	[dir="rtl"] .cart-panel.cart-panel-v2 {
		left: -100%;
	}
}

