/* Book Card Styling */
.carousel-book-item {
  padding: 1 !important;
  margin: 1 !important;
  width: 50%;

}

.book-card {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 20%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.book-cover {
  position: relative;
  overflow: hidden;
  height: 280px;
 width:  280px;
  background-color: #f0f2f5;
}

.book-cover a {
  display: block;
  height: 100%;
}

.book-cover img {
  width: 100%;
  height: 100%;
object-fit: fill;
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-details {
  height: 10%;
 width: 100%;
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.book-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.book-title a:hover {
  color: #3b5998;
}

.book-author {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.book-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 0.75rem;
}

.book-status {
  margin-bottom: 1rem;
}

.book-status span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.book-status .in-stock {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.book-status .out-of-stock {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.book-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.book-actions .btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.book-actions .btn-dark-gray {
  background-color: #000000;
  color: #ffffff;
  border: none;
}

.book-actions .btn-dark-gray:hover {
  background-color: #ff7236;
  color: #ffffff;
}

.book-actions .btn-primary {
  background-color: #ff7236;
  color: #fff;
  border: none;
}

.book-actions .btn-primary:hover {
  /* background-color: #2d4373;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 89, 152, 0.2); */
  color:#000000;
}

.add-cart-form {
  flex: 1;
}

/* Position the add to cart form properly */
.add-cart-form button {
  width: 100%;
}

/* Special label for new arrivals or promotions */
.book-card .book-label {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.book-card .label-new {
  background-color: #3b5998;
  color: #fff;
}

.book-card .label-sale {
  background-color: #e91e63;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .book-cover {
    height: 220px;
  }
  
  .book-details {
    padding: 1rem;
  }
  
  .book-title {
    font-size: 1rem;
  }
  
  .book-price {
    font-size: 1.1rem;
  }
  
  .book-actions {
    flex-direction: column;
  }
}










