﻿/* CSS cho trang chi tiết sách */
.book-detail {
    display: flex;
    gap: 40px;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.book-image img {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-info {
    flex: 1;
}

    .book-info h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars span {
    color: #ffc107;
    font-size: 1.2rem;
}

.book-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 1rem 0;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

    .button:hover {
        background: #0056b3;
    }

@media (max-width: 768px) {
    .book-detail {
        flex-direction: column;
        gap: 20px;
    }
}
