/*region Slider */
.product-item-detail-slider-container {
	position: relative;
	max-width: 100%;
	background: transparent;
	transition: background 800ms ease;
	z-index: 90;
}

.product-item-detail-slider-block {
	position: relative;
	box-sizing: border-box;
	padding-top: 56.25%;
	height: 0;
}

.product-item-detail-slider-block.product-item-detail-slider-block-square { padding-top: 100%; }

.product-item-detail-slider-images-container {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.product-item-detail-slider-image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-align: center;
	opacity: 0;
	transition: opacity 250ms linear;
}

.product-item-detail-slider-image.active {
	z-index: 10;
	opacity: 1;
}

.product-item-detail-slider-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	outline: 1px solid transparent;
	background-position: center;
	background-repeat: no-repeat;
	transition: background-size 450ms ease, width 450ms ease, height 450ms ease, outline 450ms ease;
	transform: translateY(-50%) translateX(-50%);
}

.product-item-detail-slider-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 180;
	height: 3px;
	background-color: #006cc0;
	background-color: var(--theme-color-primary)
}

/*endregion*/

/*region Slider Controls*/
.product-item-detail-slider-controls-block {
    display: none;
}

.product-item-detail-slider-controls-image {
	position: relative;
	display: inline-block;
	overflow: hidden;
	flex: 0 0 65px;
	width: 65px;
	height: 65px;
	/*outline: 1px solid #c0cfda;*/
	background-color: #fff;
	text-align: center;
	cursor: pointer;
}

.product-item-detail-slider-controls-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 65px;
	max-height: 65px;
	width: auto;
	height: auto;
	transform: translateY(-50%) translateX(-50%);
}

.product-item-detail-slider-left,
.product-item-detail-slider-right {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 111;
	display: block;
	width: 75px;
	background: rgba(255, 255, 255, 0) url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2230%22%20viewBox%3D%220%200%2016%2030%22%3E%3Cpolygon%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%20points%3D%2216%2050%202%2036%2016%2022%2015%2021%201%2035%200%2036%201%2037%2015%2051%22%20transform%3D%22translate(0%20-21)%22%2F%3E%3C%2Fsvg%3E') no-repeat center;
	opacity: .0;
	cursor: pointer;
	transition: all 300ms ease;
}

.product-item-detail-slider-left {
    left: 0;
}

.product-item-detail-slider-right {
	right: 0;
	transform: rotate(180deg);
}

.product-item-detail-slider-left:hover,
.product-item-detail-slider-right:hover {
	background-color: rgba(255, 255, 255, .4);
	opacity: .5;
}

.product-item-detail-slider-close { display: none; }

.product-item-detail-slider-container.popup .product-item-detail-slider-close {
	position: absolute;
	top: 4px;
	right: 110px;
	bottom: 0;
	z-index: 150;
	display: block;
	width: 50px;
	height: 50px;
	background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpolygon%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%20points%3D%2216%2015.1%208.944%208%2016%201%2015.006%200%208.05%207%20.994%200%200%201%207.056%208%200%2015.1%20.994%2016%208.05%209%2015.006%2016%22%2F%3E%3C%2Fsvg%3E') no-repeat center;
	opacity: .27;
	cursor: pointer;
	transition: all 300ms ease;
}

.product-item-detail-slider-container.popup .product-item-detail-slider-close:hover { opacity: 1; }

.product-item-detail-slider-container.popup .product-item-detail-slider-right { right: 105px; }

/*endregion*/

/*region magnified*/
.product-item-detail-slider-container.magnified .product-item-detail-slider-image { z-index: 100; }

.product-item-detail-slider-container.magnified .product-item-detail-slider-image img { outline-color: #ddd; }

.product-item-detail-slider-container.magnified .product-item-detail-slider-left,
.product-item-detail-slider-container.magnified .product-item-detail-slider-right { z-index: 50; }

.product-item-detail-slider-container.magnified .product-item-label-text,
.product-item-detail-slider-container.magnified .product-item-label-ring { opacity: 0; }

/*	>>>	popup*/
.product-item-detail-slider-container.popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	background: #fff;
	animation-name: imgPopupShow;
	animation-duration: 300ms;
}

.product-item-detail-slider-container.popup .product-item-detail-slider-images-container { right: 105px; }

.product-item-detail-slider-container.popup .product-item-detail-slider-block {
	padding-top: 0;
	height: 100vh;
}

.product-item-detail-slider-container.popup .product-item-detail-slider-image {
	position: absolute;
	top: 50%;
	left: 50%;
	max-height: 100vh;
	width: calc(100% - 150px);
	transform: translateY(-50%) translateX(-50%);
}

@-webkit-keyframes imgPopupShow {
	from { opacity: 0; }
	to { opacity: 1; }
}

@-moz-keyframes imgPopupShow {
	from { opacity: 0; }
	to { opacity: 1; }
}

@-ms-keyframes imgPopupShow {
	from { opacity: 0; }
	to { opacity: 1; }
}

@-o-keyframes imgPopupShow {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes imgPopupShow {
	from { opacity: 0; }
	to { opacity: 1; }
}

.product-item-detail-slider-container.popup .product-item-detail-slider-image img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	cursor: default
}

.product-item-detail-slider-container.popup .product-item-detail-slider-controls-block {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	padding: 20px;
	border-left: 1px solid #d3d3d3;
	background-color: #fff;
}

.product-item-detail-slider-container.popup .product-item-detail-slider-controls-image {
	display: block;
	margin-bottom: 20px;
}

/*endregion*/

/*region Label*/
.product-item-label-text,
.product-item-label-ring {
	position: absolute;
	z-index: 190;
	opacity: 1;
	transition: opacity 450ms ease;
}

.product-item-label-text span,
.product-item-label-ring {
	display: inline-block;
	clear: both;
	margin-bottom: 2px;
	background: #f42c2c;
	color: #fff;
	vertical-align: middle;
	text-align: center;
	transition: all 250ms ease;
}

.bx-red .product-item-label-text span,
.bx-red .product-item-label-ring { background-color: #fba90c; }

.product-item-label-text > div,
.product-item-label-ring > div { line-height: 0; }

.product-item-detail-slider-container.popup .product-item-label-text,
.product-item-detail-slider-container.popup .product-item-label-ring { display: none; }

/* TEXT */
.product-item-label-text span {
	padding: 2px 5px;
	vertical-align: middle;
	font-weight: var(--ui-font-weight-bold);
}

.product-item-label-text.product-item-label-big span {
	padding: 4px 10px;
	font-size: 13px;
	line-height: 17px;
}

/*RING*/
.product-item-label-ring {
	box-sizing: border-box;
	border-radius: 50%;
	font-weight: var(--ui-font-weight-bold);
}

.product-item-label-ring.product-item-label-big {
	width: 50px;
	height: 50px;
	font-size: 18px;
	line-height: 50px;
}

.product-item-label-top { top: -5px; }

.product-item-label-center {
	left: 50%;
	transform: translateX(-50%);
}

.product-item-label-center > div { text-align: center; }

.product-item-label-left { left: -5px; }

.product-item-label-left > div { text-align: left; }

.product-item-label-bottom { bottom: -5px; }

.product-item-label-middle {
	top: 50%;
	transform: translateY(-50%);
}

.product-item-label-right { right: -5px; }

.product-item-label-right > div { text-align: right; }

.product-item-label-center.product-item-label-middle { transform: translateY(-50%) translateX(-50%); }

/*endregion*/

@media (min-width: 768px)
{
    .product-item-detail-slider-controls-block
    {
        padding: 10px 0 0 0;
        display: flex;
        justify-content: start;
		flex-wrap: nowrap;
		overflow-x: auto;
    }

	.product-item-detail-slider-controls-image
	{
		margin-left: 30px;
	}

	.product-item-detail-slider-controls-image:first-child
	{
		margin-left: 0;
	}

    .product-item-label-text > div { line-height: 0; }

	.product-item-label-text.product-item-label-small span {
		margin-bottom: 1px;
		padding: 2px 7px;
		font-size: 10px;
		line-height: 14px;
	}

	.product-item-label-text.product-item-label-big span  {
		margin-bottom: 1px;
		padding: 3px 12px;
		font-size: 14px;
		line-height: 16px;
	}

    .product-item-label-ring.product-item-label-small  {
		width: 20px;
		height: 20px;
		font-size: 13px;
		line-height: 20px;
	}

	.product-item-label-ring.product-item-label-big  {
		width: 35px;
		height: 35px;
		font-size: 12px;
		line-height: 35px;
	}
}

@media (min-width: 1280px)
{
	.product-item-detail-slider-controls-image
	{
		margin-left: 45px;
	}
}
