/* === WRAPPER === */
.book-ye-books-widget {
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
  padding: 28px 24px;
}

/* === TITLE === */
.book-ye-books-title {
  text-align: center;
  color: #1f1f1f;
  margin-top: 0;
  margin-bottom: 48px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* === GRID === */
.book-ye-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* === CARD === */
.book-ye-book {
  position: relative;
  background: #fff;
  padding: 18px 15px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  transition: transform .4s ease, box-shadow .4s ease; 
  text-decoration:none;
}

.book-ye-book:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
}

/* === IMAGE === */
.book-ye-books-image{
  display: block;
  text-align: center;
}

.book-ye-book img {
  max-height: 260px;
  margin-bottom: 20px;
  border-radius: 16px;
  transition: transform .4s ease;
}

.book-ye-book:hover img {
  transform: scale(1.04) rotate(-1deg);
}

/* === LABEL (РАДИМО) === */
.book-ye-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ff7a00;
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  font-weight: 600;
}

/* === TITLE === */
.book-ye-book-title {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 12px;
  line-height: 1.3;
  min-height: 64px;
  color: #1f1f1f;
}

/* === DESCRIPTION === */
.book-ye-desc {
  font-size: 15px;
  color: #6f6f6f;
  margin-bottom: 20px;
  line-height: 1.55;
  min-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 3;      
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-height: 1.55!important; 
  max-height: calc(1.55em * 3); 
}

/* === BUTTON (CARD) === */
a.book-ye-books-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #ff7a00!important;
  padding: 10px 20px;
  width:auto;
}

a.book-ye-books-btn:hover {
  background: #ff7a00;
  color: #fff!important;
  text-decoration: none;
}

/* === ALL RECOMMENDATIONS === */
.book-ye-all-wrapper {
  text-align: center;
  margin-top: 30px;
}

.book-ye-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff7a00;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.book-ye-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 122, 0, 0.45);
  color: #fff!important;
}

/* === MOBILE === */
@media (max-width: 767px) {
  .book-ye-books-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .book-ye-books-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .book-ye-book {
    padding: 24px 20px 28px;
  }
}
