/**
 * Floating Cart Styles
 */

#floating-cart {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.floating-cart-toggle {
	width: 60px;
	height: 60px;
	background: #000;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
}

.floating-cart-toggle:hover {
	background: #333;
	transform: scale(1.05);
}

.cart-icon {
	font-size: 24px;
	line-height: 1;
}

.cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #ff4444;
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	min-width: 24px;
	line-height: 1;
}

.cart-count:empty {
	display: none;
}

.floating-cart-content {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 380px;
	max-width: 90vw;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	display: none;
	max-height: 70vh;
	flex-direction: column;
	overflow: hidden;
}

.floating-cart-content.active {
	display: flex;
}

.floating-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e8e8e8;
	background: #fafafa;
}

.floating-cart-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #000;
}

.floating-cart-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.floating-cart-close:hover {
	color: #000;
}

.floating-cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.floating-cart-body .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.floating-cart-body .woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 20px 0;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.floating-cart-body .woocommerce-mini-cart-item {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f0;
}

.floating-cart-body .woocommerce-mini-cart-item:last-child {
	border-bottom: none;
}

.floating-cart-body .woocommerce-mini-cart-item__image {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.floating-cart-body .woocommerce-mini-cart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.floating-cart-body .woocommerce-mini-cart-item__content {
	flex: 1;
	min-width: 0;
}

.floating-cart-body .woocommerce-mini-cart-item__title {
	margin: 0 0 5px 0;
	font-size: 14px;
	font-weight: 500;
	color: #000;
	line-height: 1.4;
}

.floating-cart-body .woocommerce-mini-cart-item__quantity {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
}

.floating-cart-body .woocommerce-mini-cart-item__price {
	font-size: 14px;
	font-weight: 600;
	color: #000;
	margin-bottom: 8px;
}

.floating-cart-body .remove_from_cart_button {
	color: #666;
	text-decoration: none;
	font-size: 12px;
	transition: color 0.2s ease;
}

.floating-cart-body .remove_from_cart_button:hover {
	color: #000;
}

.floating-cart-footer {
	padding: 20px;
	border-top: 1px solid #e8e8e8;
	background: #fafafa;
}

.floating-cart-footer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e8e8e8;
}

.floating-cart-footer .woocommerce-mini-cart__total strong {
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.floating-cart-footer .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.floating-cart-footer .woocommerce-mini-cart__buttons .button {
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
}

.floating-cart-footer .woocommerce-mini-cart__buttons .button.checkout {
	background: #000;
	color: #fff;
	border-color: #000;
}

.floating-cart-footer .woocommerce-mini-cart__buttons .button.checkout:hover {
	background: #333;
	border-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
	#floating-cart {
		bottom: 20px;
		right: 20px;
	}
	
	.floating-cart-toggle {
		width: 50px;
		height: 50px;
	}
	
	.cart-icon {
		font-size: 20px;
	}
	
	.floating-cart-content {
		width: calc(100vw - 40px);
		max-width: 400px;
		bottom: 80px;
	}
}

