/* Products archive page component (Phase 1). */
.products-index {
	display: block;
	padding: 6rem 0 var(--section-spacing-sm);
	position: relative;
	width: 100%;
}

.products-index__header {
	align-items: flex-start;
	border-bottom: 1px solid #E7E7E7;
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	justify-content: space-between;
	margin: 0 0 1.25rem;
	padding: 0 0 1rem;
	position: relative;
}

.products-index__title {
	color: #000;
	display: block;
	font-family: var(--font-heading-family);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1em;
	margin: 0;
	max-width: 15em;
	position: relative;
}

.products-index__toggle {
	background: #fff;
	border: 1px solid #E7E7E7;
	border-radius: 5rem;
	display: inline-flex;
	font-size: .75rem;
	font-weight: 500;
	line-height: 1.25em;
	gap: 0;
	padding: .1875rem;
	position: relative;
	vertical-align: top;
	white-space: nowrap;
}

.products-index__toggle-item {
	background: #fff;
	border-radius: 5rem;
	color: #757575;
	display: block;
	flex: 1 1 1%;
	padding: .625em 1.5em;
	position: relative;
	text-decoration: none;
	transition: .25s;
}

.products-index__toggle-item.is-active {
	background: #000;
	color: #fff;
}

.products-index__category {
	display: block;
	margin: .625rem 0 1.75rem;
	position: relative;
}

.products-index__category-heading {
	color: #000;
	display: block;
	font-family: var(--font-heading-family);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2em;
	margin: 0 0 .15em;
	position: relative;
	width: 100%;
}

.products-index__grid {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
}

.products-index__grid-item {
	align-content: flex-end;
	display: inline-flex;
	flex: 1 1 100%;
	justify-content: flex-start;
	position: relative;
	vertical-align: top;
	width: 100%;
}

@media (width >= 640px) {
	.products-index__title {
		font-size: 2.5rem;
	}

	.products-index__grid-item {
		flex: 0 1 calc(50% - .3125em);
		width: calc(50% - .3125em);
	}
}

@media (width >= 768px) {
	.products-index {
		padding: 7rem 0 var(--section-spacing-md);
	}

	.products-index__header {
		margin: 0 0 1.5rem;
		padding: 0 0 1.25rem;
	}

	.products-index__title {
		font-size: 3rem;
	}

	.products-index__toggle {
		font-size: .875rem;
	}

	.products-index__category {
		margin: .625rem 0 2.25rem;
	}

	.products-index__grid-item {
		flex: 0 1 calc(33.33% - .4166em);
		width: calc(33.33% - .4166em);
	}
}

@media (width >= 1024px) {
	.products-index {
		padding: 10.25rem 0 var(--section-spacing-lg);
	}

	.products-index__header {
		margin: 0 0 1.75rem;
		padding: 0 0 1.5rem;
	}

	.products-index__title {
		font-size: 3.5rem;
	}

	.products-index__toggle-item {
		padding: .75em 1.875em;
	}

	.products-index__category {
		margin: .625rem 0 2.75rem;
	}
}
	
@media (width >= 1280px) {
	.products-index {
		padding: var(--section-spacing-2xl) 0 var(--section-spacing-xl);
	}

	.products-index__header {
		margin: 0 0 2rem;
		padding: 0 0 1.75rem;
	}

	.products-index__title {
		font-size: 4rem;
	}

	.products-index__category {
		margin: .625rem 0 3.25rem;
	}

	.products-index__grid-item {
		flex: 0 1 calc(25% - .46875em);
		width: calc(25% - .46875em);
	}
}

@media (width >= 1536px) {
	.products-index__category {
		margin: .625rem 0 3.75rem;
	}
}