/* Floating cart (includes/class-floating-cart.php).
 * Top-right corner, where shoppers expect the cart; same 50px circle and 15px
 * inset as the Click-to-Chat WhatsApp button (bottom-right).
 * z-index stays below the quick-view drawer and the mobile filter overlay so
 * those cover it. */
.km-float-cart {
	position: fixed;
	top: 15px;
	right: 15px;
	z-index: 9990;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #1c1108;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(28, 17, 8, 0.28);
	text-decoration: none !important;
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s;
}
.km-float-cart:hover,
.km-float-cart:focus-visible {
	background: #c4956a;
	color: #fff !important;
}
.km-float-cart:focus-visible {
	outline: 2px solid #1c1108;
	outline-offset: 3px;
}
.km-float-cart svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Hidden while the header cart icon is on screen (class set by floating-cart.js). */
/* Logged-in admins: keep clear of the WordPress admin bar (fixed above 600px). */
.admin-bar .km-float-cart {
	top: 47px;
}
@media (max-width: 782px) {
	.admin-bar .km-float-cart { top: 61px; }
}
@media (max-width: 600px) {
	.admin-bar .km-float-cart { top: 15px; }
}

.km-float-cart.km-float-cart--off {
	opacity: 0;
	transform: translateY(-12px);
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.km-float-cart__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 10px;
	background: #c4956a;
	color: #fff;
	border: 2px solid #fff;
	font: 700 11px/16px Manrope, sans-serif;
	text-align: center;
}
.km-float-cart__count--empty {
	display: none;
}

/* While the quick-view drawer is open (quick-view.js adds this class), step aside. */
.kitmik-qv-is-open .km-float-cart {
	opacity: 0;
	pointer-events: none;
}

@media print {
	.km-float-cart { display: none; }
}
