/* Floating Cart Sidebar - Desktop only (md+) */
.exp-cart-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.exp-cart-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.exp-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: min(420px, 100vw);
	max-width: 100%;
	height: 100vh;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.exp-cart-sidebar.is-open {
	transform: translateX(0);
}

.exp-cart-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	flex-shrink: 0;
}
.exp-cart-sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.exp-cart-sidebar-title i {
	color: #4f46e5;
}
.exp-cart-sidebar-close {
	width: 40px;
	height: 40px;
	border: none;
	background: #f1f5f9;
	border-radius: 10px;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.exp-cart-sidebar-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

#exp-cart-sidebar-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.exp-cart-sidebar-body {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	overflow-x: hidden;
	padding: 1rem 1.5rem;
	-webkit-overflow-scrolling: touch;
}
.exp-cart-sidebar-body::-webkit-scrollbar {
	width: 6px;
}
.exp-cart-sidebar-body::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 3px;
}
.exp-cart-sidebar-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.exp-cart-sidebar-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
	color: #64748b;
}
.exp-cart-sidebar-empty i {
	font-size: 1.5rem;
	color: #cbd5e1;
	margin-bottom: 0;
}
.exp-cart-sidebar-empty p {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}
.exp-cart-sidebar-empty .exp-cart-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	color: #fff;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	max-height: 50px;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.exp-cart-sidebar-empty .exp-cart-empty-btn:hover {
	background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
	color: #fff;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
	transform: translateY(-1px);
}
.exp-cart-sidebar-empty .exp-cart-empty-btn:active {
	transform: translateY(0);
}
.exp-cart-sidebar-empty .exp-cart-empty-btn i {
	transition: transform 0.25s ease;
}
.exp-cart-sidebar-empty .exp-cart-empty-btn:hover i {
	transform: translateX(3px);
}

.exp-cart-sidebar-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.exp-cart-sidebar-item {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 12px;
	margin-bottom: 0.75rem;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
	position: relative;
}
.exp-cart-sidebar-item .blockOverlay {
	background: rgba(255, 255, 255, 0.9) !important;
	border-radius: 12px;
}
.exp-cart-sidebar-item .blockMsg {
	background: transparent !important;
	border: none !important;
}
.exp-cart-sidebar-item .blockMsg::after {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	margin: 0 auto;
	border: 2px solid #e2e8f0;
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: exp-cart-spin 0.7s linear infinite;
}
@keyframes exp-cart-spin {
	to { transform: rotate(360deg); }
}
.exp-cart-sidebar-item:hover {
	border-color: #c7d2fe;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.exp-cart-sidebar-item-content {
	flex: 1;
	min-width: 0;
}
.exp-cart-sidebar-item-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	word-break: break-all;
	margin-bottom: 0.25rem;
}
.exp-cart-sidebar-item-name a {
	color: inherit;
	text-decoration: none;
}
.exp-cart-sidebar-item-name a:hover {
	color: #4f46e5;
}
.exp-cart-sidebar-item-price {
	font-size: 0.875rem;
	font-weight: 700;
	color: #4f46e5;
}
.exp-cart-sidebar-item-remove {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border: none;
	background: transparent;
	color: #94a3b8;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	line-height: 1;
	transition: all 0.2s ease;
}
.exp-cart-sidebar-item-remove:hover {
	background: #fee2e2;
	color: #dc2626;
}

.exp-cart-sidebar-footer {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	flex-shrink: 0;
}
.exp-cart-sidebar-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 1rem;
}
.exp-cart-sidebar-total-label {
	font-weight: 600;
	color: #64748b;
}
.exp-cart-sidebar-total-amount {
	font-weight: 700;
	font-size: 1.25rem;
	color: #0f172a;
}
.exp-cart-sidebar-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.exp-cart-sidebar-buttons a,
.exp-cart-sidebar-buttons .exp-cart-sidebar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.25rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	width: 100%;
}
.exp-cart-sidebar-btn-view {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}
.exp-cart-sidebar-btn-view:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.exp-cart-sidebar-btn-checkout {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.exp-cart-sidebar-btn-checkout:hover {
	background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
	color: #fff;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* Hide sidebar on mobile - show only on md+ */
@media (max-width: 767px) {
	.exp-cart-sidebar-overlay,
	.exp-cart-sidebar {
		display: none !important;
	}
}

/* Prevent body scroll when sidebar open (desktop) */
@media (min-width: 768px) {
	body.exp-cart-sidebar-open {
		overflow: hidden;
	}
}
