/* Pure digital flipbook — no chrome */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: Tahoma, "Segoe UI", sans-serif;
    background: #0b1c26;
    color: #fff;
}

.catalog-flip-body {
    height: 100%;
}

.flip-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(2, 153, 180, 0.18), transparent 55%),
        #0b1c26;
}

.flip-loading,
.flip-error {
    margin: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding: 2rem;
}

.flip-error strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.flip-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.flip-btn:hover:not(:disabled) {
    background: #0299b4;
    border-color: #0299b4;
}

.flip-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.flip-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.flip-contact {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(2, 153, 180, 0.55);
    background: rgba(2, 153, 180, 0.18);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.flip-contact:hover {
    background: #0299b4;
    border-color: #0299b4;
}

@media (max-width: 640px) {
    .flip-toolbar {
        flex-wrap: wrap;
    }

    .flip-contact {
        width: 100%;
        justify-content: center;
        margin-inline-start: 0;
        margin-top: 0.25rem;
    }
}

.flip-indicator {
    min-width: 6.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.flip-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 3rem 0.5rem;
    min-height: 0;
    user-select: none;
    touch-action: pan-y;
}

.flip-page-wrap {
    height: 100%;
    max-width: min(96vw, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
}

.flip-page {
    max-height: 100%;
    max-width: 100%;
    border-radius: 0.35rem;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    background: #fff;
    overflow: hidden;
    transform-origin: center center;
    transition: transform 0.35s ease, opacity 0.28s ease;
}

.flip-page img {
    display: block;
    max-height: calc(100vh - 7.5rem);
    max-width: 100%;
    width: auto;
    height: auto;
}

.flip-page.is-turn-next {
    animation: flipOutLeft 0.28s ease forwards;
}

.flip-page.is-turn-prev {
    animation: flipOutRight 0.28s ease forwards;
}

.flip-page.is-enter {
    animation: flipIn 0.32s ease;
}

@keyframes flipOutLeft {
    to {
        transform: translateX(-8%) rotateY(8deg) scale(0.97);
        opacity: 0;
    }
}

@keyframes flipOutRight {
    to {
        transform: translateX(8%) rotateY(-8deg) scale(0.97);
        opacity: 0;
    }
}

@keyframes flipIn {
    from {
        transform: scale(0.97);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.flip-fab {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #025479;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.flip-fab:hover:not(:disabled) {
    background: #0299b4;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.flip-fab:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.flip-fab.prev { right: 0.65rem; }
.flip-fab.next { left: 0.65rem; }

.flip-fab svg {
    width: 1.2rem;
    height: 1.2rem;
}

.flip-thumbs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.55rem 0.85rem 0.75rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.flip-thumb {
    flex: 0 0 auto;
    width: 3.6rem;
    border: 2px solid transparent;
    border-radius: 0.35rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    background: #fff;
    padding: 0;
    transition: opacity 0.2s, border-color 0.2s;
}

.flip-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.flip-thumb:hover { opacity: 0.9; }

.flip-thumb.is-active {
    opacity: 1;
    border-color: #0299b4;
}

@media (max-width: 640px) {
    .flip-stage { padding: 0.5rem 0.5rem 0.35rem; }
    .flip-fab { display: none; }
    .flip-page img { max-height: calc(100vh - 8.5rem); }
    .flip-thumb { width: 3rem; }
}
