.books-slider-section {
  margin: 40px 0;
  padding: 24px 0;
}

.books-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.books-slider-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.books-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--background-color);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.books-slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  padding: 8px 0;
}

/* Small book card styles */
.book-card-small {
  flex: 0 0 auto;
  width: 160px;
  background: var(--background-color);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  min-height: 220px;
}

.book-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.book-card-small:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-image-wrapper-small {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.badge-loan-small {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.65em;
  font-weight: 500;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.book-image-small {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0;
  background: var(--background-secondary);
  display: block;
}

.book-info-small {
  flex: 1;
  width: 100%;
}

.book-title-small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 3px;
  text-align: left;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author-small {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 6px;
  text-align: left;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-footer-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.book-condition-small {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  margin-bottom: 2px;
  text-align: right;
}

.book-price-small {
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-align: right;
}

.books-slider-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey-dark);
}

.books-slider-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.books-slider-empty-text {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.books-slider-empty-action {
  display: inline-block;
  padding: 10px 20px;
  background: var(--background-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 400;
  border: 1px solid var(--primary-color);
  transition: all 0.2s ease;
}

.books-slider-empty-action:hover {
  background: var(--primary-color);
  color: var(--primary-text-color);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: var(--primary-text-color);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  .books-slider-container {
    padding: 16px;
  }
  
  .book-card-small {
    width: 140px;
    padding: 10px;
    min-height: 200px;
  }
  
  .book-title-small {
    font-size: 0.8rem;
  }
  
  .book-author-small {
    font-size: 0.7rem;
  }
  
  .book-price-small {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .books-slider-title {
    font-size: 1.3rem;
  }
  
  .book-card-small {
    width: 120px;
    padding: 8px;
    min-height: 180px;
  }
  
  .book-title-small {
    font-size: 0.75rem;
  }
  
  .book-author-small {
    font-size: 0.65rem;
  }
  
  .book-price-small {
    font-size: 0.75rem;
  }
} 