.products-box {
	background: var(--primary-blue);
	padding: 27px 15px 11px 15px;
	margin-bottom: 29px;
}

.products-box__top {
	color: white;
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: center;
	margin-bottom: 14px;
}

.products-box__tag {
	margin: 0 auto;
}

.products-box__header {
	margin-bottom: 0;
}

.products-box__subheader {
	max-width: 873px;
	margin: 0 auto;
}

.products-box__subheader p:last-child {
	margin-bottom: 0;
}

.products-box__subheader * {
	color: white;
}

.products-listing {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.products-listing__item {
	width: 100%;
	background: white;
	position: relative;
}

.products-listing__wrapper {
	display: flex;
	flex-direction: column-reverse;
	gap: 20px;
	padding: 11px;
}

.products-listing__wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 8px solid var(--secondary-green);
	pointer-events: none;
	transition: opacity 0.2s ease;
	opacity: 0;
}

.products-listing__textbox {
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.products-listing__heading {
}

.products-listing__description {
	font-size: 1.125rem;
}

.products-listing__cta {
}

.products-listing__imgbox {
	height: 149px;
	overflow: hidden;
}

.products-listing__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 24.5625em) {
	.products-listing__item {
	}

	.products-listing__wrapper {
		flex-direction: row;
		padding: 11px;
	}

	.products-listing__textbox {
		padding-left: 8px;
		flex-direction: column;
		width: 50%;
	}

	.products-listing__cta {
		margin-top: auto;
	}

	.products-listing__imgbox {
		width: 50%;
	}
}

@media (min-width: 48em) {
	.products-box {
		padding: 63px 34px 61px 34px;
		margin-bottom: 74px;
	}

	.products-listing:not(.products-listing--carousel) .products-listing__item {
		width: calc(50% - 20px);
	}

	.products-listing__wrapper {
		padding: 15px;
	}

	.products-box__top {
		margin-bottom: 48px;
		gap: 20px;
	}

	.products-box__header {
		margin-bottom: 4px;
	}

	.products-listing__imgbox {
		height: 202px;
	}
}

@media (min-width: 81.25em) {
	.products-listing {
		gap: 15px;
	}

	.products-listing:not(.products-listing--carousel) .products-listing__item {
		width: calc(33.3333% - 10px);
	}
}

.products-box--stacked {
	background: white;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-bottom: 0;

	.products-box__top {
		color: #212529;
		text-align: left;
	}

	.products-box__tag {
		border-color: var(--primary-blue);
		margin: initial;
	}

	.products-box__subheader * {
		color: #212529;
	}

	.products-box__subheader {
		max-width: initial;
	}

	.products-listing {
		gap: 40px;
	}

	.products-listing__item {
		@media (min-width: 48em) {
			width: calc(50% - 20px);
		}

		@media (min-width: 81.25em) {
			width: calc(50% - 20px) !important;
		}
	}
	.products-listing__wrapper {
		flex-direction: column-reverse;
		padding: 0;
		height: 100%;
		gap: 0;
	}

	.products-listing__imgbox {
		height: 350px !important;
		flex-shrink: 0;
		@media (min-width: 24.5625em) {
			width: 100%;
		}
	}
	.products-listing__textbox {
		background: var(--dark-blue);
		color: white;
		padding: 20px;
		@media (min-width: 24.5625em) {
			width: 100%;
		}
	}

	.arrow-button {
		width: fit-content;
		margin-left: auto;
		height: initial;
	}

	.products-listing__cta {
		color: white;
	}
}

.products-box--carousel {
	background: white;
	margin-bottom: 0;

	.products-listing__item {
		position: relative;
		min-height: 350px;
		display: flex;
		align-items: flex-end;
	}

	.products-listing__wrapper {
		flex-direction: column;
		padding: 0;
		width: 100%;
	}

	.products-listing__textbox {
		position: relative;
		z-index: 5;
		padding: 20px;

		@media (min-width: 24.5625em) {
			width: 100%;
		}
	}

	.products-listing__textbox::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(255, 255, 255, 0.62);
		border: 1px solid rgba(255, 255, 255, 0.35);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
		backdrop-filter: blur(1px);
		-webkit-backdrop-filter: blur(1px);
		z-index: -1;
	}

	.products-listing__imgbox {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2;
		@media (min-width: 24.5625em) {
			width: 100%;
		}

		@media (min-width: 48em) {
			height: 100%;
		}
	}

	.products-listing__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.arrow-button {
		width: fit-content;
		margin-left: auto;
		height: initial;
	}

	.section-tag {
		border-color: var(--primary-blue);
		color: #212529;
		margin: initial;
	}

	.products-listing__cta {
		color: white;
		position: absolute;
		right: 20px;
		bottom: 20px;
		width: 32px;
		height: 32px;
		opacity: 0;
		
		@media (min-width: 48em) { 
				width: 42px;
				height: 42px; 
		}
	}

	.products-listing__cta:focus {
		opacity: 1;
	}
}
