/* --- Micart Mini-Cart Drawer Framework --- */
.cart-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(7, 11, 19, 0.5);
	backdrop-filter: blur(8px);
	z-index: 20000;
	/* Stays above modals and support overlays */
	display: flex;
	justify-content: flex-end;
	/* Locks drawer flush against the right side */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active open selector */
.cart-drawer-overlay.cart-open {
	opacity: 1;
	pointer-events: auto;
}

.cart-drawer-window {
	background: #fff;
	/* Dark card surface */
	border-left: 1px solid rgba(255, 255, 255, 0.05);
	width: 100%;
	max-width: 460px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: -15px 0 30px rgba(0, 0, 0, 0.5);
	transform: translateX(100%);
	/* Keeps off-screen right natively */
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.cart-open .cart-drawer-window {
	transform: translateX(0);
}

/* Header Matrix */
.cart-drawer-header {
	padding: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-drawer-header .cart-toggle {
	display: flex;
	column-gap: 40px;
}

.cart-drawer-header .cart-toggle h2 {
	color: rgba(0, 0, 0, 0.22);
	font-size: 1rem;
	letter-spacing: -0.5px;
	font-weight: 600;
	cursor: pointer;
	
}

.cart-drawer-header .cart-toggle .active{
	color: #1e3a8a;
	border-bottom: 2px solid #1e3a8a;
}

.close-cart-btn {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	transition: var(--transition);
}

.close-cart-btn:hover {
	color: var(--accent-teal);
}

/* Scroll Window Area for Multiple Cart Components */
.cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 0rem 2rem 3rem 2rem;
}

.cart-items-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cart-item-card {
	display: flex;
	gap: 1.25rem;
	background: #1e3a8a;
	padding: 1.25rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.02);
	margin-bottom: 10px;
}

.cart-item-thumb {
	width: 76px;
	height: 76px;
	border-radius: 8px;
	overflow: hidden;
	background: #111827;
	flex-shrink: 0;
}

.cart-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cart-item-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

/* Metadata Track Pills */
.track-badge {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
}

.badge-full {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-main);
}

.badge-installment {
	background: rgba(0, 242, 205, 0.05);
	color: var(--accent-teal);
	border: 1px solid rgba(0, 242, 205, 0.1);
}

.verified-shield {
	font-size: 0.75rem;
	color: var(--accent-teal);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.cart-item-details h3 {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.25rem;
	color: var(--text-main);
}

.cart-item-merchant {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.cart-item-pricing-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
}

.cart-item-price {
	font-size: 1rem;
	font-weight: 800;
}

.deposit-marker {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-muted);
}

.cart-item-remove-btn {
	background: transparent;
	border: none;
	color: #ef4444;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.cart-item-remove-btn:hover {
	text-decoration: underline;
}

/* Footer Section Panel Pricing Summaries */
.cart-drawer-footer {
	position: sticky;
	bottom: 0;
	width: 100%;
	height: auto;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #0f172a;
}

.summary-line strong {
	color: #0f172a;
}

.total-combined-row {
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding-top: 1rem;
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.text-teal {
	color: #1e3a8a !important;
	font-size: 1.2rem;
}

.cart-footer-actions {
	margin-top: 0.75rem;
}

.btn-drawer-checkout {
	width: 100%;
	background: #1e3a8a;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 1.1rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.btn-drawer-checkout:hover {
	background: var(--accent-teal);
	box-shadow: 0 0 25px rgba(0, 242, 205, 0.2);
}

@media (max-width: 576px) {
	.cart-drawer-body {
		padding: 1rem
	}

	.cart-item-card {
		padding: 1rem;
		width: 100%;
	}

	.cart-drawer-footer {
		padding: 1rem 1rem 2rem 1rem;
	}
}

/* --- Wallet & Coupon Payment Extensions --- */
.btn-drawer-wallet {
	width: 100%;
	background: #0f766e;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s, transform 0.15s;
}

.btn-drawer-wallet:hover {
	background: #0d9488;
	transform: translateY(-1px);
}

.btn-drawer-coupon {
	width: 100%;
	background: #059669;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0.85rem;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.2s;
}

.btn-drawer-coupon:hover {
	background: #10b981;
}

.cart-whole-coupon-card {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 12px;
	margin: 10px 0;
}

.cart-whole-coupon-card input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.85rem;
	font-family: monospace;
	text-transform: uppercase;
}

.cart-whole-coupon-card input:focus {
	border-color: #1e3a8a;
	outline: none;
}

.btn-apply-coupon {
	background: #1e3a8a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-apply-coupon:hover {
	background: #2563eb;
}
