/* ===== 공용 pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.pagination .page-btn { width: 36px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.4rem; color: #555; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pagination .page-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 700; }
.pagination .page-arrow { width: 36px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #555; cursor: pointer; transition: background 0.2s; }
.pagination .page-arrow img { width: 19px; height: 19px; }
.pagination .page-arrow img.flip { transform: rotate(180deg); }
.pagination .page-arrow:disabled { opacity: 0.35; cursor: default; }
.pagination .page-arrow:not(:disabled):hover { background: #f0f0f0; }

@media (max-width: 580px) {
    .pagination { margin-top: 28px; gap: 3px; }
    .pagination .page-btn { width: 30px; font-size: 1.4rem; border-radius: 3px; border: 0; }
    .pagination .page-arrow { width: 30px; border-radius: 0; border: 0; }
    .pagination .page-arrow img { width: 17px; height: 17px; }
}
