/* Каруселі модуля "Популярні товари категорій" (Swiper). */

.popular-products__viewport {
	position: relative;
}

/* Розкладка каруселі задана тут, а не лише в CSS Swiper 12 (клас .swiper): так карусель
   тримається й тоді, коли її веде старий jQuery-Swiper 3 сайту (сторінка товару). */
.popular-products__slider {
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.popular-products__slider > .swiper-wrapper {
	display: flex;
	position: relative;
	width: 100%;
	height: auto;
	box-sizing: content-box;
	transition-property: transform;
	z-index: 1;
}

/* Картки одного ряду однакової висоти, ціна й кошик унизу - як у сітці категорії (там
   обгортка картки .grid-view теж display: flex). */
.popular-products__slider > .swiper-wrapper > .swiper-slide {
	position: relative;
	display: flex;
	flex-shrink: 0;
	height: auto;
}

.popular-products__slider .swiper-slide > .product-layout {
	display: flex;
	width: 100%;
}

/* Стрілки - як у каруселей теми (.owl-nav): кругла кнопка 40px, кольори теми. */
.popular-products__nav {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 0 4px;
	border: 2px solid rgba(0, 0, 0, .08);
	border-radius: 100%;
	color: var(--carousel-nav-btn-c, #333);
	background: var(--carousel-nav-btn-bg, #fff);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transform: translate(0, -50%);
	-webkit-user-select: none;
	user-select: none;
}

.popular-products__nav:hover {
	border-color: rgba(0, 0, 0, .2);
}

.popular-products__nav--prev {
	left: 10px;
}

.popular-products__nav--next {
	right: 10px;
}

/* Початок або кінець каруселі - стрілки в цей бік немає. */
.popular-products__nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Усі картки вже видно (watchOverflow Swiper 12). */
.popular-products__nav.swiper-button-lock {
	display: none;
}

.popular-products__more {
	margin-top: 10px;
	text-align: left;
}

.popular-products__more a {
	color: #d75032;
	font-weight: 700;
	text-decoration: none;
}

.popular-products__more a:hover,
.popular-products__more a:focus {
	color: #d75032;
	text-decoration: underline;
}
