.services-page-legacy {
	display: none !important;
}

	.figma-services-page,
	.figma-services-page * {
		box-sizing: border-box;
	}

	.figma-services-page {
		display: block;
		width: 100%;
		margin: 0 auto;
		background: #fff;
		color: rgba(19, 20, 31, 0.9);
		direction: rtl;
		font-family: "Peyda(fanum)", Peyda, sans-serif;
		overflow: hidden;
		margin-bottom: 100px;
	}

	.figma-services-page > section {
		display: block !important;
		width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
		float: none;
	}

	.figma-services-title-row {
		position: relative !important;
		inset: auto !important;
		transform: none !important;
		z-index: auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		height: 52px;
		padding: 16px 16px 8px;
		gap: 8px;
	}

	.figma-services-title-row h2 {
		margin: 0;
		font-size: 16px;
		font-weight: 600;
		line-height: 28px;
		color: rgba(19, 20, 31, 0.9);
	}

	.figma-services-title-row a,
	.figma-services-title-row button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		height: 40px;
		padding: 0 4px;
		border-radius: 6px;
		color: #32325d;
		font-size: 14px;
		font-weight: 600;
		line-height: 24px;
		text-decoration: none;
		white-space: nowrap;
	}

	.figma-services-title-row button {
		margin: 0;
		border: 0;
		background: transparent;
		font-family: inherit;
		cursor: pointer;
	}

	.figma-services-title-row a img,
	.figma-services-title-row button img {
		display: block;
		width: 20px;
		height: 20px;
	}

	.figma-services-rail {
		display: flex;
		flex-direction: row-reverse;
		width: 100%;
		height: 256px;
		padding: 0 16px 20px;
		gap: 12px;
		direction: ltr;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.figma-services-rail::-webkit-scrollbar {
		display: none;
	}

	.figma-services-card {
		position: relative;
		flex: 0 0 160px;
		width: 160px;
		height: 236px;
		margin: 0;
		scroll-snap-align: start;
		text-align: right;
		direction: rtl;
	}

	.figma-services-card-image {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 160px;
		height: 176px;
		border: 1px solid rgba(19, 20, 31, 0.08);
		border-radius: 10px;
		background: #f6f6f9;
		overflow: hidden;
	}

	.figma-services-card-image img {
		display: block;
		width: 128px;
		height: 128px;
		object-fit: contain;
	}

	.figma-services-card button.add-to-cart {
		position: absolute !important;
		top: 116px !important;
		left: 12px !important;
		display: block !important;
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 50% !important;
		background: #32325d url("../img/figma/services/plus.svg") center / 20px 20px no-repeat !important;
		box-shadow: 0 1px 2px rgba(19, 20, 31, 0.3), 0 2px 6px 2px rgba(19, 20, 31, 0.15) !important;
		color: transparent !important;
		font-size: 0 !important;
		line-height: 0 !important;
		cursor: pointer;
		z-index: 2;
	}

	.figma-services-card .quantity-controls {
		position: absolute;
		top: 116px;
		left: 12px;
		display: flex;
		align-items: center;
		justify-content: space-around;
		width: 112px;
		height: 48px;
		margin: 0;
		padding: 0 6px;
		border-radius: 24px;
		background: #32325d;
		color: #fff;
		box-shadow: 0 1px 2px rgba(19, 20, 31, 0.3), 0 2px 6px 2px rgba(19, 20, 31, 0.15);
		z-index: 2;
	}

	.figma-services-card .quantity-controls button {
		width: 28px;
		height: 28px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 20px;
		line-height: 28px;
	}

	.figma-services-card h3 {
		margin: 8px 0 0;
		overflow: hidden;
		color: rgba(19, 20, 31, 0.9);
		font-size: 14px;
		font-weight: 600;
		line-height: 24px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.figma-services-price {
		min-height: 28px;
		margin-top: 0;
	}

	.figma-services-discount-line,
	.figma-services-current-price {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 4px;
		height: 20px;
		line-height: 20px;
	}

	.figma-services-discount {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 18px;
		padding: 0 5px;
		border-radius: 4px;
		background: #e01d1d;
		color: #fff;
		font-size: 11px;
		font-weight: 600;
		line-height: 18px;
	}

	.figma-services-discount-line del {
		color: rgba(19, 20, 31, 0.55);
		font-size: 12px;
		font-weight: 400;
	}

	.figma-services-current-price strong {
		font-size: 16px;
		font-weight: 600;
	}

	.figma-services-current-price span {
		font-size: 12px;
		font-weight: 400;
	}

	.figma-services-category-title {
		justify-content: flex-start;
	}

	.figma-services-categories {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		width: 100%;
		padding: 8px 16px 20px;
		gap: 8px;
		direction: rtl;
	}

	.figma-services-category {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		flex-direction: column;
		width: 100%;
		height: 90px;
		padding: 4px 0 6px;
		gap: 4px;
		border-radius: 16px;
		color: rgba(19, 20, 31, 0.9);
		text-align: center;
		text-decoration: none;
		overflow: hidden;
	}

	.figma-services-category-image {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 56px;
		width: 56px;
		height: 56px;
		padding: 4px;
		border-radius: 12px;
		background: #f6f6f6;
		overflow: hidden;
	}

	.figma-services-category-image img {
		display: block;
		width: 48px;
		height: 48px;
		object-fit: cover;
	}

	.figma-services-category-label {
		display: block;
		height: 20px;
		font-size: 12px;
		font-weight: 500;
		line-height: 20px;
		white-space: nowrap;
	}

.figma-services-modal[hidden] {
	display: none !important;
}

.figma-services-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: block;
	background: #fff;
	direction: rtl;
	font-family: "Peyda(fanum)", Peyda, sans-serif;
	overflow-y: auto;
}

.figma-services-modal-panel {
	min-height: 100vh;
	background: #fff;
}

.figma-services-modal-header {
	position: sticky !important;
	inset: 0 0 auto !important;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 64px;
	padding: 12px 24px;
	border-bottom: 1px solid rgba(19, 20, 31, 0.08);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	transform: none !important;
}

.figma-services-modal-header h2 {
	margin: 0;
	color: rgba(19, 20, 31, 0.9);
	font-size: 20px;
	font-weight: 600;
	line-height: 32px;
}

.figma-services-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f6f6f9;
	color: #32325d;
	cursor: pointer;
}

.figma-services-modal-body {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.figma-services-modal-status {
	padding: 48px 16px;
	color: rgba(19, 20, 31, 0.65);
	font-size: 15px;
	text-align: center;
}

.figma-services-modal-status:empty {
	display: none;
}

.figma-services-modal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 28px 20px;
}

.figma-services-modal-grid .figma-services-card {
	justify-self: center;
}

body.figma-services-modal-open {
	overflow: hidden !important;
}

@media (max-width: 767.98px) {

	.figma-services-modal-header {
		height: 56px;
		padding: 8px 16px;
	}

	.figma-services-modal-header h2 {
		font-size: 18px;
		line-height: 28px;
	}

	.figma-services-modal-body {
		padding: 24px 16px 40px;
	}

	.figma-services-modal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.figma-services-modal-grid .figma-services-card {
		width: 100%;
		min-width: 0;
	}

	.figma-services-modal-grid .figma-services-card-image {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.figma-services-page {
		padding: 24px 0 40px;
	}

	.figma-services-title-row {
		height: 64px;
		padding: 20px 24px 12px;
	}

	.figma-services-title-row h2 {
		font-size: 20px;
		line-height: 32px;
	}

	.figma-services-rail {
		height: 260px;
		padding: 0 24px 24px;
		gap: 16px;
	}

	.figma-services-categories {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		padding: 12px 24px 32px;
		gap: 16px;
	}

	.figma-services-category {
		height: 104px;
		padding: 8px 0 10px;
	}
}
