
.book-card2,
.book-card2:hover,
.book-card2:active,
.book-card2:visited {
  text-decoration: none !important; 
  /* Можете задать color: #000 !important; 
     если хотите убрать цвет «ссылочный» */
}

.book-card2 {
  display: inline-flex;
  flex-direction: column;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 5px;
  background: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 3px solid #fff;
  overflow: hidden;
  position: relative;
  transition: all 0.4s;
}




/* -- Мобильная (до ~600px) -- */
@media (max-width: 768px) {
    .book-card2 {
      width: 77vw;      /* или 200px */
      max-width: 97%;    /* подстраховка, чтобы не выходить за контейнер */
      flex: 0 0 auto;
    }
  }

@media (min-width: 769px) {
    /* Полностью убираем "24%" */
    .book-card2 {
      width: 280px;
      max-width: 280px;
      flex: 0 0 auto;  
    }
  }

  

  .book-card2 a {
    text-decoration: none;
    color: inherit;
  }
  
  .book-card2 a:hover {
    text-decoration: none;
    color: inherit;
  }

.book-card2-top {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.book-card2-top h3 {
  font-size: 0.9rem;
  margin: 0 0 5px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-card2-top .subtitle2 {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card2-img {
  position: relative;
  width: 100%;
  background-color: rgba(0,128,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card2-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.book-card2-bottom {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-card2-price {
  font-size: 1rem;
  color: #000;
  margin: 5px 0;
}
.book-card2-buy {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}
.container .carousel-container {
    max-width: none !important;
    width: auto !important;
  }