/* Font & background */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f2f2f2;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 32px;
  background: linear-gradient(to right, #00f5ff, #00ffae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* ========== Product List (Homepage) ========== */
#product-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  text-align: left;
}


.product-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.15);
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.3);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h2 {
  font-size: 18px;
  margin: 8px 0 4px;
  color: #00ffe1;
}

.product-card p {
  font-size: 14px;
  color: #bbb;
}

.product-card .price {
  font-size: 16px;
  font-weight: bold;
  color: #00ffae;
  margin-top: 10px;
}

/* ========== Product Detail Page ========== */
.ebook-cover {
  max-width: 320px;
  width: 100%;
  border-radius: 10px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.25);
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #00ffae;
  margin: 15px 0;
}

.buy-button {
  background: linear-gradient(to right, #00ffae, #00f5ff);
  color: #000;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
}

.buy-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.5);
}

.back-button {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: transparent;
  color: #00ffe1;
  border: 1px solid #00ffe1;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.25s ease;
}

.back-button:hover {
  background: #00ffe1;
  color: #000;
  transform: translateX(-3px);
  box-shadow: 0 0 10px rgba(0, 255, 225, 0.3);
}

footer {
  margin-top: 40px;
  font-size: 14px;
  color: #777;
}

/* ========== Responsive Media Queries ========== */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .product-card {
    padding: 14px;
  }

  .product-card h2 {
    font-size: 17px;
  }

  .price {
    font-size: 18px;
  }

  .buy-button,
  .back-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 18px 16px;
  }

  h1 {
    font-size: 22px;
  }

  .product-card {
    padding: 12px;
    margin: auto;
  }

  .product-card h2 {
    font-size: 16px;
  }

  .price {
    font-size: 17px;
  }

  .buy-button,
  .back-button {
    font-size: 16px;
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .ebook-cover {
    max-width: 100%;
  }
}
