@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}


header {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 20px 15px;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 500;
}


main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}



.cover-image {
  width: 100vw;          
  height: 380px;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.cover-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
}


.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 30px 0 20px;
  color: #222;
}


.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  justify-content: center;
}



@supports (display: grid) {
  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: center;
  }
}



.book {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 300px;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: auto;
  margin-right: auto
}

.book:hover {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


.book img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 15px;
  background: #fafafa;
}


.book img,
.cover-image img {
  max-width: 100%;
  height: auto;
}


.book-info {
  padding: 15px;
  text-align: center;
}

.book-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 500;
}


.buy-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #2980b9;
}


footer {
  margin-top: 40px;
  padding: 15px;
  background-color: #1e1e1e;
  text-align: center;
}

footer p {
  color: #cccccc;
  font-size: 0.9rem;
}

footer a {
  color: #ff9800;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}




@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .cover-image {
    height: 300px;
  }

  .section-title {
    font-size: 1.4rem;
  }
}


@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  .cover-image {
    height: 220px;
  }

  .book img {
    height: 220px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .book-grid {
    padding: 15px;
    gap: 18px;
  }
}