@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

.notes {
    display: none;
}

.ab-heading--h1,
.ab-heading--h2 {
    font-family: "Fraunces", serif;
}


.ab-text,
.ab-button,
.ab-link,
.ab-tag {
    font-family: "Epilogue", sans-serif;
}

.book-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;         /* this is what makes it a pill */
  width: fit-content;
  font-size: 12px !important;
}

.meta-tag {
  display: inline-block;
  background-color: var(--main-secondary-color);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  font-size: 12px !important;
}

.tags-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.tags-row .element__wrapper {
  margin: 0 !important;
}

.details-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.details-row .element__wrapper {
  margin: 0 !important;
}


/* ------- FILTER AND SORT OUT ------*/

/* Filter and Sort popup panels */
.context {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  padding: 12px !important;
  z-index: 9999 !important;
}

/* Text inside the popups */
.context,
.context * {
  color: #2b1d00 !important;
}

/* Input fields inside filter/sort */
.context input,
.context select {
  background-color: #f9f9f9 !important;
  color: #2b1d00 !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
}

/* Dropdown items inside the popup */
.context .select__items,
.context .dropdown__items {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
}

.context .select__item:hover,
.context .dropdown__item:hover {
  background-color: #f0e8ff !important;
}

/* ------- CORRECT RATIO OF COLUMNS IN BOOK DETAILS ------*/
/* Override the 50/50 split to 30/70 */
.book-detail-columns .column-element__column:first-child {
  --column-width: 30% !important;
  max-width: 30% !important;
  flex: 0 0 30% !important;
}

.book-detail-columns .column-element__column:last-child {
  --column-width: 70% !important;
  max-width: 70% !important;
  flex: 0 0 calc(70% - 20px) !important; /* minus the gap */
}

/* ------- BOOK CARDS & EFFECTS ------*/
.book-card {
  position: relative !important;
  cursor: pointer;
  overflow: visible !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.book-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary) !important;
}

/* Stretch the link across the whole card */
.book-card .ab-link {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999 !important;
  opacity: 0 !important;
  display: block !important;
}

/* Stop inner elements intercepting clicks */
.book-card .element__inner-wrapper {
  position: static !important;
}

.book-card .ab-image,
.book-card .ab-image__img,
.book-card .image-element,
.book-card .heading-element,
.book-card .text-element,
.book-card .rating-element,
.book-card .column-element {
  pointer-events: none !important;
}

/* Cover image zoom */
.book-card .ab-image__img {
  transition: transform 0.4s ease;
  pointer-events: none !important;
}

.book-card:hover .ab-image__img {
  transform: scale(1.06);
}

/* ------- BOOK GRID — CONSISTENT IMAGE HEIGHT ------*/

.book-grid .book-card .ab-image {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  overflow: hidden !important;
  width: 100% !important;
}

.book-grid .book-card .ab-image__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}