.catalog-section {
    padding-top: 36px;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.catalog-toolbar h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-stage {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #1a1d20;
    box-shadow: 0 20px 50px rgba(17, 19, 21, 0.12);
    min-height: 72vh;
}

.catalog-viewer {
    display: block;
    width: 100%;
    height: auto;
    min-height: 520px;
    border: 0;
    background: #fff;
}

.catalog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(17, 19, 21, 0.92);
    color: var(--ivory);
}

.catalog-pager .btn {
    min-height: 42px;
    color: var(--ivory);
    border-color: rgba(255, 255, 255, 0.2);
}

.catalog-pager .btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.catalog-pager span {
    min-width: 7rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.catalog-stage.is-loading::before {
    content: "Loading catalog…";
    position: absolute;
    inset: 0 0 64px;
    z-index: 1;
    display: grid;
    place-content: center;
    background: rgba(26, 29, 32, 0.86);
    color: rgba(250, 248, 243, 0.8);
}

.catalog-note {
    margin-top: 16px;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.catalog-fallback {
    min-height: 280px;
    border-radius: 22px;
    background: var(--charcoal);
    color: var(--ivory);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px 24px;
}

@media (max-width: 820px) {
    .catalog-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .catalog-stage {
        min-height: 0;
    }

    .catalog-viewer {
        min-height: 0;
    }

    .catalog-pager {
        flex-wrap: wrap;
    }
}
