/* =========================
   Global Styles
========================= */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #fafafa;
  color: #111;
  margin: 2rem auto;
  max-width: 900px;
  padding: 0 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Navbar
========================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-nav a {
  padding: 0.5rem 1rem;
  color: #333 !important;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* =========================
   Book Grids (Readers, Novels, Zanzibar)
========================= */
.books-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.book-card {
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  box-sizing: border-box;
  height: auto;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card img {
  width: 180px;
  height: 270px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.book-card h3 {
  min-height: 2.8em;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.book-card p {
  text-align: left;
  margin-top: 0.5rem;
  width: 100%;
  line-height: 1.4;
  font-size: 0.9rem;
}

.book-card a:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* =========================
   Buy Buttons
========================= */
.buy-button, .amazon-button {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 0.6rem;
  text-decoration: none;
  color: white;
  transition: background-color 0.2s ease;
}

.buy-button.orange, .amazon-button.orange {
  background-color: #ff9900;
}

.buy-button.orange:hover, .amazon-button.orange:hover {
  background-color: #e68a00;
}

.buy-button.blue, .amazon-button.blue {
  background-color: #008cba;
}

.buy-button.blue:hover, .amazon-button.blue:hover {
  background-color: #0079a1;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 900px) {
  .book-card {
    width: 45%;
  }
  body {
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .book-card {
    width: 90%;
  }
}

/* Center the entire site content */
.wrapper {
  max-width: 1000px;   /* or 900–1100px depending on your preference */
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 0 1rem;
}

.page-content, .page__inner-wrap {
  margin: 0 auto;
}
