/* AutomaxHK - Editable featured categories from the standard HTML module */
body .automax-home-categories {
	margin: 0 0 48px;
	padding-top: 32px;
}
body .automax-home-categories h2 {
	margin: 0 0 28px;
	color: #252832;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
}
body .automax-home-categories-grid {
	display: grid;
	grid-template-columns: repeat(5,minmax(0,1fr));
	gap: 24px;
}
body .automax-home-category {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #fff;
	color: #20232a;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body .automax-home-category-image {
	display: block;
	padding: 18px;
	aspect-ratio: 4 / 3;
	background: #fff;
}
body .automax-home-category-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
body .automax-home-category-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 1;
	min-height: 66px;
	padding: 16px;
	border-top: 1px solid #f0f1f4;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	transition: background-color .2s ease;
}
body .automax-home-category-name .fa {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fbb71c;
	color: #20232a;
	font-size: 20px;
}
body .automax-home-category:hover,
body .automax-home-category:focus-visible {
	border-color: #fbb71c;
	box-shadow: 0 4px 18px rgba(32,35,42,.07);
	color: #20232a;
	text-decoration: none;
}
body .automax-home-category:hover .automax-home-category-name,
body .automax-home-category:focus-visible .automax-home-category-name {
	background: #fff7e4;
}
body .automax-home-category:focus-visible {
	outline: 2px solid #fbb71c;
	outline-offset: 3px;
}
@media(max-width:979px){
	body .automax-home-categories-grid {
		gap: 12px;
	}
	body .automax-home-category-name {
		padding: 12px;
		font-size: 14px;
	}
}
@media(max-width:767px){
	body .automax-home-categories {
		margin-bottom: 32px;
		padding-top: 24px;
	}
	body .automax-home-categories h2 {
		margin-bottom: 20px;
		font-size: 24px;
	}
	body .automax-home-categories-grid {
		grid-template-columns: minmax(0,1fr);
	}
	body .automax-home-category {
		flex-direction: row;
	}
	body .automax-home-category-image {
		flex: 0 0 104px;
		width: 104px;
		padding: 10px;
	}
	body .automax-home-category-name {
		border-top: 0;
		font-size: 16px;
	}
}
@media(prefers-reduced-motion:reduce){
	body .automax-home-category,
	body .automax-home-category-name {
		transition: none;
	}
}
