/**
 * WP Travel Engine - Header Cart Icon Styles
 * 
 * @package WP Travel Engine
 * @since 6.6.8
 */

/* ==========================================================================
   Header Cart
   ========================================================================== */

.wte-header-cart {
	display: inline-block;
	position: relative;
}

.wte-header-cart__link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
}

.wte-header-cart__link:hover {
	background: rgba(102, 126, 234, 0.1);
	color: #1CA8CB;
	text-decoration: none;
}

.wte-header-cart__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.wte-header-cart__icon svg {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
}

.wte-header-cart__link:hover .wte-header-cart__icon svg {
	transform: scale(1.1);
}

.wte-header-cart__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1CA8CB;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 9px;
	padding: 0 5px;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
	animation: wte-cart-pulse 0.5s ease-out;
}

@keyframes wte-cart-pulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.wte-header-cart__count.is-updating {
	animation: wte-cart-bounce 0.6s ease;
}

@keyframes wte-cart-bounce {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.3);
	}
}

.wte-header-cart__text {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.wte-header-cart__link {
		padding: 6px 10px;
	}
	
	.wte-header-cart__text {
		display: none;
	}
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	.wte-header-cart__link:hover {
		background: rgba(102, 126, 234, 0.2);
	}
}

/* ==========================================================================
   Integration with Common Themes
   ========================================================================== */

/* Astra Theme */
.ast-header-break-point .wte-header-cart {
	margin-left: 10px;
}

/* OceanWP Theme */
#site-header .wte-header-cart {
	margin-left: 15px;
}

/* GeneratePress Theme */
.main-navigation .wte-header-cart {
	margin-left: 15px;
}

/* Kadence Theme */
.site-header-item .wte-header-cart {
	margin-left: 10px;
}

