﻿.sort-options {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 1rem;
}

    .sort-options select {
        padding: 0.5rem;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 1rem;
        width: 220px;
    }

/* ----- Ảnh sản phẩm ----- */
.product-image-wrapper {
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

    .product-image-wrapper img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

/* ----- Giá sản phẩm ----- */
.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.sale-price {
    color: #dc3545;
    font-weight: bold;
}

.price {
    color: #28a745;
    font-weight: bold;
}

/* ----- Giảm giá (Tag %) ----- */
.discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 5px;
}

/* ----- Card sản phẩm ----- */
.card {
    position: relative;
    transition: transform 0.2s ease;
}

    .card:hover {
        transform: scale(1.02);
    }

/* ----- Phân trang ----- */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link {
    color: #007bff;
}

/* ----- Danh mục bên trái ----- */
.list-group-item a {
    text-decoration: none;
    color: #333;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* ----- Bộ lọc (filter) ----- */
.filter-section input[type=range] {
    width: 100%;
}

.filter-section output {
    display: block;
    margin-top: 8px;
    font-weight: bold;
}

.filter-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

    .product-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    height: 100%;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-text {
    margin-top: 8px;
}

.discount {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 8px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 6px;
}

.sale-price {
    color: #e83e8c;
    font-weight: bold;
}

.price {
    font-weight: bold;
    color: #343a40;
}

.book-item {
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .book-item:hover {
        transform: scale(1.07);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    }

    .book-item img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        background: radial-gradient(circle at center, #ffffff 50%, #cce7ff 100%);
        transition: transform 0.3s ease;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .book-item:hover img {
        transform: scale(1.1);
    }

    .book-item h4 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #333;
        transition: color 0.3s ease;
    }

    .book-item:hover h4 {
        color: #007bff;
    }

    .book-item p {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .book-item .btn-warning {
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
        transition: box-shadow 0.3s ease;
    }

        .book-item .btn-warning:hover {
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.7);
            transform: translateY(-2px);
        }
