@charset "UTF-8";
/* =========================================
   JEELENA JEDDAH - PRODUCT RAILS
   Bigger images - Accessibility Fixed
   PHP unchanged
   ========================================= */

.jrails,
.jrails *,
.jrails *::before,
.jrails *::after {
	box-sizing: border-box;
}

.jrails {
	direction: rtl;
	width: 100%;
	margin: 0;

	background: #FFFEFB;
	color: #1F1F1F;

	font-family: "Tajawal", sans-serif;
}

.jrails-inner {
	width: min(1220px, calc(100% - 32px));
	margin: 0 auto;
	padding: 56px 0 62px;
}


/* =========================
   Section
   ========================= */

.jrails-section {
	margin: 0;
	padding: 30px 22px 26px;

	background: #FFFEFB;

	border: 1px solid rgba(22, 71, 52, .09);
	border-radius: 18px;
}

.jrails-section + .jrails-section {
	margin-top: 26px;
}


/* =========================
   Heading
   ========================= */

.jrails-head {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 58px;

	margin: 0 0 23px;
	padding: 0 130px;

	text-align: center;
}

.jrails-head-copy {
	width: 100%;
	min-width: 0;
	text-align: center;
}

.jrails-title {
	margin: 0;
	padding: 0;

	color: #164734;

	font-family: "El Messiri", sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.35;
}

.jrails-description {
	margin: 6px 0 0;
	padding: 0;

	color: #5F5A54;

	font-family: "Tajawal", sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.7;
}


/* =========================
   Products Rail
   ========================= */

.jrails-products {
	display: flex;

	gap: 14px;

	overflow-x: auto;
	overflow-y: hidden;

	padding: 0 0 8px;

	scroll-snap-type: x proximity;
	scroll-padding-inline: 0;

	-webkit-overflow-scrolling: touch;

	scrollbar-width: none;
}

.jrails-products::-webkit-scrollbar {
	display: none;
}


/* حوالي 3 منتجات ظاهرة على الديسكتوب */

.jrails-card {
	flex: 0 0 calc((100% - 28px) / 3);
	width: calc((100% - 28px) / 3);
	min-width: 0;

	margin: 0;
	padding: 0;

	overflow: hidden;

	background: #FFFFFF;

	border: 1px solid rgba(22, 71, 52, .09);
	border-radius: 15px;

	box-shadow: 0 5px 18px rgba(31, 31, 31, .025);

	scroll-snap-align: start;
}


/* =========================
   Product Image
   ========================= */

.jrails-image-link {
	display: block;

	width: 100%;

	overflow: hidden;

	background: #F8F6F1;

	text-decoration: none;
}

.jrails-image-link img,
.jrails img.jrails-image {
	display: block !important;

	width: 100% !important;
	height: auto !important;

	max-width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
}


/* =========================
   Product Information
   ========================= */

.jrails-card-body {
	padding: 12px 13px 14px;

	background: #FFFFFF;
	color: #1F1F1F;
}

.jrails-product-title {
	margin: 0;
	padding: 0;

	font-family: "El Messiri", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
}

.jrails-product-title a {
	color: #1F1F1F;
	text-decoration: none;
}

.jrails-price {
	margin-top: 5px;

	color: #164734;

	font-family: "Tajawal", sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.5;
}


/* السعر القديم - تم إصلاح التباين */

.jrails-price del {
	margin-inline-end: 5px;

	color: #5F5A54;

	font-size: .84em;
	font-weight: 500;

	opacity: 1;
}


/* رمز العملة داخل السعر القديم */

.jrails-price del .woocommerce-Price-currencySymbol {
	color: #5F5A54;
	opacity: 1;
}


/* السعر الحالي */

.jrails-price ins {
	color: #164734;
	font-weight: 700;
	text-decoration: none;
}

.jrails-price ins .woocommerce-Price-currencySymbol {
	color: #164734;
}


/* =========================
   View All
   ========================= */

.jrails-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 43px;
	padding: 9px 18px;

	border: 1px solid #164734;
	border-radius: 13px;

	background: #164734;

	color: #FFFEFB !important;

	font-family: "Tajawal", sans-serif !important;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;

	text-decoration: none !important;

	box-shadow: 0 9px 24px rgba(22, 71, 52, .13);

	transition:
		transform .15s ease,
		background-color .15s ease,
		border-color .15s ease;
}

.jrails-view-all--desktop {
	position: absolute;

	inset-inline-end: 0;
	top: 50%;

	transform: translateY(-50%);
}

.jrails-mobile-footer {
	display: none;
}

@media (hover: hover) {

	.jrails-view-all--desktop:hover {
		background: #103C2C;
		border-color: #103C2C;

		transform: translateY(calc(-50% - 1px));
	}

	.jrails-view-all--mobile:hover {
		background: #103C2C;
		border-color: #103C2C;

		transform: translateY(-1px);
	}
}

.jrails-view-all:focus-visible {
	outline: 3px solid rgba(181, 154, 103, .48);
	outline-offset: 3px;
}


/* =========================================
   Mobile
   ========================================= */

@media screen and (max-width: 760px) {

	.jrails-inner {
		width: 100%;
		padding: 42px 0 48px;
	}

	.jrails-section {
		padding: 24px 0 22px;

		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.jrails-section + .jrails-section {
		margin-top: 18px;
	}

	.jrails-head {
		display: block;

		min-height: 0;

		margin: 0 14px 18px;
		padding: 0;

		text-align: center;
	}

	.jrails-head-copy {
		text-align: center;
	}

	.jrails-title {
		font-size: 28px;
		line-height: 1.4;
	}

	.jrails-description {
		margin-top: 5px;

		font-size: 12.5px;
		line-height: 1.65;
	}

	.jrails-view-all--desktop {
		display: none;
	}


	/* Mobile horizontal rail */

	.jrails-products {
		gap: 10px;

		padding: 0 14px 8px;

		scroll-snap-type: x mandatory;
		scroll-padding-inline: 14px;
	}


	/* صورة كبيرة على الجوال ويظهر جزء من المنتج التالي */

	.jrails-card {
		flex: 0 0 82%;
		width: 82%;

		scroll-snap-align: start;

		border-radius: 15px;
	}


	.jrails-image-link img,
	.jrails img.jrails-image {
		width: 100% !important;
		height: auto !important;
	}


	.jrails-card-body {
		padding: 11px 12px 13px;
	}

	.jrails-product-title {
		font-size: 14px;
		line-height: 1.5;
	}

	.jrails-price {
		margin-top: 4px;
		font-size: 13px;
	}


	/* View all mobile */

	.jrails-mobile-footer {
		display: flex;
		justify-content: center;

		margin-top: 16px;
	}

	.jrails-view-all--mobile {
		min-height: 43px;
		padding: 9px 20px;

		border-radius: 11px;

		font-size: 13px;
	}
}


/* =========================
   Reduced Motion
   ========================= */

@media (prefers-reduced-motion: reduce) {

	.jrails-view-all {
		transition: none;
	}
}