.ebooks-catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.search-filter-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}
.search-filter-section .search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.search-filter-section .search-form .search-input-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-filter-section .search-form .search-input-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.search-filter-section .search-form .search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f9fafb;
}
.search-filter-section .search-form .search-input-wrapper input:focus {
  outline: none;
  border-color: #1ea9e2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 169, 226, 0.1);
}
.search-filter-section .search-form .btn-search {
  padding: 0.75rem 2rem;
  background: #1ea9e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-filter-section .search-form .btn-search:hover {
  background: #1989b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-filter-section .search-form .btn-search:active {
  transform: translateY(0);
}
.search-filter-section .search-form .btn-sync {
  padding: 0.75rem 1.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-filter-section .search-form .btn-sync:hover {
  background: rgb(11.9402985075, 138.0597014925, 96.2686567164);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-filter-section .search-form .btn-sync.loading {
  opacity: 0.7;
  pointer-events: none;
}
.search-filter-section .filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.search-filter-section .filter-tags .filter-tag {
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-filter-section .filter-tags .filter-tag .remove-filter {
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.3s ease;
  font-weight: 700;
}
.search-filter-section .filter-tags .filter-tag .remove-filter:hover {
  color: #ef4444;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.books-grid .book-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.books-grid .book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #4bc0f0;
}
.books-grid .book-card .book-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.books-grid .book-card .book-cover {
  position: relative;
  padding-top: 140%;
  background: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}
.books-grid .book-card .book-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 0.3s ease;
}
.books-grid .book-card .book-cover:hover img {
  transform: scale(1.05);
}
.books-grid .book-card .book-cover .book-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #9ca3af;
  font-size: 3rem;
}
.books-grid .book-card .book-cover .book-placeholder i {
  opacity: 0.5;
}
.books-grid .book-card .book-cover .book-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
  pointer-events: none;
}
.books-grid .book-card .book-cover .book-badges .badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.books-grid .book-card .book-cover .book-badges .badge.badge-discount {
  background: #ef4444;
  color: white;
}
.books-grid .book-card .book-cover .book-badges .badge.badge-free {
  background: #10b981;
  color: white;
}
.books-grid .book-card .book-cover .book-badges .badge.badge-premium {
  background: #f59e0b;
  color: white;
}
.books-grid .book-card .book-cover .book-badges .badge.badge-new {
  background: #1ea9e2;
  color: white;
}
.books-grid .book-card .book-info {
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.books-grid .book-card .book-info .book-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 2.8rem;
  transition: color 0.3s ease;
}
.books-grid .book-card .book-info .book-card:hover .book-title {
  color: #1ea9e2;
}
.books-grid .book-card .book-info .book-authors {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.books-grid .book-card .book-info .book-authors .author-name:not(:last-child)::after {
  content: ", ";
}
.books-grid .book-card .book-info .book-publisher {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.books-grid .book-card .book-info .book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.books-grid .book-card .book-info .book-meta .book-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.books-grid .book-card .book-info .book-meta .book-rating .stars {
  color: #f59e0b;
  font-size: 0.8rem;
}
.books-grid .book-card .book-info .book-meta .book-rating .stars .star-filled {
  color: #f59e0b;
}
.books-grid .book-card .book-info .book-meta .book-rating .stars .star-half {
  color: #f59e0b;
}
.books-grid .book-card .book-info .book-meta .book-rating .stars .star-empty {
  color: #e5e7eb;
}
.books-grid .book-card .book-info .book-meta .book-rating .rating-count {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-left: 0.25rem;
}
.books-grid .book-card .book-info .book-meta .book-views {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.books-grid .book-card .book-info .book-categories {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.books-grid .book-card .book-info .book-categories .category-tag {
  padding: 0.1rem 0.5rem;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.65rem;
  color: #6b7280;
  transition: all 0.3s ease;
}
.books-grid .book-card .book-info .book-categories .category-tag:hover {
  background: #1ea9e2;
  color: white;
}
.books-grid .book-card .book-info .book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}
.books-grid .book-card .book-info .book-footer .book-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.books-grid .book-card .book-info .book-footer .book-price .price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1ea9e2;
}
.books-grid .book-card .book-info .book-footer .book-price .price-current.free {
  color: #10b981;
}
.books-grid .book-card .book-info .book-footer .book-price .price-original {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.books-grid .book-card .book-info .book-footer .book-price .price-discount {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
}
.books-grid .book-card .book-info .book-footer .book-arrow {
  color: #1ea9e2;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0.6;
}
.books-grid .book-card .book-info .book-footer .book-card:hover .book-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}
.pagination-container .pagination-info {
  font-size: 0.9rem;
  color: #6b7280;
}
.pagination-container .pagination-info strong {
  color: #1f2937;
}
.pagination-container .pagination {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.pagination-container .pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pagination-container .pagination .page-item .page-link:hover {
  background: #f9fafb;
  border-color: #1ea9e2;
  color: #1ea9e2;
}
.pagination-container .pagination .page-item .page-link.active {
  background: #1ea9e2;
  border-color: #1ea9e2;
  color: white;
}
.pagination-container .pagination .page-item .page-link.active:hover {
  background: #1989b8;
  border-color: #1989b8;
}
.pagination-container .pagination .page-item .page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.pagination-container .pagination .page-item.dots .page-link {
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay.active {
  display: flex;
}
.loading-overlay .loading-spinner {
  text-align: center;
}
.loading-overlay .loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top-color: #1ea9e2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.loading-overlay .loading-spinner p {
  color: #6b7280;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
  grid-column: 1/-1;
}
.empty-state .empty-icon {
  font-size: 4rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}
.empty-state .empty-icon i {
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.empty-state .btn-primary {
  padding: 0.75rem 2rem;
  background: #1ea9e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.empty-state .btn-primary:hover {
  background: #1989b8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast-container .toast {
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #1ea9e2;
  min-width: 300px;
  max-width: 450px;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast-container .toast.success {
  border-left-color: #10b981;
}
.toast-container .toast.error {
  border-left-color: #ef4444;
}
.toast-container .toast.warning {
  border-left-color: #f59e0b;
}
.toast-container .toast .toast-icon {
  font-size: 1.25rem;
}
.toast-container .toast .toast-icon.success {
  color: #10b981;
}
.toast-container .toast .toast-icon.error {
  color: #ef4444;
}
.toast-container .toast .toast-icon.warning {
  color: #f59e0b;
}
.toast-container .toast .toast-content {
  flex: 1;
}
.toast-container .toast .toast-content .toast-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}
.toast-container .toast .toast-content .toast-message {
  font-size: 0.85rem;
  color: #6b7280;
}
.toast-container .toast .toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 0.25rem;
}
.toast-container .toast .toast-close:hover {
  color: #1f2937;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .ebooks-catalog {
    padding: 1rem;
  }
  .search-filter-section {
    padding: 1rem;
  }
  .search-filter-section .search-form {
    flex-direction: column;
  }
  .search-filter-section .search-form .search-input-wrapper {
    min-width: unset;
  }
  .search-filter-section .search-form .btn-search,
  .search-filter-section .search-form .btn-sync {
    width: 100%;
    justify-content: center;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination-container .pagination {
    justify-content: center;
  }
  .book-card .book-info {
    padding: 0.75rem;
  }
  .book-card .book-info .book-title {
    font-size: 0.9rem;
    min-height: 2.4rem;
  }
  .book-card .book-info .book-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .book-card .book-info .book-footer .book-arrow {
    display: none;
  }
}
@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .book-card .book-info {
    padding: 0.5rem 0.6rem 0.75rem;
  }
  .book-card .book-info .book-title {
    font-size: 0.8rem;
    min-height: 2rem;
    -webkit-line-clamp: 2;
  }
  .book-card .book-info .book-authors {
    font-size: 0.7rem;
    min-height: 1rem;
  }
  .book-card .book-info .book-publisher {
    font-size: 0.65rem;
  }
  .book-card .book-info .book-meta .book-rating .stars {
    font-size: 0.65rem;
  }
  .book-card .book-info .book-meta .book-rating .rating-count {
    font-size: 0.6rem;
  }
  .book-card .book-info .book-meta .book-views {
    font-size: 0.65rem;
  }
  .book-card .book-info .book-categories .category-tag {
    font-size: 0.55rem;
    padding: 0.05rem 0.4rem;
  }
  .book-card .book-info .book-footer .book-price .price-current {
    font-size: 0.9rem;
  }
  .book-card .book-info .book-footer .book-price .price-original {
    font-size: 0.65rem;
  }
  .book-card .book-info .book-footer .book-price .price-discount {
    font-size: 0.6rem;
    padding: 0.05rem 0.35rem;
  }
  .book-card .book-cover .book-badges .badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
  }
  .pagination-container .pagination-info {
    font-size: 0.8rem;
    text-align: center;
  }
  .pagination-container .pagination .page-item .page-link {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
  .search-filter-section .search-form .search-input-wrapper input {
    font-size: 0.85rem;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
  }
  .search-filter-section .search-form .btn-search,
  .search-filter-section .search-form .btn-sync {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 360px) {
  .books-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
  }
  .book-card .book-cover {
    padding-top: 100%;
    max-height: 300px;
  }
}/*# sourceMappingURL=ebooks.css.map */