/**
 * StorefrontPlus — Homepage Sections
 */

/* ── Hero ─────────────────────────────────────────────── */
.sp-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.sp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sp-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 700px;
	padding: 2em;
}

.sp-hero__title {
	font-size: clamp(2em, 5vw, 3.5em);
	font-weight: 700;
	margin-bottom: 0.3em;
	color: inherit !important;
	line-height: 1.2;
}

.sp-hero__subtitle {
	font-size: clamp(1em, 2.5vw, 1.4em);
	margin-bottom: 1.5em;
	opacity: 0.9;
	line-height: 1.5;
}

.sp-hero__cta.button {
	background: #fff;
	color: var(--sp-color-primary);
	border: none;
	padding: 0.9em 2.5em;
	font-size: 1.1em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-hero__cta.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	color: var(--sp-color-primary);
}

/* ── Featured Products ────────────────────────────────── */
.sp-featured-products {
	background: #fff;
}

/* ── Categories Grid ──────────────────────────────────── */
.sp-categories__item {
	display: block;
	text-align: center;
	text-decoration: none;
	color: var(--sp-color-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sp-categories__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sp-categories__image {
	aspect-ratio: 4/3;
	overflow: hidden;
}

.sp-categories__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sp-categories__item:hover .sp-categories__image img {
	transform: scale(1.05);
}

.sp-categories__name {
	font-size: 1.1em;
	margin: 0.8em 0 0.2em;
	padding: 0 1em;
}

.sp-categories__count {
	display: block;
	font-size: 0.85em;
	color: #888;
	padding-bottom: 1em;
}

/* ── Banners ──────────────────────────────────────────── */
.sp-banners__grid {
	display: grid;
	gap: 2em;
}

.sp-banners__grid--1 { grid-template-columns: 1fr; }
.sp-banners__grid--2 { grid-template-columns: repeat(2, 1fr); }

.sp-banners__item {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16/7;
}

.sp-banners__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sp-banners__item:hover img {
	transform: scale(1.03);
}

.sp-banners__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	transition: background 0.3s ease;
}

.sp-banners__item:hover .sp-banners__overlay {
	background: rgba(0, 0, 0, 0.4);
}

.sp-banners__text {
	color: #fff;
	font-size: 1.5em;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ── Testimonials ─────────────────────────────────────── */
.sp-testimonials {
	text-align: center;
}

.sp-testimonials__track {
	position: relative;
	overflow: hidden;
}

.sp-testimonials__slide {
	display: none;
	animation: spFadeIn 0.5s ease;
}

.sp-testimonials__slide.is-active {
	display: block;
}

@keyframes spFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.sp-testimonials__quote {
	max-width: 650px;
	margin: 0 auto;
	padding: 2em;
	border: none;
}

.sp-testimonials__stars {
	margin-bottom: 1em;
	color: #f7b731;
}

.sp-testimonials__stars svg {
	margin: 0 2px;
}

.sp-testimonials__text {
	font-size: 1.2em;
	line-height: 1.7;
	font-style: italic;
	color: var(--sp-color-text);
	margin-bottom: 1em;
}

.sp-testimonials__author {
	font-style: normal;
	font-weight: 600;
	color: var(--sp-color-heading);
}

.sp-testimonials__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1em;
	margin-top: 1.5em;
}

.sp-testimonials__prev,
.sp-testimonials__next {
	background: none;
	border: 2px solid var(--sp-color-primary);
	color: var(--sp-color-primary);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.sp-testimonials__prev:hover,
.sp-testimonials__next:hover {
	background: var(--sp-color-primary);
	color: #fff;
}

.sp-testimonials__dots {
	display: flex;
	gap: 8px;
}

.sp-testimonials__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: #ccc;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.sp-testimonials__dot.is-active {
	background: var(--sp-color-primary);
}

/* ── CTA Section ──────────────────────────────────────── */
.sp-cta {
	text-align: center;
}

.sp-cta__inner {
	padding: 3em 1.5em;
}

.sp-cta__title {
	font-size: 2em;
	margin-bottom: 0.5em;
}

.sp-cta__text {
	font-size: 1.15em;
	opacity: 0.9;
	margin-bottom: 1.5em;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.sp-cta__button.button.alt {
	background: #fff;
	color: var(--sp-color-primary);
	padding: 0.9em 2.5em;
	font-size: 1.1em;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-cta__button.button.alt:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
	.sp-hero__content {
		padding: 1.5em;
	}

	.sp-banners__grid--2 {
		grid-template-columns: 1fr;
	}

	.sp-section {
		padding: 3em 0;
	}
}
