/* Shopintro — offers slider. Reuses the Makeda design tokens (--mk-*). */

.shopintro {
	position: relative;
	background: linear-gradient(120deg, var(--mk-primary, #0b1d3a) 0%, var(--mk-primary-2, #16345f) 60%, #1f4a85 100%);
	color: #fff;
	overflow: hidden;
}

.shopintro::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 159, 28, .35), transparent 65%);
	pointer-events: none;
}

/* All slides share one grid cell: the banner keeps the height of the tallest offer. */
.shopintro__track {
	display: grid;
}

.shopintro__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility 0s linear .5s;
	padding: 36px 0 60px;
}

.shopintro__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .5s ease;
}

.shopintro__in {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 24px;
	align-items: center;
}

/* Left: text + button */
.shopintro__title {
	margin: 0 0 .5em;
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.15;
	max-width: 18ch;
}

.shopintro__desc {
	margin: 0 0 1.4em;
	max-width: 52ch;
	font-size: 1.05rem;
	opacity: .92;
}

.shopintro__btn {
	margin-top: 4px;
}

/* Right: square image */
.shopintro__media {
	justify-self: center;
	width: min(100%, 260px);
}

.shopintro__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mk-radius, 12px);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
	background: rgba(255, 255, 255, .08);
}

/* Dots (same look as the theme banner) */
.shopintro__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.shopintro__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.shopintro__dots button.is-active {
	width: 26px;
	border-radius: 99px;
	background: var(--mk-accent, #ff9f1c);
}

@media (min-width: 640px) {
	.shopintro__slide { padding: 44px 0 64px; }
}

@media (min-width: 980px) {
	.shopintro__slide { padding: 56px 0 72px; }
	/* Text + button and image form one compact, centered group. */
	.shopintro__in {
		grid-template-columns: minmax(0, 540px) 320px;
		justify-content: center;
		gap: 40px;
	}
	.shopintro__in--solo { grid-template-columns: minmax(0, 640px); }
	.shopintro__media { width: 320px; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
	.shopintro__slide,
	.shopintro__slide.is-active,
	.shopintro__dots button { transition: none; }
}
