/* ==========================================================================
   E-Moto Park: ikona košíku v hlavičce a souhrn při najetí (kosik-ikona-navrh.php, kosik-ikona.js).
   Ikona vypadá jako dřívější blok Mini-Cart (32px ikona, počet kusů v kolečku, cena).
   Kolečko s počtem kusů je jediná výjimka z pravidla „bez zaoblení“ (Jakub 20. 10. 2026).
   Načítat na celém webu.
   ========================================================================== */
.emoto-hcart {
	position: relative;
}
.emoto-hcart__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 0;
	color: #fff;
	line-height: 16px;
	text-decoration: none;
	white-space: nowrap;
}
.emoto-hcart__link:hover,
.emoto-hcart__link:focus-visible {
	color: #fff;
	text-decoration: none;
}
.emoto-hcart__link:hover .emoto-hcart__amount,
.emoto-hcart__link:focus-visible .emoto-hcart__amount {
	text-decoration: underline;
}
/* Počet kusů v kolečku přes pravý horní roh ikony, místo pro něj drží padding (jako dřív u Mini-Cart) */
.emoto-hcart__icon {
	position: relative;
	display: flex;
	align-items: center;
	padding-right: 15px;
	color: #ffde00;
}
.emoto-hcart__icon svg {
	width: 32px;
	height: 32px;
}
.emoto-hcart__badge {
	position: absolute;
	top: -8px;
	left: 23px;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}
.emoto-hcart__badge[hidden] {
	display: none;
}
.emoto-hcart__amount {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 15px;
}

/* ---------- Souhrn pod ikonou ---------- */
.emoto-hcart__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	width: 400px;
	max-width: calc(100vw - 32px);
	padding: 20px;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.4;
	white-space: normal;
}
.emoto-hcart__panel[hidden] {
	display: none;
}
.emoto-hcart__items {
	max-height: 340px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}
.emoto-hcart__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	column-gap: 12px;
	align-items: start;
	margin: 0;
	padding: 12px 0;
}
.emoto-hcart__item:first-child {
	padding-top: 0;
}
/* Oddělovače jen mezi položkami */
.emoto-hcart__item + .emoto-hcart__item {
	border-top: 1px solid #e5e5e5;
}
.emoto-hcart__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}
.emoto-hcart__name {
	display: block;
	color: #222;
	font-weight: 600;
	text-decoration: none;
}
.emoto-hcart__name:hover,
.emoto-hcart__name:focus-visible {
	color: #222;
	text-decoration: underline;
}
.emoto-hcart__meta,
.emoto-hcart__qty {
	display: block;
	margin-top: 2px;
	color: #6b6b6b;
	font-size: 13px;
}
.emoto-hcart__price {
	font-weight: 700;
	white-space: nowrap;
}
.emoto-hcart__subtotal {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding: 16px 0;
	border-top: 1px solid #e5e5e5;
	font-size: 16px;
	font-weight: 700;
}
.emoto-hcart__go {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	background: #ffde00;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.emoto-hcart__go:hover,
.emoto-hcart__go:focus-visible {
	background: #111;
	color: #ffde00;
	text-decoration: none;
}
.emoto-hcart__empty,
.emoto-hcart__loading {
	margin: 0;
	padding: 8px 0;
	color: #6b6b6b;
	text-align: center;
}

/* Mobilní ikona šablony: kolečko zůstává, jen atribut hidden musí skrýt (šablona dává display:flex) */
.site-header__cart-badge[hidden] {
	display: none !important;
}
