.home-services-directory {
	background: #f8f4ee;
}

.home-services-directory__sections {
	display: grid;
	gap: clamp(2.75rem, 5vw, 5rem);
}

.services-category__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: .85rem;
	border-bottom: 1px solid rgba(15, 42, 66, .12);
}

.services-category__title {
	position: relative;
	margin: 0;
	color: #062b4c;
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	line-height: 1.25;
}

.services-category__title::after {
	position: absolute;
	inset-inline-start: 0;
	bottom: calc(-.85rem - 1px);
	width: min(100%, 7rem);
	height: 3px;
	border-radius: 999px;
	background: #1f5b8f;
	content: "";
}

.services-category__view-all {
	display: inline-flex;
	min-height: 42px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: .55rem 1rem;
	border: 1px solid rgba(31, 91, 143, .35);
	border-radius: 999px;
	color: #1f5b8f;
	font-weight: 800;
	text-decoration: none;
}

.services-category__view-all:hover,
.services-category__view-all:focus-visible {
	border-color: #1f5b8f;
	background: #eef6fb;
}

.services-category__track,
.tailorfit-services-catalog .services-catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(.85rem, 1.7vw, 1.35rem);
}

.service-product-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(15, 42, 66, .1);
	border-radius: 16px;
	background: #fff;
	font-family: var(--tailorfit-font-primary,"Tajawal",Arial,sans-serif);
	box-shadow: 0 12px 30px rgba(6, 43, 76, .07);
	transition: transform .24s ease, box-shadow .24s ease;
}

.service-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(6, 43, 76, .12);
}

.service-product-card.is-hidden {
	display: none;
}

.service-product-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background: #f3f5f7;
}

.service-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 220ms ease;
}

.service-product-card:hover .service-product-card__media img {
	transform: scale(1.025);
}

.service-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 12px 9px 0;
	background: #fff;
}

.service-product-card__title {
	min-height: 4.5em;
	margin: 0;
	color: #102d47;
	font-family: var(--tailorfit-font-primary,"Tajawal",Arial,sans-serif);
	font-size: clamp(.86rem,3.5vw,1.05rem);
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.service-product-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	overflow-wrap: normal;
	word-break: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.service-product-card__price {
	display: flex;
	min-height: 2.8em;
	align-items: baseline;
	justify-content: center;
	gap: .5rem;
	margin: 8px 0 12px;
	color: #102d47;
	font-family: var(--tailorfit-font-primary,"Tajawal",Arial,sans-serif);
	font-size: clamp(.82rem,3.2vw,1rem);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.service-product-card__price del {
	color: #777;
	font-size: .82rem;
}

.service-product-card__price .service-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: .35rem .5rem;
}

.service-product-card__price .service-price__delivery {
	flex-basis: 100%;
	display: block;
	color: #5e6b75;
	font-size: .76rem;
	font-weight: 600;
	line-height: 1.5;
}

.service-product-card__action {
	display: flex;
	width: calc(100% + 18px);
	min-height: 46px;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
	margin-inline: -9px;
	padding: 9px 12px;
	overflow: visible;
	border: 0;
	border-radius: 0 0 14px 14px;
	background: #102d47;
	color: #fff;
	font-family: var(--tailorfit-font-primary,"Tajawal",Arial,sans-serif);
	font-size: clamp(.78rem,3vw,.94rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.service-product-card__action-label { display: block; min-width: 0; overflow: visible; text-overflow: unset; }
.service-product-card__action-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	font-size: 1.45em;
	line-height: 1;
}

@media (max-width: 1100px) and (min-width: 769px) {
	.services-category__track,
	.tailorfit-services-catalog .services-catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.services-category__header {
		gap: .65rem;
		margin-bottom: 1rem;
	}

	.services-category__title {
		font-size: clamp(1.05rem, 5vw, 1.35rem);
	}

	.services-category__view-all {
		min-height: 40px;
		padding-inline: .8rem;
		font-size: .82rem;
	}

	.services-category__track {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - 16px) / 3);
		gap: 8px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		scrollbar-width: none;
	}

	.services-category__track::-webkit-scrollbar {
		display: none;
	}

	.services-category__track .service-product-card {
		scroll-snap-align: start;
	}

	.service-product-card__price del {
		font-size: .78em;
	}

	.tailorfit-services-catalog .services-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .75rem;
	}
}

@media (max-width: 374px) {
	.services-category__track {
		grid-auto-columns: 42%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-product-card,
	.service-product-card__media img {
		transition: none;
	}
}

/* Approved ready-made thobes B: preserve the existing card box and body. */

.kasah-ready-media{display:grid!important;grid-template-rows:minmax(0,1fr) 28px;background:#f5ebde!important}
.kasah-ready-photo{display:block;width:100%;height:100%;min-height:0;background:#f5ebde}
.kasah-ready-photo svg{display:block;width:100%;height:100%;overflow:hidden}
.kasah-ready-age{display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;line-height:1.4;font-size:13px;font-weight:700;color:#fff4df;background:#062b4c;padding:3px 4px}

@media(max-width:374px){.kasah-ready-age{font-size:12px}}
