.book-rows-swiper {
  display: none;
  position: relative;
  overflow: hidden;
}
@media (max-width: 500px) {
  .book-rows-swiper.primary {
    margin: 0px -20px;
  }
}
.book-rows-swiper > .row-books {
  position: relative;
  width: 99.5%;
  margin: 8px auto;
}
.book-rows-swiper > .row-books .row-book {
  width: 144px;
  padding: 0;
  user-select: none;
}
@media (max-width: 500px) {
  .book-rows-swiper > .row-books .row-book {
    width: 130px;
  }
}
.book-rows-swiper.second > .row-books .row-book {
  width: 130px;
  padding: 0;
}
@media (max-width: 500px) {
  .book-rows-swiper.second > .row-books .row-book {
    width: 110px;
  }
}
.book-rows-swiper > .row-books .row-book .image-container {
  margin-bottom: 12px;
  background: rgba(120, 120, 120, 0.2);
  border-radius: 0.375rem;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.book-rows-swiper > .row-books .row-book .image-container > .image-wrapper {
  background-position: 50%;
  padding-top: 150%;
  background-size: cover;
  max-width: 100%;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease-in-out;
  transform-origin: left center;
}
.book-rows-swiper > .row-books .row-book .image-container > .icons {
  top: 0;
  position: absolute;
}
.book-rows-swiper > .row-books .row-book .title {
  position: relative;
  color: var(--text-primary);
  font-family: "Exo 2";
  border-top: unset;
  text-shadow: unset;
  margin-top: unset;
  height: unset;
  background-image: none;
  max-width: unset;
}
.book-rows-swiper > .row-books .row-book .title h4 {
  display: -webkit-box;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  overflow: hidden;
  font-size: 0.975rem;
  line-height: 1.2;
  font-weight: 500;
}
.book-rows-swiper > .row-books .row-book a {
  position: relative;
  outline: none;
}
.book-rows-swiper > .row-books .row-book a::after {
  transition: opacity 125ms ease-in-out 0s;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 0px;
}
.book-rows-swiper > .row-books .row-book a:hover {
  text-decoration: none;
}
.book-rows-swiper > .row-books .row-book a:hover .gloss {
  transform: perspective(1000px) rotateY(-30deg) translateX(100%) scaleX(5);
}
.book-rows-swiper
  > .row-books
  .row-book
  a:hover
  .image-container
  > .image-wrapper {
  transform: scale(1.01) perspective(1000px) rotateY(-30deg);
}
.book-rows-swiper > .row-books .row-book a:hover::after {
  opacity: 0.1;
}
.book-rows-swiper > .row-books .row-book .gloss {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  overflow: hidden;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.2s;
  transform: translateX(-50%) rotateY(0deg);
  transform-origin: left center;
}
.book-rows-swiper > .row-books h3 {
  font-family: "Exo 2";
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.235;
  margin: 12px;
}
.book-rows-swiper .swiper-button-next,
.book-rows-swiper .swiper-button-prev {
  color: var(--text-primary);
  top: 45%;
}
.book-rows-swiper .row-bg {
  position: absolute;
  left: -20px;
  height: 100%;
  width: calc(100% + 40px);
  background: var(--bg-primary);
}

/* Слайдер рекламы в каталоге - на всю ширину экрана */
.catalog-ads-fullwidth {
  width: 100%;
  background: var(--bg-secondary, #f8f9fa);
  margin-bottom: 20px;
}

.catalog-ads-fullwidth .book-rows-swiper {
  max-width: 1170px; /* Ширина Bootstrap container */
  margin: 0 auto;
  padding: 0 15px;
}

/* Слайдер рекламы в каталоге использует стандартные размеры (144px десктоп, 130px мобильные) */
