﻿.hc-pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.hc-pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hc-pagination .page {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hc-pagination .page li {
    float: left;
}

.hc-pagination .page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hc-pagination .page-item:hover:not(.disable):not(.active) {
    border-color: #0078D7;
    color: #0078D7;
    background: rgba(0, 120, 215, 0.05);
}

.hc-pagination .page-item.active {
    background: linear-gradient(135deg, #0078D7, #005a9e);
    border-color: #0078D7;
    color: #fff;
    font-weight: 500;
}

.hc-pagination .page-item.disable {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.hc-pagination .page-total {
    display: flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.hc-pagination .page-first,
.hc-pagination .page-last {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-family: icomoon;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-pagination .page-first:before,
.hc-pagination .page-first.disable:before {
    content: "\e9c8";
    color: inherit;
}

.hc-pagination .page-last:before,
.hc-pagination .page-last.disable:before {
    content: "\e9cb";
    color: inherit;
}

.hc-pagination .page-first:hover:not(.disable),
.hc-pagination .page-last:hover:not(.disable) {
    border-color: #0078D7;
    background-color: rgba(0, 120, 215, 0.05);
}

.hc-pagination .page-first.disable,
.hc-pagination .page-last.disable {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.hc-pagination .page-first.disable:hover,
.hc-pagination .page-last.disable:hover {
    border-color: #eee;
    background-color: #fff;
}

.hc-pagination .page-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    color: #666;
    font-size: 0.875rem;
    cursor: pointer;
}

.hc-pagination .page-options {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.75rem;
}

.hc-pagination .page-options-size-changer select {
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    outline: none;
}

.hc-pagination .page-options-size-changer select:hover {
    border-color: #0078D7;
}

.hc-pagination .page-options-jumper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #666;
}

.hc-pagination .page-options-jumper input {
    width: 3rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    outline: none;
}

.hc-pagination .page-options-jumper input:focus {
    border-color: #0078D7;
}

.hc-pagination .page-item.hide {
    display: none;
}

@media (max-width: 768px) {
    .new-book-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .new-book-cover {
        width: 100%;
        aspect-ratio: 3 / 4;
        height: auto;
    }

    .new-book-title {
        font-size: 0.75rem;
    }

    .new-book-date {
        font-size: 0.6875rem;
    }

    .new-book-info {
        padding: 0.5rem;
    }

    .hc-pagination .page-options {
        display: none;
    }
}