/* ── Hero Section: 2-column grid layout ─────────────────────── */

.mk-hero {
	position: relative;
	width: 100%;
	margin-top: 1.5rem !important;
	margin-bottom: 0;
}

.mk-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	height: 480px;
}

/* ── Left column: carousel ──────────────────────────────────── */

.mk-hero__carousel {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.mk-funko-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.mk-funko-carousel__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mk-funko-carousel__track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ── Slide: opacity-based fade transition ───────────────────── */

.mk-funko-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 600ms ease-in-out;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.mk-funko-carousel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.mk-hero__slide-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mk-hero__slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
}

/* Gradient overlay: from-black/60 via-black/20 to-transparent */
.mk-hero__slide-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.60) 0%,
		rgba(0, 0, 0, 0.20) 50%,
		transparent 100%
	);
	z-index: 1;
}

/* ── Slide text content (bottom-left) ───────────────────────── */

.mk-hero__slide-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mk-hero__slide-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.80);
}

.mk-hero__slide-title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.05;
	color: #ffffff;
	margin: 0;
	letter-spacing: -0.02em;
}

.mk-hero__slide-desc {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	max-width: 360px;
}

.mk-hero__slide-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 10px 20px;
	background: #ffffff;
	color: #111111;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	width: fit-content;
	transition: background-color 200ms ease, transform 200ms ease;
}

.mk-hero__slide-cta:hover {
	background: rgba(255, 255, 255, 0.90);
	transform: translateY(-1px);
}

.mk-hero__slide-cta svg {
	flex-shrink: 0;
}

/* ── Carousel controls (arrows) ─────────────────────────────── */

.mk-funko-carousel__control {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.20);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0;
	transition: opacity 300ms ease, background-color 200ms ease;
}

/* Show arrows on hover over the carousel */
.mk-hero__carousel:hover .mk-funko-carousel__control,
.mk-funko-carousel__control:focus-visible {
	opacity: 1;
}

.mk-funko-carousel__control:hover {
	background: rgba(255, 255, 255, 0.35);
}

.mk-funko-carousel__control--prev {
	left: 16px;
}

.mk-funko-carousel__control--next {
	right: 16px;
}

/* ── Dot navigation (bottom-right, elongated active) ────────── */

.mk-funko-carousel__dots {
	position: absolute;
	bottom: 20px;
	right: 24px;
	z-index: 4;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.mk-funko-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 300ms ease, background-color 300ms ease;
}

.mk-funko-carousel__dot.is-active {
	width: 24px;
	background: #ffffff;
}

/* ── Progress bar (thin line at bottom of carousel) ─────────── */

.mk-hero__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	z-index: 5;
}

.mk-hero__progress-bar {
	height: 100%;
	width: 0%;
	background: #ffffff;
	transition: width 100ms linear;
}

/* ── Right column: side cards ───────────────────────────────── */

.mk-hero__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mk-hero__card {
	position: relative;
	flex: 1;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	display: block;
}

.mk-hero__card-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
}

/* Gradient overlay for cards: gradient-to-r from-black/50 */
.mk-hero__card-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.50) 0%,
		rgba(0, 0, 0, 0.15) 60%,
		transparent 100%
	);
	z-index: 1;
}

.mk-hero__card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mk-hero__card-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	background: var(--mk-cart-badge, #d4556b);
	border-radius: 999px;
	width: fit-content;
	margin-bottom: 4px;
}

.mk-hero__card-title {
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.mk-hero__card-link {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	transition: color 200ms ease;
}

.mk-hero__card:hover .mk-hero__card-link {
	color: #ffffff;
}

/* ── Static state (< 2 slides) ──────────────────────────────── */

.mk-funko-carousel.is-static .mk-funko-carousel__control,
.mk-funko-carousel.is-static .mk-funko-carousel__dots,
.mk-funko-carousel.is-static .mk-hero__progress {
	display: none;
}

/* ── Responsive: tablet ─────────────────────────────────────── */

@media (max-width: 960px) {
	.mk-hero__grid {
		grid-template-columns: 1fr;
		height: auto;
	}

	.mk-hero__carousel {
		height: 420px;
	}

	.mk-hero__sidebar {
		flex-direction: row;
	}

	.mk-hero__card {
		min-height: 200px;
	}

	.mk-hero__slide-title {
		font-size: 36px;
	}
}

/* ── Responsive: mobile ─────────────────────────────────────── */

@media (max-width: 600px) {
	.mk-hero__grid {
		gap: 12px;
	}

	.mk-hero__carousel {
		height: 360px;
	}

	.mk-hero__sidebar {
		flex-direction: column;
	}

	.mk-hero__card {
		min-height: 160px;
	}

	.mk-hero__slide-content {
		padding: 20px;
	}

	.mk-hero__slide-title {
		font-size: 28px;
	}

	.mk-hero__slide-desc {
		font-size: 13px;
	}

	.mk-funko-carousel__control {
		width: 34px;
		height: 34px;
	}

	.mk-funko-carousel__control--prev {
		left: 10px;
	}

	.mk-funko-carousel__control--next {
		right: 10px;
	}

	.mk-funko-carousel__dots {
		bottom: 14px;
		right: 16px;
	}

	.mk-hero__card-content {
		padding: 16px;
	}

	.mk-hero__card-title {
		font-size: 18px;
	}
}
