/* Lamiraje home slider — self-contained, no external deps */

.home-slider {
	position: relative;
	width: min(1160px, 100% - 28px);
	margin: 24px auto;
	isolation: isolate;
}

.home-slider-viewport {
	overflow: hidden;
	border-radius: 18px;
	background: var(--soft);
	border: 1px solid var(--line);
	box-shadow: 0 14px 34px rgba(23, 37, 50, 0.12);
}

.home-slider-track {
	display: flex;
	will-change: transform;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-slider.no-anim .home-slider-track {
	transition: none;
}

.home-slider-slide {
	flex: 0 0 100%;
	min-width: 100%;
	aspect-ratio: 2 / 1; /* فریم یکدست برای همه اسلایدها تا ارتفاع نپرد */
}

.home-slider-slide a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

/* کل عکس بدون برش نمایش داده می‌شود (contain، نه cover) تا هیچ بخشی از عکس حذف نشود */
.home-slider-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* دکمه‌های قبلی/بعدی */
.home-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #17252f;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(23, 37, 50, 0.18);
	transition: background 0.15s ease, transform 0.15s ease;
	z-index: 3;
}

.home-slider-nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.06);
}

.home-slider-nav:focus-visible {
	outline: 2px solid var(--brand, #ffd400);
	outline-offset: 2px;
}

/* RTL: «قبلی» سمت راست، «بعدی» سمت چپ */
.home-slider-prev {
	inset-inline-end: 18px;
}

.home-slider-next {
	inset-inline-start: 18px;
}

/* نقطه‌ها */
.home-slider-dots {
	position: absolute;
	inset-inline: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 9px;
	z-index: 3;
}

.home-slider-dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(23, 37, 50, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.home-slider-dot.is-active {
	background: var(--brand, #ffd400);
	transform: scale(1.25);
}

/* بخش hero منتقل‌شده (زیر «به وقت تخفیف») — ارتفاع نصفِ حالت اصلی */
.home-hero--compact {
	min-height: 280px;
	padding: 34px 0 30px;
}
/* تایپوگرافی فشرده تا ارتفاع واقعی حدود نصف شود */
.home-hero--compact .home-hero-copy h1 {
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.4;
	margin-bottom: 8px;
}
.home-hero--compact .home-hero-copy .eyebrow {
	margin-bottom: 8px;
}
.home-hero--compact .home-hero-copy p {
	font-size: 14px;
	line-height: 1.85;
	margin: 0 0 8px;
}
.home-hero--compact .home-hero-actions {
	margin-top: 14px;
}
.home-hero--compact .home-hero-points {
	margin-top: 12px;
}

@media (max-width: 992px) {
	.home-hero--compact {
		min-height: 320px;
	}
}

@media (max-width: 600px) {
	.home-slider {
		width: min(1160px, 100% - 20px);
		margin: 14px auto;
	}
	.home-slider-viewport {
		border-radius: 14px;
	}
	.home-slider-nav {
		width: 36px;
		height: 36px;
		font-size: 19px;
	}
	.home-slider-prev {
		inset-inline-end: 8px;
	}
	.home-slider-next {
		inset-inline-start: 8px;
	}
	.home-hero--compact {
		min-height: 300px;
		padding: 26px 0 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-slider-track {
		transition: none;
	}
}

/* موبایل: بخش محصولات و مقالات صفحه اصلی به‌صورت کاروسل افقی یک‌ردیفه */
@media (max-width: 768px) {
	.home-hscroll {
		display: flex;
		flex-wrap: nowrap;
		gap: 12px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scroll-padding-inline-start: 2px;
		padding: 2px 2px 10px;
		scrollbar-width: none;
	}
	.home-hscroll::-webkit-scrollbar {
		display: none;
	}
	.home-hscroll > * {
		flex: 0 0 78%;
		max-width: 300px;
		min-width: 0;
		scroll-snap-align: start;
	}
}
