/* Produktové karty — Nejprodávanější + katalog (standalone, bez Vite buildu) */
.product-card {
	--pc-font: Arial, Verdana, Geneva, sans-serif;
	--pc-title-size: 0.95rem;
	--pc-body-size: 0.8rem;
	--pc-meta-size: 0.68rem;
	--pc-price-size: 1.05rem;

	position: relative;
	overflow: hidden;
	border-radius: 0.75rem;
	border: 1px solid rgba(12, 17, 72, 0.08);
	background: #fff;
	font-family: var(--pc-font);
	font-size: var(--pc-body-size);
	line-height: 1.35;
	color: #3d4648;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
	border-color: rgba(12, 17, 72, 0.14);
	box-shadow: 0 10px 28px rgba(12, 17, 72, 0.1);
}

.product-card,
.product-card * {
	font-family: var(--pc-font);
}

.product-card__media {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	/* Neutrální podklad — průhledné PNG (bez bílého studia) vypadá čistě */
	background:
		radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0%, rgba(245, 246, 248, 0.95) 55%, #eef0f4 100%);
	flex: 0 0 auto;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: 0.55rem;
	box-sizing: border-box;
	display: block;
}

/* Meta: více místa pro 2 celé štítky + vycentrované varianty + mezera před názvem */
.product-card__meta {
	flex: 0 0 5.55rem;
	height: 5.55rem;
	max-height: 5.55rem;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	padding: 0.55rem 0.75rem 0.45rem;
	box-sizing: border-box;
	overflow: visible;
}

.product-card__tags {
	display: flex;
	flex: 0 0 3.15rem;
	height: 3.15rem;
	max-height: 3.15rem;
	flex-wrap: wrap;
	align-content: flex-start;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.35rem;
	width: 100%;
	overflow: hidden;
}

.product-card__tag {
	display: inline-block;
	flex: 0 1 auto;
	padding: 0.25rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.3;
	border-radius: 999px;
	letter-spacing: 0.01em;
	white-space: nowrap;
	max-width: 100%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.product-card__variants {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.6rem;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 999px;
	background: rgba(12, 17, 72, 0.08);
	color: #0c1148;
	white-space: nowrap;
}

.product-card__variants-slot {
	flex: 0 0 1.85rem;
	min-height: 1.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 0.2rem;
	overflow: visible;
}

/* Barevné puntíky variant (jako KM Beta) */
.product-card__colors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
	max-width: 100%;
	padding: 0 0.25rem;
}

.product-card__color-dot {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	border: 1px solid rgba(12, 17, 72, 0.18);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
	flex: 0 0 auto;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card__color-dot:hover,
.product-card__color-dot:focus-visible {
	transform: scale(1.18);
	box-shadow: 0 0 0 2px rgba(12, 17, 72, 0.2);
	outline: none;
}

.product-card__color-dot--is-multi {
	background: conic-gradient(
		#c45c26,
		#1a1a1a,
		#8a9099,
		#2e5a3c,
		#2c4a6e,
		#c45c26
	) !important;
}

.product-card__color-dot--is-dual {
	background: linear-gradient(135deg, #1a1a1a 50%, #c45c26 50%) !important;
}

.product-card__color-more {
	font-size: 0.68rem;
	font-weight: 700;
	color: #5a6470;
	line-height: 1;
	margin-left: 0.1rem;
}

.product-card .card-body {
	padding-top: 0.55rem !important;
}

.product-card__title-link {
	display: block;
	flex: 0 0 auto;
	height: calc(var(--pc-title-size) * 1.35 * 2);
	margin-bottom: 0.4rem;
	overflow: hidden;
}

.product-card .card-title,
.product-card .card-title.h5 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	height: calc(var(--pc-title-size) * 1.35 * 2);
	margin: 0;
	font-family: var(--pc-font);
	font-size: var(--pc-title-size);
	font-weight: 700;
	line-height: 1.35;
	color: #0c1148;
}

.product-card__sku {
	flex: 0 0 auto;
	margin: -0.15rem 0 0.35rem;
	font-family: var(--pc-font);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: #5a6470;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	user-select: all;
}

.product-card__stock {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	flex: 0 0 auto;
	margin: 0 0 0.4rem;
	padding: 0.18rem 0.5rem;
	width: fit-content;
	max-width: 100%;
	border-radius: 999px;
	background: #fbf6e8;
	border: 1px solid rgba(218, 165, 32, 0.28);
	font-family: var(--pc-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: #1c2430;
}

.product-card__stock-caption {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8a6b12;
}

/* Plný popis — jednotné písmo (přepíše globální verdana 10pt u <p>) */
.product-card__desc {
	flex: 1 1 auto;
	font-family: var(--pc-font);
	font-size: var(--pc-body-size);
	font-weight: 400;
	line-height: 1.4;
	color: #7e8c8d;
	text-align: left;
}

.product-card__desc p,
.product-card__desc span,
.product-card__desc li {
	margin: 0 0 0.35em;
	font-family: var(--pc-font) !important;
	font-size: var(--pc-body-size) !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #7e8c8d !important;
}

.product-card__desc p:last-child {
	margin-bottom: 0;
}

.product-card__pricing {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	gap: 0.15rem;
	margin-bottom: 0.55rem;
	font-family: var(--pc-font);
	container-type: inline-size;
	container-name: pc-pricing;
}

.product-card__discount {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: 999px;
	background: rgba(25, 135, 84, 0.1);
	color: #0f5132;
	border: 1px solid rgba(25, 135, 84, 0.18);
}

.product-card .card-footer {
	background: transparent;
	border-top: 1px solid rgba(12, 17, 72, 0.06);
	padding-top: 0.85rem;
}

/*
 * Ceny v mřížce — částky pod sebou, popisky pod sebou vpravo:
 * 1 ks | 46,28 Kč | bez DPH
 *    | 56,00 Kč | s DPH 21 %
 */
.product-card__prices {
	display: grid;
	/* max-content u částky = „Kč“ se nesmí lámat (K / č) na úzké kartě */
	grid-template-columns: auto max-content auto;
	column-gap: 0.35rem;
	row-gap: 0.12rem;
	align-items: baseline;
	width: 100%;
}

.product-card__price-prefix {
	font-size: 0.72rem;
	font-weight: 500;
	color: #8a9496;
	line-height: 1.2;
	white-space: nowrap;
}

.product-card__price-amount {
	font-family: var(--pc-font);
	font-size: var(--pc-price-size);
	font-weight: 700;
	color: #0c1148;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	min-width: max-content;
}

.product-card__price-amount--vat {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0c1148;
}

.product-card__price-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #3d4648;
	white-space: nowrap;
	justify-self: end;
}

.product-card__pricing > del {
	white-space: nowrap;
}

/* zpětná kompatibilita staršího markupů */
.product-card .product-price {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0.4rem;
	width: 100%;
}

.product-card .product-price .h4 {
	font-family: var(--pc-font);
	font-size: var(--pc-price-size);
	font-weight: 700;
	color: #0c1148;
	margin: 0;
	line-height: 1.2;
}

.product-card__price-note,
.product-card__price-vat-note {
	font-size: 0.7rem;
	font-weight: 500;
	color: #8a9496;
	white-space: nowrap;
}

.product-card__price-vat {
	font-size: 0.8rem;
	font-weight: 600;
	color: #495057;
}

@container pc-pricing (max-width: 13rem) {
	.product-card__price-amount {
		font-size: 0.95rem;
	}

	.product-card__price-amount--vat {
		font-size: 0.95rem;
	}

	.product-card__price-label {
		font-size: 0.64rem;
	}
}

.product-card del {
	font-size: 0.85rem;
	color: #9aa3a5;
	text-decoration-thickness: 1px;
}

/* —— Přidat do poptávky: pod množstvím, vždy s textem —— */
.add-to-cart-control--card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	width: 100%;
	margin-top: 0.1rem !important;
	margin-bottom: 0 !important;
	font-family: var(--pc-font, Arial, Verdana, Geneva, sans-serif);
}

.add-to-cart-control__qty {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
}

.add-to-cart-control__qty .input-group {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	border: 1px solid rgba(12, 17, 72, 0.14);
	border-radius: 0.5rem;
	overflow: hidden;
	background: #f4f5f7;
}

.add-to-cart-control__qty .input-group .btn-number {
	background: transparent;
	border: 0;
	color: #0c1148;
	box-shadow: none;
	width: 2rem;
	padding: 0.35rem 0;
	border-radius: 0;
	font-size: 0.95rem;
	line-height: 1;
}

.add-to-cart-control__qty .input-group .btn-number:hover:not(:disabled),
.add-to-cart-control__qty .input-group .btn-number:focus {
	background: rgba(12, 17, 72, 0.06);
	color: #0c1148;
}

.add-to-cart-control__qty .input-group .btn-number:disabled {
	opacity: 0.35;
}

.add-to-cart-control__qty .counter-input-number {
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.85rem;
	color: #0c1148;
	padding-left: 0.1rem;
	padding-right: 0.1rem;
	height: auto;
}

.add-to-cart-control__qty .counter-input-number:focus {
	box-shadow: none;
	background: transparent;
}

.add-to-cart-control__unit {
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: #6c757d;
}

.add-to-cart-control__submit {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex: 0 0 auto;
	height: 2.25rem;
	min-height: 2.25rem;
	padding: 0 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid #0c1148;
	background: #0c1148;
	color: #fff !important;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap !important;
	overflow: visible;
	text-overflow: clip;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.add-to-cart-control__submit:hover,
.add-to-cart-control__submit:focus {
	background: #daa520;
	border-color: #daa520;
	color: #0c1148 !important;
	box-shadow: none;
}

/* Shell: jemné šipky vně karet (bez plných kruhů) */
.topseller-swiper-shell {
	position: relative;
	padding-left: 2.75rem;
	padding-right: 2.75rem;
	box-sizing: border-box;
}

.topseller-swiper {
	overflow: hidden;
	width: 100%;
}

.topseller-swiper .swiper-slide {
	height: auto;
	display: flex;
	max-width: none;
	box-sizing: border-box;
}

.topseller-swiper .product-card {
	width: 100%;
}

.topseller-nav {
	position: absolute;
	top: 34%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 0.4rem;
	background: rgba(255, 255, 255, 0.92);
	color: #0c1148;
	font-size: 2.1rem;
	font-weight: 200;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topseller-nav:hover,
.topseller-nav:focus-visible {
	opacity: 1;
	color: #daa520;
	background: #fff;
	outline: none;
}

.topseller-nav--prev {
	left: 0.05rem;
}

.topseller-nav--next {
	right: 0.05rem;
}

.topseller-nav.swiper-button-disabled {
	opacity: 0.18;
	pointer-events: none;
}

/* staré swiper šipky schovat, kdyby někde zůstaly */
.topseller-swiper-shell > .swiper-button-prev,
.topseller-swiper-shell > .swiper-button-next {
	display: none !important;
}

@media (max-width: 575.98px) {
	.topseller-swiper-shell {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.topseller-nav {
		font-size: 1.7rem;
		width: 1.7rem;
	}
}

.home-hero {
	padding: 0.35rem 0 0.5rem;
}

.home-hero__panel {
	display: grid;
	grid-template-columns: minmax(16rem, 0.92fr) minmax(16rem, 1.08fr);
	min-height: 25rem;
	background: #0c1148;
	border-radius: 1.5rem;
	overflow: hidden;
}

.home-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 2.4rem 2.2rem;
}

.home-hero__eyebrow {
	margin: 0 0 0.85rem;
	padding-bottom: 0.7rem;
	border-bottom: 3px solid #daa520;
	color: #daa520;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-hero__title {
	margin: 0 0 0.7rem;
	max-width: 11em;
	color: #fff;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.home-hero__lead {
	margin: 0 0 0.45rem;
	color: #f4efe4;
	font-size: 1.12rem;
}

.home-hero__lines {
	margin: 0 0 1.15rem;
	padding: 0;
	list-style: none;
}

.home-hero__lines li {
	margin: 0 0 0.35rem;
	color: #f4efe4;
	font-size: 0.98rem;
	line-height: 1.35;
}

.home-hero__lines li:last-child {
	margin-bottom: 0;
}

.home-hero__lines strong {
	display: inline-block;
	min-width: 4.6rem;
	color: #daa520;
	font-weight: 700;
}

.home-hero__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.home-hero__phones a {
	display: inline-flex;
	align-items: center;
	min-height: 2.15rem;
	padding: 0.3rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
}

.home-hero__phones a:hover,
.home-hero__phones a:focus {
	border-color: #daa520;
	color: #daa520 !important;
}

.home-hero__media {
	position: relative;
	min-height: 18rem;
}

.home-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.home-note {
	padding: 1.5rem 0 0.5rem;
}

.home-note__grid {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.home-note__mascot {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 999px;
	object-fit: cover;
	flex: 0 0 auto;
}

.home-note__text {
	margin: 0;
	max-width: 36rem;
	font-size: 1.05rem;
}

.home-note__text a {
	color: #0c1148;
	font-weight: 700;
	text-decoration: none;
}

.home-note__text a:hover,
.home-note__text a:focus {
	color: #daa520;
}

@media (max-width: 767.98px) {
	.home-hero__panel {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.home-hero__media {
		min-height: 14rem;
		order: -1;
	}

	.home-hero__copy {
		padding: 1.5rem 1.2rem 1.6rem;
	}
}

.home-topsellers {
	padding-top: 1.75rem;
	padding-bottom: 1.5rem;
}

.home-topsellers h2 {
	scroll-margin-top: 13rem;
}

.add-to-cart-control__m2 {
	margin: 0.75rem 0 0.35rem;
	padding: 0.75rem 0.85rem;
	background: #f4f7fb;
	border-radius: 0.5rem;
	max-width: 22rem;
}

.add-to-cart-control__m2-lead {
	margin: 0 0 0.45rem;
	font-weight: 700;
	color: #0c1148;
}

.add-to-cart-control__m2-label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0c1148;
}

.add-to-cart-control__m2-input {
	font: inherit;
	font-weight: 600;
	padding: 0.45rem 0.6rem;
	border: 1px solid #c5ced6;
	border-radius: 0.4rem;
	max-width: 10rem;
	color: #0c1148;
}

.add-to-cart-control__m2-note,
.add-to-cart-control__m2-result {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	color: #3d4648;
}

.add-to-cart-control__m2-hint {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: #0c1148;
}

.product-card__price-piece {
	margin: 0.28rem 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: #3d4648;
}
