.niche-home {
	direction: rtl;
	overflow: hidden;
	background: #fff;
	color: #222;
	font-family: "Cairo", sans-serif;
	width: 100%;
	max-width: 100vw;
	margin: 0;
	padding: 0;
}

body.home,
body.front-page,
body.home #page,
body.front-page #page,
body.home .site,
body.front-page .site {
	overflow-x: hidden;
}

.niche-home *,
.niche-home *::before,
.niche-home *::after {
	box-sizing: border-box;
	font-family: "Cairo", sans-serif;
}

.niche-hero {
	position: relative;
	width: 100%;
	max-width: 100vw;
	min-height: clamp(430px, 48vw, 720px);
	overflow: hidden;
	background: #f7f1ec;
}

.niche-hero__slides,
.niche-hero__slide {
	position: absolute;
	inset: 0;
}

.niche-hero__slide {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(20px, 5vw, 90px);
	padding: clamp(34px, 6vw, 90px) clamp(18px, 8vw, 130px);
	opacity: 0;
	visibility: hidden;
	background:
		radial-gradient(circle at 24% 42%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
		linear-gradient(120deg, #fbf6f0 0%, #efe1d2 52%, #fff 100%);
	transition: opacity 500ms ease, visibility 500ms ease;
}

.niche-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.niche-hero__slide img {
	width: 100%;
	height: min(560px, 36vw);
	min-height: 280px;
	display: block;
	object-fit: contain;
	object-position: center;
	grid-column: 1;
	filter: drop-shadow(0 24px 42px rgba(30, 20, 14, 0.16));
}

.niche-hero__content {
	position: static;
	display: flex;
	max-width: min(560px, 82vw);
	flex-direction: column;
	grid-column: 2;
	gap: 10px;
	color: #231f20;
	text-shadow: none;
}

.niche-hero__content strong {
	font-size: clamp(30px, 4vw, 66px);
	font-weight: 900;
	line-height: 1.15;
}

.niche-hero__content small {
	font-size: clamp(16px, 1.6vw, 25px);
	font-weight: 700;
	line-height: 1.7;
}

.niche-hero__arrow,
.niche-rail__arrow {
	position: absolute;
	z-index: 5;
	width: 56px;
	height: 56px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 42px rgba(25, 25, 25, 0.18);
	color: #111;
	font-family: Arial, sans-serif;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease;
}

.niche-hero__arrow:hover,
.niche-rail__arrow:hover {
	transform: translateY(-50%) scale(1.06);
	background: #fff;
}

.niche-hero__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.niche-hero__arrow--prev {
	right: 26px;
}

.niche-hero__arrow--next {
	left: 26px;
}

.niche-section {
	width: min(100%, 1760px);
	max-width: 100vw;
	margin: 0 auto;
	padding: clamp(34px, 5vw, 74px) clamp(14px, 3vw, 44px);
	overflow: hidden;
}

.niche-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(22px, 3vw, 42px);
}

.niche-section__head--center {
	justify-content: center;
	text-align: center;
}

.niche-section__head h2 {
	margin: 0;
	color: #171717;
	font-size: clamp(26px, 2.3vw, 42px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.25;
}

.niche-section__head a {
	color: #222;
	font-size: clamp(14px, 1.05vw, 18px);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.niche-promo {
	width: 100%;
	max-width: none;
	padding-block: clamp(18px, 2.8vw, 38px);
	padding-inline: clamp(14px, 1.8vw, 28px);
}

.niche-promo__stack {
	display: grid;
	gap: clamp(10px, 1.2vw, 18px);
	width: 100%;
}

.niche-promo-card,
.niche-promo picture,
.niche-promo img {
	display: block;
	width: 100%;
}

.niche-promo-card {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f3;
}

.niche-promo picture {
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f3;
	box-shadow: none;
}

.niche-promo-card picture {
	border-radius: 0;
	background: transparent;
}

.niche-promo img {
	aspect-ratio: 10 / 3;
	height: auto;
	object-fit: cover;
	object-position: center;
	image-rendering: auto;
}

.niche-promo-card__title {
	position: absolute;
	top: 19%;
	right: 8%;
	z-index: 2;
	max-width: 45%;
	color: #222;
	font-family: "Cairo", sans-serif;
	font-size: clamp(32px, 4vw, 78px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0;
	text-align: right;
	white-space: nowrap;
	background: transparent;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.niche-promo--between-products {
	padding-top: 4px;
	padding-bottom: clamp(18px, 3vw, 36px);
}

.niche-rail {
	width: 100%;
	max-width: none;
	padding-inline: clamp(10px, 2vw, 34px);
	overflow: hidden;
}

.niche-rail__wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.niche-rail__viewport {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	direction: rtl;
}

.niche-rail__viewport::-webkit-scrollbar {
	display: none;
}

.niche-rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 140px) / 6);
	gap: 28px;
	width: 100%;
	min-width: 100%;
	padding: 4px 8px 22px;
	direction: rtl;
}

.niche-card {
	direction: rtl;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	scroll-snap-align: start;
	background: #fff;
	text-align: center;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.niche-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 46px rgba(25, 25, 25, 0.08);
}

.niche-card__media {
	position: relative;
	display: flex;
	width: 100%;
	height: clamp(230px, 17vw, 350px);
	align-items: center;
	justify-content: center;
	padding: 28px 18px 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.045);
	background: #fff;
}

.niche-card__image,
.niche-card__media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	image-rendering: auto;
	transition: transform 260ms ease;
}

.niche-card:hover .niche-card__image,
.niche-card:hover .niche-card__media img {
	transform: scale(1.055);
}

.niche-card__badge {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	min-width: 70px;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	padding: 6px 13px;
	border-radius: 5px;
	background: #ed7885;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.niche-card__badge--muted {
	background: #ee8893;
}

.niche-card__body {
	display: flex;
	min-height: 118px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 18px 10px 12px;
}

.niche-card__title {
	display: -webkit-box;
	min-height: 58px;
	overflow: hidden;
	color: #616161;
	font-size: clamp(15px, 1vw, 18px);
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.niche-card__title:hover {
	color: #222;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.niche-card__price {
	min-height: 34px;
	margin-top: 8px;
	color: #c26366;
	font-size: clamp(19px, 1.25vw, 25px);
	font-weight: 800;
	line-height: 1.3;
}

.niche-card__price del {
	margin-inline-end: 6px;
	color: #999;
	font-size: 0.78em;
	opacity: 0.75;
}

.niche-card__price ins {
	background: transparent;
	color: inherit;
	text-decoration: none;
}

.niche-card__button {
	display: inline-flex;
	width: calc(100% - 4px);
	min-height: 64px;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: auto auto 0;
	padding: 12px 18px;
	border-radius: 12px;
	background: #222;
	color: #fff;
	font-size: clamp(17px, 1.1vw, 22px);
	font-weight: 900;
	line-height: 1.25;
	text-decoration: none;
	transition: background 180ms ease, transform 180ms ease;
}

.niche-card__button:hover {
	background: #111;
	color: #fff;
	transform: translateY(-2px);
}

.niche-card__button.loading {
	position: relative;
	pointer-events: none;
	background: #3a3a3a;
	color: rgba(255, 255, 255, 0.68);
	transform: none;
}

.niche-card__button.loading .niche-card__plus {
	opacity: 0;
}

.niche-card__button.loading::before {
	content: "";
	width: 22px;
	height: 22px;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nicheButtonSpin 850ms linear infinite;
}

.niche-card__button.added {
	background: #16834a;
	color: #fff;
	animation: nicheButtonAdded 520ms ease;
}

.niche-card__button.added .niche-card__plus {
	font-size: 0;
}

.niche-card__button.added .niche-card__plus::before {
	content: "✓";
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

@keyframes nicheButtonSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes nicheButtonAdded {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 rgba(22, 131, 74, 0);
	}
	45% {
		transform: scale(1.035);
		box-shadow: 0 16px 34px rgba(22, 131, 74, 0.26);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 rgba(22, 131, 74, 0);
	}
}

.niche-card__plus {
	font-family: Arial, sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
}

.niche-rail__arrow {
	top: 44%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.niche-rail__arrow--prev {
	right: 20px;
}

.niche-rail__arrow--next {
	left: 20px;
}

.niche-rail__arrow::after {
	position: absolute;
	top: 50%;
	width: max-content;
	padding: 6px 10px;
	border-radius: 999px;
	background: #222;
	color: #fff;
	font-family: "Cairo", sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%);
	transition: opacity 160ms ease;
}

.niche-rail__arrow--prev::after {
	right: calc(100% + 8px);
	content: "يمين";
}

.niche-rail__arrow--next::after {
	left: calc(100% + 8px);
	content: "يسار";
}

.niche-rail__arrow:hover::after,
.niche-rail__arrow:focus-visible::after {
	opacity: 1;
}

@media (max-width: 1280px) {
	.niche-rail__track {
		grid-auto-columns: calc((100% - 56px) / 4);
	}
}

@media (max-width: 900px) {
	.niche-hero {
		min-height: 420px;
	}

	.niche-hero__slide {
		grid-template-columns: 1fr;
		align-content: center;
		gap: 16px;
		padding: 28px 18px 34px;
		text-align: center;
	}

	.niche-hero__slide img {
		grid-column: 1;
		width: 100%;
		height: 238px;
		min-height: 0;
	}

	.niche-hero__content {
		grid-column: 1;
		max-width: 100%;
		align-items: center;
	}

	.niche-hero__arrow,
	.niche-rail__arrow {
		width: 44px;
		height: 44px;
		font-size: 34px;
	}

	.niche-hero__arrow--prev {
		right: 10px;
	}

	.niche-hero__arrow--next {
		left: 10px;
	}

	.niche-section {
		padding: 34px 12px;
	}

	.niche-promo {
		padding-block: 12px 20px;
		padding-inline: 10px;
	}

	.niche-promo__stack {
		gap: 10px;
	}

	.niche-promo picture {
		border-radius: 7px;
	}

	.niche-promo-card {
		border-radius: 7px;
	}

	.niche-promo img {
		aspect-ratio: 2 / 1;
		object-position: center center;
	}

	.niche-promo-card--hanadi img {
		object-position: 34% center;
	}

	.niche-promo-card__title {
		top: 13%;
		right: 6%;
		max-width: 58%;
		font-size: clamp(20px, 6vw, 34px);
		white-space: normal;
	}

	.niche-rail {
		padding-inline: 10px;
	}

	.niche-rail__track {
		grid-auto-columns: calc((100% - 12px) / 2);
		gap: 12px;
		padding-inline: 0;
		width: 100%;
	}

	.niche-card {
		box-shadow: none;
	}

	.niche-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 16px 28px rgba(25, 25, 25, 0.07);
	}

	.niche-card__media {
		height: clamp(205px, 50vw, 285px);
		padding: 28px 8px 12px;
	}

	.niche-card__badge {
		top: 8px;
		right: 8px;
		min-width: 58px;
		min-height: 31px;
		padding: 5px 10px;
		font-size: 13px;
	}

	.niche-card__body {
		min-height: 112px;
		padding: 14px 4px 10px;
	}

	.niche-card__title {
		min-height: 54px;
		font-size: 15px;
		line-height: 1.55;
	}

	.niche-card__price {
		font-size: 22px;
	}

	.niche-card__button {
		min-height: 58px;
		border-radius: 12px;
		font-size: 18px;
		gap: 12px;
	}

	.niche-card__plus {
		font-size: 32px;
	}

	.niche-rail__arrow {
		top: 36%;
	}

	.niche-rail__arrow::after {
		display: none;
	}

	.niche-rail__arrow--prev {
		right: 6px;
	}

	.niche-rail__arrow--next {
		left: 6px;
	}
}

@media (max-width: 480px) {
	.niche-hero {
		min-height: 350px;
	}

	.niche-hero__slide img {
		object-position: center;
	}

	.niche-section__head {
		margin-bottom: 20px;
	}

	.niche-section__head h2 {
		font-size: 25px;
	}

	.niche-section__head a {
		font-size: 13px;
	}

	.niche-card__media {
		height: 225px;
	}

	.niche-card__title {
		font-size: 14px;
	}

	.niche-card__price {
		font-size: 20px;
	}

	.niche-card__button {
		min-height: 54px;
		padding-inline: 10px;
		font-size: 16px;
	}
}
