/* ── Ebooks catalog page (/ebooks) — scoped styles ── */
.eb-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px var(--pad-x) 80px;
}

.eb-list-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.3s;
}

.eb-list-card:nth-child(3n) { border-right: none; }

.eb-list-card:hover { background: rgba(232,50,10,0.025); }

.eb-list-cover {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 280px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eb-list-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 64px;
  color: var(--ink-3);
}

.eb-list-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.eb-list-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
}

.eb-list-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 24px;
  flex: 1;
}

.eb-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.eb-list-price {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eb-list-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  transition: letter-spacing 0.3s;
}

.eb-list-card:hover .eb-list-cta { letter-spacing: 0.14em; }

@media (max-width: 1024px) {
  .eb-list-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-list-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .eb-list-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
  .eb-list-grid { grid-template-columns: 1fr; margin: 24px 24px 48px; }
  .eb-list-card { padding: 32px 24px; border-right: none; }
}
