
/* HEADER */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.books-header {
  max-width: 1200px;
  margin: auto;
  font-size: 16px;
  color: #edf0f4;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* GRID */

.books-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 10px;
}

/* CARD */

.book-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: .2s;
}

.book-card:hover {
  transform: translateY(-6px);
}

/* IMAGE */

.book-image {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* BODY */

.book-body {
  padding: 20px;
}

.tag {
  display: inline-flex;         /* melhor alinhamento */
  align-items: center;
  justify-content: center;

  width: fit-content;           /* ajusta ao texto */
  max-width: 100%;              /* evita estourar container */

  background: #fff3e8;
  color: #ff7a00;

  font-size: 12px;
  padding: 5px 12px;

  border-radius: 999px;         /* pílula perfeita */
  font-weight: 600;

  white-space: nowrap;          /* evita quebra feia */
}

.tag-blue {
  background: #e8f0ff;
  color: #2563eb;
}

.book-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #111827;
}

.desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.author,
.pages {
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

/* RATING */

.rating {
  font-size: 14px;
  color: #f59e0b;
  margin: 10px 0;
}

.rating span {
  color: #6b7280;
  margin-left: 6px;
}

/* FORMATS */

.formats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.formats span {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* PRICE */

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-row small {
  font-size: 12px;
  color: #6b7280;
}

.price-row strong {
  font-size: 18px;
  color: #ff7a00;
}

/* BUTTON */

button {
  background: linear-gradient(45deg, #ff7a00, #ff3c00);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  opacity: .9;
}

/* RESPONSIVO */


@media (max-width: 600px) {
  .book-image {
    height: 180px;
  }
}

.books-benefits-section {
  display: flex;
  margin-top: 80px;
  justify-content: center;
}

/* BOX */

.books-benefits-box {
  max-width: 1100px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 50px 40px 60px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border: 2px solid #ffd1a6;
  text-align: center;
  margin-bottom: 20px;
}

/* TITLE */

.books-benefits-box h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #111827;
}

/* GRID */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* ITEM */

.benefit-item {
  padding: 10px 20px;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: auto;
  border-radius: 50%;
  background: #fff1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ff7a00;
  margin-bottom: 16px;
}

/* TEXT */

.benefit-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.benefit-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

/* RESPONSIVO */

@media (max-width: 768px) {

  .books-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .book-card {
    border-radius: 14px;
  }

  .book-body {
    padding: 14px;
  }

}


.books-showcase {
  padding: 80px 20px;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* HEADER */

.books-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.books-header .badge {
  background: #eaf1ff;
  color: #2563eb;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.books-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111827;
}

.books-header p {
  color: #6b7280;
  font-size: 15px;
}

/* GRID */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: auto;
}

/* CARD */

.book-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: .25s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* IMAGE */

.book-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */

.book-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-content h3 {
  font-size: 17px;
  font-weight: 700;
}

.book-content p {
  font-size: 14px;
  color: #6b7280;
}

/* RATING */

.rating {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* PRICE */

.price {
  margin-top: 6px;
  font-size: 14px;
}

.price strong {
  color: #ff7a00;
  font-size: 16px;
}

/* BUTTON */

.book-content button {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgb(246, 98, 6);
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.book-content button:hover {
  background: #ff7a00;
  color: white;
  border-color: #ff7a00;
}

/* MOBILE */

@media (max-width: 768px) {

  .books-header h2 {
    font-size: 28px;
  }

  .book-card img {
    height: 200px;
  }

  .books-grid {
    gap: 18px;
  }

}

