/* =============================================================
   Orvex Cart Sidebar — right-side fly-in drawer
   ============================================================= */
.orvex-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 39, 64, 0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	backdrop-filter: blur(2px);
}
.orvex-cart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.orvex-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 100vw;
	height: 100vh;
	background: #fff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}
.orvex-cart-sidebar.is-open {
	transform: translateX(0);
}

/* Header */
.orvex-cart-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #E2E8F0;
	background: #0F2740;
	color: #fff;
	flex-shrink: 0;
}
.orvex-cart-sidebar__title {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 8px;
}
.orvex-cart-sidebar__count {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.7;
}
.orvex-cart-sidebar__close {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.orvex-cart-sidebar__close:hover { background: rgba(255,255,255,0.2); }

/* Body - scrollable items */
.orvex-cart-sidebar__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px;
}
.orvex-cart-sidebar__body::-webkit-scrollbar { width: 4px; }
.orvex-cart-sidebar__body::-webkit-scrollbar-track { background: transparent; }
.orvex-cart-sidebar__body::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 99px; }

/* Empty state */
.orvex-cart-sidebar__empty {
	text-align: center;
	padding: 60px 20px;
	color: #6B7A89;
}
.orvex-cart-sidebar__empty-icon { font-size: 40px; margin-bottom: 12px; }
.orvex-cart-sidebar__empty p { font-size: 15px; margin-bottom: 20px; }
.orvex-cart-sidebar__shop-btn {
	display: inline-block;
	background: #1FB8B6;
	color: #fff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

/* Cart item */
.orvex-cart-sidebar__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #F1F5F9;
}
.orvex-cart-sidebar__item:last-child { border-bottom: none; }
.orvex-cart-sidebar__item-img-wrap {
	position: relative;
	flex-shrink: 0;
}
.orvex-cart-sidebar__item-img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #FAFCFF;
}
.orvex-cart-sidebar__free-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #1FA363;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 999px;
	letter-spacing: 0.05em;
}
.orvex-cart-sidebar__item-info { flex: 1; min-width: 0; }
.orvex-cart-sidebar__item-name {
	font-size: 14px;
	font-weight: 700;
	color: #0F2740;
	line-height: 1.3;
	margin-bottom: 3px;
}
.orvex-cart-sidebar__item-meta {
	font-size: 12px;
	color: #6B7A89;
	margin-bottom: 4px;
}
.orvex-cart-sidebar__item-discount {
	font-size: 11.5px;
	color: #1FA363;
	font-weight: 600;
	margin-bottom: 6px;
}
.orvex-cart-sidebar__item-qty-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
.orvex-cart-sidebar__qty-stepper {
	display: flex;
	align-items: center;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	overflow: hidden;
}
.orvex-cart-sidebar__qty-btn {
	width: 28px;
	height: 28px;
	border: none;
	background: #F7FAFB;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	color: #0F2740;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.orvex-cart-sidebar__qty-btn:hover { background: #E2E8F0; }
.orvex-cart-sidebar__qty-val {
	min-width: 28px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 700;
	color: #0F2740;
}
.orvex-cart-sidebar__remove {
	background: none;
	border: none;
	color: #9AA5B4;
	font-size: 18px;
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
	transition: color 0.15s;
}
.orvex-cart-sidebar__remove:hover { color: #C0392B; }
.orvex-cart-sidebar__item-price {
	font-size: 14px;
	font-weight: 700;
	color: #0F2740;
	white-space: nowrap;
	padding-top: 2px;
}

/* Footer */
.orvex-cart-sidebar__footer {
	padding: 16px 24px 24px;
	border-top: 1px solid #E2E8F0;
	flex-shrink: 0;
	background: #F7FAFB;
}

/* Shipping bar */
.orvex-cart-sidebar__shipping-bar {
	background: #E8F8F8;
	border: 1px solid #9DE5E4;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 14px;
}
.orvex-cart-sidebar__shipping-bar--unlocked {
	background: #E8F8F0;
	border-color: #9DE5C4;
}
.orvex-cart-sidebar__shipping-msg {
	font-size: 12.5px;
	font-weight: 600;
	color: #0F2740;
	margin-bottom: 8px;
}
.orvex-cart-sidebar__shipping-track {
	height: 5px;
	background: #C5EDED;
	border-radius: 99px;
	overflow: hidden;
}
.orvex-cart-sidebar__shipping-fill {
	height: 100%;
	background: #1FB8B6;
	border-radius: 99px;
	transition: width 0.4s ease;
}

/* Subtotal */
.orvex-cart-sidebar__subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 800;
	color: #0F2740;
	margin-bottom: 4px;
}
.orvex-cart-sidebar__footer-note {
	font-size: 12px;
	color: #9AA5B4;
	margin: 0 0 14px;
}

/* CTA */
.orvex-cart-sidebar__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #1FB8B6;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 800;
	padding: 15px 20px;
	border-radius: 12px;
	transition: background 0.2s;
	letter-spacing: 0.02em;
}
.orvex-cart-sidebar__checkout-btn:hover { background: #0F8F8D; color: #fff; }

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

/* Prevent body scroll when sidebar is open */
body.orvex-no-scroll { overflow: hidden !important; }

.orvex-cart-sidebar__loading { padding:40px;text-align:center;color:#9AA5B4;font-size:14px; }
