.all-books {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 40px;
}

.title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.filter-container {
  background: #2d2d2d;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  border: 1px solid #404040;
}

.filter-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-filter {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 2px solid #555;
  border-radius: 25px;
  font-size: 14px;
  background: #1a1a1a;
  color: #e0e0e0;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3742fa;
}

.search-input::placeholder {
  color: #888;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  cursor: pointer;
  z-index: 1;
}

.filter-select {
  padding: 10px 15px;
  border: 2px solid #555;
  border-radius: 8px;
  background: #1a1a1a;
  color: #e0e0e0;
  min-width: 120px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #3742fa;
}

.clear-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-btn:hover {
  background: #ff3742;
}

.modern-card {
  background: #2d2d2d;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 20px;
  padding: 20px;
  display: inline-block;
  width: 300px;
  vertical-align: top;
  transition: transform 0.3s ease;
  border: 1px solid #404040;
}

.modern-card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.stock-badge,
.discount-badge {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.low-stock {
  background: #ff4757;
  color: white;
}

.discount-badge {
  background: #2ed573;
  color: white;
}

.book-image-container {
  position: relative;
  text-align: center;
  margin-bottom: 15px;
}

.book-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 200px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.book-image-container:hover .book-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: #3742fa;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.book-info {
  text-align: center;
}

.category-tag {
  background: #404040;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.book-title {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #ffffff;
}

.book-author {
  color: #bbb;
  margin: 5px 0 15px 0;
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.stars {
  color: #ffa502;
}

.rating-text {
  font-weight: bold;
  color: #e0e0e0;
}

.book-meta {
  margin: 10px 0;
  font-size: 14px;
  color: #bbb;
}

.price-container {
  margin: 15px 0;
}

.original-price {
  text-decoration: line-through;
  color: #777;
  margin-right: 10px;
}

.current-price {
  font-size: 20px;
  font-weight: bold;
  color: #2ed573;
}

.stock-info {
  margin: 10px 0;
  font-size: 14px;
}

.stock-count.low {
  color: #ff4757;
  font-weight: bold;
}

.card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.add-to-cart-btn {
  background: #3742fa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
}

.add-to-cart-btn:hover {
  background: #2f32e2;
}

.wishlist-btn {
  background: #2d2d2d;
  color: #ff4757;
  border: 2px solid #ff4757;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.wishlist-btn:hover {
  background: #ff4757;
  color: white;
}

.no-results,
.error-message {
  text-align: center;
  padding: 50px 20px;
  color: #bbb;
}

.no-results i,
.error-message i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #555;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2d2d2d;
  color: #e0e0e0;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #404040;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #2ed573;
}

.notification.info {
  border-left: 4px solid #3742fa;
}
