
.search-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-form {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.search-input,
.search-button {
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background-color: var(--main-beige);
}

.search-input {
  width: 40%;
  border: 2px solid #ccc;
}

.search-input:focus {
  border-color: var(--main-orange);
}

.search-button {
  background-color: var(--no_hover-orange);
  color: #fff;
  border: none;
  cursor: pointer;
}

.search-button:hover {
  background-color: var(--hover-orange);
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px;
  font-size: 19px;
  border-radius: 10px;
  background-color: var(--main-beige);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease;
}

.filter-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: var(--no_hover-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.filter-button:hover {
  background-color: var(--hover-orange);
  transform: scale(1.05);
}

/* === Пагинация === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 20px;
  gap: 10px;
}

.page-link {
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  background: var(--no_hover-orange);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-link:hover {
  background: var(--hover-orange);
}

.page-link.active {
  background: var(--hover-orange);
  font-weight: bold;
  pointer-events: none;
}
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 15px;
  padding-top: 20px;
  padding-bottom: 20px;
  justify-items: center;
  justify-content: center; 
}

.book-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background-color: var(--main-beige);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  width: 100%;
}

.book-item:hover {
  box-shadow: var(--shadow);
}

.cover-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.book-info {
  padding: 10px;
  text-align: center;
}

.book-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--main-gray);
  text-overflow: ellipsis;
  word-break: break-word;
}

.book-info p {
  font-size: 1rem;
  color: black;
}

/* Адаптация для мобильных устройств */
@media (max-width: 900px) {
  .search-form {
    flex-direction: column;
    align-items: center;
  }

  .book-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .book-item {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }


  .book-info {
    text-align: left;
    width: 100%;
  }
}
