.page-catalogue-body {
    margin: 0;
    overflow: hidden;
    background: #eceff3;
}

.page-catalogue {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top left, rgba(0, 87, 136, 0.08), transparent 34%),
        linear-gradient(180deg, #f4f7fa 0%, #e8edf2 100%);
    z-index: 1;
}

.page-catalogue .page-container,
.page-catalogue .page-container .container,
.page-catalogue .page-container .container .page-body,
.page-catalogue .page-container .container .page-body .flipbook-viewport,
.page-catalogue .page-container .container .page-body .flipbook-viewport .flipbook-viewport-container {
    height: 100%;
}

.page-catalogue .page-container {
    position: relative;
}

.page-catalogue .page-container .container {
    max-width: none;
    padding: 0;
    height: 100%;
}

.page-catalogue .page-body {
    position: relative;
    display: flex;
}

.page-catalogue .catalogue-logo {
    display: none;
}

.page-catalogue .side-bar {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 56px;
    padding: 10px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 87, 136, 0.1);
    box-shadow: 0 12px 32px rgba(2, 13, 18, 0.1);
    backdrop-filter: blur(10px);
}

.page-catalogue .side-bar__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.page-catalogue .side-bar__item {
    position: relative;
}

.page-catalogue .side-bar__btn {
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-gray-7, #3d4a51);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.page-catalogue .side-bar__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-catalogue .side-bar__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-4px);
    background: var(--color-blue-deep, #0a293a);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(2, 13, 18, 0.18);
    transition: 0.2s ease;
    z-index: 30;
}

.page-catalogue .side-bar__label::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: inherit;
    transform: translateY(-50%) rotate(45deg);
}

.page-catalogue .side-bar__item:hover .side-bar__btn,
.page-catalogue .side-bar__item.active .side-bar__btn {
    color: var(--color-blue, #005788);
}

.page-catalogue .side-bar__item:hover .side-bar__icon,
.page-catalogue .side-bar__item.active .side-bar__icon {
    background: var(--color-blue-50, #e8eff3);
    color: var(--color-blue, #005788);
    transform: translateY(-1px);
}

.page-catalogue .side-bar__item:hover .side-bar__label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.page-catalogue .overview {
    position: absolute;
    top: 16px;
    left: 80px;
    bottom: 16px;
    width: min(220px, 68vw);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 87, 136, 0.1);
    border-radius: 14px;
    overflow: auto;
    padding: 10px 0 12px;
    transform: translateX(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 15;
    box-shadow: 0 16px 40px rgba(2, 13, 18, 0.12);
}

.page-catalogue .overview.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.page-catalogue .overview__head {
    padding: 2px 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-blue-deep, #0a293a);
}

.page-catalogue .overview ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.page-catalogue .overview ul li {
    list-style: none;
    padding: 0 10px;
    cursor: pointer;
}

.page-catalogue .overview ul li .li-container {
    position: relative;
    display: block;
    width: 100%;
    border: solid 2px transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.page-catalogue .overview ul li.active .li-container,
.page-catalogue .overview ul li:hover .li-container {
    border-color: var(--color-blue, #005788);
}

.page-catalogue .overview ul li .images {
    display: block;
    width: 100%;
    aspect-ratio: 2000 / 1414;
    background: #f5f5f5;
    box-shadow: 0 0 1px rgba(18, 18, 18, 0.45);
}

.page-catalogue .overview ul li .images img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-catalogue .overview ul li .pages {
    position: absolute;
    top: 6px;
    left: 6px;
    margin: 0;
    min-width: 22px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.18);
    font-weight: 700;
    border-radius: 4px;
    z-index: 1;
    text-align: center;
}

.page-catalogue .flipbook-viewport {
    flex: 1;
    margin-left: 0;
    min-width: 0;
}

.page-catalogue .flipbook-viewport-container {
    display: flex;
    justify-content: center;
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px;
}

.page-catalogue .flipbook {
    margin-left: 0;
    background: transparent;
    transition: margin-left 0.35s ease;
    box-shadow: 0 18px 48px rgba(2, 13, 18, 0.16);
}

.page-catalogue .flipbook.is-cover {
    /* Cover (page 1) sits on the right half in double mode — shift so it centers */
}

.page-catalogue .flipbook .page,
.page-catalogue .flipbook .hard,
.page-catalogue .flipbook .odd,
.page-catalogue .flipbook .even,
.page-catalogue .flipbook .flipbook__page {
    background-color: #e8edf2;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.page-catalogue .flipbook .flipbook__page:not([data-loaded="1"]) {
    background-image: linear-gradient(90deg, #e8edf2 25%, #f4f7fa 50%, #e8edf2 75%);
    background-size: 200% 100% !important;
    animation: catalog-page-pulse 1.2s ease-in-out infinite;
}

@keyframes catalog-page-pulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.page-catalogue .btn-prev,
.page-catalogue .btn-next {
    position: absolute;
    top: 50%;
    left: 88px;
    width: 44px;
    height: 44px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background: rgba(10, 41, 58, 0.55);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.page-catalogue .btn-prev:hover,
.page-catalogue .btn-next:hover {
    background: var(--color-blue, #005788);
    transform: translateY(-50%) scale(1.04);
}

.page-catalogue .btn-next {
    left: auto;
    right: 24px;
}

.page-catalogue .btn-prev.hidden,
.page-catalogue .btn-next.hidden {
    display: none;
}

@media (max-width: 991px) {
    .page-catalogue .flipbook-viewport-container {
        padding: 16px 40px;
    }

    .page-catalogue .btn-prev {
        left: 80px;
    }
}

@media (max-width: 767px) {
    .page-catalogue .flipbook-viewport-container {
        padding: 12px 8px calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .page-catalogue .catalogue-logo {
        display: block;
        position: fixed;
        top: 14px;
        left: 0;
        right: 0;
        z-index: 9999;
        text-align: center;
    }

    .page-catalogue .catalogue-logo img {
        width: 150px;
        max-width: 52vw;
    }


    .page-catalogue.has-logo .flipbook-viewport-container {
        padding-top: 56px;
    }

    .page-catalogue .side-bar {
        position: fixed;
        left: 100px;
        right: 100px;
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: none;
        width: auto;
        padding: 4px 6px;
        border-radius: 16px;
    }

    .page-catalogue .side-bar__list {
        flex-direction: row;
        justify-content: space-around;
        gap: 2px;
    }

    .page-catalogue .side-bar__label {
        display: none;
    }

    .page-catalogue .overview {
        position: fixed;
        left: 8px;
        right: 8px;
        top: 8px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-height: none;
        border-radius: 16px;
        transform: translateY(8px);
    }

    .page-catalogue .overview.active {
        transform: translateY(0);
        z-index: 10000;
    }

    .page-catalogue .overview__head {
        position: sticky;
        top: 0;
        z-index: 1;
        padding-top: 8px;
        background: rgba(255, 255, 255, 0.96);
    }

    .page-catalogue .overview ul {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 0 10px 12px;
    }

    .page-catalogue .overview ul li {
        padding: 0;
    }

    .page-catalogue .btn-prev,
    .page-catalogue .btn-next {
        width: 40px;
        height: 40px;
        font-size:14px;
    }

    .page-catalogue .btn-prev {
        left: 8px;
        right: auto;
    }

    .page-catalogue .btn-next {
        left: auto;
        right: 8px;
    }
}
