@import "../../definitions";

$thumbnailWidth: 80px;

.articleDetail {
	&__images {
		margin-bottom:2rem;
		position:relative;
		a {
			display:block;
		}
		@include responsive-sm {
			float:left;
			width:50%;
		};

		&--desktop {
			display: none;
			@include responsive-sm {
				display: block;
			};
		}
		&--mobile {
			@include responsive-sm {
				display: none;
			};
		}
	}

	//Desktop Bilder
	&__thumbnailslider {
		height:100%;
		.swiper-slide {
			height:auto;
		}
	}
	&__thumbnails {
		position:absolute;
		height:100%;
		width:$thumbnailWidth;
		+ .articleDetail__mainImage {
			margin-left:$thumbnailWidth;
			padding-left:$gutter;
		}
	}
	&__thumbnail {
		display:block;
		width:$thumbnailWidth;
		margin-bottom:$gutter;
		position:relative;
		text-align: center;
		img {
			max-width:100%;
			height:auto;
		}
		&overlay {
			position:absolute;
			top:0;
			left:0;
			width:100%;
			height:100%;
			background:rgba(#000,20%);
			pointer-events:none;
			opacity:0;
			@include smooth();
		}
		&:hover {
			.articleDetail__thumbnailoverlay {
				opacity:1;
			}
		}
	}
	.swiper-slide:last-child {
		.articleDetail__thumbnail {
			margin-bottom:0;
		}
	}
	&__mainImage {
		text-align:center;
		img {
			max-width:100%;
			max-height:450px;
		}
	}

	//Mobile Bilderslider inkl. bullet pagination
	&__navigation {
		position: relative;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		gap: $gutter;
		height: 30px;

		.swiper-pagination {
			&.swiper-pagination-custom {
				bottom: 5px;
			}
			.swiper-pagination-bullet {
				background-color: transparent;
				border: 1px solid $color-tertiary;
				opacity: 1;
				margin-right: .5*$m-sm;
				&:last-child {
					margin-right: 0;
				}
			}
			.swiper-pagination-bullet-active {
				background-color: $color-tertiary;
				opacity: 1;
			}
		}
	}
	
	&__price {
		font-weight: $font-weight-bold;
		font-size:1.5rem;
		color: $color-primary;
		@include responsive-md {
			font-size:2rem;
		}
	}
	&__blockprices {
		margin-bottom:1rem;
		table {
			text-align:left;
			td {
				vertical-align: top;
				&:first-child {
					padding-right: 20px;
				}
			}
		}
	}
	&__main {
		margin-bottom:2rem;
		float:left;
		width:100%;
		h1 {
			font-weight: $font-weight-bold;
			margin-bottom:1rem;
			font-size:1.3rem;
		}
		@include responsive-sm {
			padding-left:60px;
			width:50%;
		}
	}
	&__facts {
		margin-bottom:2rem;
		ul {
			@include listStyle1();
		}
	}
	&__orderinfo {
		margin-bottom:1rem;
		font-size:0.9rem;
		color: $color-tertiary;
	}
	&__lieferzeit {
		margin-bottom:1rem;
		font-size:0.9rem;
		font-weight: $font-weight-bold;
		color: $color-primary;
		&:before {
			content:'';
			background: $color-primary;
			width: 0.6em;
			height: 0.6em;
			display: inline-block;
			border-radius: 50%;
			margin-right: 0.5em;
			vertical-align: middle;
		}
		&[data-status="red"] {
			color: $color-error;
			&:before {
				background: $color-error;
			}
		}
		&[data-status="orange"] {
			color:#ff9800;
			&:before {
				background:#ff9800;
			}
		}
	}
	&__merkmale {
		margin-bottom:2rem;
		display:table;
		max-width:280px;
		@include responsive-md {
			max-width:314px;
		}
	}
	&__merkmal {
		display:table-row;
		label {
			padding-right:1rem;
			display:table-cell;
			vertical-align:middle;
		}
		> div {
			display:table-cell;
			width:100%;
		}
		select, .styledInput {
			width:100%;
		}
	}
	&__inbasket{
		> *{
			margin-bottom: 1em;
		}
	}
	&__description {
		width: 100%;
		max-width: 760px;
		margin-left: auto;
		margin-right: auto;
	}
	&__descriptionText {
		contain: layout;
	}
	&__watchlistButton {
		cursor: pointer;
		.delete {
			display: none;
		}
		&--watched {
			.add {
				display: none;
			}
			.delete {
				display: inline;
			}
		}
	}
}