/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: var(--space-xxl) 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: var(--font-xxl);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.hero p {
    font-size: var(--font-lg);
    opacity: 0.9;
}

/* Books Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.book-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.book-image {
    height: 320px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: var(--space-md);
}

.book-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.book-author {
    color: var(--text-color-secondary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
}

.book-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.book-price {
    font-weight: 600;
    font-size: var(--font-lg);
    color: var(--primary);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.stars {
    color: var(--warning);
}

.add-to-cart {
    width: 100%;
    padding: var(--space-sm);
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.add-to-cart:hover {
    background-color: var(--primary-dark);
}

.add-to-cart.added {
    background-color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: var(--font-xl);
    }

    .hero p {
        font-size: var(--font-md);
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-image {
        height: 280px;
    }
}