.product-directory-page {
	padding: 30px 0 56px;
	background: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.product-directory-page__header {
	margin: 0 auto 36px;
	text-align: center;
}

.product-directory-page__header h1 {
	margin: 0;
	color: #c20e34;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.product-directory-page__intro {
	max-width: 850px;
	margin: 12px auto 0;
	color: #444;
	font-size: 16px;
	line-height: 1.6;
}

.product-directory-group {
	margin: 0 0 46px;
}

.product-directory-group__title {
	margin: 0 0 22px;
	color: #c20e34;
	font-size: clamp(22px, 2.35vw, 32px);
	font-weight: 800;
	line-height: 1.28;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.product-directory-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
}

.product-directory-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: #c20e34;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.product-directory-card:hover,
.product-directory-card:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(126, 5, 31, .22);
}

.product-directory-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 0;
	background: #fff;
	overflow: hidden;
}

.product-directory-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-directory-card__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 10px 12px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.product-directory-page__content {
	margin-top: 36px;
}

@media (min-width: 768px) and (max-width: 1199px) {
	.product-directory-grid {
		grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	}
}

@media (max-width: 767px) {
	.product-directory-page {
		padding: 22px 0 36px;
	}

	.product-directory-page__header {
		margin-bottom: 26px;
	}

	.product-directory-group {
		margin-bottom: 32px;
	}

	.product-directory-group__title {
		margin-bottom: 16px;
	}

	.product-directory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.product-directory-card__title {
		min-height: 50px;
		padding: 8px;
		font-size: 13px;
	}
}

/* Mobile: giảm vùng tiêu đề và chiều cao từng thẻ để xem được nhiều danh mục hơn,
   nhưng vẫn giữ lưới 2 cột cùng ảnh đủ lớn để nhận diện sản phẩm. */
@media (max-width: 575px) {
	.product-directory-page {
		padding: 12px 0 24px;
	}

	.product-directory-page__header {
		margin-bottom: 14px;
	}

	.product-directory-page__header h1 {
		font-size: 22px;
		line-height: 1.2;
	}

	.product-directory-group {
		margin-bottom: 22px;
	}

	.product-directory-group__title {
		margin-bottom: 10px;
		font-size: 20px;
		line-height: 1.2;
	}

	.product-directory-grid {
		gap: 8px;
	}

	.product-directory-card__image {
		aspect-ratio: 4 / 3;
	}

	.product-directory-card__title {
		min-height: 42px;
		padding: 6px 5px;
		font-size: 12px;
		line-height: 1.25;
	}
}
