/* =========================================================================
   Single Product — AllTrade Forklift catalog layout
   Brand red: #b60e0a · Gold: #b39a5e · Font: Roboto
   ========================================================================= */

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

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

/* Centered content column. */
.atf-pd-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: clamp(16px, 4vw, 24px);
	padding-right: clamp(16px, 4vw, 24px);
}

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

/* ---- Breadcrumb ------------------------------------------------------- */
.atf-pd-breadcrumb {
	padding: 22px 0 0;
	font-size: 12px;
}

.atf-pd-breadcrumb a {
	color: #8a8a8a;
	text-decoration: none;
}

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

.atf-pd-breadcrumb .sep {
	color: #b9b9b9;
	margin: 0 4px;
}

.atf-pd-breadcrumb .current {
	color: var(--atf-gold);
}

/* ---- Main two-column layout ------------------------------------------ */
.atf-pd-main {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 4vw, 48px);
	padding-top: 28px;
	padding-bottom: 48px;
}

.atf-pd-gallery {
	flex: 0 0 320px;
	max-width: 320px;
}

.atf-pd-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.atf-pd-summary {
	flex: 1 1 360px;
	min-width: 280px;
}

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

.atf-pd-model {
	margin: 2px 0 18px;
	color: var(--atf-gold);
	font-size: 12px;
}

/* Spec rows: "Label: value" */
.atf-pd-specs {
	margin: 0 0 26px;
}

.atf-pd-spec {
	display: flex;
	gap: 6px;
	margin: 0 0 4px;
	color: #3a3a3a;
}

.atf-pd-spec dt {
	margin: 0;
	font-weight: 400;
}

.atf-pd-spec dd {
	margin: 0;
}

/* ---- Action buttons --------------------------------------------------- */
.atf-pd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.atf-pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	background: var(--atf-red);
	border: 0;
	border-radius: 4px;
	color: #fff !important;
	font-size: 1.125rem; /* 18px */
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

.atf-pd-btn:hover,
.atf-pd-btn:focus {
	background: #8d0b08;
	color: #fff !important;
}

/* Win against theme/WooCommerce button styles. */
.atf-pd .atf-pd-actions .atf-pd-btn {
	font-size: 1.125rem !important; /* 18px */
	font-weight: 400 !important;
	border-radius: 4px !important;
}

/* ---- Full-width band (Related Products) ------------------------------ */
.atf-pd-band {
	width: 100%;
	background: #f4f4f4;
	padding: 34px 0 44px;
	margin-top: 10px;
}

.atf-pd h2.atf-pd-section-title,
.atf-pd h2.atf-pd-brands__title {
	margin: 0 0 1.25rem;
	font-size: 1.625rem; /* 26px */
	font-weight: 400;
	line-height: 1.2;
}

.atf-pd h2.atf-pd-section-title {
	color: var(--atf-gold);
}

.atf-pd h2.atf-pd-brands__title {
	color: var(--atf-red);
}

.atf-pd-related__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
}

.atf-pd-rp {
	position: relative;
}

.atf-pd-rp__link {
	display: block;
	position: relative;
	border: 1px solid #dcdcdc;
	background: #fff;
	overflow: hidden;
	text-decoration: none;
}

.atf-pd-rp__img {
	display: block;
}

.atf-pd-rp__img img {
	display: block;
	width: 100%;
	height: auto;
}

/* Hover overlay */
.atf-pd-rp__overlay {
	position: absolute;
	inset: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(40, 40, 40, .55);
	opacity: 0;
	transition: opacity .2s ease;
}

.atf-pd-rp__link:hover .atf-pd-rp__overlay,
.atf-pd-rp__link:focus .atf-pd-rp__overlay {
	opacity: 1;
}

.atf-pd-rp__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-pd-rp__code {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	padding: 0 6px;
}

/* ---- Brands We Carry -------------------------------------------------- */
.atf-pd-brands {
	padding: 36px 0 48px;
}

.atf-pd-brands__title {
	color: var(--atf-red);
}

.atf-pd-brands__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
}

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

/* Indent the items slightly to the right of their section titles
   (matches the catalog design). */
.atf-pd .atf-pd-related__grid,
.atf-pd .atf-pd-brands__grid {
	padding-left: 1.5rem;
}

.atf-pd-brand__logo {
	display: block;
	width: 127px;
	margin: 0 auto;
}

.atf-pd-brand__logo img {
	display: block;
	width: 127px;
	height: 127px;
	object-fit: contain;
}

.atf-pd-brand__name {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #171717;
	text-align: center;
}

/* ---- Responsive ------------------------------------------------------- */
@media ( max-width: 980px ) {
	.atf-pd-related__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media ( max-width: 680px ) {
	.atf-pd-gallery {
		flex: 0 0 100%;
		max-width: 100%;
	}

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

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

	.atf-pd-actions .atf-pd-btn {
		flex: 1 1 auto;
	}
}
