@import '/static/style/css/base.css';

.content_page_product {
	max-width: 550px;
	padding: 0 30px 50px;
	margin: 0 auto;
}

.product-labels {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	height: 300px;
	padding-bottom: 20px;
	box-sizing: border-box;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.product-labels__label {
	display: inline-block;
	text-align: center;
	font-size: 0.8rem;
	color: var(--white);
	background-color: var(--main-brand-color);
	padding: 4px 10px;
	border-radius: 15px;
	border: 3px double var(--white);
	margin-top: 10px;
}

.product-full-images {
	width: 100%;
	height: 300px;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.product-full-images::-webkit-scrollbar {
	display: none;
}

.product-full-images__image-wrap {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	transform-origin: center center;
	transform: scale(1);
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-full-images__image {
	object-fit: contain;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}


.product-preview-images {
	position: relative;
	padding: 0 30px;
	margin-top: 30px;
}

.product-preview-images__prev {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	width: 30px;
	display: flex;
	align-items: center;
	cursor: pointer;
	border: none;
	background: transparent;
}

.product-preview-images__prev-button {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-right: 10px solid var(--black);
	border-bottom: 6px solid transparent;
	margin: 0 auto;
	transition-property: transform;
	transition-duration: 0.3s;
}

.product-preview-images__prev:hover .product-preview-images__prev-button {
	transform: scale(1.4);
}

.product-preview-images__prev:disabled {
	cursor: default;
}

.product-preview-images__prev:disabled .product-preview-images__prev-button {
	border-right: 10px solid var(--gray);
	cursor: default;
}

.product-preview-images__prev:disabled:hover .product-preview-images__prev-button {
	transform: none;
}

.product-preview-images__next {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	right: 0;
	width: 30px;
	display: flex;
	align-items: center;
	cursor: pointer;
	border: none;
	background: transparent;
}

.product-preview-images__next-button {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-left: 10px solid var(--black);
	border-bottom: 6px solid transparent;
	margin: 0 auto;
	transition-property: transform;
	transition-duration: 0.3s;
}

.product-preview-images__next:hover .product-preview-images__next-button {
	transform: scale(1.4);
}

.product-preview-images__next:disabled {
	cursor: default;
}

.product-preview-images__next:disabled .product-preview-images__next-button {
	border-left: 10px solid var(--gray);
	cursor: default;
}

.product-preview-images__next:disabled:hover .product-preview-images__next-button {
	transform: none;
}

.product-preview-images__slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.product-preview-images__slides::-webkit-scrollbar {
	display: none;
}

.product-preview-images__image-wrap {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 110px;
	height: 110px;
	margin: 0 6px;
	transform-origin: center center;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid transparent;
	cursor: pointer;
}

.product-preview-images__image-wrap_selected {
	border: 1px solid var(--main-brand-color);
}

.product-preview-images__image {
	object-fit: contain;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.product-images {
	position: relative;
}

.product-images_hidden-preview .product-preview-images {
	display: none;
}

.product-images__close {
	display: none;
	position: absolute;
	top: 30px;
	right: 30px;
	z-index: 12;
	width: 32px;
	height: 32px;
	padding: 0 0 0 13px;
	background: transparent;
	border: 1px solid var(--black);
	border-radius: 50%;
	box-sizing: border-box;
	cursor: pointer;
	transition-property: transform;
	transition-duration: 0.3s;
}

.product-images__close:hover {
	transform: scale(1.2);
}

.product-images__close-cross {
	display: block;
	background: var(--black);
	height: 20px;
	position: relative;
	width: 4px;
	transform: rotate(45deg);
}
.product-images__close-cross:after {
	background: var(--black);
	content: "";
	height: 4px;
	left: -8px;
	position: absolute;
	z-index: 13;
	top: 8px;
	width: 20px;
}

.product-description__subtitle {
	font-size: 1.5rem;
	margin: 44px 0 0 0;
}

.product-images__image-wrap {
	position: relative;
}

.product-images__image {
    max-width: 100%;
    max-height: 100%;
}

.product-cost {
	text-align: right;
}

.product-cost_current {
	font-size: 2rem;
	color: var(--black);
}

.product-actions {
	text-align: right;
	margin-top: 12px;
}

.product-actions__download-button {
	display: inline-block;
	padding: 5px 10px;
	color: var(--main-font);
	font-size: 1rem;
	background-color: var(--light-accent);
	border: 1px solid var(--main-brand-color);
	border-radius: 5px;
	box-shadow: 0px 2px 2px 0px rgba(50, 50, 50, 0.3);
	margin: 0;
	cursor: pointer;
	transition-property: transform;
	transition-duration: 0.3s;
}
.product-actions__download-button:hover {
	transform: scale(1.1);
}

.product-description {
	margin-top: 20px;
}

.product-description__paragraph {
	text-align: justify;
	font-size: 1rem;
	margin: 1rem 0 0 0;
}

.product-description__paragraph:first-child {
	margin-top: 0;
}

.product-description__strong {
	font-weight: bolder;
	color: var(--black);
	text-decoration: underline;
}

.product-description__paragraph-list {
	text-align: left;
	margin: 1rem 0 0 0;
}

.product-description__paragraph-list_paragraph-continue {
	margin-top: 0.5rem;
}

.product-description__note {
	box-sizing: border-box;
	border: 1px solid var(--orange);
	padding: 10px 15px;
	font-size: 0.7rem;
	text-align: center;
	margin: 1rem 0 0 0;
}

.product-description__note-link:hover {
	text-decoration: underline;
}

@supports (grid-area: auto) {
	@media screen and (min-width: 750px) {
		.content_page_product {
			max-width: 1100px;
		}

		.product {
			max-width: 100%;
			display: grid;
			grid-template-columns: minmax(50%, 1fr) minmax(50%, 1fr);
			grid-template-rows: auto auto 1fr;
		}

		.product-title {
			grid-column: 1 / 3;
			grid-row: 1 / 2;
		}

		.product-images {
			grid-column: 1 / 2;
			grid-row: 2 / 3;
		}

		.product-description {
			grid-column: 2 / 3;
			grid-row: 2 / 3;
			margin-top: 0;
			padding: 0 1.5rem;
		}

		.product-cost {
			text-align: left;
		}

		.product-actions {
			text-align: left;
		}
	}
}

.root-body_fullscreen-gallery::-webkit-scrollbar {
	display: none;
}

.root-body_fullscreen-gallery .header, .root-body_fullscreen-gallery .nav {
	display: none;
}

.root-body_fullscreen-gallery .product-images {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 11;
	overflow: hidden;
	background-color: var(--white);
}

.root-body_fullscreen-gallery .product-labels {
	height: 70vh;
}

.root-body_fullscreen-gallery .product-full-images {
	height: 70vh;
	margin-top: 5vh;
}

.root-body_fullscreen-gallery .product-images_hidden-preview .product-labels {
	height: 100vh;
}

.root-body_fullscreen-gallery .product-images_hidden-preview .product-full-images {
	height: 90vh;
	margin: 5vh 0;
}

.root-body_fullscreen-gallery .product-full-images__image {
	cursor: zoom-out;
}

.root-body_fullscreen-gallery .product-preview-images {
	margin: 5vh 0;
	height: 15vh;
}

.root-body_fullscreen-gallery .product-images__close {
	display: block;
}