/* =========================================================================
   Product Category Archive — AllTrade Forklift
   Brand red: #b60e0a · Gold: #b39a5e · Font: Roboto
   ========================================================================= */

.atf-ca {
	--atf-red: #b60e0a;
	--atf-gold: #b39a5e;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: #4a4a4a;
	font-size: 0.875rem;
	line-height: 1.6;
	padding-bottom: 60px;
}

.atf-ca * {
	box-sizing: border-box;
}

.atf-ca-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: clamp(16px, 4vw, 24px);
	padding-right: clamp(16px, 4vw, 24px);
}

/* ---- Banner ----------------------------------------------------------- */
.atf-ca-banner {
	width: 100%;
	height: clamp(150px, 22vw, 250px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* ---- Breadcrumb ------------------------------------------------------- */
.atf-ca-breadcrumb {
	padding: 50px 0 0;
	font-size: 0.75rem;
}

.atf-ca-breadcrumb a {
	color: #9a8c6a;
	text-decoration: none;
}

.atf-ca-breadcrumb a:hover {
	color: var(--atf-red);
}

.atf-ca-breadcrumb .sep {
	color: #c2c2c2;
	margin: 0 4px;
}

/* ---- Header: parent (red) + current (gold) --------------------------- */
.atf-ca-header {
	padding-top: 50px;
	text-align: center;
}

.atf-ca .atf-ca-title {
	margin: 0;
	color: var(--atf-gold);
	font-size: 3.125rem; /* 50px */
	font-weight: 400;
	line-height: 1.1;
	text-transform: none;
	letter-spacing: .02em;
}

/* ---- Category description -------------------------------------------- */
.atf-ca-desc {
	padding-top: 20px;
	color: #444444;
	font-family: 'Roboto', sans-serif;
	font-size: 0.875rem; /* 14px */
	font-weight: 400;
	line-height: 1.6;
	text-align: center;
}

.atf-ca-desc p {
	margin: 0 0 20px;
	color: #444444;
	font-size: 0.875rem; /* 14px */
}

.atf-ca-desc h1,
.atf-ca-desc h2,
.atf-ca-desc h3 {
	margin: 0 0 20px;
	color: var(--atf-gold);
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}

.atf-ca-desc h1 { font-size: 2rem; color: var(--atf-red); }
.atf-ca-desc h2 { font-size: 1.5rem; }
.atf-ca-desc h3 { font-size: 1.25rem; }

.atf-ca-desc a {
	color: var(--atf-red);
}

.atf-ca-desc > :last-child {
	margin-bottom: 0;
}

.atf-ca-desc + .atf-ca-cats {
	padding-top: 60px;
}

/* ---- Sibling category buttons ---------------------------------------- */
.atf-ca-cats {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding-top: 108px;
	padding-bottom: 0;
}

.atf-ca-cats__row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	column-gap: 8px;
	row-gap: 28px;
	width: 100%;
}

.atf-ca-cats__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: var(--atf-red);
	color: #fff;
	font-size: 0.75rem; /* 12px */
	font-weight: 400;
	line-height: 1.1;
	text-transform: none;
	letter-spacing: 1px;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color .15s ease;
}

.atf-ca-cats__link:hover {
	background: #8d0b08;
	color: #fff;
}

.atf-ca-cats__link.is-active {
	background: #f4211c;
	color: #fff;
}

.atf-ca-cats__link.is-active:hover,
.atf-ca-cats__link.is-active:focus {
	background: #f4211c;
	color: #fff;
}

/* ---- Product grid (image only) --------------------------------------- */
.atf-ca-body {
	padding-top: 50px;
}

.atf-ca-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.atf-ca-item {
	position: relative;
}

.atf-ca-item__link {
	display: block;
	position: relative;
	border: 1px solid #e2e2e2;
	background: #fff;
	overflow: hidden;
	text-decoration: none;
}

.atf-ca-item__img {
	display: block;
}

.atf-ca-item__img img {
	display: block;
	width: 100%;
	height: auto;
}

/* Hover overlay: inset from all four sides, shrink/expand scale-fade,
   title only (no size). */
.atf-ca-item__overlay {
	position: absolute;
	inset: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	background: rgba(38, 38, 38, .62);
	opacity: 0;
	transform: scale(.82);
	transition: opacity .22s ease, transform .22s ease;
	pointer-events: none;
}

.atf-ca-item__link:hover .atf-ca-item__overlay,
.atf-ca-item__link:focus .atf-ca-item__overlay {
	opacity: 1;
	transform: scale(1);
}

.atf-ca-item__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--atf-red);
	color: #fff;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.atf-ca-item__name {
	color: #fff;
	font-size: 0.875rem; /* 14px */
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
}

/* ---- Pagination ------------------------------------------------------- */
.atf-ca-pagination {
	margin: 50px 0 0;
}

.atf-ca-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.atf-ca-pagination a.page-numbers,
.atf-ca-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #ddd;
	color: #444;
	text-decoration: none;
	border-radius: 3px;
}

.atf-ca-pagination .page-numbers.current,
.atf-ca-pagination a.page-numbers:hover {
	background: var(--atf-red);
	border-color: var(--atf-red);
	color: #fff;
}

/* ---- Brands We Carry -------------------------------------------------- */
.atf-ca-brands {
	margin-top: 40px;
}

.atf-ca h2.atf-ca-brands__title {
	margin: 0 0 18px;
	color: var(--atf-red);
	font-size: 1.625rem; /* 26px */
	font-weight: 400;
	line-height: 1.2;
}

.atf-ca-brands__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.atf-ca-brand__link {
	display: inline-block;
	text-decoration: none;
	text-align: center;
}

.atf-ca-brand__logo {
	display: block;
	width: 150px;
}

.atf-ca-brand__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.atf-ca-brand__name {
	display: block;
	margin-top: 8px;
	font-size: 0.75rem; /* 12px */
	color: #171717;
}

/* ---- Empty / responsive ---------------------------------------------- */
.atf-ca-empty {
	padding: 20px 0 40px;
	color: #777;
}

@media ( max-width: 900px ) {
	.atf-ca-cats {
		gap: 22px;
	}

	.atf-ca-cats__row {
		flex-wrap: wrap;
		row-gap: 22px;
	}

	.atf-ca-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media ( max-width: 600px ) {
	.atf-ca-cats {
		gap: 16px;
		padding-top: 72px;
	}

	.atf-ca-cats__row {
		column-gap: 6px;
		row-gap: 16px;
	}

	.atf-ca-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
