/*recent products*/

.shop-recently-viewed {
  position: relative;
  margin: 35px 0;
}

.hide-slider {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* Не трогать h2 карточек каталога (.card__title) — только старый заголовок блока при наличии */
.shop-recently-viewed h2:not(.card__title) {
  font-weight: bold;
  font-size: var(--text-xxs);
  margin: 0 0 20px 0;
  position: relative;
  padding: 0 20px 0 0;
  color: #cc0000;
  display: inline-block;
}

.shop-recently-viewed h2:not(.card__title) .custom-arrow {
  position: absolute;
  width: 15px;
  height: 20px;
  right: 0;
  top: 15px;
  background: none;
}

.shop-recently-viewed .product-wrapper .product-image {
  width: auto;
}

.shop-recently-viewed .product-wrapper .product-name {
  height: 28px;
  line-height: 14px;
}

.shop-recently-viewed .product-wrapper:hover .product-price {
  visibility: visible;
}

.shop-recently-viewed .product-wrapper {
  margin: 0;
}

.shop-recently-viewed .bx-prev {
  left: 0;
}

.shop-recently-viewed .bx-next {
  right: 0;
}

.shop-recently-viewed .bx-prev:hover {
  background-position: 0 -30px;
}

.shop-recently-viewed .bx-next {
  background-position: -30px 0 !important;
}

.shop-recently-viewed .shop-recently-viewed__slider .bx-prev {
  left: 215px;
}

.shop-recently-viewed .shop-recently-viewed__slider .bx-next {
  left: 250px;
}

.shop-recently-viewed .bx-prev,
.shop-recently-viewed .bx-next {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  display: block;
  background: url("../images/second-controls2.png") 0 0 no-repeat;
  text-indent: -999999px;
}

/* Компактная разметка (не карточки каталога) */
.shop-recently-viewed-mini .shop-recently-mini-product-price {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d21919;
  font-size: var(--text-sm);
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  text-align: center;
  height: 26px;
}

.shop-recently-viewed-mini .shop-recently-mini-product-image a {
  display: block !important;
  height: 180px;
  text-align: center;
  position: relative;
}

.shop-recently-viewed-mini .shop-recently-mini-product-image a img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.shop-recently-viewed-mini .shop-recently-mini-product-name a {
  color: #444;
  font-size: var(--text-xxs);
  text-decoration: none;
}

.shop-recently-viewed-mini .shop-recently-mini-product-name {
  text-align: center;
  margin: 10px 0;
  height: 30px;
  overflow: hidden;
  line-height: 14px;
}

.shop-recently-viewed-mini .shop-recently-mini-product-name a:hover {
  text-decoration: underline;
}

.shop-recently-viewed-mini .shop-recently-mini-product-wrapper .product-price {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d21919;
  font-size: var(--text-sm);
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  text-align: center;
  height: 26px;
}

.shop-recently-viewed-mini .addToCart,
.shop-recently-viewed-mini .product-info {
  display: block;
  border: 1px solid #d3d3d3;
  text-decoration: none;
  padding: 5px 10px;
  text-align: center;
  color: #000;
  text-shadow: 1px 1px #fff;
  font-size: var(--text-xxs);
  text-transform: uppercase;
  background: #fcfcfc;
  background: -moz-linear-gradient(top, #fcfcfc 0%, #e5e5e5 100%);
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #fcfcfc),
    color-stop(100%, #e5e5e5)
  );
  background: -webkit-linear-gradient(top, #fcfcfc 0%, #e5e5e5 100%);
  background: -o-linear-gradient(top, #fcfcfc 0%, #e5e5e5 100%);
  background: -ms-linear-gradient(top, #fcfcfc 0%, #e5e5e5 100%);
  background: linear-gradient(to bottom, #fcfcfc 0%, #e5e5e5 100%);
  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#e5e5e5', GradientType=0);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  width: 80px;
  margin: 10px auto;
  border-radius: 3px;
  clear: both;
}

.shop-recently-mini-wrapper {
  text-align: center;
}

.shop-recently-viewed .bx-viewport {
  overflow: hidden !important;
}
