.product-thumb {
	display: flex;
	flex-direction: column;
	position: relative;
	padding-top: 100% / $box-ratio;
	border-radius: $box-radius;
	overflow: hidden;
	background-color: rgba($text-color, .1);
	font-size: 1.4em;
	cursor: default;

	img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}


	.infos,
	.overlay {
		position: absolute;
		top: -1px;
		right: -1px;
		bottom: -1px;
		left: -1px;

		display: flex;
		flex-direction: column;
		color: $box-color;
	}

	.overlay {
		opacity: 0;
		transition: all 400ms ease-out 200ms;
		background-color: rgba($box-background-color,.8);
	}

	// Display box title
	@if $show-box-title {

		.infos {
			opacity: 1;
			justify-content: flex-end;
			background-image: linear-gradient(to top, rgba($box-background-color,.8), transparent);

			.header {
				transition: all 400ms ease-out 200ms;

				.title {
					font-size: 1em;
				}

				.duration {
					font-size: 0.75em;
				}
			}
		}

	// Hide box title
	} @else {

		.infos {
			display: none;
		}

		.overlay {
			background-image: linear-gradient(to top, rgba($box-background-color,.8), transparent);
		}
	}

	.header {
		display: flex;
		flex-direction: column;
		padding: 1em 1em .85em;
		align-items: flex-start;

		.title {
			font-size: .85em;
			margin: 0;
			color: $box-headers-color;
		}

		.duration {
			font-size: 0.5em;
			color: rgba($box-color, .6);
		}
	}

	.body {
		display: flex;
		flex: 1;
		//overflow: scroll;
		padding: 0 1em;
	}

	.description {
		display: none;
		color: $box-color;
		font-size: .6em;
		overflow: hidden;
		text-overflow: ellipsis;
		-webkit-box-orient: vertical;

		p {
			margin: 0;
		}
	}

	.footer {
		display: flex;

		a {
			padding: .5em 0;
			flex: 1;
			color: $box-color;

			&.inactive {
				color: rgba($box-color, .8);
			}

			display: flex;
			justify-content: center;
			align-items: center;
		}
	}

	&.loading {
		@for $i from 1 through 5 {
		  .netflix-box:nth-of-type(#{$i}) & {
				animation-delay: #{$i * $loader-delay};
			}
		}
	}

	@media #{$medium-and-up} {
		.description {
			display: -webkit-box;
			max-height: 2 * 1em * $line-height;
			-webkit-line-clamp: 2;
		}
	}

	@media #{$large-and-up} {
		.header {
			padding: 1.25em 1.25em 1em;
		}

		.body {
			padding: 0 1.25em;
		}

		.description {
			max-height: 3 * 1em * $line-height;
			-webkit-line-clamp: 3;
		}
	}

	@media #{$extra-large-and-up} {
		.description {
			max-height: 4 * 1em * $line-height;
			-webkit-line-clamp: 4;
		}
	}

	&:hover {
		@media(min-width: 1001px) {
			.infos > * {
				opacity: 0;
			}
		}
		.overlay {
			opacity: 1;
		}
	}
}
