/* Product listing promo block - inc/woocommerce/archive-promo-blocks.php */

ul.products li.paramo-promo-tile {
	position: relative;
	padding: 0;
	background: #1b1b1b;
	overflow: hidden;
	list-style: none;
}

.paramo-promo-tile__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	height: 100%;
	min-height: 420px;
	padding: 20px 20px 30px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

a.paramo-promo-tile__inner:hover,
a.paramo-promo-tile__inner:focus {
	color: #fff;
	text-decoration: none;
}

.paramo-promo-tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}

a.paramo-promo-tile__inner:hover .paramo-promo-tile__image {
	transform: scale(1.03);
}

/* Darken behind the text so it reads on any photo */
.paramo-promo-tile__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.paramo-promo-tile__content,
.paramo-promo-tile__button {
	position: relative;
	z-index: 1;
}

.paramo-promo-tile__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: auto 0;
}

.paramo-promo-tile__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}

.paramo-promo-tile__subtitle {
	font-size: 16px;
	font-weight: 600;
}

.paramo-promo-tile__button {
	display: block;
	width: 100%;
	padding: 14px 15px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

a.paramo-promo-tile__inner:hover .paramo-promo-tile__button {
	background: #333;
}

@media (max-width: 767px) {
	.paramo-promo-tile__inner {
		min-height: 320px;
		padding: 15px 10px 20px;
	}

	.paramo-promo-tile__title {
		font-size: 18px;
	}

	.paramo-promo-tile__subtitle {
		font-size: 13px;
	}

	.paramo-promo-tile__button {
		padding: 10px;
		font-size: 10px;
	}
}
