/* Estilos para notificaciones del carrito */
.cart-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	border-left: 4px solid #4caf50;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s ease-in-out;
	min-width: 300px;
	max-width: 400px;
}

.cart-notification.show {
	transform: translateX(0);
	opacity: 1;
}

.cart-notification.error {
	border-left-color: #f44336;
}

.notification-content {
	display: flex;
	align-items: flex-start;
	padding: 16px;
	gap: 12px;
}

.notification-icon {
	font-size: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.notification-text {
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
}

.notification-text strong {
	color: #333;
	font-weight: 600;
}

/* Contador del carrito */
.cart-count,
[data-cart-count] {
	background: #ff6b9d;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 12px;
	font-weight: bold;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 5px;
}

.cart-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #ff6b9d;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: bold;
	min-width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Botón de carrito moderno */
.cart-button,
.add-to-cart {
	background: linear-gradient(135deg, #ff6b9d, #e55a87);
	border: none;
	padding: 18px 40px;
	border-radius: 50px;
	color: white;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
	margin: 0 auto;
	max-width: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.cart-button:hover,
.add-to-cart:hover {
	background: linear-gradient(135deg, #e55a87, #d94976);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.cart-button:active,
.add-to-cart:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
}

/* Icono del carrito */
.cart-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Animación de loading */
.cart-button.loading {
	pointer-events: none;
	opacity: 0.7;
}

.cart-button.loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 480px) {
	.cart-notification {
		right: 10px;
		left: 10px;
		min-width: unset;
		max-width: unset;
		transform: translateY(-100%);
	}

	.cart-notification.show {
		transform: translateY(0);
	}
}
