.farhtomr-home-sections {
	width: 100%;
	clear: both;
}

.farhtomr-home-section {
	background: #fff;
	padding: 28px;
	margin: 0 0 34px;
	box-sizing: border-box;
}

.farhtomr-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.farhtomr-section-head h2 {
	position: relative;
	margin: 0;
	padding-bottom: 10px;
	font-size: 22px;
	line-height: 1.5;
	font-weight: 700;
	color: #1f1f1f;
}

.farhtomr-section-head h2::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -15px;
	width: 72px;
	height: 2px;
	background: #a06f3b;
}

.farhtomr-view-all,
.farhtomr-load-more {
	background: #a06f3b;
	color: #fff !important;
	border: 0;
	border-radius: 2px;
	padding: 10px 18px;
	font: inherit;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}

.farhtomr-view-all:hover,
.farhtomr-load-more:hover {
	opacity: .88;
	transform: translateY(-1px);
}

.farhtomr-home-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.farhtomr-home-card {
	min-width: 0;
	margin: 0;
	background: #f7f7f7;
	overflow: hidden;
}

.farhtomr-home-card > a {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	text-decoration: none !important;
}

.farhtomr-home-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .35s ease;
}

.farhtomr-home-card:hover img {
	transform: scale(1.04);
}

.farhtomr-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.02) 62%);
}

.farhtomr-home-card h3 {
	position: absolute;
	right: 12px;
	left: 12px;
	bottom: 11px;
	z-index: 2;
	margin: 0;
	color: #fff;
	font-size: 14px;
	line-height: 1.65;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 3px rgba(0,0,0,.75);
}

.farhtomr-load-wrap {
	text-align: center;
	margin-top: 24px;
}

.farhtomr-load-more[disabled] {
	opacity: .65;
	cursor: wait;
	transform: none;
}

.farhtomr-empty,
.farhtomr-load-error {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px;
	background: #fafafa;
	text-align: center;
}

@media (max-width: 991px) {
	.farhtomr-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.farhtomr-home-section {
		padding: 18px 14px;
		margin-bottom: 22px;
	}

	.farhtomr-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.farhtomr-section-head h2 {
		font-size: 19px;
	}

	.farhtomr-section-head h2::after {
		bottom: -15px;
	}

	.farhtomr-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.farhtomr-home-card h3 {
		right: 8px;
		left: 8px;
		bottom: 7px;
		font-size: 12px;
	}

	.farhtomr-view-all,
	.farhtomr-load-more {
		padding: 9px 14px;
	}
}


/*
 * Mobile-only layout for the four legacy category galleries on homepage.
 * It flattens the three WPBakery columns into one visual grid, so the six
 * square category images appear as two cards per row.
 */
@media (max-width: 767px) {
	body.page-id-122 .farhtomr-mobile-pair-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-right: 0 !important;
		margin-left: 0 !important;
		padding: 0 8px;
		box-sizing: border-box;
	}

	body.page-id-122 .farhtomr-mobile-pair-grid > .wpb_column,
	body.page-id-122 .farhtomr-mobile-pair-grid > .wpb_column > .vc_column-inner,
	body.page-id-122 .farhtomr-mobile-pair-grid > .wpb_column > .vc_column-inner > .wpb_wrapper {
		display: contents !important;
		width: auto !important;
		float: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	body.page-id-122 .farhtomr-mobile-pair-grid .wpb_single_image {
		width: 100% !important;
		min-width: 0;
		margin: 0 !important;
		padding: 7px;
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
		box-sizing: border-box;
		overflow: hidden;
	}

	body.page-id-122 .farhtomr-mobile-pair-grid .wpb_single_image .vc_figure,
	body.page-id-122 .farhtomr-mobile-pair-grid .wpb_single_image .vc_single_image-wrapper,
	body.page-id-122 .farhtomr-mobile-pair-grid .wpb_single_image a {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}

	body.page-id-122 .farhtomr-mobile-pair-grid .wpb_single_image img {
		display: block;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		border-radius: 8px;
	}

	/* Keep the category headings attractive and reduce oversized mobile gaps. */
	body.page-id-122 .farhtomr-mobile-pair-grid + .vc_row {
		margin-top: 0;
	}
}


/* Floating WhatsApp contact button */
.farhtomr-whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 7px 22px rgba(0, 0, 0, .28);
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.farhtomr-whatsapp-float:hover,
.farhtomr-whatsapp-float:focus {
	background: #1ebe5d;
	color: #fff !important;
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
	outline: none;
}

.farhtomr-whatsapp-float svg {
	display: block;
	width: 35px;
	height: 35px;
	color: #fff;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
}

.farhtomr-whatsapp-float::before {
	content: "راسلنا عبر واتساب";
	position: absolute;
	right: calc(100% + 11px);
	top: 50%;
	transform: translateY(-50%);
	width: max-content;
	max-width: 180px;
	padding: 7px 11px;
	border-radius: 6px;
	background: rgba(24, 24, 24, .92);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, visibility .18s ease;
}

.farhtomr-whatsapp-float:hover::before,
.farhtomr-whatsapp-float:focus::before {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 767px) {
	.farhtomr-whatsapp-float {
		right: 14px;
		bottom: 14px;
		width: 56px;
		height: 56px;
		border-width: 2px;
	}

	.farhtomr-whatsapp-float svg {
		width: 32px;
		height: 32px;
	}

	.farhtomr-whatsapp-float::before {
		display: none;
	}
}
