/* One compact product card for ebook, Serba-serbi, search, and recommendations. */
:root{--catalog-gap:10px}
.book-grid:not(.book-track),
.catalog-results .book-grid:not(.book-track),
.digital-grid.book-grid:not(.book-track),
.store-search-section .book-grid:not(.book-track){
  grid-template-columns:repeat(auto-fill,minmax(min(10.5rem,100%),1fr));
  gap:var(--catalog-gap);
  justify-content:start;
  align-items:stretch;
}
.book-grid.book-track,.digital-grid.book-grid.book-track{
  grid-template-columns:none;
  grid-auto-columns:min(11.5rem,calc((100% - var(--catalog-gap))/2));
  column-gap:var(--catalog-gap);
  row-gap:0;
  align-items:stretch;
  padding-block:4px 12px;
}
.book-grid .book-card{
  width:auto;
  min-width:0;
  max-width:100%;
  border:1px solid #e3e8ef;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.book-grid .book-card .cover-stage,
.book-grid .digital-card .cover-stage.digital-cover{
  position:relative;
  width:100%;
  height:auto;
  min-height:0;
  flex:0 0 auto;
  aspect-ratio:1;
  padding:0;
  border:0;
  border-bottom:1px solid #edf0f5;
  border-radius:0;
}
.book-grid .book-card .cover-stage .book-cover,
.book-grid .book-card .cover-stage.cover-fill .book-cover,
.book-grid .digital-card .digital-cover.cover-fit-contain .book-cover{
  position:absolute;
  inset:8px;
  width:calc(100% - 16px);
  height:calc(100% - 16px);
  max-width:none;
  object-fit:contain;
  object-position:center;
  box-shadow:none;
}
.book-grid .book-card .book-info{
  display:grid;
  grid-template-rows:auto auto auto minmax(1.25rem,auto) auto;
  gap:3px;
  min-width:0;
  padding:10px 9px 12px;
  flex:1;
  align-content:start;
}
.book-grid .book-card .book-info .catalog-card-title{
  grid-row:1;
  margin:0;
  min-width:0;
  font-family:inherit;
  font-size:var(--site-font-s14,.875rem);
  font-weight:600;
  line-height:1.5;
  letter-spacing:0;
}
.book-grid .book-card .catalog-card-title a{
  display:block;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow-wrap:normal;
}
.book-grid .book-card .book-category{
  grid-row:2;
  min-width:0;
  display:flex;
  flex-direction:row;
  gap:5px;
  font-size:var(--site-font-s12,.75rem);
  line-height:1.5;
}
.book-grid .book-card .book-author{
  grid-row:3;
  min-width:0;
  margin:0;
  font-size:var(--site-font-s12,.75rem);
  line-height:1.5;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  overflow-wrap:normal;
}
.book-grid .book-card .book-savings{
  grid-row:4;
  justify-self:start;
  align-self:center;
  margin:0;
  padding:1px 5px;
  font-size:var(--site-font-s12,.75rem);
  line-height:1.5;
  box-shadow:none;
}
.book-grid .book-card .book-price{
  grid-row:5;
  margin:0;
  gap:5px;
  line-height:1.4;
  align-items:baseline;
}
.book-grid .book-card .book-price strong{font-size:var(--site-font-s16,1rem)}
.book-grid .book-card .book-price s{font-size:var(--site-font-s12,.75rem)}
@media(max-width:600px){
  .book-grid:not(.book-track),
  .catalog-results .book-grid:not(.book-track),
  .digital-grid.book-grid:not(.book-track),
  .store-search-section .book-grid:not(.book-track){
    grid-template-columns:repeat(auto-fill,minmax(min(8.75rem,100%),1fr));
  }
}
