/* ============================================
   Books Catalog Page
   ============================================ */

/* ---- Product Grid Adjustments ---- */
.books-grid {
  gap: var(--space-xl);
}

/* ---- Filter Bar Page Tweaks ---- */
.books-filters {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

/* ---- Product Card Book Variant ---- */
.books-grid .product-card__title {
  min-height: 2.5em;
}

/* ---- Pagination Section ---- */
.books-pagination {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

/* ---- Responsive: 3 cols at 1024px ---- */
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* ---- Responsive: 2 cols at 768px ---- */
@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .books-filters {
    gap: var(--space-sm);
  }
}

/* ---- Product Card Link ---- */
.product-card__link {
  display: block;
}

.product-card__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card__link:hover img {
  transform: scale(1.05);
}

.product-card__view {
  margin-top: var(--space-xs);
  width: 100%;
  text-align: center;
}

/* ---- Responsive: 1 col at 480px ---- */
@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}
