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

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

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

/* Force Roboto over the theme/Elementor heading fonts. */
.atf-ba,
.atf-ba h1,
.atf-ba h2,
.atf-ba h3,
.atf-ba p,
.atf-ba a,
.atf-ba span {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

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

/* ---- Banner ----------------------------------------------------------- */
.atf-ba-banner {
	width: 100%;
	height: clamp(160px, 24vw, 270px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* ---- Breadcrumb ------------------------------------------------------- */
.atf-ba-breadcrumb {
	padding: 50px 0 0; /* banner → breadcrumb */
	font-size: 0.875rem; /* 14px */
	font-weight: 400;
	color: #868484;
}

.atf-ba-breadcrumb a {
	color: #868484;
	text-decoration: none;
}

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

.atf-ba-breadcrumb .sep {
	color: #868484;
	margin: 0 4px;
}

.atf-ba-breadcrumb .current {
	color: #868484;
}

/* ---- Brand header ----------------------------------------------------- */
.atf-ba-header {
	padding-top: 50px;    /* breadcrumb → title */
	padding-bottom: 40px; /* description → first category section */
}

.atf-ba h1.atf-ba-title {
	margin: 0 0 20px; /* title → description */
	color: #c69e59;
	font-size: 2.75rem; /* 44px */
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

.atf-ba-desc {
	max-width: 980px;
	color: #444444;
	font-size: 0.875rem; /* 14px */
	font-weight: 400;
}

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

.atf-ba-desc p:last-child {
	margin-bottom: 0;
}

/* ---- Category sections ----------------------------------------------- */
.atf-ba-sections {
	padding-bottom: 56px;
}

.atf-ba-section {
	margin-top: 40px; /* gap between category sections */
}

.atf-ba-section:first-child {
	margin-top: 0; /* header padding-bottom provides the description → section gap */
}

.atf-ba h2.atf-ba-section__title,
.atf-ba h2.atf-ba-section__title a {
	margin: 0 0 4px;
	font-size: 1.625rem; /* 26px */
	font-weight: 700;
	text-transform: none;
}

.atf-ba-section__title a {
	color: var(--atf-red);
	text-decoration: none;
}

.atf-ba-section__title a:hover {
	text-decoration: underline;
}

.atf-ba-section__crumb,
.atf-ba-section__crumb a,
.atf-ba-section__crumb .sep {
	font-size: 1rem; /* 16px */
	font-weight: 400;
}

.atf-ba-section__crumb {
	margin: 0 0 16px;
}

.atf-ba-section__crumb a {
	color: var(--atf-red);
	text-decoration: none;
}

.atf-ba-section__crumb a:hover {
	text-decoration: underline;
}

.atf-ba-section__crumb .sep {
	color: var(--atf-red);
	margin: 0 1px;
}

/* ---- Product grid (image only) --------------------------------------- */
.atf-ba-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

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

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

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

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

/* Hover overlay: inset from the 4 sides, shrinks/expands with a scale fade. */
.atf-ba-item__overlay {
	position: absolute;
	inset: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(38, 38, 38, .6);
	opacity: 0;
	transform: scale(.82);
	transition: opacity .22s ease, transform .22s ease;
	pointer-events: none;
}

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

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

.atf-ba-item__code {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	padding: 0 8px;
}

/* ---- Empty / responsive ---------------------------------------------- */
.atf-ba-empty {
	padding: 30px 0;
	color: #888;
}

@media ( max-width: 900px ) {
	.atf-ba-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media ( max-width: 600px ) {
	.atf-ba-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.atf-ba-section__title {
		font-size: 1.25rem;
	}
}

/* ---- Other Brands We Carry ------------------------------------------- */
.atf-ba-others {
	padding: 44px 0 65px;
	margin-top: 40px;
}

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

.atf-ba-others__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px 20px;
}

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

.atf-ba-brand__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 0px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.atf-ba-brand__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.atf-ba-brand__name {
	display: block;
	margin-top: 10px;
	font-size: 0.875rem; /* 14px */
	color: #444444;
	text-align: center;
}

@media ( max-width: 1100px ) {
	.atf-ba-others__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media ( max-width: 760px ) {
	.atf-ba-others__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media ( max-width: 480px ) {
	.atf-ba-others__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
