/* Header CTA + cart badge + Shopify-style mini-cart */

.site-header .ctabutton,
.site-header .kl-cta-custom,
.site-header .cta-button-0,
.site-header .cta-button-0:hover,
.site-header .cta-button-0:focus,
.site-header .cta-button-0:focus-visible,
.site-header .cta-button-0:active {
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

.kl-cart-button .kl-cart-icon:after,
.kl-cart-button .svg-cart.kl-cart-icon:after,
.kl-cart-button .glyphicon.kl-cart-icon:after {
	background-color: #ee1d23 !important;
}

/* =========================================================
   Desktop mini-cart — compact Shopify-like panel
   Scoped ONLY to header cart panel (not sidebar widgets).
   ========================================================= */

#header .topnav--cart-panel,
.site-header .topnav--cart-panel {
	min-width: 320px !important;
	width: 340px !important;
	max-width: 340px !important;
	padding-top: 10px !important;
	right: 0 !important;
	left: auto !important;
}

#header .topnav--cart-panel .cart-container,
.site-header .topnav--cart-panel .cart-container {
	padding: 12px !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
	color: #121212 !important;
	min-height: 0 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

#header .topnav--cart-panel .widget_shopping_cart_content,
.site-header .topnav--cart-panel .widget_shopping_cart_content {
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
	font-size: 13px !important;
	color: #121212 !important;
}

/* Readable text — override dark header / skin */
#header .topnav--cart-panel .cart-container,
#header .topnav--cart-panel .cart-container a:not(.button),
#header .topnav--cart-panel .mini_cart_item,
#header .topnav--cart-panel .quantity,
#header .topnav--cart-panel .total,
#header .topnav--cart-panel .total strong,
.site-header .topnav--cart-panel .cart-container,
.site-header .topnav--cart-panel .cart-container a:not(.button) {
	color: #121212 !important;
}

#header .topnav--cart-panel .cart-container a:not(.button):not(.remove):hover {
	color: #ee1d23 !important;
}

/* Product list */
#header .topnav--cart-panel .cart_list,
#header .topnav--cart-panel .woocommerce-mini-cart {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	max-height: 280px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	min-height: 0 !important;
}

#header .topnav--cart-panel .mini_cart_item,
#header .topnav--cart-panel .woocommerce-mini-cart-item {
	position: relative !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto 22px !important;
	align-items: start !important;
	column-gap: 12px !important;
	row-gap: 0 !important;
	margin: 0 !important;
	padding: 10px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #ebebeb !important;
	border-radius: 0 !important;
	background: transparent !important;
	overflow: visible !important;
	min-height: 0 !important;
	float: none !important;
}

#header .topnav--cart-panel .mini_cart_item:last-child {
	border-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Override Kallyas float-based mini-cart layout */
#header .topnav--cart-panel .cart_list .mini_cart_item,
#header .cart-container .cart_list .mini_cart_item {
	overflow: hidden !important;
}

#header .topnav--cart-panel .cart_list .quantity,
#header .cart-container .cart_list .quantity {
	display: block !important;
	float: none !important;
	clear: none !important;
}

#header .topnav--cart-panel .cart_list .remove,
#header .cart-container .cart_list .remove {
	float: none !important;
}

#header .topnav--cart-panel .cart_list li a:not(.remove),
#header .cart-container .cart_list li a:not(.remove) {
	padding: 0 !important;
	font-weight: 600 !important;
}

/* Kill archive image wrapper inside mini-cart */
#header .topnav--cart-panel .kw-prodimage,
#header .topnav--cart-panel .vox-prodimage {
	float: none !important;
	display: block !important;
	position: relative !important;
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: auto !important;
	overflow: hidden !important;
	border-radius: 6px !important;
	border: 1px solid #e5e5e5 !important;
	background: #fafafa !important;
	grid-area: thumb !important;
	align-self: center !important;
}

#header .topnav--cart-panel .kw-prodimage img,
#header .topnav--cart-panel .vox-prodimage img,
#header .topnav--cart-panel .mini_cart_item > a:not(.remove) img {
	float: none !important;
	display: block !important;
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	object-fit: cover !important;
	border-radius: 6px !important;
	flex: 0 0 48px !important;
}

#header .topnav--cart-panel .kw-prodimage-img-secondary {
	display: none !important;
}

#header .topnav--cart-panel .mini_cart_item > a:not(.remove) {
	grid-column: 1 !important;
	grid-row: 1 !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	min-width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #121212 !important;
	text-decoration: none !important;
	white-space: normal !important;
}

#header .topnav--cart-panel .mini_cart_item .vox-mini-cart__name {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	word-break: break-word !important;
}

#header .topnav--cart-panel .mini_cart_item > a:not(.remove) img,
#header .topnav--cart-panel .mini_cart_item > a:not(.remove) .kw-prodimage,
#header .topnav--cart-panel .mini_cart_item > a:not(.remove) .vox-prodimage {
	flex: 0 0 48px !important;
	grid-area: unset !important;
}

#header .topnav--cart-panel .mini_cart_item .quantity {
	display: block !important;
	grid-column: 2 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	align-self: center !important;
	flex: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #121212 !important;
	white-space: nowrap !important;
	float: none !important;
	clear: none !important;
}

#header .topnav--cart-panel .mini_cart_item .quantity .amount {
	color: #121212 !important;
	font-weight: 700 !important;
}

#header .topnav--cart-panel .remove,
#header .topnav--cart-panel a.remove {
	grid-column: 3 !important;
	grid-row: 1 !important;
	position: static !important;
	top: auto !important;
	right: auto !important;
	transform: none !important;
	float: none !important;
	z-index: 2;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 22px !important;
	text-align: center !important;
	font-size: 18px !important;
	font-weight: 300 !important;
	color: #999 !important;
	background: transparent !important;
	justify-self: end !important;
}

#header .topnav--cart-panel .remove:hover {
	color: #ee1d23 !important;
}

/* Totals */
#header .topnav--cart-panel .total,
#header .topnav--cart-panel .woocommerce-mini-cart__total {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin: 10px 0 !important;
	padding: 10px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid #eee !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #121212 !important;
}

#header .topnav--cart-panel .total .amount {
	float: none !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #121212 !important;
}

/* Buttons */
#header .topnav--cart-panel .buttons,
#header .topnav--cart-panel .woocommerce-mini-cart__buttons {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin: 0 !important;
	overflow: visible !important;
}

#header .topnav--cart-panel .buttons:before,
#header .topnav--cart-panel .buttons:after {
	display: none !important;
	content: none !important;
}

#header .topnav--cart-panel .buttons .button {
	float: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 !important;
	min-height: 42px !important;
	height: auto !important;
	padding: 0 16px !important;
	border-radius: 999px !important;
	border: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	line-height: 1 !important;
	box-shadow: none !important;
	outline: none !important;
	vertical-align: middle !important;
}

#header .topnav--cart-panel .buttons .button::before,
#header .topnav--cart-panel .buttons .button::after {
	display: none !important;
	content: none !important;
}

#header .topnav--cart-panel .buttons .button:not(.checkout) {
	background: #f2f2f2 !important;
	color: #121212 !important;
}

#header .topnav--cart-panel .buttons .button.checkout {
	order: -1;
	background: #ee1d23 !important;
	color: #fff !important;
}

#header .topnav--cart-panel .buttons .button.checkout:hover,
#header .topnav--cart-panel .buttons .button.checkout:focus {
	background: #d0181e !important;
	color: #fff !important;
	outline: none !important;
	box-shadow: none !important;
}

#header .topnav--cart-panel .buttons .button:not(.checkout):hover {
	background: #e8e8e8 !important;
	color: #121212 !important;
}

@media (max-width: 991px) {
	.topnav--cart-panel {
		display: none !important;
	}
}
