/**
 * V6.7.26: Header cart icon.
 *
 * New Tires now use the real WooCommerce cart (Add to Cart, classic form
 * POST). This gives customers a persistent cart indicator in the header,
 * matching standard e-commerce UX. Scoped entirely to its own classes so it
 * cannot affect any existing header, nav, or button styling.
 */
.wt-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	margin-right: 10px;
	flex-shrink: 0;
	color: #14202b;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wt-cart-icon:hover,
.wt-cart-icon:focus-visible {
	background-color: var(--wt-orange-100, #fdeee7);
	color: var(--wt-accent, #F05A18);
}

.wt-cart-icon svg {
	width: 24px;
	height: 24px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wt-cart-icon__badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--wt-accent, #F05A18);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

.wt-cart-icon__badge[data-count="0"] {
	display: none;
}

@media (max-width: 782px) {
	.wt-cart-icon {
		width: 36px;
		height: 36px;
		margin-right: 6px;
	}

	.wt-cart-icon svg {
		width: 22px;
		height: 22px;
	}
}
