.tt-catalog-page {
    min-height: 100vh;
    background: #f5f6f6;
    color: #202a2b;
}

.tt-catalog-main {
    width: min(100% - 40px, 1440px);
    margin: 0 auto;
    padding: calc(var(--tt-header-h, 88px) + 30px) 0 40px;
}

.tt-catalog-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
    text-align: left;
}

.tt-catalog-heading .heading-sub {
    margin-bottom: 18px;
}

.tt-catalog-heading .heading-title {
    width: 100%;
    margin: 0;
    text-align: left;
    color: #09090b;
    font-family: "Urbanist", sans-serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

@media (max-width: 767px) {
    .tt-catalog-heading .heading-title {
        font-size: 36px;
        line-height: 1.15;
    }
}

.tt-catalog-pdf-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #c6cecc;
    background: #fff;
    color: #202a2b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tt-catalog-pdf-link:hover,
.tt-catalog-pdf-link:focus-visible {
    border-color: #52766d;
    color: #52766d;
}

.tt-catalog-viewer {
    position: relative;
    display: grid;
    height: min(88vh, 1010px);
    min-height: 560px;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.tt-catalog-book {
    width: 100%;
    height: calc(100% - 48px);
    min-height: 460px;
    visibility: hidden;
}

.tt-catalog-book.is-ready {
    visibility: visible;
}

.tt-catalog-book .page {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgb(16 24 24 / 12%);
}

.tt-catalog-book .page canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tt-catalog-status {
    position: absolute;
    z-index: 1;
    max-width: min(90%, 520px);
    padding: 16px 20px;
    color: #394647;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.tt-catalog-status.is-error {
    color: #a43c2e;
}

.tt-catalog-controls {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 12px;
    background: #252b2d;
    color: #f5f6f6;
    font-size: 14px;
}

.tt-catalog-controls[hidden] {
    display: none;
}

.tt-catalog-controls button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.tt-catalog-controls button:hover,
.tt-catalog-controls button:focus-visible {
    background: #384345;
    color: #fff;
}

.tt-catalog-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tt-catalog-zoom-btn svg {
    display: block;
}

.tt-catalog-zoom {
    position: fixed;
    z-index: 100000;
    inset: 0;
    overflow: hidden;
    background: #111516;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.tt-catalog-zoom[hidden] {
    display: none;
}

.tt-catalog-zoom__canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transform-origin: 0 0;
    background: #fff;
    will-change: transform;
}

.tt-catalog-zoom__close {
    position: absolute;
    z-index: 2;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 62%);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.tt-catalog-zoom__hint {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    padding: 8px 14px;
    border-radius: 999px;
    background: rgb(0 0 0 / 62%);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tt-catalog-zoom.is-touched .tt-catalog-zoom__hint {
    opacity: 0;
}

html.tt-catalog-zoom-open,
html.tt-catalog-zoom-open body {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .tt-catalog-main {
        width: min(100% - 12px, 1240px);
        padding: calc(var(--tt-header-h, 72px) + 20px) 0 32px;
    }

    .tt-catalog-heading {
        margin-bottom: 12px;
        padding: 0 8px;
    }

    .tt-catalog-book,
    .tt-catalog-viewer {
        min-height: 440px;
    }

    .tt-catalog-viewer {
        height: 72vh;
    }

    .tt-catalog-book {
        height: calc(100% - 48px);
        min-height: 392px;
    }

    .tt-catalog-controls {
        gap: 8px;
        font-size: 13px;
    }

    .tt-catalog-controls button {
        width: 36px;
        height: 40px;
    }
}