/* ============================= */
/* CART – HEADER MODE           */
/* ============================= */
.dr1007ecomfloatingcart {
	position: relative;
	width: 52px;
	height: 52px;
	flex-shrink: 0; /* 🔑 NO OVERFLOW */
	background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 101;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2), inset 0 0 0 1px
		rgba(15, 23, 42, 0.12);
	transition: transform 0.25s cubic-bezier(.4, 0, .2, 1), box-shadow 0.25s
		cubic-bezier(.4, 0, .2, 1);
}

/* Cart icon – high contrast & responsive-safe */
.dr1007ecomfloatingcart .cart-icon {
	font-size: 23px;
	line-height: 1;
	color: #0f172a; /* 🔥 dark slate – excellent contrast */
	filter: none; /* remove shadow so it stays crisp */
}

/* Hover */
.dr1007ecomfloatingcart:hover {
	transform: scale(1.12);
	box-shadow: 0 16px 38px rgba(99, 102, 241, 0.6), inset 0 0 0 1px
		rgba(255, 255, 255, 0.45);
}

/* Badge */
.dr1007ecomfloatingcart .dr1007ecomfloatingcartbadge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: linear-gradient(135deg, #f97316, #ef4444);
	color: #fff;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	box-shadow: 0 6px 16px rgba(239, 68, 68, 0.55), inset 0 0 0 1px
		rgba(255, 255, 255, 0.3);
}

.dr1007ecomfloatingcart .dr1007ecomfloatingcartbadge.bump {
	transform: scale(1.5);
}

.dr1007ecomfloatingcartbadge {
	transition: transform 0.2s ease;
}

/* Trigger class */
.dr1007cartbounce {
	animation: dr1007cartbounceanimation 0.6s ease;
}

.dr1007cartbounce .dr1007ecomfloatingcartbadge {
	transform: scale(1.3);
}

.dr1007cartbounce .dr1007ecomfloatingcartbadge {
	transform: scale(1.3);
}

/* ============================= */
/* CART BOUNCE ANIMATION         */
/* ============================= */
@keyframes dr1007cartbounceanimation {
	0%   { transform: scale(1); }
	25%  { transform: scale(1.2); }
	50%  { transform: scale(0.95); }
	75%  { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* ============================= */
/* MOBILE OPTIMIZATION          */
/* ============================= */
@media ( max-width : 640px) {
	/* Cart smaller */
	.dr1007ecomfloatingcart {
		width: 46px;
		height: 46px;
	}
	.dr1007ecomfloatingcart .cart-icon {
		font-size: 21px;
	}
}