body.freetools-page {
	--paper: #f2f0e3;
	--paper-warm: #ebe2ce;
	--paper-dark: #ddd2b6;
	--bone: #faf7ef;
	--ink: #15140f;
	--ink-soft: #2a2620;
	--ink-mute: #5a5448;
	--ink-faint: #8b8676;
	--accent: #ed6f5c;
	--accent-soft: #f08e7c;
	--mustard: #e9b94a;
	--olive: #6e7448;
	--line: rgba(21, 20, 15, 0.23);
	--line-soft: rgba(21, 20, 15, 0.12);
	--display: "Inter Tight", "Alexandria", sans-serif;
	--body: "Inter", "IBM Plex Sans Arabic", sans-serif;
	--mono: "JetBrains Mono", "IBM Plex Mono", monospace;
	--serif: "Playfair Display", serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	background: var(--paper) !important;
	color: var(--ink) !important;
	direction: rtl;
}

body.freetools-page .ft-catalog {
	flex: 1;
	padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px) 56px;
	background: var(--paper);
}

body.freetools-page .ft-catalog__inner {
	width: min(100%, 1040px);
	margin-inline: auto;
}

body.freetools-page .ft-catalog__header {
	margin-bottom: 32px;
}

body.freetools-page .ft-catalog__eyebrow {
	margin: 0 0 10px;
	color: var(--accent);
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

body.freetools-page .ft-catalog__header h1 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 900;
	line-height: 1.2;
}

body.freetools-page .ft-catalog__header > div > p:last-child {
	margin: 12px 0 0;
	color: var(--ink-mute);
	font-size: 1rem;
	line-height: 1.8;
}

body.freetools-page .ft-tools-list {
	border-top: 1px solid var(--line-soft);
}

body.freetools-page .ft-tool {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding-block: 26px;
	border-bottom: 1px solid var(--line-soft);
}

body.freetools-page .ft-tool__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: var(--paper-warm);
	color: var(--ink-mute);
}

body.freetools-page .ft-tool__content {
	min-width: 0;
}

body.freetools-page .ft-tool__meta {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--ink-mute);
	font-family: var(--mono);
	font-size: 0.72rem;
	line-height: 1.5;
}

body.freetools-page .ft-tool h2 {
	margin: 0 0 4px;
	font-size: 1.18rem;
	font-weight: 900;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

body.freetools-page .ft-tool__description {
	margin: 0;
	color: var(--ink-mute);
	font-size: 0.9rem;
	line-height: 1.8;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

body.freetools-page .ft-tool__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid var(--ink);
	border-radius: 10px;
	background: var(--ink);
	color: var(--bone);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		transform 0.15s ease;
}

body.freetools-page .ft-tool__download:hover {
	transform: translateY(-1px);
	border-color: var(--ink-soft);
	background: var(--ink-soft);
	color: var(--bone);
}

body.freetools-page .ft-tool__download:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

body.freetools-page .ft-tool__download:active {
	transform: translateY(0);
}

body.freetools-page .ft-empty {
	max-width: 680px;
	padding: clamp(28px, 6vw, 52px);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--bone);
	box-shadow:
		0 14px 28px -25px var(--ink),
		inset 0 0 0 1px var(--line-soft);
}

body.freetools-page .ft-empty__label {
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 800;
}

body.freetools-page .ft-empty h2 {
	margin: 9px 0 6px;
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	font-weight: 900;
}

body.freetools-page .ft-empty p {
	margin: 0;
	color: var(--ink-mute);
}

body.freetools-page .ft-pagination {
	margin-top: 34px;
}

body.freetools-page .ft-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.freetools-page .ft-pagination a,
body.freetools-page .ft-pagination span {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bone);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

body.freetools-page .ft-pagination .current {
	background: var(--accent);
	font-weight: 900;
}

body.freetools-page header.nav,
body.freetools-page .commerccy-site-footer {
	flex-shrink: 0;
}

body.freetools-page .commerccy-site-footer {
	padding: 20px clamp(20px, 5vw, 72px);
	border-top-color: var(--line-soft);
}

body.freetools-page .commerccy-site-footer__inner {
	width: min(100%, 1040px);
}

body.freetools-page .commerccy-site-footer__copyright {
	direction: ltr;
	unicode-bidi: isolate;
}

@media (max-width: 782px) {
	body.freetools-page.admin-bar .ft-catalog {
		margin-top: 0;
	}

	body.freetools-page .ft-catalog,
	body.freetools-page .commerccy-site-footer {
		padding-inline: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.freetools-page .ft-tool__download {
		transition: none;
	}

	body.freetools-page .ft-tool__download:hover,
	body.freetools-page .ft-tool__download:active {
		transform: none;
	}
}

@media (max-width: 600px) {
	body.freetools-page .ft-tool {
		grid-template-columns: 48px minmax(0, 1fr);
		align-items: start;
		gap: 16px;
		padding-block: 22px;
	}

	body.freetools-page .ft-tool__icon {
		width: 48px;
		height: 48px;
		border-radius: 10px;
	}

	body.freetools-page .ft-tool__download {
		grid-column: 1 / -1;
		width: 100%;
	}
}
