/**
 * OO Sport product card system
 *
 * This is the final visual contract for product cards in catalogs and on
 * single-product recommendation rails. Keep reusable colors, spacing and
 * component states here so every sales path changes together.
 */
:root {
	--oo-product-card-surface: #ffffff;
	--oo-product-card-media-surface: #ffffff;
	--oo-product-card-ink: #111820;
	--oo-product-card-muted: #68737b;
	--oo-product-card-line: #dce3e7;
	--oo-product-card-accent: #d4ff00;
	--oo-product-card-radius: 10px;
	--oo-product-card-media-ratio: 4 / 5;
	--oo-product-card-body-gap: 0.5rem;
	--oo-product-card-pad-x: 0.8rem;
	--oo-product-card-pad-bottom: 0.9rem;
}

.oo-product-card {
	display: flex !important;
	min-width: 0 !important;
	margin: 0 !important;
	background: var(--oo-product-card-surface) !important;
	border: 1px solid var(--oo-product-card-line) !important;
	border-radius: var(--oo-product-card-radius) !important;
	box-shadow: none !important;
	overflow: hidden !important;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

.oo-product-card:hover,
.oo-product-card:focus-within {
	border-color: var(--oo-product-card-ink) !important;
	box-shadow: 0 14px 34px rgba(17, 24, 32, 0.07) !important;
}

.oo-product-card .oo-product-card__link {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	border: 0 !important;
	border-radius: inherit !important;
	background: var(--oo-product-card-surface) !important;
	box-shadow: none !important;
	color: var(--oo-product-card-ink) !important;
	text-decoration: none !important;
	overflow: hidden !important;
	transform: none !important;
}

.oo-product-card .oo-product-card__link:hover,
.oo-product-card .oo-product-card__link:active {
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.oo-product-card .oo-product-card__link:focus-visible {
	outline: 3px solid var(--oo-product-card-accent) !important;
	outline-offset: -3px !important;
}

.oo-product-card .oo-product-card__media {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: var(--oo-product-card-media-ratio) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--oo-product-card-media-surface) !important;
	box-shadow: none !important;
	line-height: 0 !important;
	overflow: hidden !important;
}

.oo-product-card .oo-product-card__media .oo-product-card__image,
.oo-product-card .oo-product-card__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	transform: none !important;
}

/*
 * The retired single-product recommendation menu used to add an inner white
 * frame around media. Keep the shared card contract authoritative there too:
 * the image itself fills the full media area with no nested panel around it.
 */
body.single-oo_toode .oo-sport-single-v3 .oo-product-card .oo-product-card__media {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-oo_toode .oo-sport-single-v3 .oo-product-card .oo-product-card__media .oo-product-card__image {
	border: 0 !important;
	border-radius: 0 !important;
}

.oo-product-card.is-brand-musai .oo-product-card__media .oo-product-card__image,
.oo-product-card.is-brand-musai .oo-product-card__image {
	object-fit: cover !important;
	object-position: center top !important;
	transform-origin: center top !important;
}

/*
 * Custom-design source photography varies between square and portrait. Crop
 * the sides when needed so every card has one uninterrupted image field and
 * no white bands at the top or bottom.
 */
.oo-product-card.is-custom-design .oo-product-card__media .oo-product-card__image,
.oo-product-card.is-custom-design .oo-product-card__image {
	object-fit: cover !important;
	object-position: center center !important;
	transform-origin: center center !important;
}

.oo-product-card .oo-product-card__placeholder {
	color: var(--oo-product-card-muted) !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center !important;
}

.oo-product-card .oo-product-card__brand {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: stretch !important;
	width: 100% !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 0.5rem var(--oo-product-card-pad-x) 0 !important;
	background: var(--oo-product-card-surface) !important;
	box-sizing: border-box !important;
	text-align: center !important;
}

.oo-product-card .oo-product-card__brand-logo {
	display: block !important;
	position: static !important;
	inset: auto !important;
	align-self: center !important;
	width: 88px !important;
	height: 24px !important;
	max-width: 88px !important;
	max-height: 24px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	transform: none !important;
}

.oo-product-card .oo-product-card__body {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: var(--oo-product-card-body-gap) !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.65rem var(--oo-product-card-pad-x) var(--oo-product-card-pad-bottom) !important;
	background: var(--oo-product-card-surface) !important;
	box-sizing: border-box !important;
}

.oo-product-card .oo-product-card__title {
	display: -webkit-box !important;
	min-height: 2.36em !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--oo-product-card-ink) !important;
	font-family: "Exo 2", sans-serif !important;
	font-size: clamp(0.82rem, 0.35vw + 0.72rem, 1rem) !important;
	font-weight: 800 !important;
	line-height: 1.18 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	text-transform: none !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
}

.oo-product-card .oo-product-card__price {
	display: block !important;
	min-height: 2.35em !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--oo-product-card-ink) !important;
	font-family: "Exo 2", sans-serif !important;
	font-size: 0.95rem !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	text-align: left !important;
}

.oo-product-card .oo-product-price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 0.12rem !important;
	width: 100% !important;
}

.oo-product-card .oo-product-price__primary {
	display: block !important;
	color: var(--oo-product-card-ink) !important;
	font-size: 0.95rem !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
}

.oo-product-card .oo-product-price__vat {
	color: var(--oo-product-card-muted) !important;
	font-size: 0.66rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	white-space: nowrap !important;
}

.oo-product-card .oo-product-price__gross {
	display: block !important;
	color: var(--oo-product-card-muted) !important;
	font-size: 0.66rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

.oo-product-card .oo-product-card__colors {
	display: flex !important;
	flex-wrap: wrap !important;
	flex: 0 0 46px !important;
	align-items: center !important;
	align-content: flex-start !important;
	gap: 0.38rem !important;
	height: 46px !important;
	min-height: 46px !important;
	max-height: 46px !important;
	margin: 0 !important;
	padding: 2px !important;
	overflow: hidden !important;
}

/* The single-product rail still has older, more specific height limits. */
body.single-oo_toode .oo-sport-single-v3 .oo-product-card .oo-product-card__colors {
	flex: 0 0 46px !important;
	height: 46px !important;
	min-height: 46px !important;
	max-height: 46px !important;
}

.oo-product-card .oo-product-card__swatch {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #aeb8bf !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transform: none !important;
	overflow: hidden !important;
}

.oo-product-card .oo-product-card__swatch::before,
.oo-product-card .oo-product-card__swatch::after {
	display: none !important;
	content: none !important;
}

/*
 * Keep every colour preview as one clean circle. Some legacy catalogue rules
 * let image and two-tone swatches fill a differently rounded inner box, which
 * made the small dots look clipped or angular on product cards.
 */
.oo-product-card .oo-product-card__swatch .oo-sport-product-card-color-dot,
.oo-product-card .oo-product-card__swatch .oo-search-product-card-dot {
	display: block !important;
	flex: 1 1 100% !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background-clip: padding-box !important;
	box-shadow: none !important;
	clip-path: none !important;
	overflow: hidden !important;
}

.oo-product-card .oo-product-card__swatch:hover,
.oo-product-card .oo-product-card__swatch.is-active {
	border: 2px solid var(--oo-product-card-accent) !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}

.oo-product-card .oo-product-card__swatch:focus-visible {
	border-color: var(--oo-product-card-ink) !important;
	outline: 2px solid var(--oo-product-card-accent) !important;
	outline-offset: 2px !important;
}

.oo-product-card .oo-product-card__cta {
	display: block !important;
	margin: auto 0 0 !important;
	padding: 0.2rem 0 0 !important;
	color: var(--oo-product-card-muted) !important;
	font-family: "Exo 2", sans-serif !important;
	font-size: 0.74rem !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
	letter-spacing: 0.09em !important;
	text-align: left !important;
	text-transform: uppercase !important;
}

@media (max-width: 781px) {
	:root {
		--oo-product-card-media-ratio: 1 / 1.08;
		--oo-product-card-body-gap: 0.42rem;
		--oo-product-card-pad-x: 0.65rem;
		--oo-product-card-pad-bottom: 0.75rem;
	}

	.oo-product-card .oo-product-card__brand {
		min-height: 26px !important;
		padding-top: 0.45rem !important;
	}

	.oo-product-card .oo-product-card__brand-logo {
		width: 82px !important;
		height: 22px !important;
		max-width: 82px !important;
		max-height: 22px !important;
	}

	.oo-product-card .oo-product-card__title {
		font-size: 0.82rem !important;
	}

	.oo-product-card .oo-product-card__price {
		font-size: 0.88rem !important;
	}

	.oo-product-card .oo-product-card__swatch {
		flex-basis: 16px !important;
		width: 16px !important;
		height: 16px !important;
		padding: 0 !important;
	}

	.oo-product-card .oo-product-card__swatch .oo-sport-product-card-color-dot,
	.oo-product-card .oo-product-card__swatch .oo-search-product-card-dot {
		flex-basis: 100% !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		min-height: 100% !important;
	}

	.oo-product-card .oo-product-card__colors {
		flex-basis: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		max-height: 44px !important;
	}

	body.single-oo_toode .oo-sport-single-v3 .oo-product-card .oo-product-card__colors {
		flex: 0 0 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		max-height: 44px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oo-product-card {
		transition-duration: 0.01ms !important;
	}
}
