.home-products {
	padding: 24px 0 72px;
	background: #ffffff;
}

.home-products__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.home-products__tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 35px;
	padding: 7px;
	border-radius: 999px;
	background: #e86000;
	box-shadow: 0 6px 20px rgba(232, 96, 0, 0.3);
}

.home-products__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	font: inherit;
	font-size: 0.96rem;
	font-weight: 700;
	cursor: pointer;
}

.home-products__tab:hover {
	background: rgba(255, 255, 255, 0.18);
}

.home-products__tab.is-active {
	background: #ffffff;
	color: #e86000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.home-products__tab:focus-visible {
	outline: 2px solid #0a3d62;
	outline-offset: 2px;
}

.home-products__pill {
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	font-size: 0.74rem;
	font-weight: 800;
}

.home-products__tab.is-active .home-products__pill {
	background: #e86000;
	color: #ffffff;
}

.home-products__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
}

.home-products__heading h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #0f172a;
	font-size: 1.7rem;
	font-weight: 800;
}

.home-products__heading h2 i,
.home-products__summary i {
	color: #e86000;
}

.home-products__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #475569;
	font-size: 0.88rem;
	font-weight: 600;
}

.home-products__sort label {
	white-space: nowrap;
}

.home-products__sort select {
	max-width: 100%;
	padding: 9px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font: inherit;
	cursor: pointer;
}

.home-products__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	color: #47617c;
	font-size: 0.86rem;
}

.home-products__count {
	font-size: 0.94rem;
	font-weight: 600;
}

.home-products__panel[hidden] {
	display: none;
}

.home-products .catalog-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
	.home-products .catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.home-products .catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-products__tabs {
		border-radius: 20px;
	}

	.home-products__tab {
		padding: 10px 14px;
	}
}

@media (max-width: 540px) {
	.home-products__tabs {
		width: 100%;
		justify-content: stretch;
	}

	.home-products__tab {
		flex: 1 1 100%;
	}

	.home-products__heading h2 {
		font-size: 1.4rem;
	}

	.home-products .catalog-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.home-products .catalog-card__image {
		height: 165px;
		padding: 10px 8px 6px;
	}

	.home-products .catalog-card__body {
		padding: 10px;
	}

	.home-products .catalog-card__title {
		font-size: 0.94rem;
	}

	.home-products .catalog-card__price {
		font-size: 1.08rem;
	}

	.home-products .catalog-card__action a.button {
		padding: 9px 6px;
		font-size: 0.8rem;
	}
}
