/* --- 카테고리 기반 대여 페이지 --- */
.category-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.category-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden; /* 스크롤바 숨기기 */
    scroll-behavior: smooth;
    width: 100%;
    margin: 0 40px; /* 좌우 화살표 버튼 공간 */
    position: relative;
}

.category-page {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-navy);
    margin-bottom: 1.5rem;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: var(--light-sky-blue);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--accent-blue);
}

.nav-btn.prev-btn { left: 0; }
.nav-btn.next-btn { right: 0; }

.pagination-counter {
    text-align: center;
    margin-top: 1rem;
    color: #888;
}

/* 기존 item-grid 스타일 수정 */
.item-selection-section .item-grid {
    display: grid; /* ✨ 이 줄을 추가하여 그리드 레이아웃을 활성화합니다. */
    width: 100%;   /* ✨ 그리드가 부모 너비를 꽉 채우도록 설정합니다. */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .item-selection-section .item-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}