.ebooks-page {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  background: var(--background-color);
}

.ebook-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
}

.ebook-card:hover {
  transform: translateY(-5px);
}

.ebook-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  padding: 0.5rem;
  background-color: #f8f9fa;
  transition: transform 0.3s ease;
}

.ebook-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ebook-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ebook-description {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ebook-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #666;
}

.ebook-details i {
  color: var(--primary-color);
}

.ebook-price {
  margin: 1.5rem 0;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 1.5rem;
}

.discounted-price {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
}

.download-button {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin-left: auto;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.download-button i {
  font-size: 0.9rem;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.download-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.download-button:hover::after {
  left: 100%;
}

.crown-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  animation: float 2s ease-in-out infinite;
}

.crown-icon i {
  color: white;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .ebooks-page {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .crown-icon {
    width: 35px;
    height: 35px;
  }
  
  .crown-icon i {
    font-size: 1rem;
  }
}